-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(chore) Tweak tsconfig lib targets #227
Conversation
This PR tweaks the base TypeScript config to allow for better module resolution and better support for modern JavaScript features. Specifically, it removes extraneous lib targets. `dom`, `dom.iterable`, and `esnext` are sufficient. `es2018`, `es2020`, `es2021`, and `es2022` are cumulative - each one includes all the previous ones. `esnext` includes all current and proposed ECMAScript features.
Size Change: 0 B Total Size: 373 kB ℹ️ View Unchanged
|
}, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"strictNullChecks": true, | ||
"target": "esnext", | ||
"target": "esnext" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we change the target to be more conservative (maybe es2022?), as older browsers do not support bleeding edge features?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ts-config is actually pretty irrelevant. We just use ts for type-checking. This is what the bundler uses for the actual output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, looks good then.
This commit cuts a new patch release of the Home app, v5.5.1, with the following changes: * (fix) Wrap page header in t function by @NethmiRodrigo in #226 * (chore) Update translations from Transifex by @github-actions in #219 * (chore) Bump webpack from 5.93.0 to 5.94.0 by @dependabot in #220 * (chore) Bump express from 4.19.2 to 4.21.0 by @dependabot in #221 * (chore) Bump rollup from 2.77.2 to 2.79.2 by @dependabot in #223 * (chore) Update translations from Transifex by @github-actions in #224 * (chore) Bump http-proxy-middleware from 2.0.6 to 2.0.7 by @dependabot in #225 * (chore) Tweak tsconfig lib targets by @denniskigen in #227 * (chore) Remove unused test wrapper helper by @denniskigen in #228 * (chore) Update translations from Transifex by @github-actions in #229 * (docs) O3-3525: Enhance README by @Twiineenock in #211
This commit cuts a new patch release of the Home app, v5.5.1, with the following changes: * (fix) Wrap page header in t function by @NethmiRodrigo in #226 * (chore) Update translations from Transifex by @github-actions in #219 * (chore) Bump webpack from 5.93.0 to 5.94.0 by @dependabot in #220 * (chore) Bump express from 4.19.2 to 4.21.0 by @dependabot in #221 * (chore) Bump rollup from 2.77.2 to 2.79.2 by @dependabot in #223 * (chore) Update translations from Transifex by @github-actions in #224 * (chore) Bump http-proxy-middleware from 2.0.6 to 2.0.7 by @dependabot in #225 * (chore) Tweak tsconfig lib targets by @denniskigen in #227 * (chore) Remove unused test wrapper helper by @denniskigen in #228 * (chore) Update translations from Transifex by @github-actions in #229 * (docs) O3-3525: Enhance README by @Twiineenock in #211
Requirements
Summary
This PR tweaks the base TypeScript config to allow for better module resolution and better support for modern JavaScript features. Specifically, it removes extraneous lib targets.
[dom, dom.iterable, esnext]
should be sufficient for our setup.es2018
,es2020
,es2021
, andes2022
are cumulative - each one includes all the previous ones.esnext
includes all current and proposed ECMAScript features.Resources
Screenshots
Related issue
Other