Skip to content

Commit f2b2d55

Browse files
committed
Upgrade to Babel 6
1 parent 6af8b3b commit f2b2d55

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var defaultLang = {
1212
var defaultLoaders = {
1313
html: 'vue-html',
1414
css: 'style!css',
15-
js: 'babel?optional[]=runtime&loose=all&nonStandard=false'
15+
js: 'babel?presets[]=es2015&plugins[]=transform-runtime'
1616
}
1717

1818
var rewriterInjectRE = /\b((css|(vue-)?html)(\?[^!]+)?!?)\b/

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,17 @@
3535
"vue-html-loader": "^1.0.0",
3636
"css-loader": "^0.21.0",
3737
"style-loader": "^0.13.0",
38-
"babel-loader": "^5.3.2",
39-
"babel-runtime": "^5.8.25",
38+
"babel-loader": "^6.0.1",
39+
"babel-plugin-transform-runtime": "^6.1.2",
40+
"babel-preset-es2015": "^6.1.2",
41+
"babel-runtime": "^6.0.14",
4042
"vue-hot-reload-api": "^1.2.0"
4143
},
4244
"devDependencies": {
43-
"babel-core": "^5.8.25",
44-
"babel-loader": "^5.3.2",
45+
"babel-core": "^6.1.2",
46+
"babel-loader": "^6.0.1",
47+
"babel-plugin-transform-runtime": "^6.1.2",
48+
"babel-preset-es2015": "^6.1.2",
4549
"chai": "^3.0.0",
4650
"css-loader": "^0.21.0",
4751
"eslint": "^1.6.0",

0 commit comments

Comments
 (0)