From 3c06f35b971971ed52aec3cab728e70b7d0378cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josh=20Goldberg=20=E2=9C=A8?= Date: Mon, 25 Nov 2024 23:25:51 -0500 Subject: [PATCH] build: shrink size of bundle (#576) Co-authored-by: Rebecca Stevens --- tsup.config.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tsup.config.ts b/tsup.config.ts index 101a1341..98250715 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -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", + }, });