需要引入 `mui.min.js`  引入之后浏览器会报错,mui.min.js中的'caller', 'callee', and 'arguments'是不严格模式的js,而webpack中是严格模式的,所以报错

解决方式:配置webpack去掉打包时候的严格模式

npm install babel-plugin-transform-remove-strict-mode -D
在 `.babelrc` 中加入 

{
    “plugins”:[ “transform-remove-strict-mode” ]
}

 

相关文章:

  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2021-11-17
  • 2022-01-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-23
  • 2021-12-05
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案