From aeb53e18e5e2f33f5271a9d2a06999153cecbab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Wed, 18 Mar 2026 13:52:53 +0100 Subject: [PATCH] chore: exclude stories from tsc type checking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Storybook CSF4 type inference generates massive .d.ts files for stories (e.g. Card.stories.d.ts grew to 1.4MB by inlining all React HTML/ARIA prop types). Excluding stories from tsc saves ~18s emit time, ~142MB memory, and prevents unnecessary .d.ts bloat in dist-types. No production code imports stories files, so this is safe. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Fredrik Adelöw --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index 26bfcf72e8..0c05669661 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,7 @@ "plugins/*/dev", "plugins/*/migrations" ], + "exclude": ["**/*.stories.ts", "**/*.stories.tsx"], "compilerOptions": { "outDir": "dist-types", "rootDir": ".",