Skip to content

Commit

Permalink
fix: support IE10~11 #104
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Feb 28, 2019
1 parent c727b3e commit e392885
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
9 changes: 8 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
module.exports = {
presets: [
'@vue/app'
'@vue/app',
[
'@babel/preset-env',
{
'useBuiltIns': 'entry'
}
]
]
// if your use import on Demand, Use this code
// ,
// plugins: [
// [ 'import', {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"vuex": "^3.1.0"
},
"devDependencies": {
"@babel/polyfill": "^7.2.5",
"@vue/cli-plugin-babel": "^3.3.0",
"@vue/cli-plugin-eslint": "^3.3.0",
"@vue/cli-plugin-unit-jest": "^3.3.0",
Expand Down Expand Up @@ -116,6 +117,6 @@
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
"not ie <= 10"
]
}
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@babel/polyfill'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
Expand Down
4 changes: 3 additions & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,7 @@ module.exports = {
}
},

lintOnSave: undefined
lintOnSave: undefined,
// babel-loader no-ignore node_modules/*
transpileDependencies: []
}
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,14 @@
"@babel/helper-regex" "^7.0.0"
regexpu-core "^4.1.3"

"@babel/polyfill@^7.2.5":
version "7.2.5"
resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.2.5.tgz#6c54b964f71ad27edddc567d065e57e87ed7fa7d"
integrity sha512-8Y/t3MWThtMLYr0YNC/Q76tqN1w30+b0uQMeFUYauG2UGTR19zyUtFrAzT23zNtBxPp+LbE5E/nwV/q/r3y6ug==
dependencies:
core-js "^2.5.7"
regenerator-runtime "^0.12.0"

"@babel/preset-env@^7.0.0", "@babel/preset-env@^7.1.0":
version "7.3.4"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.3.4.tgz#887cf38b6d23c82f19b5135298bdb160062e33e1"
Expand Down

0 comments on commit e392885

Please sign in to comment.