vue-cli3在配置了babel/polyfill之后还是无法再IE上正常显示
main.js
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import echarts from 'echarts'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import dataV from '@jiaminghi/data-view'
import '@babel/polyfill';
Vue.use(dataV)
Vue.use(ElementUI);
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')
babel.config.js
module.exports = {
presets: [
['@vue/app', {
polyfills: [
'es.promise',
'es.symbol'
]
}]
]
}
.browserslistrc
> 1%,
last 2 versions,
not ie <= 8
package.json
"dependencies": {
"@jiaminghi/data-view": "^2.4.7",
"axios": "^0.19.0",
"core-js": "^3.3.2",
"echarts": "^4.4.0",
"element-ui": "^2.12.0",
"less": "^3.10.3",
"less-loader": "^5.0.0",
"v-viewer": "^1.4.2",
"vue": "^2.6.10",
"vue-baidu-map": "^0.21.22",
"vue-jsonp": "^0.1.8",
"vue-router": "^3.1.3",
"vuex": "^3.0.1",
"vuex-persistedstate": "^2.7.0"
},
"devDependencies": {
"@babel/polyfill": "^7.8.7",
"@vue/cli-plugin-babel": "^4.0.0",
"@vue/cli-service": "^4.0.0",
"vue-template-compiler": "^2.6.10"
}
已经自己尝试解决许久无果
IE显示
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论