Skip to content

Commit

Permalink
Update packages/@lwc/ssr-compiler/src/compile-js/index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Dec 16, 2024
1 parent 7b5edc0 commit d4b3d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@lwc/ssr-compiler/src/compile-js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const visitors: Visitors = {
return;
}
const source = path.node!.source!;
// 1. insert `import { load as __load } from '${loader}' at top of program
// 1. insert `import { load as __load } from '${loader}'` at top of program
importManager.add({ load: '__load' }, loader);
// 2. replace this import with `__load(${source})`
path.replaceWith(b.callExpression(b.identifier('__load'), [structuredClone(source)]));
Expand Down

0 comments on commit d4b3d22

Please sign in to comment.