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
Add callback to 'end' event handler #1698
Comments
+1 this is a big problem for me with https://github.com/seaneking/poststylus, to process asynchronous PostCSS plugins we need to pass the result back to |
Hi guys, is this still broken? I am trying to figure out a way to use stylus as es6 imports in a jspm systemjs app. Would this bug prevent me from doing that? |
@j-walker23 well, first of all it's not a bug. The issue is about support for asynchronous plugins inside
Node.js version of Stylus heavily using |
Thanks for the help @Panya, i appreciate it! |
👍 |
Any update on this? it's quite important to make PostCSS work with Stylus 😕 |
Currently, it's not possible to perform asynchronous operations within the
end
event and manipulate the resulting CSS based on these operations. This causes a lot of problems since node.js and its ecosystem is primarily asynchronous. To mitigate this problem, I propose that a callback should be added like we once had in versions prior to 0.40.0, e.g.:In case of multiple listeners, it could move to the next listener after the callback has been triggered to not cause any issues with asynchronous writes to the CSS.
The text was updated successfully, but these errors were encountered: