From 4b25d4a26fc29cec3e1b6da06f134eb0c8ae1f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerhard=20St=C3=B6bich?= <18708370+Flarna@users.noreply.github.com> Date: Mon, 16 Dec 2019 23:07:31 +0100 Subject: [PATCH] fix: transpile to es2017 as esnext may result in unsupported JS code (#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. --- packages/tsconfig.base.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tsconfig.base.json b/packages/tsconfig.base.json index 9e6f097ccf..d78364ca5c 100644 --- a/packages/tsconfig.base.json +++ b/packages/tsconfig.base.json @@ -13,7 +13,7 @@ "sourceMap": true, "strict": true, "strictNullChecks": true, - "target": "esnext" + "target": "es2017" }, "exclude": [ "node_modules"