mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(router-plugin): check the Vite plugin order only with autoCodeSplitting, as before
Main ran the plugin-order check in the code-splitter plugin, so only with `autoCodeSplitting` on; the single compiler plugin ran it in every mode and failed the router-monorepo example builds (`react()` before `tanstackRouter()`, splitting off). Without splitting, route HMR works whatever the order: the HMR block is appended to what the framework plugin emitted. Verified on a real page (integration/route-hmr-browser-plugin- order.test.ts): with the framework plugin first and splitting off, an edit of a named or inline React component shows in place keeping its state, a Solid edit shows in place, no warning; with splitting on, the dev server refuses to start. The six example reorders are reverted: main's order builds again, and the example builds of the PR workflow cover the restored gate. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
c637549e37
commit
a10cb4a844
11 changed files with 168 additions and 21 deletions
Loading…
Add table
Add a link
Reference in a new issue