Skip to content

Commit 9860f5e

Browse files
committed
build - babel - move config to babelrc
1 parent 10691d7 commit 9860f5e

File tree

2 files changed

+23
-26
lines changed

2 files changed

+23
-26
lines changed

.babelrc

+22-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
{
2-
"presets": [["env", { "targets": { "browsers": [">0.25%", "not ie 11", "not op_mini all"] } } ], "react", "stage-0"],
3-
"plugins": ["transform-runtime", "transform-async-to-generator", "transform-class-properties"]
4-
}
2+
"presets": [
3+
[
4+
"env",
5+
{
6+
"targets": {
7+
"browsers": [
8+
">0.25%",
9+
"not ie 11",
10+
"not op_mini all"
11+
]
12+
}
13+
}
14+
],
15+
"react",
16+
"stage-0"
17+
],
18+
"plugins": [
19+
"transform-runtime",
20+
"transform-async-to-generator",
21+
"transform-class-properties"
22+
]
23+
}

package.json

+1-23
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,7 @@
4040
},
4141
"browserify": {
4242
"transform": [
43-
[
44-
"babelify",
45-
{
46-
"presets": [
47-
[
48-
"env",
49-
{
50-
"browsers": [
51-
">0.25%",
52-
"not ie 11",
53-
"not op_mini all"
54-
]
55-
}
56-
],
57-
"stage-0"
58-
]
59-
},
60-
{
61-
"plugins": [
62-
"transform-class-properties"
63-
]
64-
}
65-
],
43+
"babelify",
6644
"reactify",
6745
"brfs"
6846
]

0 commit comments

Comments
 (0)