mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
tsconfig: switch target to es2020
This is the base level of the language that the compiler targets (or understands). We're about to add some code which uses `#private` instance variables, which is a es2017 feature. We already depend on es2020 library features, so let's allow the same for the core language. This has a side-effect: setting `target: 'es2020'` changes the default module resolution approach. Force it back to `"node"` so we can still find our `node_modules`.
This commit is contained in:
parent
62d767e5e9
commit
d024d2dfbd
1 changed files with 2 additions and 0 deletions
|
|
@ -19,9 +19,11 @@
|
|||
"dom",
|
||||
"es2020"
|
||||
],
|
||||
"moduleResolution": "node",
|
||||
"noEmit": true, // we only use `tsc` for type checking
|
||||
"skipLibCheck": true, // don't check node_modules
|
||||
"strict": true,
|
||||
"target": "es2020",
|
||||
},
|
||||
"include": [
|
||||
"pkg/**/*"
|
||||
|
|
|
|||
Loading…
Reference in a new issue