Skip to content

Commit 0225a9c

Browse files
committed
guard
1 parent 6563b0f commit 0225a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/phases/2-analyze/validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ const validation = {
493493
}
494494
},
495495
ImportDeclaration(node, context) {
496-
if (context.state.analysis.runes) {
496+
if (node.source.value === 'svelte' && context.state.analysis.runes) {
497497
for (const specifier of node.specifiers) {
498498
if (specifier.type === 'ImportSpecifier') {
499499
if (

0 commit comments

Comments
 (0)