: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(frontend): exclude @posthog/brand from vite pre-bundling (#69649)
Juraj Majerik58094324a149
diff --git a/frontend/vite.config.mts b/frontend/vite.config.mtsindex 6c33bf1a923e..6f46c4bb9d8f 100644--- a/frontend/vite.config.mts+++ b/frontend/vite.config.mts@@ -135,7 +135,11 @@ export default defineConfig(({ mode }) => {},optimizeDeps: {include: ['react', 'react-dom', 'buffer'],- exclude: ['snappy-wasm'], // Don't pre-bundle snappy-wasm so WASM file stays with JS+ // snappy-wasm: don't pre-bundle so the WASM file stays with the JS.+ // @posthog/brand: its PNG stubs resolve assets via `new URL(..., import.meta.url)`,+ // which pre-bundling rewrites to .vite/deps/ where the images don't exist — hoggie+ // art silently 404s in dev serve (production builds are unaffected).+ exclude: ['snappy-wasm', '@posthog/brand'],},}})