webpack取消严格模式 webpack是默认开启严格模式的,当我们要取消webpack的严格模式我们需要使用到**@babel/plugin-transform-strict-mode**插件 1.安装@babel/plugin-transform-strict-mode插件: npm i babel-plugin-transform-remove-strict-mode -D 2.使用方式: 使用.babelrc { “plugins”: [“transform-remove-strict-mode”] }