You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parcel documentation states that dependencies in node_modules get transpiled using preset-env
Where? Wasn't able to find that in https://parceljs.org/javascript.html.
This was initially done because running babel over node_modules would be quite slow.
🐛 bug report
The parcel documentation states that dependencies in
node_modules
get transpiled usingpreset-env
but this does not seem to be the case.🎛 Configuration (.babelrc, package.json, cli command)
Here is a minimal repository to reproduce the issue:
https://github.com/fgnass/parcel-issue
🤔 Expected Behavior
Parcel should run files imported from
node_modules
through babel withpreset-env
, leaving no ES6 code behind.😯 Current Behavior
The spread operator in
/index.js
gets transpiled, the one innode_modules/third-party-test/index.js
is left untouched.🌍 Your Environment
The text was updated successfully, but these errors were encountered: