Skip to content

Commit

Permalink
fix(dev): optimizeDeps entries file path for vite
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-comeau authored Nov 22, 2024
1 parent 5ffb6f5 commit f1ded83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/remix-dev/vite/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1107,9 +1107,9 @@ export const remixVitePlugin: RemixVitePlugin = (remixUserConfig = {}) => {
optimizeDeps: {
entries: ctx.remixConfig.future.unstable_optimizeDeps
? [
ctx.entryClientFilePath,
importViteEsmSync().normalizePath(ctx.entryClientFilePath),
...Object.values(ctx.remixConfig.routes).map((route) =>
path.join(ctx.remixConfig.appDirectory, route.file)
resolveRelativeRouteFilePath(route, ctx.remixConfig)
),
]
: [],
Expand Down

0 comments on commit f1ded83

Please sign in to comment.