Skip to content

Conversation

@sapphi-red
Copy link
Member

Description

fixes #18963

This PR fixes #18963 by registering all referenced assets as a dependency of CSS files.

@sapphi-red sapphi-red added feat: hmr p4-important Violate documented behavior or significantly improves performance (priority) labels Dec 16, 2024
Comment on lines +796 to 799
// TODO
if (
!isCSSRequest(node.url) &&
[...node.importers].every((i) => isCSSRequest(i.url))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this PR, changing any file referenced by CSS will cause a full reload because of this code (slightly related: this code is the cause of #9512). That'll probably degrade the UX quite a bit.

For this reason, I'm considering to only handle inlined SVGs for now (in a different PR).

@sapphi-red
Copy link
Member Author

=> #20391

@sapphi-red sapphi-red closed this Jul 10, 2025
@sapphi-red sapphi-red deleted the fix/hmr-reload-inlined-svg branch August 6, 2025 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat: css feat: hmr p4-important Violate documented behavior or significantly improves performance (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inlined SVG is not updated unless the server is restarted

1 participant