Closed erwinheldy closed 1 month ago
This one is related to https://github.com/withastro/astro/pull/11478 where we make it so the code doesn't get transformed when one of Vite's magic queries is present.
In those cases, the script and styles should not propagate to the parent.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Because Astro components with the suffix
?raw
are strings, the string should not be executed, even if there is a script tag within it.For example I have
Hello.astro
component:Now I import it using
?raw
:Results:
What's the expected result?
The string should not be executed.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-dznkn1?file=src%2Fpages%2Findex.astro
Participation