Skip to content

chore: move service worker plugins - #16859

Merged
teemingc merged 4 commits into
version-3from
chore-move-service-worker
Aug 20, 2026
Merged

teemingc merged 4 commits into
version-3from
chore-move-service-worker

Conversation

@teemingc

@teemingc teemingc commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Continuing the effort to reduce the size of vite/index.js so that future Vite PRs don't cause as many merge conflicts.

This PR moves the service worker Vite plugins into their own files, specifically, the build-only one into vite/build and the env var one into the existing env var plugin file.

@pkg-svelte-dev

pkg-svelte-dev Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from ae61c14:

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

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

@changeset-bot

changeset-bot Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ae61c14

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@svelte-docs-bot

Copy link
Copy Markdown

@Rich-Harris Rich-Harris left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor nit aside, let's gooooo

@teemingc
teemingc merged commit a1481f3 into version-3 Aug 20, 2026
5 of 26 checks passed
@teemingc
teemingc deleted the chore-move-service-worker branch August 20, 2026 17:03
teemingc added a commit that referenced this pull request Aug 20, 2026
After #16859, `plugin_service_worker_env_vars` re-resolves the service
worker entry that `plugin_setup` already resolved and hands to
`plugin_service_worker_build`. Pass it the same value via a getter and
drop the redundant `posixify` in `build/service-worker.js`.

---

### Before submitting the PR, please make sure you do the following

- [x] It's really useful if your PR references an issue where it is
discussed ahead of time. In many cases, features are absent for a
reason. For large changes, please create an RFC:
https://github.com/sveltejs/rfcs
- [x] Prefix your PR title with `feat:`, `fix:`, `chore:`, or `docs:`.
- [x] This message body should clearly illustrate what problems it
solves.
- [x] Ideally, include a test that fails without this PR but passes with
it.

### Tests and linting

- [x] Run the tests with `pnpm test` and lint the project with `pnpm
lint` and `pnpm check`

### Changesets

- [x] If your PR makes a change that should be noted in one or more
packages' changelogs, generate a changeset by running `pnpm changeset`
and following the prompts. Changesets that add features should be
`minor` and those that fix bugs should be `patch`. Please prefix
changeset messages with `feat:`, `fix:`, or `chore:`.

---------

Co-authored-by: Tee Ming <[email protected]>
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.

2 participants