From 259363bcdbfba7006feb001f8670bdcdb92d0c7b Mon Sep 17 00:00:00 2001 From: Len Date: Wed, 15 Dec 2021 18:07:42 +0100 Subject: [PATCH] Support browsers from before 2020 (#4579) * 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. * Include lib (polyfills) for Co-authored-by: Asher --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index e7eec93e..993c9169 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "target": "es2020", + "target": "es6", + "lib": ["es2020", "dom", "dom.iterable"], "module": "commonjs", "moduleResolution": "node", "strict": true,