withastro / compiler

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

fix: escape / exclude scripts with unknown types #1026

Closed Princesseuh closed 4 months ago

Princesseuh commented 4 months ago

Changes

Script tags with unknown content were not properly escaped / excluded (depending on the includeScripts setting), this fixes that

Testing

Added more tests for this edge case

Docs

N/A

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 1b52a71f6a9bcdf171a490b655c13f6202339805

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