Skip to content

[ci] release#2

Merged
siffogh merged 1 commit into
mainfrom
changeset-release/main
Jun 27, 2026
Merged

[ci] release#2
siffogh merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@tinloof/tanstack-wsr@0.1.2

Patch Changes

  • 1a9a9ba: Fix /sw.js build failing for apps with server routes or server-only imports.

    The worker bundle now reproduces TanStack Start's full client transform, not
    just the server-fn compiler. Pure-server routes (a createFileRoute with only a
    server handler) and their server-only dependencies (DB clients, auth libraries,
    etc.) are pruned from the worker graph exactly as in the app's own client build,
    so they never reach /sw.js.

    Previously the worker pulled those handlers in and the build crashed with
    environment.transformRequest is not a function. Root cause: the server-fn
    compiler was forced into dev mode (for dev-matching function ids) inside a
    build() that has no transformRequest, and its dev module loader then choked
    on cross-module server imports (e.g. an auth lib).

    Now route pruning removes those server-only modules from the graph first, so dev
    mode is safe again — the dev-mode forcing is kept (scoped to the server-fn
    compiler, dev only) so that server functions called during the in-worker render
    still get dev-matching ids and work in dev
    . Production is unchanged (both worker
    and origin use build-mode sha256 ids). Route pruning applies to the default
    router-derived entry; a custom entry (advanced) still gets server-fn
    compilation alone.

@siffogh siffogh merged commit 3ffb324 into main Jun 27, 2026
2 checks passed
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.

1 participant