chore(config): 🔧 Update tsup build config for minification, plugins, and output optimizations
This commit is contained in:
parent
0dcfbed753
commit
6d286dddad
1 changed files with 8 additions and 14 deletions
|
|
@ -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',
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue