Repository navigation
chore: use correct Vite instance for runner checks - #16973
Conversation
Co-authored-by: Copilot App <[email protected]>
|
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/82d2454fc48faed4f6c400b49cc79da7ea0520afOpen in |
elliott-with-the-longest-name-on-github
left a comment
There was a problem hiding this comment.
Just nits on style, but lgtm
- The runner migration in [#16490](#16490) enabled automatic SSR HMR, whose full reload clears unrelated module state even on unchanged component saves. - Disable automatic HMR only for Kit's default SSR runner: per-request imports already observe Vite's module-graph invalidation. Prefer this over Svelte-only output caching, which misses real edits and risks suppressing preprocessor updates. - Preserve separate environment graphs, user-supplied factories, and the shared Vite instance required by [#16973](#16973); leave browser HMR and builds unchanged. - Cover unchanged saves, markup/CSS edits, server dependencies, hook lifecycle, and evaluation-error recovery. Wait for restored page options before browser-context teardown. Fixes #17456 <!-- svelte-triage-bot:feedback-baseline:c72aad42fc7714e581d1f0be8a2b73ad485d92f6 --> --------- Co-authored-by: svelte-triage-bot <[email protected]> Co-authored-by: Tee Ming Chew <[email protected]>
fixes the vite ecosystem ci error https://github.com/vitejs/vite-ecosystem-ci/actions/runs/32693769091/job/97332021820#step:7:1811
There is no point to us calling
resolve_peer(...)for a Vite instance in thevite/index.jsfile anymore since we don't use to run the client build during a server build (SvelteKit 2 behaviour). Removing this should avoid the vite-ecosystem-ci error where the Vite runnerinstanceofcheck fails from two differently resolved Vite instances (the one that started the build and the one from ourresolve_peer).