withastro / compiler

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

Adds detected language to extracted style tags in TSX #1032

Closed Princesseuh closed 3 months ago

Princesseuh commented 3 months ago

Changes

A long time ago, our language tooling would provide helpful intellisense inside SCSS and LESS tags, this was lost without notice. A recent regression made me remember this, so this PR brings it back

Additionally, this PR changes the script tag extraction a bit to handle is:raw and other edge cases better.

Testing

Added tests

Docs

N/A

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: 1fafad18ba2612da685af30a7dcf09e635dd788a

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 | Minor |

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