Skip to content

Commit 6bdba04

Browse files
committed
bail on empty config
We will improve this in a future commit so we can still migrate `@apply` for example in Tailwind CSS v4 -> v4 migrations.
1 parent 3dfef1e commit 6bdba04

File tree

1 file changed

+3
-1
lines changed
  • packages/@tailwindcss-upgrade/src

1 file changed

+3
-1
lines changed

packages/@tailwindcss-upgrade/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ async function run() {
155155
await Promise.all(
156156
stylesheets.map(async (sheet) => {
157157
try {
158-
let config = configBySheet.get(sheet)!
158+
let config = configBySheet.get(sheet)
159159
let jsConfigMigration = jsConfigMigrationBySheet.get(sheet)
160160

161161
if (!config) {
@@ -168,6 +168,8 @@ async function run() {
168168
}
169169
}
170170

171+
if (!config) return
172+
171173
await migrateStylesheet(sheet, {
172174
...config,
173175
jsConfigMigration: jsConfigMigration ?? null,

0 commit comments

Comments
 (0)