From 69171f71edcfec247016cf9513763f8b67617c3c Mon Sep 17 00:00:00 2001 From: Gerhard Stoebich <18708370+Flarna@users.noreply.github.com> Date: Thu, 5 Dec 2019 17:23:54 +0100 Subject: [PATCH] fix: transpile to es2017 as esnext may result in unsupported JS code 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 9e6f097ccfb..d78364ca5cf 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"