Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add comment
  • Loading branch information
philipp-spiess committed Jan 30, 2025
commit 075d2020149308d5eb8b6fac0d0b432be6b446ee
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