Skip to content

Commit 259363b

Browse files
L3P3jsjoeiocode-asher
authored
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 <es2020 targets * Assume all modern dom features despite es6 syntax * Add modern dom iterators to es6 environment Co-authored-by: Joe Previte <[email protected]> Co-authored-by: Asher <[email protected]>
1 parent 1b796d1 commit 259363b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "es2020",
3+
"target": "es6",
4+
"lib": ["es2020", "dom", "dom.iterable"],
45
"module": "commonjs",
56
"moduleResolution": "node",
67
"strict": true,

0 commit comments

Comments
 (0)