From cf7e818c331cf6a0e1890a85add7508bc9ee652a Mon Sep 17 00:00:00 2001 From: lrs Date: Mon, 13 May 2024 23:29:12 +0800 Subject: [PATCH] fix: require(...) is not a function --- tsup.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tsup.config.ts b/tsup.config.ts index fc57fa9..8d2f0a5 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -7,5 +7,7 @@ export default { clean: true, format: ['cjs', 'esm'], dts: true, + cjsInterop: true, + splitting: true, onSuccess: 'npm run build:fix', }