ie-webpack-start icon indicating copy to clipboard operation
ie-webpack-start copied to clipboard

大兄弟ie8不支持Object.defineProperty有办法处理吗

Open simple890921 opened this issue 5 years ago • 3 comments

image 大概呢使用 某些语法 比如SON.stringify [...a,...b]等~~~~都会被webpack编译。然后ie8就炸了。

simple890921 avatar Mar 18 '19 03:03 simple890921

可以参考这篇文章:https://github.com/zuojj/fedlab/issues/5

sayll avatar Mar 18 '19 03:03 sayll

可以参考这篇文章:zuojj/fedlab#5

这个文章我尝试过,使用了下面回答问题的一位大佬的解决办法后 babel-preset-es2015-loose 打包根本无法正常编译完成。难道最后只能走修改源码这条路么。。

simple890921 avatar Mar 18 '19 04:03 simple890921

可以参考这篇文章:zuojj/fedlab#5

image 我做了个奇葩方法来处理它。这个js是不会被编译的。。。。

simple890921 avatar Mar 18 '19 06:03 simple890921