Skip to content

Commit

Permalink
fix: cache dir should be in node_modules for vite to work properly, f…
Browse files Browse the repository at this point in the history
…ixes #192
  • Loading branch information
nksaraf committed Feb 13, 2024
1 parent fb4a199 commit df335da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vinxi/lib/router-dev-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const ROUTER_MODE_DEV_PLUGINS = {
ssr: {
noExternal: ["vinxi"],
},
cacheDir: `.vinxi/cache/${router.name}`,
cacheDir: `node_modules/.vinxi/cache/${router.name}`,
optimizeDeps: {
exclude: ["vinxi"],
},
Expand Down Expand Up @@ -64,7 +64,7 @@ export const ROUTER_MODE_DEV_PLUGINS = {
ssr: {
noExternal: ["vinxi"],
},
cacheDir: `.vinxi/cache/${router.name}`,
cacheDir: `node_modules/.vinxi/cache/${router.name}`,
define: {
"process.env.TARGET": JSON.stringify(process.env.TARGET ?? "node"),
},
Expand Down Expand Up @@ -101,7 +101,7 @@ export const ROUTER_MODE_DEV_PLUGINS = {
manifest(),
config("appType", {
appType: "custom",
cacheDir: `.vinxi/cache/${router.name}`,
cacheDir: `node_modules/.vinxi/cache/${router.name}`,
ssr: {
noExternal: ["vinxi"],
},
Expand Down

0 comments on commit df335da

Please sign in to comment.