Skip to content

Commit 31ee357

Browse files
committed
fix: dts build error
1 parent 2b15e62 commit 31ee357

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/tailwindcss-patch/src/options/normalize.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,10 @@ function normalizeTailwindV4Options(
130130
const cssEntries = Array.isArray(v4?.cssEntries)
131131
? v4!.cssEntries.filter((entry): entry is string => Boolean(entry)).map(entry => path.resolve(entry))
132132
: []
133-
const hasUserDefinedSources = Boolean(v4?.sources?.length)
134-
const sources = hasUserDefinedSources
135-
? v4!.sources
133+
const userSources = v4?.sources
134+
const hasUserDefinedSources = Boolean(userSources?.length)
135+
const sources: NormalizedTailwindV4Options['sources'] = hasUserDefinedSources
136+
? userSources!
136137
: [
137138
{
138139
base,

0 commit comments

Comments
 (0)