Skip to content

Commit

Permalink
chore: cleaning up the tsup config
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Sep 8, 2023
1 parent eba444c commit e2b5408
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import type { Options } from 'tsup';

import { defineConfig } from 'tsup';

export default defineConfig((options: Options) => ({
export default defineConfig(options => ({
...options,

cjsInterop: true,
clean: true,
dts: true,
entry: ['src/index.ts', 'src/targets/targets.ts'],
format: ['esm', 'cjs'],
minify: false,
shims: true,
silent: !options.watch,
splitting: true,
sourcemap: true,
treeshake: true,
tsconfig: './tsconfig.build.json',
Expand Down

0 comments on commit e2b5408

Please sign in to comment.