Repository navigation
Commit 61819a6
authored
refactor(types): let plugins declare their stats keys (#22849)
* refactor(types): name the stats plugin-key fallback type
* fix(types): stop stats hook maps taking caller-chosen payload types
* refactor(types): let plugins declare their stats keys
* fix(types): type a stats merge by the merged type its key declares
* refactor(types): type webpack's own stats taps from the key registries
* docs(types): state the merge tap a merged stats key needs
* refactor(types): type stats groups by path through StatsFactoryGroupKeys
groupResults taps now check createGroup against the group shape of their
array path (assets, modules, reasons) instead of object, and plugins
declare their own group shapes by declaration merging.1 parent 1454e5c commit 61819a6
9 files changed
Lines changed: 629 additions & 818 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
183 | | - | |
| 184 | + | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
868 | 870 | | |
869 | 871 | | |
870 | 872 | | |
871 | | - | |
| 873 | + | |
872 | 874 | | |
873 | 875 | | |
874 | 876 | | |
| |||
928 | 930 | | |
929 | 931 | | |
930 | 932 | | |
931 | | - | |
| 933 | + | |
| 934 | + | |
932 | 935 | | |
933 | 936 | | |
934 | 937 | | |
| |||
1744 | 1747 | | |
1745 | 1748 | | |
1746 | 1749 | | |
1747 | | - | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
1748 | 1753 | | |
1749 | 1754 | | |
1750 | 1755 | | |
| |||
0 commit comments