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
code split fail with preset-env modules:commonjs v7.5.4 #10202
Comments
Hey @Bermudarat! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
The reason you saw the change in it's behavior is because You will be soon able to disable it using the preset's |
Out of curiosity, if you are using a bundler which supports code splitting, why do you need to transpile modules to commonjs? |
Close it as it duplicates #10273. |
Bug Report
Current Behavior
code split fail with preset-env modules:commonjs v7.5.4
Expected behavior/code
when modules: 'common' and plugin @babel/plugin-syntax-dynamic-import''; babel will tranfrom import(...) to require(...), then will cause code split fail
Babel Configuration (.babelrc, package.json, cli command)
Environment
cli
,register
,loader
] cliThe text was updated successfully, but these errors were encountered: