Skip to content

Commit

Permalink
update tsup config
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Apr 28, 2024
1 parent eb92dfd commit f1e4979
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { defineConfig } from 'tsup';

export default defineConfig({
target: 'esnext',
clean: true,
dts: true,
entry: ['src/index.ts'],
format: 'esm',
minify: true,
treeshake: 'recommended'
export default defineConfig((options) => {
return {
target: 'esnext',
clean: true,
dts: !options.watch,
entry: ['src/index.ts'],
format: 'esm',
minify: !options.watch,
treeshake: 'recommended'
}
});

0 comments on commit f1e4979

Please sign in to comment.