File tree 2 files changed +10
-2
lines changed
packages/@vue/cli-ui/ui-defaults/utils
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,8 @@ function walkTreeToSortChildren (tree, sizeType) {
161
161
}
162
162
tree . children = Object . keys ( tree . children ) . map (
163
163
key => tree . children [ key ]
164
+ ) . filter (
165
+ child => child . size . stats > tree . size . stats * 0.01 && child . size . stats > 1024
164
166
) . sort ( ( a , b ) => b . size [ sizeType ] - a . size [ sizeType ] )
165
167
for ( const child of tree . children ) {
166
168
child . previousSize = {
Original file line number Diff line number Diff line change @@ -28,8 +28,14 @@ exports.processStats = function (stats) {
28
28
data : {
29
29
errors : stats . data . errors ,
30
30
warnings : stats . data . warnings ,
31
- assets : stats . data . assets ,
32
- chunks : stats . data . chunks
31
+ assets : stats . data . assets . map ( a => ( {
32
+ name : a . name ,
33
+ size : a . size
34
+ } ) ) ,
35
+ chunks : stats . data . chunks . map ( c => ( {
36
+ id : c . id ,
37
+ names : c . names
38
+ } ) )
33
39
} ,
34
40
computed : {
35
41
modulesPerSizeType
You can’t perform that action at this time.
0 commit comments