Skip to content

Commit

Permalink
fix: order
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Jul 17, 2024
1 parent f86783a commit 1b52a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/printer/print-to-tsx.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ declare const Astro: Readonly<import('astro').AstroGlobal<%s, typeof %s`, propsI
p.addSourceMapping(loc.Loc{Start: n.Loc[0].Start + len(n.Data)})
} else if textType == StyleText || textType == JsonScriptText || textType == RawText || textType == UnknownScriptText {
p.addNilSourceMapping()
if (textType == StyleText && o.IncludeStyles) || ((textType == JsonScriptText || textType == RawText || textType == UnknownScriptText) && o.IncludeScripts) {
if (textType == StyleText && o.IncludeStyles) || ((textType == JsonScriptText || textType == UnknownScriptText) && o.IncludeScripts) || textType == RawText {
p.print("{`")
p.printTextWithSourcemap(escapeText(n.Data), n.Loc[0])
p.addNilSourceMapping()
Expand Down

0 comments on commit 1b52a71

Please sign in to comment.