Repository navigation
chore(deps): upgrade site to SvelteKit 3 - #1912
Merged
Merged
Conversation
- @sveltejs/kit 2.70.3 -> 3.1.0 - @sveltejs/adapter-auto 7.0.1 -> 8.0.0 - svelte 5.57.2 -> 5.57.3 - vite 8.3.4 -> 8.3.5 - typescript-eslint 8.71.2 -> 8.72.1 - @rollup/plugin-yaml 5.0.0 -> 5.0.1 Move the SvelteKit config from svelte.config.js into the sveltekit() Vite plugin and extend $app/tsconfig, as SvelteKit 3 requires. TypeScript stays on 6.x: SvelteKit, svelte-check and typescript-eslint don't support TypeScript 7 yet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Revert @sveltejs/kit to 2.70.3 and @sveltejs/adapter-auto to 7.0.1, and restore svelte.config.js, tsconfig.json and vite.config.ts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- @sveltejs/kit 2.70.3 -> 3.1.0 - @sveltejs/adapter-auto 7.0.1 -> 8.0.0 Move the SvelteKit config from svelte.config.js into the sveltekit() Vite plugin and extend $app/tsconfig, as SvelteKit 3 requires. TypeScript stays on 6.0.3 until SvelteKit, svelte-check and typescript-eslint support TypeScript 7. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- vite.config.ts: only pass the adapter to sveltekit(); drop vitePreprocess, Svelte 5 handles TypeScript natively. - tsconfig.json: keep extends, include and strict; the other options are already set by $app/tsconfig. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Vite serves files that the app imports even when they sit outside the project root, so ../languages.yaml loads without it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch was successfully deployed
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.
Upgrades the site to SvelteKit 3 and bumps every site dependency to latest, except TypeScript. Supersedes #1805.
@sveltejs/kit@sveltejs/adapter-autosveltevitetypescript-eslint@rollup/plugin-yamlChanges required by SvelteKit 3
svelte.config.jsis no longer supported, so it's removed. Only the adapter moved, assveltekit({ adapter: adapter() })invite.config.ts;vitePreprocessis dropped since Svelte 5 handles TypeScript natively.tsconfig.jsonnow extends$app/tsconfigand is trimmed toextends,includeandstrict; the other options are already set by$app/tsconfig.TypeScript stays on 6.0.3
TypeScript 7's
typescriptpackage no longer exposes the JS compiler API, which SvelteKit, svelte-check and typescript-eslint all rely on:svelte-kit sync, dev and build crash with[email protected]sveltejs/kit#17537:svelte-kit sync, dev and build crash with TypeScript 7Testing
npm ci: no peer dependency conflictsnpm run check(svelte-check, prettier, eslint): passes, 0 errors / 0 warningsnpm run build: passes, page prerenders🤖 Generated with Claude Code