Skip to content

Conversation

@rphlmr
Copy link
Owner

@rphlmr rphlmr commented Aug 4, 2025

Description

Prevent build import conflicts by splitting imports into chunks.

Sometimes you import some shared code on the server and in React router routes/entry.

Then Vite builds that, and your server-build (RR build) imports from the RRHS build. This can make things incompatible (like using top level await).

This PR makes every server-build import a standalone chunk.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 4, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/rphlmr/react-router-hono-server@149

commit: d491bd9

@rphlmr rphlmr changed the title [Fix] inline dynamic imports [Fix] Rollback single file server output (revert to 2.16.0 behavior) Aug 4, 2025
@rphlmr rphlmr changed the title [Fix] Rollback single file server output (revert to 2.16.0 behavior) [Fix] Prevent build import conflicts by splitting imports into chunks Aug 4, 2025
@rphlmr rphlmr merged commit 9703630 into main Aug 4, 2025
4 checks passed
@rphlmr rphlmr deleted the fix/inline-dynamic-imports branch August 4, 2025 15:52
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