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
Next Next commit
do not sort / format stylesheets that didn't change
  • Loading branch information
RobinMalfait committed Apr 29, 2025
commit 7d5e1c20f6d8489d986394470ea56aa9609fc8a7
2 changes: 2 additions & 0 deletions packages/@tailwindcss-upgrade/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ async function run() {
let stylesheets = loadResults
.filter((result) => result.status === 'fulfilled')
.map((result) => result.value)
let originals = new Map(stylesheets.map((sheet) => [sheet, sheet.root.toString()]))

// Analyze the stylesheets
try {
Expand Down Expand Up @@ -213,6 +214,7 @@ async function run() {

// Format nodes
for (let sheet of stylesheets) {
if (originals.get(sheet) === sheet.root.toString()) continue
await postcss([sortBuckets(), formatNodes()]).process(sheet.root!, { from: sheet.file! })
}

Expand Down