Format <script> content in glimmer templates (#20012)

Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
Konv Suuandfisker authored and GitHub committed 2026-09-12 20:31:10 +08:00
1 parent 968c1a62c8
commit 2529b92818
14 files changed
+357 -28

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#### Support embedded `<script>` (#20012 by @kovsu)
<!-- prettier-ignore -->
```hbs
{{! Input }}
<script>
const a = 1;
console.log( a );
</script>
{{! Prettier stable }}
<script>
const a = 1; console.log( a );
</script>
{{! Prettier main }}
<script>
const a = 1;
console.log(a);
</script>
```