-
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
Bug with multiple @apply in one parent #8203
Comments
It should be As for multiply uses of |
Hi @thecrypticace , thanks for the quick response. Yeah, I know that the lib itself works well with the current code (because that rules with multiple @apply were already split, as you said). But other libraries may use this function without notice about this, and it would cause some related issues. For example, in my case, I'm using Tailwind CSS IntelliSense extension in vscode. This extension import and use the My example module.exports = {
...
plugins: [
require('@vechaiui/core'),
],
} Your new code ( |
Understood. In this case that would be a bug in the language server that needs to be addressed. |
@psucodervn I just did a little test with the intellisense extension and so far am not having problems. It handles the multiple applies as expected. Can you prep a small reproduction of what you're seeing? It'd be much appreciated! |
Hi @thecrypticace, thanks for the investigation. Here is a minimal project repo to reproduce the issue: https://github.com/psucodervn/tailwind-intellisense-issue. Hope it helps. |
I've pushed a fix and it should be in our insiders build in a few minutes. I used something fairly close to what you wrote so I credited you as a co-author. Thanks again for the persistence and I'm so sorry for all the confusion! |
Thanks for the quick and clean fix @thecrypticace 😄 |
Consider the line 312 here
tailwindcss/src/lib/expandApplyAtRules.js
Lines 312 to 314 in 1cc1ace
Should it be
instead?
The text was updated successfully, but these errors were encountered: