From cf35667060ddcb0b85b3c187204156b61e684a25 Mon Sep 17 00:00:00 2001 From: Len Date: Sun, 5 Dec 2021 09:35:34 +0000 Subject: [PATCH 1/4] Support browsers from before 2020 As reported in #2825, #2826 and #3051, almost everything works in older browsers. This setting here prevented me from updating and I think it is an obvious enhancement to not restrict to browsers from 2020+. There should not be any measurable downsides of this change since es6 and es2020 are pretty similar with only minor differences. --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index e7eec93ee22c..53daac05f8b1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "es6", "module": "commonjs", "moduleResolution": "node", "strict": true, From 8ef2f78a0024576d8bca5502534f8ed3ca8d6c8a Mon Sep 17 00:00:00 2001 From: Len Date: Wed, 8 Dec 2021 17:18:05 +0100 Subject: [PATCH 2/4] Include lib (polyfills) for Date: Wed, 8 Dec 2021 21:05:02 +0100 Subject: [PATCH 3/4] Assume all modern dom features despite es6 syntax --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 5a5a61bbb4bb..2eafd8b77795 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "es6", - "lib": ["es2020"], + "lib": ["es2020", "dom"], "module": "commonjs", "moduleResolution": "node", "strict": true, From 1bc9e0de255cdb7d194d4aa857b3e8233b04a0e8 Mon Sep 17 00:00:00 2001 From: Len Date: Thu, 9 Dec 2021 13:22:58 +0100 Subject: [PATCH 4/4] Add modern dom iterators to es6 environment --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 2eafd8b77795..993c916919f1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "es6", - "lib": ["es2020", "dom"], + "lib": ["es2020", "dom", "dom.iterable"], "module": "commonjs", "moduleResolution": "node", "strict": true,