Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/debug-apps/react-ssr/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ import {
const __dirname = dirname(fileURLToPath(import.meta.url))

export default defineConfig({
/**
* Pre-bundle deps the static scanner can't see (react/compiler-runtime is
* injected by babel), so a late re-optimization can't crash the page mid-load.
*/
optimizeDeps: {
include: [
"react/compiler-runtime",
"@tanstack/react-query",
"@floating-ui/dom",
"lodash-es",
],
},
plugins: [
tailwindcss(),
mdx({
Expand Down
Loading