项目使用 webpack + react 在ie 9 10 11 中都正常 在ie8 中报错 SCRIPT1003: 缺少 ':'
配置文件中 已经添加了
loaders: [{
test: /\.js?$/,
enforce: 'post', // post-loader处理
loaders: ['es3ify-loader'],
}]
new webpack.optimize.UglifyJsPlugin({
compress: {
properties: false,
warnings: false
},
output: {
beautify: true,
quote_keys: true
},
mangle: {
screw_ie8: false
},
sourceMap: false
})
入口文件也引入了
require('es5-shim');
require('es5-shim/es5-sham');
require('console-polyfill');
并且 react 也降级到了 .14版本
这个该怎么解决呢?
IE8已经停止更新四年了,还兼容IE8?还好意思来提问?