Skip to content

Commit fc7c064

Browse files
authored
(fix) add tag name
Else script is not identified as such later #143
1 parent 7612fdc commit fc7c064

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/svelte2tsx/src/htmlxparser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function extractTag(htmlx: string, tag: 'script' | 'style') {
5353
matches.push({
5454
start: containerStart,
5555
end: containerEnd,
56+
name: tag,
5657
type: tag === 'style' ? 'Style' : 'Script',
5758
attributes: parseAttributes(match[2], containerStart + `<${tag}`.length),
5859
content: {

0 commit comments

Comments
 (0)