Skip to content

Commit 0e7282b

Browse files
committed
tidy
1 parent 9ecc8be commit 0e7282b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/parser/svelte-parse-context.ts

+3
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ function hasRuneSymbol(ast: Compiler.Script | SvAST.Script): boolean {
8989
let hasRuneSymbol = false;
9090
traverseNodes(ast as unknown as ESTree.Node, {
9191
enterNode(node) {
92+
if (hasRuneSymbol) {
93+
return;
94+
}
9295
if (node.type === "Identifier" && runeSymbols.includes(node.name)) {
9396
hasRuneSymbol = true;
9497
}

0 commit comments

Comments
 (0)