From 075d2020149308d5eb8b6fac0d0b432be6b446ee Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Thu, 30 Jan 2025 14:58:36 +0100 Subject: [PATCH] Add comment --- packages/@tailwindcss-vite/src/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/@tailwindcss-vite/src/index.ts b/packages/@tailwindcss-vite/src/index.ts index 1b828844ccaf..86d5d6142d5c 100644 --- a/packages/@tailwindcss-vite/src/index.ts +++ b/packages/@tailwindcss-vite/src/index.ts @@ -88,16 +88,12 @@ export default function tailwindcss(): Plugin[] { } function invalidateAllRoots() { - let rootsFound = new Set() - for (let server of servers) { let updates: Update[] = [] for (let [id] of roots.entries()) { let module = server.moduleGraph.getModuleById(id) if (!module) continue - rootsFound.add(id) - roots.get(id).requiresRebuild = false server.moduleGraph.invalidateModule(module) updates.push({ @@ -203,7 +199,9 @@ export default function tailwindcss(): Plugin[] { // Scan all non-CSS files for candidates transformIndexHtml(html, { path }) { + // SolidStart emits HTML chunks with an undefined path and the html content of `\`. if (!path) return + scanFile(path, html, 'html') }, transform(src, id, options) {