Skip to content

Commit 8cf4d18

Browse files
authored
Merge pull request #30 from uHOOCCOOHu/master
Bump babel and fix browser supports.
2 parents 9014244 + acb2da0 commit 8cf4d18

File tree

5 files changed

+2248
-1984
lines changed

5 files changed

+2248
-1984
lines changed

.babelrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

babel.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This config will overwrite that in node_modules.
2+
module.exports = {
3+
presets: [
4+
"@vue/babel-preset-app"
5+
],
6+
plugins: [
7+
"@babel/plugin-proposal-object-rest-spread",
8+
"lodash"
9+
]
10+
}

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@
2828
"markdown-it-v-katex": "^1.0.0-alpha.1"
2929
},
3030
"devDependencies": {
31-
"@vue/cli-plugin-babel": "^3.0.0-beta.15",
32-
"@vue/cli-plugin-eslint": "^3.0.0-beta.15",
33-
"@vue/cli-service": "^3.0.0-beta.15",
34-
"@vue/eslint-config-standard": "^3.0.0-rc.3",
31+
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
32+
"@babel/preset-env": "^7.1.6",
33+
"@vue/cli-plugin-babel": "^3.1.1",
34+
"@vue/cli-plugin-eslint": "^3.1.5",
35+
"@vue/cli-service": "^3.1.4",
36+
"@vue/eslint-config-standard": "^4.0.0",
3537
"babel-plugin-lodash": "^3.3.4",
3638
"http-server": "^0.11.1",
3739
"stylus": "^0.54.5",

vue.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ module.exports = {
1717
libraryExport: 'default'
1818
}
1919
},
20+
transpileDependencies: [
21+
/markdown-it-v/
22+
],
2023
productionSourceMap: false
2124
}

0 commit comments

Comments
 (0)