-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Closed
Copy link
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)feat: stylingRelated to styles (scope)Related to styles (scope)pkg: svelteRelated to Svelte (scope)Related to Svelte (scope)
Description
Astro Info
Astro v5.13.2
Node v23.11.1
System Linux (x64)
Package Manager npm
Output server
Adapter @astrojs/node
Integrations @astrojs/svelte
@astrojs/react
Describe the Bug
When rendering svelte component conditionally, styles aren't applied when building for production. When using development server, it works just fine.
Rendering React components conditionally works fine in production (see react page in example)
What's the expected result?
Include styles from svelte component even if rendered conditionally in production, as it does in development.
Link to Minimal Reproducible Example
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)feat: stylingRelated to styles (scope)Related to styles (scope)pkg: svelteRelated to Svelte (scope)Related to Svelte (scope)