forked from tidepool-org/uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.babelrc
36 lines (36 loc) · 865 Bytes
/
.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
{
"presets": [
["env", { "targets": { "node": 7 }, "useBuiltIns": true }],
"stage-0",
"react"
],
"retainLines": true,
"plugins": [
"add-module-exports",
[ "module-resolver", { "root": ["./app/node_modules"] } ]
],
"env": {
"production": {
"presets": ["react-optimize"],
"plugins": ["babel-plugin-dev-expression"]
},
"development": {
"plugins": [
"transform-class-properties",
"transform-es2015-classes"
],
"presets": ["react-hmre"]
},
"test": {
"plugins": [
["resolver", { "resolveDirs": [ "app/node_modules" ]}],
["webpack-loaders", { "config": "webpack.config.test.js", "verbose": false }],
"babel-plugin-rewire",
["transform-define", {
"__TEST__": "true",
"__DEBUG__": false
}]
]
}
}
}