Skip to content

Commit 29b3565

Browse files
authored
chore: simplify Babel transform (#150)
The source contains no unsupported features except modules.
1 parent c6c43f7 commit 29b3565

File tree

3 files changed

+83
-1061
lines changed

3 files changed

+83
-1061
lines changed

.babelrc

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
{
2-
"presets": [
3-
[
4-
"@babel/preset-env",
5-
{
6-
"targets": {
7-
"node": 10
8-
}
9-
}
10-
]
11-
],
2+
"targets": {"node": "10.13.0"},
123
"plugins": [
4+
"@babel/plugin-transform-modules-commonjs",
135
"add-module-exports"
14-
],
15-
"env": {
16-
"development": {
17-
"sourceMaps": "inline"
18-
}
19-
}
6+
]
207
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@ava/babel": "^2.0.0",
3838
"@babel/cli": "^7.16.0",
3939
"@babel/core": "^7.16.5",
40-
"@babel/preset-env": "^7.16.5",
40+
"@babel/plugin-transform-modules-commonjs": "^7.16.5",
4141
"ava": "^3.15.0",
4242
"babel-plugin-add-module-exports": "^1.0.0",
4343
"eslint": "^8.5.0",

0 commit comments

Comments
 (0)