-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix @headlessui/tailwindcss
exports map
#3539
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
2e35d3b
to
5f630d8
Compare
Wait this doesn't work, let me tinker |
5f630d8
to
4f224e5
Compare
Ok this works now 😅 Tested on our two playgrounds:
|
4f224e5
to
9cb2e65
Compare
9cb2e65
to
8967273
Compare
@@ -17,7 +17,8 @@ | |||
"require": "./dist/index.d.cts" | |||
}, | |||
"import": "./dist/headlessui.esm.js", | |||
"require": "./dist/index.cjs" | |||
"require": "./dist/index.cjs", | |||
"default": "./dist/headlessui.esm.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems weird that it'd be necessary 🤔
Shouldn't this be used via @plugin
in v4 anyway? Not @import "…"
? There's not a CSS file here so…
This needs to be fixed in our enhanced resolver config |
When trying to load the
@headlessui/tailwindcss
package from a v4 project via:we run into the following runtime error:
I think this is caused by unexpected content in the exports map. This changes the contents to be similar to what we do for the
tailwindcss
package.