Skip to content

Commit 4f16cde

Browse files
committed
CJS -> ESM
1 parent 6c9e2c5 commit 4f16cde

File tree

2 files changed

+7
-35
lines changed

2 files changed

+7
-35
lines changed

.babelrc

-25
This file was deleted.

babel.config.json

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
22
"env": {
33
"development": {"comments": false, "minified": true},
4-
"production": {"comments": true, "minified": false}
4+
"production": {"comments": true, "minified": false},
5+
"test": {
6+
"sourceType": "unambiguous",
7+
"presets": [["@babel/env", {"modules": "commonjs"}]]
8+
}
59
},
610
"presets": [
7-
[
8-
"@babel/preset-react",
9-
{
10-
"runtime": "automatic"
11-
}
12-
],
13-
"@babel/env"
11+
["@babel/env", {"modules": false}],
12+
["@babel/preset-react", {"runtime": "automatic"}]
1413
],
1514
"plugins": [
1615
"react-hot-loader/babel",
@@ -27,6 +26,4 @@
2726
}
2827
]
2928
]
30-
// "comments": false,
31-
// "minified": true,
3229
}

0 commit comments

Comments
 (0)