We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2daf59 commit 3dbcd7eCopy full SHA for 3dbcd7e
1 file changed
packages/@tailwindcss-upgrade/src/index.ts
@@ -151,6 +151,7 @@ async function run() {
151
if (stylesheets.length > 0) {
152
info('Migrating stylesheets…')
153
}
154
+ let originals = new Map(stylesheets.map((sheet) => [sheet, sheet.root.toString()]))
155
await Promise.all(
156
stylesheets.map(async (sheet) => {
157
try {
@@ -213,6 +214,7 @@ async function run() {
213
214
215
// Format nodes
216
for (let sheet of stylesheets) {
217
+ if (originals.get(sheet) === sheet.root.toString()) continue
218
await postcss([sortBuckets(), formatNodes()]).process(sheet.root!, { from: sheet.file! })
219
220
0 commit comments