更新时间:2022-12-01 13:58:14
我知道已经过了一年,但是我相信问题在于您的devtool配置:
I know it's over a year later, but I believe the issue was your devtool configuration:
webpackConfig.devtool = 'eval-source-map';
显然,IE11不喜欢webpack为它们插入的eval()代码.使用webpackConfig.devtool = 'none'
(或替代值之一)应该可以解决该问题.
IE11 isn't a fan of the eval() code that gets inserted by webpack for those, apparently. Using webpackConfig.devtool = 'none'
(or one of the alternative values) should fix it.