Skip to content

Keep </script> as-is for tagged templates #6829

@jycouet

Description

@jycouet

Reproduction link or steps

In sv (svelte cli), we started to use tsdown and we just got this report sveltejs/cli#761
After investigations it looks like it's the way tsdown is bundling Template Literals.

Here is a repro where I compare the output of rolldown and tsdown

You can see that in the bundle we have <\/script> while I would expect </script>

What is expected?

I would expect </script>

What is actually happening?

When bundling </script>, we have <\/script> in the bundle.

Any additional comments?

If you run the script on the repo you will see this summary

Image

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions