babel-polyfill -> babel-plugin-transform-runtime

Former-commit-id: 91b1410db81cbc53bad8410e0ff9a5983526bb90 [formerly 91b1410db81cbc53bad8410e0ff9a5983526bb90 [formerly 91b1410db81cbc53bad8410e0ff9a5983526bb90 [formerly 91b1410db81cbc53bad8410e0ff9a5983526bb90 [formerly 5ac13021252ae46346e61a5977643202940593ca [formerly ba010d9c814fe0d509290e4d71931f97cf82a045]]]]]
Former-commit-id: a0abaddb616206871f6e123470f61071c3a0afcc
Former-commit-id: 269c21888c5aff56c3494302a14ded1c25665db8
Former-commit-id: 989200b6c31e8255b45b2f2346b0e72305d3adab [formerly ff28b98df3151ee12e961e181fbcde78445ad358]
Former-commit-id: b23c04f7bc330923198ecf91934e15b697607e3f
Former-commit-id: 5409541a2c7fd1438f084ca9a2c04e2375114faf
Former-commit-id: afdb7af250490690342e19549746d52b9023778a
Former-commit-id: 555b5406052c7883d4349a4bde178ef8e38185cb
Former-commit-id: a26cea56915e813019307ddf01fb3c2125ba724b
This commit is contained in:
liyang 2019-01-17 10:53:40 +08:00
parent 48b6df0e94
commit 4ab0ad88df
5 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,9 @@
module.exports = {
presets: [
'@vue/app'
],
plugins: [
// https://babeljs.io/docs/en/babel-plugin-transform-runtime/
'@babel/plugin-transform-runtime'
]
}

View File

@ -1 +1 @@
2ef1ec5879fe6ed0d41075962418f0b73b99f8e8
aba14ba69c1b10aabcba100e3478b48ba9f2c465

View File

@ -13,12 +13,12 @@
"test:unit": "vue-cli-service test:unit"
},
"dependencies": {
"@babel/runtime": "^7.2.0",
"@d2-projects/d2-crud": "^2.0.3",
"@d2-projects/vue-filters-date": "^1.0.2",
"@d2-projects/vue-table-export": "^1.0.1",
"@d2-projects/vue-table-import": "^1.0.0",
"axios": "^0.17.1",
"babel-polyfill": "^6.26.0",
"better-scroll": "^1.12.1",
"clipboard-polyfill": "^2.4.1",
"countup.js": "^1.9.3",
@ -53,6 +53,7 @@
"vuex": "^3.0.1"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.2.0",
"@kazupon/vue-i18n-loader": "^0.3.0",
"@vue/cli-plugin-babel": "^3.0.0",
"@vue/cli-plugin-eslint": "^3.0.0",

View File

@ -1,5 +1,3 @@
// polyfill
import 'babel-polyfill'
// Vue
import Vue from 'vue'
import App from './App'

View File

@ -105,9 +105,6 @@ module.exports = {
.set('__filename', true)
// babel-polyfill 加入 entry
const entry = config.entry('app')
entry
.add('babel-polyfill')
.end()
// 判断环境加入模拟数据
if (process.env.VUE_APP_BUILD_MODE !== 'nomock') {
entry