From 359155ecdc0a02537e54f345b96e084985dfab03 Mon Sep 17 00:00:00 2001 From: Xiphe Date: Tue, 13 Feb 2024 17:25:38 +0100 Subject: [PATCH] fix: do not use esModule interop for codegen build this caused typescript imports to fail in cjs bundle ref https://github.com/oazapfts/oazapfts/pull/576\#discussion_r1488125771 --- packages/codegen/vite.config.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/codegen/vite.config.ts b/packages/codegen/vite.config.ts index cfb1fe48..f154e6ee 100644 --- a/packages/codegen/vite.config.ts +++ b/packages/codegen/vite.config.ts @@ -24,10 +24,6 @@ export default defineConfig(({ mode }) => ({ formats: [mode === "esm" ? "es" : "cjs"], }, rollupOptions: { - output: { - exports: "auto", - interop: "esModule", - }, external(source) { return external.some( (dep) => source === dep || source.startsWith(`${dep}/`),