Skip to content

Commit 4aa3cf1

Browse files
committed
fix: optimizer chunk filename
1 parent fb0e51b commit 4aa3cf1

File tree

1 file changed

+3
-1
lines changed
  • packages/vite/src/node/optimizer

1 file changed

+3
-1
lines changed

packages/vite/src/node/optimizer/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,9 @@ export function runOptimizeDeps(
663663
})
664664
} else {
665665
const id = chunk.fileName.replace(jsExtensionRE, '')
666-
const file = getOptimizedDepPath(environment, id)
666+
const file = normalizePath(
667+
path.resolve(getDepsCacheDir(environment), chunk.fileName),
668+
)
667669
if (
668670
!findOptimizedDepInfoInRecord(
669671
metadata.optimized,

0 commit comments

Comments
 (0)