Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Commit

Permalink
feat(template): change babel presets and plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Walker Leite committed Dec 14, 2017
1 parent 68544fb commit 30d26e1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
31 changes: 30 additions & 1 deletion template/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
{
"presets": ["es2015"]
"presets": [
[
"env",
{
"modules": false,
"targets": {
"browsers": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
}
],
"stage-2"
],
"plugins": [
"transform-runtime"
],
"env": {
"test": {
"presets": [
"env",
"stage-2"
],
"plugins": [
"istanbul"
]
}
}
}
5 changes: 4 additions & 1 deletion template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
"vue": "^2.5.3"
},
"devDependencies": {
"babel-preset-es2015": "^6.24.1",
"babel-plugin-istanbul": "^4.1.1",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"chai": "^4.1.2",
"eslint": "^4.11.0",
"eslint-plugin-vue": "beta",
Expand Down

0 comments on commit 30d26e1

Please sign in to comment.