vuecli 4 兼容ie11
npm install babel-polyfill
main.js 引入 import ‘babel-polyfill’
vue.config.js 配置 transpileDependencies
// transpileDependencies: [‘sock-js’,‘sockjs-client’,‘sm-crypto’],
babel.config.js 配置 presets;
presets:[
[
‘@vue/app’ , { useBuiltIns : ‘entry’ }
]
]
browserslist 配置 not ie <= 10
打包配置 publicPath 改成 ./ 路由 hash 模式