mirror of https://github.com/sveltejs/svelte
fix: handle closing tags inside attribute values (#9486)
Related to https://github.com/sveltejs/language-tools/issues/2204pull/9491/head
parent
50abbc81da
commit
b2e1f1c102
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: handle closing tags inside attribute values
|
@ -0,0 +1,6 @@
|
|||||||
|
export default {
|
||||||
|
preprocess: {
|
||||||
|
script: ({ attributes }) =>
|
||||||
|
attributes.generics && attributes.generics.includes('>') ? { code: '' } : null
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,3 @@
|
|||||||
|
<script generics="T extends Record<string, string>">
|
||||||
|
foo {}
|
||||||
|
</script>
|
@ -0,0 +1 @@
|
|||||||
|
<script generics="T extends Record<string, string>"></script>
|
Loading…
Reference in new issue