From b59bb6d793a41addea541f4f4563b77fd51bf2f6 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Fri, 18 Nov 2022 10:54:43 -0800 Subject: [PATCH] Set all tsconfigs to target es2020 (#12090) This upgrades the node/web packages to use es2020 and downgrades the webviews bundle from esnext because that target changes over time. Part of #11996 --- tsconfig.datascience-ui.json | 2 +- tsconfig.extension.node.json | 2 +- tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tsconfig.datascience-ui.json b/tsconfig.datascience-ui.json index d53275b0e04..e56ecab2931 100644 --- a/tsconfig.datascience-ui.json +++ b/tsconfig.datascience-ui.json @@ -1,7 +1,7 @@ { "compilerOptions": { "baseUrl": ".", - "module": "esnext", + "module": "es2020", "moduleResolution": "node", "importHelpers": true, "target": "es5", diff --git a/tsconfig.extension.node.json b/tsconfig.extension.node.json index a9351e5ec3d..437a2a4cdcb 100644 --- a/tsconfig.extension.node.json +++ b/tsconfig.extension.node.json @@ -2,7 +2,7 @@ "compilerOptions": { "baseUrl": ".", "module": "commonjs", - "target": "es6", + "target": "es2020", "outDir": "out", "lib": ["es6", "es2018", "ES2019", "ES2020"], "jsx": "react", diff --git a/tsconfig.json b/tsconfig.json index 2fef6f800bf..d21f405dc70 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ "*": ["types/*"] }, "module": "commonjs", - "target": "es2018", + "target": "es2020", "outDir": "out", "lib": ["es6", "es2018", "dom", "ES2019", "ES2020"], "jsx": "react",