diff --git a/packages/@tailwindcss-upgrade/src/migrate.ts b/packages/@tailwindcss-upgrade/src/migrate.ts index f44698f6d..9891077a6 100644 --- a/packages/@tailwindcss-upgrade/src/migrate.ts +++ b/packages/@tailwindcss-upgrade/src/migrate.ts @@ -321,6 +321,7 @@ export async function split(stylesheets: Stylesheet[]) { // If removing files means that some `@import` at-rules are now unnecessary, we // can also remove those. for (let sheet of stylesheets) { + continue if (!sheet.root) continue let utilitySheet = utilitySheets.get(sheet)