你好我坚持我的申请,我的应用程序中的所有其他浏览器工作正常,不是在IE它抛出错误如何禁用严格模式,同时捆绑阵营使用的WebPack
0x800a0416 - JavaScript runtime error: Multiple definitions of a property not allowed in strict mode
我在的WebPack实现装载机。配置
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
从它的外观你正在使用es6,因为你使用babel,如果你在这里阅读http://stackoverflow.com/questions/31685262/not-recommended-to-write-out-use-strict-with- ES6。为什么你需要写严格? –
请参阅http://stackoverflow.com/questions/33821312/how-to-remove-global-use-strict-added-by-babel –
@MikeD:我检查了我的项目我没有写我的代码中的任何地方“使用严格”它会自动进入bundle.js文件 –