babel / babel/gulp-babel

{strictMode: false} not work

Open
#215 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.3k
Forks
113
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported `Binding 'arguments' in strict mode.` error with the shown `@babel/plugin-transform-modules-commonjs` configuration and `strictMode: false`. Trace the gulp-babel and Babel plugin entry points involved in compression, then verify whether the option is supported and whether the error is avoided when it is applied.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.