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

Commit 30d26e1

Browse files
author
Walker Leite
committed
feat(template): change babel presets and plugins
1 parent 68544fb commit 30d26e1

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

template/.babelrc

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
11
{
2-
"presets": ["es2015"]
2+
"presets": [
3+
[
4+
"env",
5+
{
6+
"modules": false,
7+
"targets": {
8+
"browsers": [
9+
"> 1%",
10+
"last 2 versions",
11+
"not ie <= 8"
12+
]
13+
}
14+
}
15+
],
16+
"stage-2"
17+
],
18+
"plugins": [
19+
"transform-runtime"
20+
],
21+
"env": {
22+
"test": {
23+
"presets": [
24+
"env",
25+
"stage-2"
26+
],
27+
"plugins": [
28+
"istanbul"
29+
]
30+
}
31+
}
332
}

template/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
"vue": "^2.5.3"
2727
},
2828
"devDependencies": {
29-
"babel-preset-es2015": "^6.24.1",
29+
"babel-plugin-istanbul": "^4.1.1",
30+
"babel-plugin-transform-runtime": "^6.22.0",
31+
"babel-preset-env": "^1.3.2",
32+
"babel-preset-stage-2": "^6.22.0",
3033
"chai": "^4.1.2",
3134
"eslint": "^4.11.0",
3235
"eslint-plugin-vue": "beta",

0 commit comments

Comments
 (0)