withastro / compiler

The Astro compiler. Written in Go. Distributed as WASM.
Other
503 stars 59 forks source link

fix: `index out of range [0]` error when compent is before the html tag #891

Closed MoustaphaDev closed 1 year ago

MoustaphaDev commented 1 year ago

Changes

Fix #880 We were trying to access an element of a slice (stack of open elements) without making sure it exists.

Testing

Added a transform test

Docs

N/A Bug fix

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: e66259eb06f32331439453b22e13874c4f74598c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------------- | ----- | | @astrojs/compiler | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR