You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
avoid recursively loading Vite config when workflow/sveltekit resolves the SvelteKit routes directory
bump the SvelteKit workbench to current stable Svelte/SvelteKit/Vite versions under the repo's minimum release age policy
add a SvelteKit local-build e2e import marker so silent workflow/sveltekit import exits are caught
align the Rollup devDependency used by package builds with the refreshed lockfile Rollup version
Root Cause
workflow/sveltekit calls into SvelteKit internals to find the routes directory. SvelteKit 2.62+ changed load_config() so it resolves Vite config first. When workflow/sveltekit is imported from vite.config.ts, that recursively reloads vite.config.ts and the original top-level import never resolves.
The fix prefers SvelteKit's load_svelte_config() export when available because it reads Svelte config without resolving Vite config, and falls back to load_config() for older SvelteKit versions.
Why E2E Missed This
The SvelteKit workbench was still below the SvelteKit version that introduced the recursive config-load behavior. The local-build test also only asserted that pnpm build exited successfully; this failure mode could exit cleanly before the import ever logged success. The new pre-build import assertion requires an explicit workflow/sveltekit import ok marker.
Verification
corepack pnpm install --frozen-lockfile
corepack pnpm build
PATH=<corepack-pnpm-shim>:$PATH APP_NAME=sveltekit ./node_modules/.bin/vitest run packages/core/e2e/local-build.test.ts
This is usually an infrastructure problem (e.g. the configured AI model could not be found, an AI Gateway error, or an opencode crash) rather than a merge conflict. Check the job logs linked above for details.
Once the underlying issue is fixed, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:
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
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.
Summary
Fixes #2794.
workflow/sveltekitresolves the SvelteKit routes directoryworkflow/sveltekitimport exits are caughtRoot Cause
workflow/sveltekitcalls into SvelteKit internals to find the routes directory. SvelteKit 2.62+ changedload_config()so it resolves Vite config first. Whenworkflow/sveltekitis imported fromvite.config.ts, that recursively reloadsvite.config.tsand the original top-level import never resolves.The fix prefers SvelteKit's
load_svelte_config()export when available because it reads Svelte config without resolving Vite config, and falls back toload_config()for older SvelteKit versions.Why E2E Missed This
The SvelteKit workbench was still below the SvelteKit version that introduced the recursive config-load behavior. The local-build test also only asserted that
pnpm buildexited successfully; this failure mode could exit cleanly before the import ever logged success. The new pre-build import assertion requires an explicitworkflow/sveltekit import okmarker.Verification
corepack pnpm install --frozen-lockfilecorepack pnpm buildPATH=<corepack-pnpm-shim>:$PATH APP_NAME=sveltekit ./node_modules/.bin/vitest run packages/core/e2e/local-build.test.ts