Skip to content

Commit 713729b

Browse files
committed
Try default export first
1 parent bfa1241 commit 713729b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ async function loadV4(
188188

189189
let tw = await import(pathToFileURL(pkgPath).toString())
190190

191+
// Because we're loading the CJS version we need to check for the default export
192+
tw = tw.default ?? tw
193+
191194
// This is not Tailwind v4
192195
if (!tw.__unstable__loadDesignSystem) {
193196
return null

0 commit comments

Comments
 (0)