mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
fix(codegen): should be double quote for jsx attribute value (#3516)
This commit is contained in:
parent
d4588d7cac
commit
98c90291b0
1 changed files with 5 additions and 1 deletions
|
|
@ -2221,7 +2221,11 @@ impl<'a, const MINIFY: bool> Gen<MINIFY> for JSXAttributeValue<'a> {
|
|||
match self {
|
||||
Self::Fragment(fragment) => fragment.gen(p, ctx),
|
||||
Self::Element(el) => el.gen(p, ctx),
|
||||
Self::StringLiteral(lit) => lit.gen(p, ctx),
|
||||
Self::StringLiteral(lit) => {
|
||||
p.print(b'"');
|
||||
print_unquoted_str(&lit.value, '"', p);
|
||||
p.print(b'"');
|
||||
}
|
||||
Self::ExpressionContainer(expr_container) => expr_container.gen(p, ctx),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue