From 10150c25cf70ee2ef12fe5f0d24b6ee6665fcd8c Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Thu, 4 Apr 2024 15:36:44 +0900 Subject: [PATCH] chore: tweak --- examples/react-server/vite.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/react-server/vite.config.ts b/examples/react-server/vite.config.ts index 0d04773b..dcdbda18 100644 --- a/examples/react-server/vite.config.ts +++ b/examples/react-server/vite.config.ts @@ -1,5 +1,6 @@ import { defineConfig, + createNodeDevEnvironment, type PluginOption, type Plugin, createServerModuleRunner, @@ -83,6 +84,7 @@ function vitePluginReactServer(): PluginOption { conditions: ["react-server"], }, dev: { + createEnvironment: createNodeDevEnvironment, optimizeDeps: { include: [ "react",