Repository navigation
Replies: 1 comment
|
Discussions is fine for this, though the chart lives in The colors come from On the missing arrows: in Rspack, For reference,
(I used Claude Code to check this.) |
|
Discussions is fine for this, though the chart lives in The colors come from On the missing arrows: in Rspack, For reference,
(I used Claude Code to check this.) |
Uh oh!
There was an error while loading. Please reload this page.
The Rspack documentation (compiler hooks, compilation hooks) shows several flowcharts of when the various hooks are called. This is a marked improvement over what Iʼve found in the Webpack documentation, which seems to just list the hooks without an expected order of operations, but it can still be confusing; Iʼm not sure Iʼm reading them correctly.
Some particular issues Iʼve noticed and been confused by:
hooks.doneis listed twice, and it canʼt be both supported and not if thatʼs what it means.falsearrow forhooks.needAdditionalPassand no entry point forHookEmitRecords. Those are both “non-support”, so that might make sense, except thatneedsAdditionalPassis sometimes called, and surely, whether there are hooks for it or not, itʼs possible for the code to not need an additional pass.Also, a documentation issue not related to the chart: it isnʼt explained what the various hook types are. I needed to go to the Webpack documentation to understand what they meant.
So, my questions:
All reactions