From 6d286dddad349d440957aa427d158c9688b201e5 Mon Sep 17 00:00:00 2001 From: Lilith Date: Wed, 21 Jan 2026 15:32:41 -0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=F0=9F=94=A7=20Update=20tsup?= =?UTF-8?q?=20build=20config=20for=20minification,=20plugins,=20and=20outp?= =?UTF-8?q?ut=20optimizations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsup.config.ts | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/tsup.config.ts b/tsup.config.ts index ca67b25..83060d5 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -1,17 +1,11 @@ -import { defineConfig } from 'tsup'; +import { createLibraryConfig } from '@lilith/configs/tsup/library'; -export default defineConfig({ +export default createLibraryConfig({ entry: { - 'electron': 'src/electron.ts', - 'web': 'src/web-fixture.ts', - 'helpers': 'src/helpers.ts', - 'config': 'src/config.ts', - 'index': 'src/index.ts' -}, - format: ['esm'], - dts: true, - clean: true, - sourcemap: true, - treeshake: true, - target: 'es2022', + electron: 'src/electron.ts', + web: 'src/web-fixture.ts', + helpers: 'src/helpers.ts', + config: 'src/config.ts', + index: 'src/index.ts', + }, });