-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Remove IE 11 from ES6 modules transpilation targets #16962
Conversation
Nx Cloud ReportCI ran the following commands for commit 347f10f. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
f0d5316
to
347f10f
Compare
Hi, @lacolaco. Thank you for your contribution! We would not be able to merge this until v7.0, as changing compilation targets is breaking change. In the interim, have you tried the |
@kylegach Yes, but no changes by I guess the reason is prettier doesn't provide ESM modules by |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
I've confirmed the current release works. Thanks! |
Issue: #16820
What I did
Remove
ie 11
fromes6Transpiler
targets.How to test
If your answer is yes to any of these, please make sure to include it in your PR.
To fix weird behavior described at #16820 , I've tested many approaches in my local environment (technically modifying codes in
node_modules
). I've not yet created useful repro to validate this solution.Clearly, this bug is caused when
babel-loader
tries to parseprettier/standalone.js
ines6Transpiler
processing. Andprettier/standalone.js
is truly valid JS file. So, the problem is the incompatibility betweenprettier/standalone.js
and the babel config written ines6Transpiler
.I've tested some patterns of
targets
in@babel/preset-env
options. Currentlyes6Transpiler
usesdefaults
targets. If I remove onlyie 11
, errors went away. So I conclude targetingie 11
is not compatible withprettier/standalone.js
.cc/ @shilman