chore(config-build): ⚡ Update tsup config for optimized bundling with plugin tweaks
This commit is contained in:
parent
85f22c46ca
commit
786c02ab07
1 changed files with 17 additions and 0 deletions
17
tsup.config.ts
Normal file
17
tsup.config.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { defineConfig } from 'tsup';
|
||||
|
||||
export default defineConfig({
|
||||
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',
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue