-
-
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Bundling @babel/standalone by webpack emits warnings #14301
Comments
Hey @joshuahhh! 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. |
Update: it is not. The |
@JLHwung hello, is this bug has been fixed yet? I find the same question at version @babel/standalone@7.18.9 |
@SxxPorsche I simply searched in the file content and didn't find anything similar to |
Still facing this issue in |
@radhasatam Can you provide a reproducible repo? |
Still facing this issue in 7.21.4. |
Thanks, I can reproduce the problem. |
That issue rollup/plugins#1472 was closed due to inactivity ;( Is there another way out? |
It would be awesome if someone could work on a rollup PR to fix that issue :) |
I'll try to do it in a few days. :) (previously I wasn't sure if this should open a rollup PR) |
💻
How are you using Babel?
Programmatic API (
babel.transform
,babel.parse
)Input code
import '@babel/standalone';
Configuration file name
No response
Configuration
N/A
Current and expected behavior
Current behavior: When bundling a project with Webpack which includes code that imports '@babel/standalone', Webpack reports:
I think this is due to
commonjsRequire
's use ofrequire(path)
.Environment
Tested in a fresh
create-react-app
environment, as well as a more minimal Webpack environment.Possible solution
Given that @babel/standalone is intended for use in a browser environment, I wonder why it includes bare
require()
calls. Perhaps these parts could be excluded from this build?Additional context
Please let me know if there's anything else I can do to help. Thanks a bunch!
The text was updated successfully, but these errors were encountered: