Releases: withastro/compiler
@astrojs/compiler@2.10.4
Patch Changes
-
8cae811: Fixes an issue with the conditional rendering of scripts.
This change updates a v5.0 breaking change when
experimental.directRenderScriptbecame the default script handling behavior. If you have already successfully upgraded to Astro v5, you may need to review your script tags again and make sure they still behave as desired after this release. See the v5 Upgrade Guide for more details. -
970f085: Fixes an issue when parsing elements inside foreign content (e.g. SVG), when they were inside an expression
-
6b6a134: Fixes a bug caused by having an extra space in the fragment tag in the TSX output
@astrojs/compiler@2.10.3
@astrojs/compiler@2.10.2
Patch Changes
- f05a7cc: Adjust TSX output to return ranges using UTF-16 code units, as it would in JavaScript
@astrojs/compiler@2.10.1
@astrojs/compiler@2.10.0
@astrojs/compiler@2.9.2
Patch Changes
- a765f47: Escape script tags with unknown types
@astrojs/compiler@2.9.1
Patch Changes
- 9549bb7: Fixes style and script tags sometimes being forcefully put into the body / head tags in the AST
@astrojs/compiler@2.9.0
Minor Changes
-
3e25858: Adds two new options to
convertToTSX:includeScriptsandincludeStyles. These options allow you to optionally remove scripts and styles from the output TSX file.Additionally this PR makes it so scripts and styles metadata are now included in the
metaRangesproperty of the result ofconvertToTSX. This is notably useful in order to extract scripts and styles from the output TSX file into separate files for language servers. -
9fb8d5d: Adds
serverComponentsmetadataThis adds a change necessary to support server islands. During transformation the compiler discovers
server:deferdirectives and appends them to theserverComponentsarray. This is exported along with the other metadata so that it can be used inside of Astro.
@astrojs/compiler@2.8.2
@astrojs/compiler@2.8.1
Patch Changes
- 0bb2746: Allow
data-astro-reloadto take a value