-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
jsnext:main transpiling #488
Comments
babel-loader/babel is only transpiling what you tell it to transpile. webpack is respecting the |
can we have an option to enable transpiling all jsnext:main and module on node_modules? |
@sibelius That is something you'd set up in your Webpack config, not as part of babel-loader. |
I think it makes sense to have something like this in a helper or as an option |
@sibelius It is not something a loader can effect. Webpack decides how to process things like that, not Babel. |
I really do not understand what's the current status in Webpack / babel-loader in transpiling dependencies in node_modules, can anyone please clarify?
I tried to stick to every issue opened everywhere.
jsnext:main
file?jsnext:main
file in node_modules even if node_modules is in exclude key?My situation:
In my dependency package.json I tried:
Neither is working without removing
exclude: [/node_modules/],
but this can't be used in any medium-to-big sized project because of infinite compilation times.But then: why is https://github.com/lodash/lodash/blob/es/package.json any different from my https://github.com/damianobarbati/react-create-app/blob/master/package.json?
lodash-es
is getting transpiled even being in node_modules (and excluded) but myreact-create-app
is not: HELP!webpack/webpack#2902
The text was updated successfully, but these errors were encountered: