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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM