引入
"@babel/plugin-transform-modules-commonjs": "^7.9.6",
"@babel/plugin-transform-strict-mode": "^7.8.3",
配置babel.config.js
plugins: [
['@babel/plugin-transform-modules-commonjs', { 'strictMode': false }]
]
打包后app.js里还有'use strict'
导致IE10无运行