You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vite adds a style tag with css from a component that is not being rendered. What I mean is that there is a v-if directive evaluated to false for that component, and even so its style is added to the page.
Reproduction
Resulting source code:
you can see two style tags, one for each child component
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Describe the bug
Vite adds a
style
tag with css from a component that is not being rendered. What I mean is that there is av-if
directive evaluated to false for that component, and even so its style is added to the page.Reproduction
Resulting source code:
you can see two
style
tags, one for each child componentParent component:
LightTheme:
DarkTheme:
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: