diff --git a/patches/vite+4.5.0.patch b/patches/vite+4.5.0.patch index 3c36a34ca..d899322e4 100644 --- a/patches/vite+4.5.0.patch +++ b/patches/vite+4.5.0.patch @@ -1,8 +1,17 @@ diff --git a/node_modules/vite/dist/node/chunks/dep-bb8a8339.js b/node_modules/vite/dist/node/chunks/dep-bb8a8339.js -index 417b6a1..1f4df66 100644 +index 417b6a1..2a7e0f2 100644 --- a/node_modules/vite/dist/node/chunks/dep-bb8a8339.js +++ b/node_modules/vite/dist/node/chunks/dep-bb8a8339.js -@@ -41165,7 +41165,7 @@ async function transformGlobImport(code, id, root, resolveId, isProduction, rest +@@ -37775,8 +37775,6 @@ function buildHtmlPlugin(config) { + const importee = bundle[file]; + if (importee?.type === 'chunk' && !seen.has(file)) { + seen.add(file); +- // post-order traversal +- chunks.push(...getImportedChunks(importee, seen)); + chunks.push(importee); + } + }); +@@ -41165,7 +41163,7 @@ async function transformGlobImport(code, id, root, resolveId, isProduction, rest return staticImports; }))).flat(); if (staticImports.length) @@ -11,7 +20,7 @@ index 417b6a1..1f4df66 100644 return { s, matches, -@@ -47101,7 +47101,6 @@ function resolveChokidarOptions(config, options) { +@@ -47101,7 +47099,6 @@ function resolveChokidarOptions(config, options) { const resolvedWatchOptions = { ignored: [ '**/.git/**',