IE9能显示虽然样式是乱的,IE10/11完全是白屏。没有报错,网上搜索说白屏是ES6的问题,但是Vue脚手架预装了babel并且ie9为什么能运行呢?
package.json:
{
"name": "test",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
},
"dependencies": {
"core-js": "^3.6.5",
"vue": "^2.6.11",
"axios": "^0.20.0",
"vant": "^2.10.8",
"vue-router": "^3.2.0",
"vuex": "^3.4.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"vue-template-compiler": "^2.6.11"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
}
babel.config.js:
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
没有其他配置文件了
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…