-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.babelrc
More file actions
55 lines (53 loc) · 1.24 KB
/
.babelrc
File metadata and controls
55 lines (53 loc) · 1.24 KB
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
48
49
50
51
52
53
54
55
//{
//
// "presets": ['es2015', 'react'],
// "env": {
// "development": {
// "presets": ["react-hmre"]
// },
// "production": {
// "plugins": [
// ["transform-object-rest-spread"],
// ["transform-react-display-name"]
// ]
// }
// }
//}
//{
// "stage": "0",
// "env": {
// "development": {
// "plugins": [
// "react-transform",
// "react-require"
// ],
// "extra": {
// "react-transform": [{
// "target": "react-transform-hmr", // changed from react-transform-webpack-hmr
// "imports": ["react"],
// "locals": ["module"]
// }, {
// "target": "react-transform-catch-errors",
// "imports": ["react", "redbox-react"]
// }]
// }
// }
// }
//}
{
"presets": ["es2015", "react", "stage-0"],
"env": {
// only enable it when process.env.NODE_ENV is 'development' or undefined
"development": {
"plugins": [["react-transform", {
"transforms": [{
"transform": "react-transform-hmr",
// if you use React Native, pass "react-native" instead:
"imports": ["react"],
// this is important for Webpack HMR:
"locals": ["module"]
}]
}]]
}
}
}