Skip to content
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

{strictMode: false} not work #215

Open
zzzzzc opened this issue May 28, 2021 · 1 comment
Open

{strictMode: false} not work #215

zzzzzc opened this issue May 28, 2021 · 1 comment

Comments

@zzzzzc
Copy link

zzzzzc commented May 28, 2021

During the use of the plugin, an error is reported Binding 'arguments' in strict mode.

plugins: [ ["@babel/plugin-transform-modules-commonjs", { strictMode: false }], ],
is not work.

Whether strict mode is no longer allowed to be turned off during compression?

@nicolo-ribaudo
Copy link
Member

strictMode: false allows you to avoid injecting "use strict"; in the compiled code, but the input files are still parsed as strict code if they are ESM or have the "use strict" directive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants