view-design / ViewUI

A high quality UI Toolkit built on Vue.js 2.0
https://www.iviewui.com/
Other
2.65k stars 797 forks source link

[Bug Report]LoadingBar组件IE浏览器不兼容,页面空白js报错 #130

Open 52javascript opened 4 years ago

52javascript commented 4 years ago

Environment

ie11 win10 vue-cli3.0

Reproduction link

https://baidu.com

Steps to reproduce

在vue的router.beforeEach加这个组件 ie11就报错

What is expected?

ie11能看

What is actually happening?

白屏


忽略链接

ShisiJu commented 4 years ago
"view-design": "^4.1.0",
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _lang__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../lang */ \"./node_modules/view-design/src/locale/lang.js\");\n\n\nconst lang 

打包后的文件; const lang 是es6语法;导致了IE报错 SCRIPT1002: 语法错误

所以使用 transpileDependencies: [ 'view-design'], 想转码 但是打包时, 报错

"export 'default' (imported as 'iView') was not found in 'view-design'