forked from firefox-devtools/profiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc
29 lines (29 loc) · 821 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
{
presets: [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-flow"
],
plugins: [
// Without `loose`, the transformation uses `Object.defineProperty` which
// obeys the spec more, but we get a bundle that's 8kB larger. That was the
// default in babel v6.
["@babel/plugin-proposal-class-properties", { loose: true }],
["@babel/plugin-proposal-object-rest-spread", { useBuiltIns: true }],
"syntax-dynamic-import"
],
env: {
test: {
presets: [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-flow"
],
plugins: [
["@babel/plugin-proposal-class-properties", { loose: true }],
["@babel/plugin-proposal-object-rest-spread", { useBuiltIns: true }],
"dynamic-import-node"
],
}
}
}