react-pivot icon indicating copy to clipboard operation
react-pivot copied to clipboard

add compiled file to dist folder

Open luisrudge opened this issue 10 years ago • 1 comments

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.

luisrudge avatar Jun 06 '15 00:06 luisrudge

You could also use the babel loader directly in your import/require statement:

import PivotTable from 'babel!react-pivot';

jseppi avatar Dec 11 '15 17:12 jseppi