Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add compiled file to dist folder #12

Open
luisrudge opened this issue Jun 6, 2015 · 1 comment
Open

add compiled file to dist folder #12

luisrudge opened this issue Jun 6, 2015 · 1 comment

Comments

@luisrudge
Copy link
Contributor

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.

@jseppi
Copy link
Contributor

jseppi commented Dec 11, 2015

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

import PivotTable from 'babel!react-pivot';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants