denoland / deno_ast

Source text parsing, lexing, and AST related functionality for Deno
https://crates.io/crates/deno_ast
MIT License
144 stars 43 forks source link

fix: precompile don't escape component text children #213

Closed marvinhagemeister closed 5 months ago

marvinhagemeister commented 5 months ago

The JSX precompile transform was a bit overzealous when escaping component children that were text nodes. These must not be pre-escaped and instead must be passed as is to the component, otherwise they will be escaped multiple times.

Fixes https://github.com/denoland/deno/issues/22577