mirror of
https://github.com/coder/code-server.git
synced 2024-11-27 00:10:01 +03:00
259363bcdb
* 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 <jjprevite@gmail.com> Co-authored-by: Asher <ash@coder.com>
30 lines
810 B
JSON
30 lines
810 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es6",
|
|
"lib": ["es2020", "dom", "dom.iterable"],
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"strict": true,
|
|
"noImplicitReturns": true,
|
|
"noUnusedLocals": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"outDir": "./out",
|
|
"declaration": false,
|
|
"experimentalDecorators": true,
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"sourceMap": true,
|
|
"tsBuildInfoFile": "./.cache/tsbuildinfo",
|
|
"incremental": true,
|
|
"typeRoots": [
|
|
"./node_modules/@types",
|
|
"./typings",
|
|
"./test/node_modules/@types",
|
|
"./vendor/modules/code-oss-dev/src/vs/server/@types"
|
|
],
|
|
"downlevelIteration": true
|
|
},
|
|
"include": ["./src/**/*"],
|
|
"exclude": ["/test", "/lib", "/ci", "/doc"]
|
|
}
|