2023年6月21日发(作者:)
记⼀次vue项⽬ie兼容性问题项⽬是使⽤公司⾃⼰的脚⼿架搭建的,其中引⼊了基于element-ui修改的ui框架。在ie中⽩屏显⽰,并且报错。SCRIPT1028: SCRIPT1028: Expected identifier, string or number查看公司⽂档后发现需要在中添加transpileDependencies参数配置s = { transpileDependencies: ['@pillarjs'],};因为babel默认只转义src中的⽂件,加上transpileDependencies后,可以为node_modules中的依赖开启转换。本以为这就完事了,结果发现不仅ie没起作⽤,就连chrome都报错了。。。chrome报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object '#
2023年6月21日发(作者:)
记⼀次vue项⽬ie兼容性问题项⽬是使⽤公司⾃⼰的脚⼿架搭建的,其中引⼊了基于element-ui修改的ui框架。在ie中⽩屏显⽰,并且报错。SCRIPT1028: SCRIPT1028: Expected identifier, string or number查看公司⽂档后发现需要在中添加transpileDependencies参数配置s = { transpileDependencies: ['@pillarjs'],};因为babel默认只转义src中的⽂件,加上transpileDependencies后,可以为node_modules中的依赖开启转换。本以为这就完事了,结果发现不仅ie没起作⽤,就连chrome都报错了。。。chrome报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object '#
发布评论