簡體   English   中英

生產中ie11中的vue-cli3語法錯誤

[英]vue-cli3 syntax error in ie11 in prodcution

babel.config.js

module.exports = {
  presets: [
    [
      "@vue/app",
      {
        useBuiltIns: "entry",
      }
    ]
  ]
}

主文件

import '@babel/polyfill'

包.json

"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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM