Skip to content

Commit

Permalink
fix: transpile to es2017 as esnext may result in unsupported JS code (#…
Browse files Browse the repository at this point in the history
…593)

Transpile to es2017 to ensure compatiblity with Node.Js 8. Otherwise use of
e.g. the optional chaining operator ?. supported since typescript 3.7 results
in js not running on nodejs 8. Es2017 is the minimum to get native await support.
  • Loading branch information
Flarna authored and mayurkale22 committed Dec 16, 2019
1 parent 9458390 commit 4b25d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"sourceMap": true,
"strict": true,
"strictNullChecks": true,
"target": "esnext"
"target": "es2017"
},
"exclude": [
"node_modules"
Expand Down

0 comments on commit 4b25d4a

Please sign in to comment.