Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: prebundle recharts for lazy alcohol page

[._.]/ Adam Eivy630e392952f2
diff --git a/client/vite.config.js b/client/vite.config.js
index 7451676856..aeb2d633d6 100644
--- a/client/vite.config.js
+++ b/client/vite.config.js
@@ -104,6 +104,12 @@ export default defineConfig(({ mode }) => {
template: 'treemap',
}),
].filter(Boolean),
+ // Recharts is imported by lazy-loaded pages. Its published ESM files use
+ // bare es-toolkit/compat/* imports, so prebundle it before a lazy tab can
+ // expose those specifiers directly to the browser.
+ optimizeDeps: {
+ include: ['recharts']
+ },
server: {
host: '0.0.0.0',
port: 5554,