Skip to content

Commit 09494d6

Browse files
committed
fix: update babel config
BREAKING CHANGE: 1.0
1 parent 1dfc279 commit 09494d6

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.babelrc

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,20 @@
11
{
22
"plugins": [
3-
// must be an array with options object as second item
43
[
54
"react-transform",
65
{
7-
// must be an array of objects
86
"transforms": [
97
{
10-
// can be an NPM module name or a local path
118
"transform": "react-transform-hmr",
12-
// see transform docs for "imports" and "locals" dependencies
13-
"imports": [
14-
"react"
15-
],
16-
"locals": [
17-
"module"
18-
]
9+
"imports": ["react"],
10+
"locals": ["module"]
1911
},
2012
{
21-
// you can have many transforms, not just one
2213
"transform": "react-transform-catch-errors",
23-
"imports": [
24-
"react"
25-
]
14+
"imports": ["react"]
2615
}
2716
]
2817
}
2918
]
3019
]
31-
}
20+
}

0 commit comments

Comments
 (0)