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

 

转载于:https://www.cnblogs.com/czmblog0/p/10620652.html

你可能感兴趣的:(禁用webpack打包严格模式)