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 {}`
12 lines
156 B
Text
12 lines
156 B
Text
{
|
|
"module": {
|
|
"type": "commonjs"
|
|
},
|
|
"jsc": {
|
|
"target": "es2018",
|
|
"parser": {
|
|
"syntax": "typescript",
|
|
"tsx": false
|
|
}
|
|
}
|
|
}
|