一、ie11 显示空白,控制台显示错误信息:

webpack4 打包取消严格模式方法二、解决方法:

1、安装 @babel/plugin-transform-modules-commonjs @babel/plugin-transform-strict-mode:

     yarn add @babel/plugin-transform-modules-commonjs @babel/plugin-transform-strict-mode -S

2、在.babelrc文件添加:

     "plugins": [

          ["@babel/plugin-transform-modules-commonjs", { "strictMode": false }]

     ]

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-03-31
  • 2021-10-06
猜你喜欢
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
相关资源
相似解决方案