Skip to content

Commit e982d47

Browse files
committed
Add JX support (close #1146)
1 parent ecd68c4 commit e982d47

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

template/.babelrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
}],
99
"stage-2"
1010
],
11-
"plugins": ["transform-runtime"]{{#if_or unit e2e}},
11+
"plugins": ["transform-vue-jsx", "transform-runtime"]{{#if_or unit e2e}},
1212
"env": {
1313
"test": {
1414
"presets": ["env", "stage-2"]{{#if_eq runner "karma"}},
15-
"plugins": ["istanbul"]{{/if_eq}}{{#if_eq runner "jest"}},
16-
"plugins": ["transform-es2015-modules-commonjs", "dynamic-import-node"]{{/if_eq}}
15+
"plugins": ["transform-vue-jsx", "istanbul"]{{/if_eq}}{{#if_eq runner "jest"}},
16+
"plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs", "dynamic-import-node"]{{/if_eq}}
1717
}
1818
}{{/if_or}}
1919
}

template/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@
8484
{{/e2e}}
8585
"autoprefixer": "^7.1.2",
8686
"babel-core": "^6.22.1",
87+
"babel-helper-vue-jsx-merge-props": "^2.0.3",
8788
"babel-loader": "^7.1.1",
89+
"babel-plugin-syntax-jsx": "^6.18.0",
8890
"babel-plugin-transform-runtime": "^6.22.0",
91+
"babel-plugin-transform-vue-jsx": "^3.5.0",
8992
"babel-preset-env": "^1.3.2",
9093
"babel-preset-stage-2": "^6.22.0",
9194
"chalk": "^2.0.1",

0 commit comments

Comments
 (0)