We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cc67b3 commit 202a785Copy full SHA for 202a785
src/module-server/bundle-npm-module.ts
@@ -71,11 +71,9 @@ export const bundleNpmModule = async (
71
},
72
load(id) {
73
if (id === virtualEntry) {
74
- const code = `export * from ${JSON.stringify(mod)}
+ return `export * from ${JSON.stringify(mod)}
75
export {${namedExports.join(', ')}} from ${JSON.stringify(mod)}
76
-export { default } from ${JSON.stringify(mod)}'`;
77
- console.log('code is', code);
78
- return code;
+export { default } from ${JSON.stringify(mod)}`;
79
}
80
81
} as Plugin),
0 commit comments