Skip to content

Commit

Permalink
Add JX support (close #1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusBorg committed Dec 11, 2017
1 parent ecd68c4 commit e982d47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions template/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
}],
"stage-2"
],
"plugins": ["transform-runtime"]{{#if_or unit e2e}},
"plugins": ["transform-vue-jsx", "transform-runtime"]{{#if_or unit e2e}},
"env": {
"test": {
"presets": ["env", "stage-2"]{{#if_eq runner "karma"}},
"plugins": ["istanbul"]{{/if_eq}}{{#if_eq runner "jest"}},
"plugins": ["transform-es2015-modules-commonjs", "dynamic-import-node"]{{/if_eq}}
"plugins": ["transform-vue-jsx", "istanbul"]{{/if_eq}}{{#if_eq runner "jest"}},
"plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs", "dynamic-import-node"]{{/if_eq}}
}
}{{/if_or}}
}
3 changes: 3 additions & 0 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@
{{/e2e}}
"autoprefixer": "^7.1.2",
"babel-core": "^6.22.1",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-loader": "^7.1.1",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"chalk": "^2.0.1",
Expand Down

0 comments on commit e982d47

Please sign in to comment.