Skip to content

Conversation

@dominikg
Copy link
Member

alternative to #949

this preserves hmr for dependencies that are in node_modules but excluded from optimizeDeps and also ensures that cssHash function is applied consistently so that it does not break during hydration

@dominikg
Copy link
Member Author

cc @trueadm @Conduitry

this fixes it too but does not prevent hmr in node_modules completely

@dominikg dominikg force-pushed the fix/align-css-hash branch from d68b4d1 to 215d8fa Compare July 27, 2024 10:29
@dominikg
Copy link
Member Author

dominikg commented Jul 27, 2024

hmr inside node_modules is blocked by 2 other problems, one being that node_modules is on vites watch ignore list by default, the other that even if you work around that watch ignore - at least with pnpm, handleHotUpdate gets called with symlink name and empty modules list so that the update is discarded by vite-plugin-svelte

see vitejs/vite#8619 (comment)

we can still go ahead with this PR as it is a quite minimal fix for the problem described by sveltejs/svelte#12601

@dominikg dominikg merged commit 4fbc960 into main Jul 27, 2024
@dominikg dominikg deleted the fix/align-css-hash branch July 27, 2024 20:01
@github-actions github-actions bot mentioned this pull request Jul 27, 2024
@github-actions github-actions bot mentioned this pull request Oct 19, 2024
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.

3 participants