-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
?raw CSS is bundled in dev mode #6422
Copy link
Copy link
Closed
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)
Description
What version of astro are you using?
2.0.17
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
CSS styles imported with ?raw are being bundled in dev mode. This seems to only happen in dev mode and appears to have started with Astro 2.0.7
To reproduce:
- Go to the codesandbox example
- Notice that
import styleString from "./styles.css?raw"inindex.astroleads to a red background.
Expected: The background is not red.
Actual: The background is red. Assets imported with ?raw should only be imported as strings.
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)