Update Vite React config to match Vite 8.0.6 template#354
Merged
orta merged 1 commit intoMay 14, 2026
Merged
Conversation
Member
|
👍🏻 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the Vite React config to match the Vite 8.0.6 template (https://github.com/vitejs/vite/blob/v8.0.6/packages/create-vite/template-react-ts/tsconfig.app.json), which is currently the latest version.
Here's what changed and why:
"target": "ES2022"was changed to"target": "es2023"."useDefineForClassFields": truewas dropped.useDefineForClassFieldshas beentrueby default for targets ofES2022and higher since TypeScript 4.3 (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-3.html#usedefineforclassfields-now-defaults-to-true-on-esnext-and-eventually-on-es2022)."lib": ["ES2022", "DOM", "DOM.Iterable"]was changed to"lib": ["ES2023", "DOM"].ES2022library was changed toES2023to align with thetargetchange.DOMlibrary now includesDOM.Iterableas of TypeScript 6.0 (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.html#the-dom-lib-now-contains-domiterable-and-domasynciterable), so the latter can be dropped."module": "ESNext"was changed to"module": "esnext"."types": ["vite/client"]was added.typesnow defaults to[]in TypeScript 6.0 (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.html#types-now-defaults-to-), and this is the preferred way to make Vite's client types available in user code according to the documentation (https://vite.dev/guide/features#client-types)."strict": truewas dropped.strictis nowtrueby default in TypeScript 6.0 (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.html#simple-default-changes)."noUncheckedSideEffectImports": truewas dropped.noUncheckedSideEffectImportsis nowtrueby default in TypeScript 6.0 (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.html#simple-default-changes).