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

Third party modules don't get transpiled by preset-env #3271

Closed
fgnass opened this issue Jul 26, 2019 · 1 comment
Closed

Third party modules don't get transpiled by preset-env #3271

fgnass opened this issue Jul 26, 2019 · 1 comment

Comments

@fgnass
Copy link

fgnass commented Jul 26, 2019

🐛 bug report

The parcel documentation states that dependencies in node_modules get transpiled using preset-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 with preset-env, leaving no ES6 code behind.

😯 Current Behavior

The spread operator in /index.js gets transpiled, the one in node_modules/third-party-test/index.js is left untouched.

🌍 Your Environment

Software Version(s)
Parcel 1.12.3
Node 11.1.0
npm 6.4.1
Operating System MacOS
@mischnic
Copy link
Member

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.

Actually a duplicate of #1655

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