Replies: 1 comment
-
Not sure as I haven't used Babel in a while, but you can try it yourself:
You'll either see an error on the console if the non-compiled version is not supported, or "1", and then you can click the file line to see the resulting code in your bundle. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example, say I'm using
babel-loader
and trying to compile a packageA
insidenode_modules/
. Do I need to also include all (nested) dependencies ofA
explicitly forbabel-loader
to polyfillA
correctly since all dependencies ofA
also got polyfilled?From this answer at StackOverflow: Webpack and Babel not transpiling a dependency inside node_modules that breaks IE 11 and Edge due to ES6's spread syntax, it seems that we have to add them explicitly.
Do we have a better way to include all the dependencies without doing so one by one?
Beta Was this translation helpful? Give feedback.
All reactions