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