From 5ae38204cb834bfb7c14c3afb4afdbf9a082979f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 13 Dec 2024 17:40:00 +0000 Subject: [PATCH] chore: edge the edges --- src/builders/rollup/stub.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builders/rollup/stub.ts b/src/builders/rollup/stub.ts index dbb9e8e..8fcdc21 100644 --- a/src/builders/rollup/stub.ts +++ b/src/builders/rollup/stub.ts @@ -145,7 +145,7 @@ export async function rollupStub(ctx: BuildContext): Promise { resolvedEntry, )});`, hasDefaultExport - ? "\nexport default _module.default || _module;" + ? "\nexport default _module?.default ?? _module;" : "", ...namedExports .filter((name) => name !== "default")