Skip to content

feat: make $app/paths importable in service workers - #16441

Merged
Rich-Harris merged 4 commits into
version-3from
service-worker-paths
Jul 20, 2026
Merged

Rich-Harris merged 4 commits into
version-3from
service-worker-paths

Conversation

@Rich-Harris

Copy link
Copy Markdown
Member

Part of #16159. This makes $app/paths importable in service workers, which removes the last import from $service-worker that might be necessary.

It's a tiny bit hacky albeit a fairly non-invasive change: match now needs to delegate to a per-environment match_implementation that gets overridden in client.js.

Once this is merged I'll open a PR removing $service-worker altogether.


Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

Tests

  • Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

  • 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:.

Edits

  • Please ensure that 'Allow edits from maintainers' is checked. PRs without this option may be closed.

Loading
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