您好,我被我的应用程序卡住了,我的应用程序在所有其他浏览器中都没有问题,而不是在 IE 中它抛出错误
0x800a0416 - JavaScript runtime error: Multiple definitions of a property not allowed in strict mode
我已经在 webpack.config 中实现了加载器
module: {
loaders: [{
test: /\.js?$/,
exclude: /(node_modules|bower_components)/,
loaders: ['babel'],
include: path.join(__dirname, 'scripts')
}]
}
和我的 Package.json 脚本包含"build": "./node_modules/.bin/webpack --config webpack.config.production.js --progress --profile --colors",
用于构建包
如果我会明确地use strict
从包中找到并删除它,那么它工作正常,那么我如何在使用 webpack 创建包时删除该严格模式