react-pivot
react-pivot copied to clipboard
add compiled file to dist folder
Hi. I'm loading my modules in webpack with this config:
{
"test": /\.js$/,
"exclude": /node_modules/,
"loader": 'babel-loader'
}
When I add your lib, webpack doesn't compile your version because I'm ignoring node_modules (because that causes perf issues). I think the best way is to provide the compiled version to npm so "consumers" don't have to handle compilation.
You could also use the babel loader directly in your import/require statement:
import PivotTable from 'babel!react-pivot';