-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Expose pendingRequests #4294
Comments
While you do not have this exact API, you can already do something similar with a combination of The |
That seems to work, thanks! I did still need a timeout too though because |
That should not happen, would be interested if you could reproduce it. |
Thanks so much, there was actually a bug in the logic. Fix at #4296. Now it should be reliable. |
Feature Use Case
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 the
transform
hook withserver._pendingRequests
to check if I'm the only module left, but there's nothing like this exposed in rollup.Feature Proposal
Something similar to vite: https://github.com/vitejs/vite/blob/b625a2cf3730fda94d934b23bcec0c859bfa0b24/packages/vite/src/node/server/transformRequest.ts#L49-L52
ModuleLoader
:PluginContext
:const context = { + pendingRequests: graph.moduleLoader.pendingRequests, addWatchFile(id) {
The text was updated successfully, but these errors were encountered: