Repository navigation
chore: move service worker plugins - #16859
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/ae61c14f45631127841c1ca556848e8342ec761cOpen in |
|
Rich-Harris
left a comment
There was a problem hiding this comment.
minor nit aside, let's gooooo
Co-authored-by: Rich Harris <[email protected]>
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]>
Continuing the effort to reduce the size of
vite/index.jsso 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/buildand the env var one into the existing env var plugin file.