Skip to content

fix(adapter-node): bundle SvelteKit when declared as a dependency - #17207

Closed
svelte-triage-bot[bot] wants to merge 1 commit into
version-3from
triage/kit-17206-adapter-node-bundle
Closed

svelte-triage-bot[bot] wants to merge 1 commit into
version-3from
triage/kit-17206-adapter-node-bundle

Conversation

@svelte-triage-bot

Copy link
Copy Markdown
Contributor
  • #17068 moved production-dependency externalization into the initial server build, so declaring @sveltejs/kit as a dependency left its runtime imports unresolved in copied output.
  • Ordinary production dependencies intentionally remain external (#17069), while Kit itself has historically been bundled (#3144, #9242); filter only Kit rather than bundling every dependency.
  • Excluding the Kit package before generating deep-import matchers covers its root and subpath imports across eager server entrypoints and lazy route chunks.

Fixes #17206

@pkg-svelte-dev

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 185c9d3:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/185c9d3bc00723e643bf8ae3b83073ea65041971

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

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 Sep 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 185c9d3

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

This PR includes changesets to release 1 package
Name Type
@sveltejs/adapter-node 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

@teemingc teemingc closed this Sep 25, 2026
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.

adapter-node next.13 breaks app

1 participant