Skip to content

Commit

Permalink
build: shrink size of bundle (#576)
Browse files Browse the repository at this point in the history
Co-authored-by: Rebecca Stevens <[email protected]>
  • Loading branch information
JoshuaKGoldberg and RebeccaStevens authored Nov 26, 2024
1 parent 8cec962 commit 3c06f35
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import { defineConfig } from "tsup";
export default defineConfig({
clean: true,
dts: true,
entry: ["src/**/*.ts", "!src/**/*.test.*"],
entry: ["src/index.ts"],
format: ["cjs", "esm"],
outDir: "lib",
sourcemap: true,
sourcemap: false,
target: "node16",
treeshake: {
preset: "smallest",
},
});

0 comments on commit 3c06f35

Please sign in to comment.