diff --git a/packages/waku/src/lib/middleware/dev-server-impl.ts b/packages/waku/src/lib/middleware/dev-server-impl.ts index f62b487ba..bbd4aa3ce 100644 --- a/packages/waku/src/lib/middleware/dev-server-impl.ts +++ b/packages/waku/src/lib/middleware/dev-server-impl.ts @@ -116,7 +116,7 @@ const createMainViteServer = ( ], optimizeDeps: { include: ['react-server-dom-webpack/client', 'react-dom'], - exclude: ['waku'], + exclude: ['waku', 'rsc-html-stream/server'], entries: [ `${config.srcDir}/${SRC_ENTRIES}.*`, // HACK hard-coded "pages" diff --git a/packages/website/vite.config.ts b/packages/website/vite.config.ts index 297b82e23..a1e2079bc 100644 --- a/packages/website/vite.config.ts +++ b/packages/website/vite.config.ts @@ -2,6 +2,9 @@ export default ({ mode }: { mode: string }) => { if (mode === 'development') { return { + optimizeDeps: { + include: ['tailwindcss/colors'], + }, ssr: { optimizeDeps: { include: ['next-mdx-remote/rsc'],