-
Notifications
You must be signed in to change notification settings - Fork 30
/
.babelrc
48 lines (42 loc) · 1.16 KB
/
.babelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// build is when we build some static libs for client and server
// development is for client
// server is for node js dev phrase
// production is for deploying bundle web app
// node is for deploying bundle node server
// test is for testing
{
"plugins": ["transform-decorators-legacy", "transform-runtime", "transform-class-properties"],
"env": {
"development": {
"plugins": [
"./build/babelRelayPlugin",
"transform-decorators-legacy",
"transform-runtime",
"transform-class-properties",
"react-hot-loader/babel"
],
"presets": ["es2015", "stage-3", "react"]
},
"production": {
"plugins": [
"./build/babelRelayPlugin",
"transform-decorators-legacy",
"transform-runtime",
"transform-class-properties",
],
"presets": [["es2015", { "modules": false }], "stage-3", "react"]
},
"node": {
"presets": ["es2015", "stage-3"],
},
"server" : {
"presets": ["es2015", "stage-3"],
},
"build": {
"presets": ["es2015", "stage-3"],
},
"test": {
"presets": ["es2015", "stage-3"],
}
}
}