Skip to content

Commit 932a66c

Browse files
committed
chore: comment
1 parent 4cc15a7 commit 932a66c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/oxc_transformer/src/plugins/module_runner_transform.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ impl<'a> ModuleRunnerTransform<'a> {
508508
// `export * from 'vue'` -> `__vite_ssr_exportAll__(__vite_ssr_import_0__);`
509509
let call = ctx.ast.expression_call(SPAN, callee, NONE, arguments, false);
510510
let export = ctx.ast.statement_expression(span, call);
511+
// names from `export *` cannot be known before import, so add it right after the import as a best effort.
511512
hoist_imports.extend([import, export]);
512513
}
513514
}

0 commit comments

Comments
 (0)