Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(storybook): minify prod build with esbuild (#60718)

Raúl Negrón-Otero18215021745b
diff --git a/common/storybook/.storybook/main.ts b/common/storybook/.storybook/main.ts
index 38b0c67d39c4..49da0025df90 100644
--- a/common/storybook/.storybook/main.ts
+++ b/common/storybook/.storybook/main.ts
@@ -61,6 +61,8 @@ const config: StorybookConfig = {
build: {
test: {
disableSourcemaps: !!process.env.CI,
+ // esbuild minifier: the default swc one rejects `extractComments` and breaks prod builds
+ esbuildMinify: true,
},
},