Skip to content

🐛 BUG: [TSX] Unclosed tag result in unnecessary escaping #862

@Princesseuh

Description

@Princesseuh

What version of @astrojs/compiler are you using?

2.1.0

What package manager are you using?

pnpm

What operating system are you using?

macOS

Describe the Bug

The following code:

<div></div>

<div class="something"

results in the following TSX:

<Fragment>
<div></div>{`

<div class="fdsfs"
`}
</Fragment>

Not quite sure why it does that, but it breaks type checking and completions (which can work even on a malformed tag). Closing the tag <div class="fdsfs"> will fix it, but since this is editor tooling, you shouldn't have to.

Link to Minimal Reproducible Example

See description

Metadata

Metadata

Assignees

Labels

- P3: minor bugAn edge case that only affects very specific usage (priority)feat: tsxRelated to the TSX output (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions