Hello. I have three plugins:
A depends on B
B depends on C
C
They tap some hook with same stage in the following order:
Then inside
they got position incorrectly as:
It happens because current logic looks like:
- Adding
A, no taps, just add
- Adding
B, B has before, so if (before.size > 0) allows to skip A and be inserted in the start of taps (e.g. order now is B, A)
- Adding
C to the top, since it has no before rules
Hello. I have three plugins:
Adepends onBBdepends onCCThey tap some hook with same
stagein the following order:A, B, CThen inside
tapable/lib/Hook.js
Line 136 in 9d647f8
B, A, CIt happens because current logic looks like:
A, no taps, just addB,Bhasbefore, soif (before.size > 0)allows to skipAand be inserted in the start oftaps(e.g. order now isB, A)Cto the top, since it has nobeforerules