Expose pendingRequests
See original GitHub issueClear and concise description of the problem
I’m writing a plugin that collects a list of all the imported sass files and writes them to a single file instead. I can’t write them one by one because sass throws “variable not defined”, so the transform request for the combined file has to be stalled until no other modules are waiting to be resolved.
Suggested solution
Currently I’m using server._pendingRequests
which is exactly what I was looking for, but it is a private property so really needs to be documented and exposed in a way that would be compatible with rollup. I proposed using this.pendingRequests
in https://github.com/rollup/rollup/issues/4294.
Alternative
No response
Additional context
https://github.com/vuetifyjs/vuetify-loader/issues/225 https://github.com/rollup/rollup/issues/4294
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that request the same feature to avoid creating a duplicate.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Expose pendingRequests · Issue #4294 · rollup/rollup - GitHub
I'm writing a plugin that needs to make modifications to a file based on other files in the project. In vite I'm using...
Read more >$http - AngularJS: API
The $http API is based on the deferred/promise APIs exposed by the $q service. ... Array of config objects for currently pending requests....
Read more >Exposing a Python function — Dataiku DSS 11 documentation
You can expose any Python function as a endpoint on the API node. ... But when all pending requests have been completed, the...
Read more >exposed package - github.com/thesyncim/exposed - Go Packages
README ¶. Exposed - minimal high performant reflectionless RPC Server ... PendingRequests returns the number of pending requests at the moment.
Read more >Circuit breakers (proto) - Envoy Proxy
(UInt32Value) The maximum number of pending requests that Envoy will allow to the upstream cluster. If not specified, the default is 1024.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Some background:
_pendingReload
is not reliable and doesn’t solve the concurrency problem. So we didn’t investigate further into that solutionSo now I’m using it in
vite-jest
too. Seems worth exposing to me. We’ll discuss it at the next team meeting.I actually had to this something like this for my plugin, and thanks to your issue and code @KaelWD I implemented something similar like so:
Besides the TODO, and that I’ve only tested it on a small project, it seems to be working well. I suppose this would work for Rollup too and I hope we can find a trick that works in both without Vite exposing
pendingRequests
.