Skip to content

Commit 237e715

Browse files
RobinMalfaitdepfu[bot]
authored andcommitted
update .swcrc configuration
The `env` and `jsc.target` combination isn't valid. Removing `env` works, but it introduces a lot of additional code that wasn't there before. I started by using es2015, es2016 and last but not least es2018. es2018 produces the most similar code compared to before. The main differences are: - Single vs double qoutes - Now we will have `catch (e) {}` instead of the more modern `catch {}`
1 parent 95a4fcd commit 237e715

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.swcrc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
"module": {
33
"type": "commonjs"
44
},
5-
"env": {
6-
"targets": {
7-
"node": "12.13.0"
8-
}
9-
},
105
"jsc": {
6+
"target": "es2018",
117
"parser": {
128
"syntax": "typescript",
139
"tsx": false

0 commit comments

Comments
 (0)