Skip to content

fix: preserve payload initialization with code splitting groups - #17386

Draft
svelte-triage-bot[bot] wants to merge 1 commit into
mainfrom
triage/kit-17382-code-splitting-payload
Draft

svelte-triage-bot[bot] wants to merge 1 commit into
mainfrom
triage/kit-17382-code-splitting-payload

Conversation

@svelte-triage-bot

Copy link
Copy Markdown
Contributor
  • Recursive application groups can absorb startup’s static dependencies, evaluating payload-backed exports before init() sets the payload.
  • Preserve the delayed initialization and stable runtime hashes introduced by #16324, and retain the manifest isolation from #16372.
  • Reserve payload and Vite’s preload helper in a first, highest-priority bootstrap group with explicit size/share limits. Comparing live versions only would leave $app/env, paths, and public-env initialization broken.
  • Scope the change to split client builds; cover SSR/client-only startup, unchanged and actual version changes, and recursively grouped dynamic public env.

Fixes #17382

@pkg-svelte-dev

pkg-svelte-dev Bot commented Oct 8, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 62792f6:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/62792f61a7e6736e1f6ef7ac2f9b0a1e378d159c

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/17386

Note

This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed.

@changeset-bot

changeset-bot Bot commented Oct 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 62792f6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

version from $app/env is undefined and updated.current turns true with no deploy when a codeSplitting group pulls in $app/*

0 participants