Skip to content

Commit 022ec75

Browse files
😒 chore(deps-dev): Configure babel.
1 parent e66f04c commit 022ec75

File tree

1 file changed

+50
-1
lines changed

1 file changed

+50
-1
lines changed

package.json

+50-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,59 @@
1111
},
1212
"babel": {
1313
"presets": [
14-
"latest"
14+
"@babel/preset-env"
1515
],
1616
"env": {
17+
"test": {
18+
"presets": [
19+
"babel-preset-power-assert"
20+
],
21+
"plugins": [
22+
[
23+
"transform-remove-console",
24+
{
25+
"exclude": [
26+
"log",
27+
"error",
28+
"warn"
29+
]
30+
}
31+
]
32+
],
33+
"sourceMaps": "inline"
34+
},
1735
"development": {
36+
"presets": [
37+
"babel-preset-power-assert"
38+
],
39+
"plugins": [
40+
[
41+
"transform-remove-console",
42+
{
43+
"exclude": [
44+
"log",
45+
"error",
46+
"warn"
47+
]
48+
}
49+
]
50+
],
51+
"sourceMaps": "inline"
52+
},
53+
"production": {
54+
"plugins": [
55+
"babel-plugin-unassert",
56+
[
57+
"transform-remove-console",
58+
{
59+
"exclude": [
60+
"log",
61+
"error",
62+
"warn"
63+
]
64+
}
65+
]
66+
],
1867
"sourceMaps": "inline"
1968
}
2069
}

0 commit comments

Comments
 (0)