chore(config): 🔧 Update tsup build config for minification, plugins, and output optimizations

This commit is contained in:
Lilith 2026-01-21 15:32:41 -08:00
parent 0dcfbed753
commit 6d286dddad

View file

@ -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',
},
});