Skip to content

Commit 4555c5d

Browse files
committed
fix: maintain imports in modules
1 parent 3165950 commit 4555c5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/ImportDeclaration.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import * as b from '../../../../utils/builders.js';
99
export function ImportDeclaration(node, context) {
1010
if ('hoisted' in context.state) {
1111
context.state.hoisted.push(node);
12+
return b.empty;
1213
}
1314

14-
return b.empty;
15+
context.next();
1516
}

0 commit comments

Comments
 (0)