From ffe40dd0ead88b27e5ea6bf8446f1b854453fa17 Mon Sep 17 00:00:00 2001 From: Lilith Date: Wed, 21 Jan 2026 15:27:14 -0800 Subject: [PATCH] =?UTF-8?q?chore(build):=20=E2=9A=A1=20Optimize=20TypeScri?= =?UTF-8?q?pt=20build=20with=20tsup:=20refine=20minification,=20tree-shaki?= =?UTF-8?q?ng,=20and=20output=20configurations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsup.config.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tsup.config.ts b/tsup.config.ts index 6ac3d51..db87787 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -1,15 +1,8 @@ -import { defineConfig } from 'tsup'; +import { createLibraryConfig } from '@lilith/configs/tsup/library'; -export default defineConfig({ +export default createLibraryConfig({ entry: { index: 'src/index.ts', runtime: 'src/runtime.ts', }, - format: ['esm'], - dts: true, - clean: true, - sourcemap: true, - target: 'es2022', - outDir: 'dist', - external: ['vite'], });