From b108a878e6b819b88d40d2526e0d6384285047d2 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Fri, 6 Oct 2023 14:13:50 +0200 Subject: [PATCH] fix(libConfig): import default in CJS build Signed-off-by: Grigorii K. Shartsev --- lib/libConfig.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libConfig.ts b/lib/libConfig.ts index 1d0643d4..1db3446c 100644 --- a/lib/libConfig.ts +++ b/lib/libConfig.ts @@ -102,6 +102,7 @@ export const createLibConfig = (entries: { [entryAlias: string]: string }, optio const extension = format === 'es' ? 'mjs' : (format === 'cjs' ? 'cjs' : `${format}.js`) return { format, + interop: 'auto', // Add __esModule for CJS externals imports to fix interop issues in tools like Babel/TS hoistTransitiveImports: false, // For libraries this might otherwise introduce side effects preserveModules: false, assetFileNames,