-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Plugin API: Allow custom utilities to start with @
#14793
Plugin API: Allow custom utilities to start with @
#14793
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @philipp-spiess and the rest of your teammates on Graphite |
13a94fb
to
a6ee83e
Compare
Wondering if we should actually support this or not, given that this is meant to try and solve the issue of the It probably makes sense for this to work from a sort of grammar perspective, but still wonder what the real "fix" is for someone upgrading with the container queries plugin installed. Brain dump of potential options:
|
@adamwathan Agree that this is not the solution for |
a6ee83e
to
3911479
Compare
Removed the test case referencing |
f06339e
to
cb2ff64
Compare
Closes #14791
Add support to the JS Plugin interop layer for utilities that start with
@
. This ensures no breaking when trying to load plugins that contribute utilities like@container
from@tailwindcss/container-queries
(even though the@container
utility is now part of core).Test Plan
Added the
@tailwindcss/container-queries
plugin to to the Vite example:However, in order for the Vite example to load the extension, I also had to apply the following patch:
I think this is related to our dev system though, the compiled plugin file is going to be a flat file with no requires in our public release.