🐞 Hot Reload breaks CSS isolation when using a Razor class library #57660
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
feature-dotnetwatch
This issue is related to the dotnet-watch command-line tool (now external)
feature-hot-reload
This issue is related to the Hot Reload feaature
Milestone
Is there an existing issue for this?
Describe the bug
I created a new Blazor-Wasm project from scratch with a linked RCL. If I now edit a component CSS within the Client folder Hot Reload will remove the styles from the linked RCL.
If I inspect the Client.styles.css file it will remove the @import line after every hot reload:
Expected Behavior
Hot Reload works...
Steps To Reproduce
HotReloadBugSmall.mp4
Exceptions (if any)
No response
.NET Version
8.0.8
Anything else?
Reproducible with Windows and Linux
The text was updated successfully, but these errors were encountered: