From 32a7a5623ee07071f82afea448b206caf0f125bb Mon Sep 17 00:00:00 2001 From: ladybluenotes Date: Sun, 4 Oct 2026 16:10:13 -0700 Subject: [PATCH 1/2] perf: minify the published build --- .changeset/minify-dist.md | 5 +++++ packages/intent/tsdown.config.ts | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/minify-dist.md diff --git a/.changeset/minify-dist.md b/.changeset/minify-dist.md new file mode 100644 index 0000000..4ef67a7 --- /dev/null +++ b/.changeset/minify-dist.md @@ -0,0 +1,5 @@ +--- +'@tanstack/intent': patch +--- + +Minify the published build. The `dist` directory shrinks from 745 kB to 447 kB (40% smaller), and commands behave and print the same as before. Function and class names are kept, so a stack trace from installed code still names each function, but its positions now point into minified lines. The hook script that `intent hooks install` writes does not change. diff --git a/packages/intent/tsdown.config.ts b/packages/intent/tsdown.config.ts index 8e139e1..5109f1b 100644 --- a/packages/intent/tsdown.config.ts +++ b/packages/intent/tsdown.config.ts @@ -9,6 +9,10 @@ export default defineConfig({ format: 'esm', platform: 'node', dts: { entry: ['src/index.ts', 'src/core.ts'] }, + minify: { + compress: { keepNames: { function: true, class: true } }, + mangle: { keepNames: true }, + }, onSuccess(config) { const packageDir = fileURLToPath(new URL('.', import.meta.url)) const root = join(packageDir, '../..') From 3dfac271bc35586f73bc18a94bd9292c9ffe6902 Mon Sep 17 00:00:00 2001 From: ladybluenotes Date: Sun, 4 Oct 2026 16:12:32 -0700 Subject: [PATCH 2/2] chore: update the changeset numbers after merging main --- .changeset/minify-dist.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/minify-dist.md b/.changeset/minify-dist.md index 4ef67a7..9c2e5de 100644 --- a/.changeset/minify-dist.md +++ b/.changeset/minify-dist.md @@ -2,4 +2,4 @@ '@tanstack/intent': patch --- -Minify the published build. The `dist` directory shrinks from 745 kB to 447 kB (40% smaller), and commands behave and print the same as before. Function and class names are kept, so a stack trace from installed code still names each function, but its positions now point into minified lines. The hook script that `intent hooks install` writes does not change. +Minify the published build. The `dist` directory shrinks from 729 kB to 437 kB (40% smaller), and commands behave and print the same as before. Function and class names are kept, so a stack trace from installed code still names each function, but its positions now point into minified lines. The hook script that `intent hooks install` writes does not change.