-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Cannot use @babel/preset-env in the browser from version 7.24.1 #16491
Comments
Hey @mstijak! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite. |
If that line used |
I think that might work. As long as it's possible to run it in the browser. |
馃捇
How are you using Babel?
babel-loader (webpack)
Input code
Configuration file name
No response
Configuration
No response
Current and expected behavior
is compiled into
which makes it impossible to use it in the browser.
I think this commit introduced the problem:
ec0171e#diff-f7b57f023be8b020c8b0a14c39105ee2fb9f3400c0438b9b3e912e78efd266c8
Environment
Possible solution
Reverting to version 7.24.0 helps.
Additional context
babel is loaded in a dev-like online environment:
https://fiddle.cxjs.io/?f=g33HXn2r
The text was updated successfully, but these errors were encountered: