提交 882ea29d authored 作者: zyx's avatar zyx

兼容支持 ie,覆盖99.5%浏览器 v03

上级 2c8f077b
......@@ -87,8 +87,8 @@ $GLOBAL.BaseConfig = {
module: false, // 使用何种模块加载机制
targets: {
browers: [ // 参考browerslist [https://github.com/browserslist/browserslist]
'cover 99.5%',
'not ie <= 8',
'> 0.25%',
'not dead',
'since 2015',
'last 10 iOS versions'
]
......@@ -99,6 +99,14 @@ $GLOBAL.BaseConfig = {
'stage-2'
],
plugins: [
[
'transform-runtime',
{
helpers: false,
polyfill: true,
moduleName: 'babel-runtime'
}
],
'transform-vue-jsx',
'syntax-dynamic-import'
]
......
......@@ -1785,6 +1785,15 @@
}
}
},
"babel-plugin-transform-runtime": {
"version": "6.23.0",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz",
"integrity": "sha1-iEkNRGUC6puOfvsP4J7E2ZR5se4=",
"dev": true,
"requires": {
"babel-runtime": "^6.22.0"
}
},
"babel-plugin-transform-strict-mode": {
"version": "6.24.1",
"resolved": "https://registry.npm.taobao.org/babel-plugin-transform-strict-mode/download/babel-plugin-transform-strict-mode-6.24.1.tgz",
......
......@@ -38,6 +38,7 @@
"babel-loader": "^7.1.5",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-plugin-transform-vue-jsx": "^3.7.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论