Skip to content

feat: add $app/manifest module - #16372

Merged
Rich-Harris merged 25 commits into
version-3from
app-manifest
Jul 20, 2026
Merged

Rich-Harris merged 25 commits into
version-3from
app-manifest

Conversation

@Rich-Harris

@Rich-Harris Rich-Harris commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

Part of #16159. This adds an $app/manifest module containing information about the app — it replaces the equivalents in $service-worker (so that we can delete that module).

It exports four things:

  • immutable is an array of { path: string } objects representing the contents of _app/immutable (empty in dev)
  • files is an array of { path: string } objects representing the contents of static
  • prerendered is an array of { path: string } objects representing all the prerendered pages/endpoints in your app (empty in dev, and during prerendering)
  • routes is an array of { id: string } objects representing the routes of your app

Paths are relative to base. In a service worker, you can do e.g. cache.add(path) as part of an offline strategy.


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.

Programmatically get all routes

3 participants