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
Ability to opt-out from using specific Babel plugins/presets from next/babel #8104
Comments
I believe the option you need to send to If there's a bug or better behavior, we should integrate it directly into core for all users to benefit from. edit: sounds like #8103 is proposing exactly that 👍 |
@Timer I've just tried the following presets:
and it didn't work. Here's the
I've moved the suggestion to be able to opt-out to this separate issue, because I don't feel that it should be a part of the Babel Config Revamp story. But if you feel that it should, I'm totally fine with that. |
This sounds like a bug with Can you open an issue with them asking why Note, it may be due to using Maybe try adding an |
@Timer I have a strong impression that it is actually not a bug in Anyway, I just filed the issue with the Babel project. P.S. React itself uses P.P.S. |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Feature request
Is your feature request related to a problem? Please describe.
Can't opt-out from plugins/presets in
next/babel
.Describe the solution you'd like
Ability to configure
next/babel
in a way to be able to exclude certain features.Describe alternatives you've considered
Ended up with completely-custom Babel config.
Additional context
When trying to figure out a way to disable
@babel/plugin-transform-runtime
to make sure@babel/preset-env
is polyfilling correctly, I did realize that there is no way to opt-out from specificnext/babel
plugins/presets.My wild suggestion is to introduce the
null
tonext/babel
options, so when it is provided, the corresponding plugin is not loaded. Like this:The text was updated successfully, but these errors were encountered: