Merge pull request #4336 from chengshiwen/ie-fix

[Fix-4335][UI] Fix IE 9-11 not supported
This commit is contained in:
xingchun-chen 2020-12-30 11:33:43 +08:00 committed by GitHub
commit 2e44f4c553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 3 deletions

View File

@ -5,7 +5,15 @@
"debug": false,
"useBuiltIns": true,
"targets": {
"browsers": [ "ie > 8", "last 2 version", "safari >= 9" ]
"browsers": [
"> 1%",
"last 2 versions",
"ie >= 9",
"edge >= 12",
"firefox >= 28",
"chrome >= 29",
"opera >= 17"
]
},
"production": {
"plugins": ["transform-remove-console"]

View File

@ -47,7 +47,7 @@ const jsEntry = (() => {
parts.shift()
let modules = parts.join('/')
let entry = moduleName(modules)
obj[entry] = val
obj[entry] = ['babel-polyfill', val]
})
return obj
})()

View File

@ -48,6 +48,7 @@
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"copy-webpack-plugin": "^4.5.2",
"cross-env": "^5.2.0",
@ -86,5 +87,14 @@
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.9.0",
"webpack-merge": "^4.2.2"
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"ie >= 9",
"edge >= 12",
"firefox >= 28",
"chrome >= 29",
"opera >= 17"
]
}

View File

@ -17,6 +17,7 @@
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import Vue from 'vue'
import ElementUI from 'element-ui'
import locale from 'element-ui/lib/locale/lang/en'

View File

@ -18,6 +18,7 @@
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import $ from 'jquery'
import 'babel-polyfill'
import Vue from 'vue'
import ElementUI from 'element-ui'
import locale from 'element-ui/lib/locale/lang/en'