Skip to content

Commit c0f289b

Browse files
😒 chore(deps-dev): Configure babel.
1 parent 45bcc13 commit c0f289b

File tree

1 file changed

+49
-3
lines changed

1 file changed

+49
-3
lines changed

package.json

+49-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,57 @@
1717
"presets": [
1818
"@babel/preset-env"
1919
],
20-
"plugins": [
21-
"@babel/plugin-proposal-async-generator-functions"
22-
],
2320
"env": {
21+
"test": {
22+
"presets": [
23+
"babel-preset-power-assert"
24+
],
25+
"plugins": [
26+
[
27+
"transform-remove-console",
28+
{
29+
"exclude": [
30+
"log",
31+
"error",
32+
"warn"
33+
]
34+
}
35+
]
36+
],
37+
"sourceMaps": "inline"
38+
},
2439
"development": {
40+
"presets": [
41+
"babel-preset-power-assert"
42+
],
43+
"plugins": [
44+
[
45+
"transform-remove-console",
46+
{
47+
"exclude": [
48+
"log",
49+
"error",
50+
"warn"
51+
]
52+
}
53+
]
54+
],
55+
"sourceMaps": "inline"
56+
},
57+
"production": {
58+
"plugins": [
59+
"babel-plugin-unassert",
60+
[
61+
"transform-remove-console",
62+
{
63+
"exclude": [
64+
"log",
65+
"error",
66+
"warn"
67+
]
68+
}
69+
]
70+
],
2571
"sourceMaps": "inline"
2672
}
2773
}

0 commit comments

Comments
 (0)