Skip to content

Commit

Permalink
feat: target ES2019 instead of ES2020 for node@12 compatibility
Browse files Browse the repository at this point in the history
Typescript supports ES2020 as well (eg. optional chaining, nullish
coalescing), but those syntax features should be compiled down to ES2019
syntax instead.
  • Loading branch information
madbence committed Oct 25, 2020
1 parent 6cc83be commit 55cbf7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2020",
"target": "es2019",
"module": "commonjs",
"lib": ["ES2020"],
"outDir": "./lib",
Expand Down

0 comments on commit 55cbf7d

Please sign in to comment.