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 bfa1241 commit 2cb390aCopy full SHA for 2cb390a
src/config.ts
@@ -188,6 +188,11 @@ async function loadV4(
188
189
let tw = await import(pathToFileURL(pkgPath).toString())
190
191
+ // Currently, the `import` condition appears after the `require` condition in
192
+ // our package.json file causing us to incorrectly resolve the CJS version of
193
+ // `tailwindcss` which means we need to check for the `default` export.
194
+ tw = tw.default ?? tw
195
+
196
// This is not Tailwind v4
197
if (!tw.__unstable__loadDesignSystem) {
198
return null
0 commit comments