Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 7700459

Browse files
committed
add env preset for test
1 parent 9effcff commit 7700459

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.babelrc

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
{
2-
"presets": ["next/babel"],
2+
"env": {
3+
"development": {
4+
"presets": "next/babel"
5+
},
6+
"production": {
7+
"presets": "next/babel"
8+
},
9+
"test": {
10+
"presets": [
11+
["env", { "modules": "commonjs" }],
12+
"next/babel"
13+
]
14+
}
15+
},
316
"plugins": [
417
[
518
"lodash",

0 commit comments

Comments
 (0)