Skip to content

Commit

Permalink
Fix generating html with script tags to ensure correct order of execu…
Browse files Browse the repository at this point in the history
…tion (#1403)
  • Loading branch information
smalluban authored Dec 4, 2023
1 parent f97ac50 commit 7db1b88
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions patches/vite+4.5.0.patch
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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/**',
Expand Down

0 comments on commit 7db1b88

Please sign in to comment.