We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.59.0
@unocss/postcss doesn't replaces @apply with rule contents on a certain conditions:
@unocss/postcss
@apply
@unocss
The problems comes from here:
unocss/packages/postcss/src/apply.ts
Lines 11 to 12 in 5ae78df
let promises: Promise<unknown>[] = []; root.walkAtRules(directiveName, (rule) => { promises.push((async () => { // ... })()) }); await Promise.all(promises);
And this fixes it.
https://github.com/DarkHole1/uno-postcss-bug
No response
The text was updated successfully, but these errors were encountered:
Would you like to send a quick PR? Thanks
Sorry, something went wrong.
fix(postcss): fix unocss#3699
9d3cfb1
fix(postcss): support async rule in directives, fix #3699 (#3701)
f4ca55c
Successfully merging a pull request may close this issue.
UnoCSS version
0.59.0
Describe the bug
@unocss/postcss
doesn't replaces@apply
with rule contents on a certain conditions:@unocss
directiveThe problems comes from here:
unocss/packages/postcss/src/apply.ts
Lines 11 to 12 in 5ae78df
I tried patching package locally and awaiting all functions something like that:
And this fixes it.
Reproduction
https://github.com/DarkHole1/uno-postcss-bug
System Info
No response
Validations
The text was updated successfully, but these errors were encountered: