Skip to content

Commit 1ede221

Browse files
committed
Fix windows problem ugh
1 parent 903d52d commit 1ede221

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ export const bundleNpmModule = async (
7070
},
7171
load(id) {
7272
if (id === virtualEntry) {
73-
const code = `export * from '${mod}'
74-
export {${namedExports.join(', ')}} from '${mod}'
75-
export { default } from '${mod}'`;
76-
return code;
73+
return `export * from ${JSON.stringify(mod)}
74+
export {${namedExports.join(', ')}} from ${JSON.stringify(mod)}
75+
export { default } from ${JSON.stringify(mod)}`;
7776
}
7877
},
7978
} as Plugin),

0 commit comments

Comments
 (0)