Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-spiess committed Jan 30, 2025
1 parent 48871b4 commit 075d202
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/@tailwindcss-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 075d202

Please sign in to comment.