Skip to content

Commit

Permalink
build: minify for optimization (#52)
Browse files Browse the repository at this point in the history
* build: minify for optimization

* build: disable minification for CLI command

* build: disable minifying except for identifiers

* chore(build): enable keepNames
  • Loading branch information
notspammail authored Jan 21, 2024
1 parent 7ed0d40 commit 1d372db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/commandkit/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { defineConfig } from 'tsup';
export default defineConfig({
format: ['cjs', 'esm'],
entry: ['./src/index.ts'],
minifyIdentifiers: false,
minifySyntax: true,
minifyWhitespace: true,
keepNames: true,
dts: true,
shims: true,
skipNodeModulesBundle: true,
Expand Down

0 comments on commit 1d372db

Please sign in to comment.