Skip to content

Commit

Permalink
(fix) add tag name
Browse files Browse the repository at this point in the history
Else script is not identified as such later
#143
  • Loading branch information
dummdidumm committed Aug 14, 2020
1 parent 7612fdc commit fc7c064
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/svelte2tsx/src/htmlxparser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function extractTag(htmlx: string, tag: 'script' | 'style') {
matches.push({
start: containerStart,
end: containerEnd,
name: tag,
type: tag === 'style' ? 'Style' : 'Script',
attributes: parseAttributes(match[2], containerStart + `<${tag}`.length),
content: {
Expand Down

0 comments on commit fc7c064

Please sign in to comment.