禁用webpack打包严格模式

  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"]
}

 

posted @ 2019-03-29 13:13  Rachel_czm  阅读(1850)  评论(0)    收藏  举报