From c8ca3db4e5745260e84f1500fde26d4e025e47bf Mon Sep 17 00:00:00 2001 From: Caleb Eby Date: Tue, 23 Jul 2024 13:49:03 -0700 Subject: [PATCH] Test --- src/module-server/bundle-npm-module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module-server/bundle-npm-module.ts b/src/module-server/bundle-npm-module.ts index 2de8ec1d..6063b282 100644 --- a/src/module-server/bundle-npm-module.ts +++ b/src/module-server/bundle-npm-module.ts @@ -71,8 +71,8 @@ export const bundleNpmModule = async ( }, load(id) { if (id === virtualEntry) { - const code = `export * from '${mod}' -export {${namedExports.join(', ')}} from '${mod}' + const code = `export * from ${JSON.stringify(mod)} +export {${namedExports.join(', ')}} from ${JSON.stringify(mod)} export { default } from '${mod}'`; return code; }