[英]vue-cli3 syntax error in ie11 in prodcution
module.exports = {
presets: [
[
"@vue/app",
{
useBuiltIns: "entry",
}
]
]
}
import '@babel/polyfill'
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
],
上面的配置是我的vue-cli3
項目, class
不是vue-cli3
,為什么?
"axios": "^0.18.0",
"jsonp": "^0.2.1",
"swiper": "^4.4.6",
"video.js": "^7.4.1",
"videojs": "^1.0.0",
"vue": "^2.5.22",
"vuex": "^3.0.1"
我自己解決了。 原來是swiper.js的問題。 但是,我已經將配置添加到 vue.config.js,它不起作用。
transpileDependencies: [
'swiper'
],
是一個錯誤?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.