Skip to content

Conversation

@almadoro
Copy link

@almadoro almadoro commented Nov 9, 2025

Trigger prune event when the last import of a module is removed.

Fixes #20781

Since imports.length is 0, there are no imported, accepted, or statically imported modules. Therefore, moduleGraph.updateModuleInfo is called with empty sets to get the prunedImports and trigger the event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

prune event is not triggered when removing the last import of the parent module

1 participant