From 78f88c01a521e057d3db280488557756a76a5dfd Mon Sep 17 00:00:00 2001 From: lrs <104537923+RuSenLi@users.noreply.github.com> Date: Mon, 27 May 2024 18:26:11 +0800 Subject: [PATCH] fix: require(...) is not a function (#28) --- 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', }