withastro/compiler

๐Ÿ› BUG: Commented out scripts can crash the compiler

lilnasy opened this issue ยท 0 comments

What version of @astrojs/compiler are you using?

2.7.0

What package manager are you using?

pnpm

What operating system are you using?

Windows

Describe the Bug

image
runtime error: slice bounds out of range [1:0]
---
import Grid from "../components/Grid"
---
<!-- <script>
import Grid from "../components/Grid"
</script> -->
<Grid client:only/>

Link to Minimal Reproducible Example

Live Astro Compiler