首页 > Web开发 > 详细

禁用webpack打包严格模式

时间:2019-03-29 13:50:16      阅读:336      评论:0      收藏:0      [点我收藏+]

  Uncaught TypeError: ‘caller‘, ‘callee‘, and ‘arguments‘ properties may not be accessed on strict mode functions or the arguments objects for calls to them    

此时 禁用webpack打包严格模式 即可

 

第一步:安装插件

cnpm install babel-plugin-transform-remove-strict-mode

第二步:在.babelrc配置文件plugins中加入"transform-remove-strict-mode"

{
  "plugins"["transform-remove-strict-mode"]
}

 

禁用webpack打包严格模式

原文:https://www.cnblogs.com/czmblog0/p/10620652.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!