Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: align css hash in prebundling and disable hmr #950

Merged
merged 4 commits into from
Jul 27, 2024
Merged

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
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
6 checks passed
@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
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