We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c98bcb commit df22b53Copy full SHA for df22b53
packages/react-router-dev/vite/plugin.ts
@@ -1169,6 +1169,7 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = () => {
1169
1170
viteChildCompiler = await vite.createServer({
1171
...viteUserConfig,
1172
+ // Ensure child compiler cannot overwrite the default cache directory
1173
cacheDir: "node_modules/.vite-child-compiler",
1174
mode: viteConfig.mode,
1175
server: {
@@ -1200,6 +1201,7 @@ export const reactRouterVitePlugin: ReactRouterVitePlugin = () => {
1200
1201
{
1202
name: "react-router:override-optimize-deps",
1203
config(userConfig) {
1204
+ // Prevent unnecessary dependency optimization in the child compiler
1205
if (
1206
ctx.reactRouterConfig.future.unstable_viteEnvironmentApi &&
1207
userConfig.environments
0 commit comments