-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Babel overwrites target ecmaVersion of tsconfig #860
Comments
Just adding more info: TS version: 2.7.2 tsconfig.json {
"compilerOptions": {
"target": "esnext",
"sourceMap": true,
"importHelpers": true,
"pretty": true,
"skipLibCheck": true,
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true
}
} |
In the latest Parcel version, we apply babel-preset-env by default. If you don't specify browser targets, we'll choose a set of default browser targets (> 1% marketshare). This means your code will be transpiled by babel after typescript runs. You can stop this from happening by setting some browser targets for your app in package.json: {
"browserslist": ["last 2 Chrome versions"]
} |
Is there no way to take a hint from the Like if there is no This seems to be the same issue raised in #954 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
🐛 bug report
🎛 Configuration (.babelrc, package.json, cli command)
tsconfig => es2018
babel => no config
🤔 Expected Behavior
Babel shouldn't transpile down
😯 Current Behavior
Babel does transpile down
💁 Possible Solution
Check if it's already transpiled in JSAsset.parse and just convert to a babel ast if it has been
🔦 Context
See twitter conversation: https://twitter.com/martin_hotell/status/965862279022632961
💻 Code Sample
🌍 Your Environment
Accurs in all parcel versions
The text was updated successfully, but these errors were encountered: