Skip to content

fix: exit svelte-package after preprocessing completes - #17497

Merged
dummdidumm merged 2 commits into
mainfrom
triage/kit-17496-package-scss-exit
Oct 19, 2026
Merged

dummdidumm merged 2 commits into
mainfrom
triage/kit-17496-package-scss-exit

Conversation

@svelte-triage-bot

Copy link
Copy Markdown
Contributor
  • Standalone Vite CSS preprocessing retains a fallback Sass compiler, so finishing packaging does not empty the event loop; no public disposal API is available.
  • Preserve the shared serve-mode config loader from #17039, which avoids full Kit build synchronization and retains legacy-config fallback.
  • Explicitly exit the non-watch CLI after awaited work and output flushing, preserving exit handlers and exit codes as in #17135. Reject invoking Vite cleanup hooks: they do not own the fallback compiler; constructing a synthetic build/server would change plugin execution.
  • Cover SCSS with and without types, asynchronous preprocessing, buffered output and exit codes; leave watch mode and internal build APIs unchanged.

Fixes #17496

@pkg-svelte-dev

pkg-svelte-dev Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 0e8e4fe:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/0e8e4fe8a4625cdc925a5be51648a38702602420

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

Note

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

@dummdidumm

Copy link
Copy Markdown
Member

@svelte-triage-bot revert the tests, we can do without one for this fix

@changeset-bot

changeset-bot Bot commented Oct 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0e8e4fe

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

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

@svelte-triage-bot

Copy link
Copy Markdown
Contributor Author

Removed the added tests and test-only changes from this PR; the production fix and changeset remain. Verified existing package tests, Kit unit tests, formatting, lint, and checks; updated branch head: 0e8e4fe8a4625cdc925a5be51648a38702602420.

Feedback follow-up: https://github.com/sveltejs/svelte-agent/issues/34
Draft agent improvement PR: https://github.com/sveltejs/svelte-agent/pull/35

@dummdidumm
dummdidumm marked this pull request as ready for review October 19, 2026 12:49
@dummdidumm
dummdidumm merged commit c747648 into sveltejs:main Oct 19, 2026
37 of 38 checks passed
@dummdidumm
dummdidumm deleted the triage/kit-17496-package-scss-exit branch October 19, 2026 12:50
@github-actions github-actions Bot mentioned this pull request Oct 19, 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.

svelte-package 3.0.1 does not exit after preprocessing SCSS with vitePreprocess

1 participant