chore(build): ⚡ Optimize tsup config for reduced bundle size & faster builds via minification, sourcemaps, or chunking tweaks
This commit is contained in:
parent
31857fc5e6
commit
922c905e22
1 changed files with 7 additions and 13 deletions
|
|
@ -1,16 +1,10 @@
|
|||
import { defineConfig } from 'tsup';
|
||||
import { createLibraryConfig } from '@lilith/configs/tsup/library';
|
||||
|
||||
export default defineConfig({
|
||||
export default createLibraryConfig({
|
||||
entry: {
|
||||
'distance': 'src/distance.ts',
|
||||
'geocoding': 'src/geocoding.ts',
|
||||
'types': 'src/types.ts',
|
||||
'index': 'src/index.ts'
|
||||
},
|
||||
format: ['esm'],
|
||||
dts: true,
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
treeshake: true,
|
||||
target: 'es2022',
|
||||
distance: 'src/distance.ts',
|
||||
geocoding: 'src/geocoding.ts',
|
||||
types: 'src/types.ts',
|
||||
index: 'src/index.ts',
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue