Skip to content

Commit 202a785

Browse files
committed
Test
1 parent 8cc67b3 commit 202a785

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/module-server/bundle-npm-module.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ export const bundleNpmModule = async (
7171
},
7272
load(id) {
7373
if (id === virtualEntry) {
74-
const code = `export * from ${JSON.stringify(mod)}
74+
return `export * from ${JSON.stringify(mod)}
7575
export {${namedExports.join(', ')}} from ${JSON.stringify(mod)}
76-
export { default } from ${JSON.stringify(mod)}'`;
77-
console.log('code is', code);
78-
return code;
76+
export { default } from ${JSON.stringify(mod)}`;
7977
}
8078
},
8179
} as Plugin),

0 commit comments

Comments
 (0)