Skip to content

Commit ae2919d

Browse files
committed
update stats cases for smaller bundles
1 parent 8363773 commit ae2919d

File tree

38 files changed

+72
-79
lines changed

38 files changed

+72
-79
lines changed

test/statsCases/aggressive-splitting-entry/expected.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Child fitting:
55
Asset Size Chunks Chunk Names
66
3b0abf784cffee9cdb84.js 2.23 KiB 0 [emitted]
77
fd43aeccca69e5179cb6.js 1.93 KiB 4 [emitted]
8-
0fb4d7363ffcca01b706.js 5.8 KiB 5 [emitted]
8+
0fb4d7363ffcca01b706.js 5.59 KiB 5 [emitted]
99
e1f8db72211be4caf41d.js 1 KiB 6 [emitted]
1010
Entrypoint main = 0fb4d7363ffcca01b706.js e1f8db72211be4caf41d.js fd43aeccca69e5179cb6.js 3b0abf784cffee9cdb84.js
1111
chunk {0} 3b0abf784cffee9cdb84.js 1.87 KiB [initial] [rendered]
@@ -30,7 +30,7 @@ Child content-change:
3030
Asset Size Chunks Chunk Names
3131
3b0abf784cffee9cdb84.js 2.23 KiB 0 [emitted]
3232
fd43aeccca69e5179cb6.js 1.93 KiB 4 [emitted]
33-
0fb4d7363ffcca01b706.js 5.8 KiB 5 [emitted]
33+
0fb4d7363ffcca01b706.js 5.59 KiB 5 [emitted]
3434
e1f8db72211be4caf41d.js 1 KiB 6 [emitted]
3535
Entrypoint main = 0fb4d7363ffcca01b706.js e1f8db72211be4caf41d.js fd43aeccca69e5179cb6.js 3b0abf784cffee9cdb84.js
3636
chunk {0} 3b0abf784cffee9cdb84.js 1.87 KiB [initial] [rendered]

test/statsCases/aggressive-splitting-on-demand/expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fcea9401f4f21cf79d39.js 1.94 KiB 1 [emitted]
88
c1e3d74e221cc503e2e1.js 1.94 KiB 4 [emitted]
99
3d41758100f56aac517e.js 1 KiB 5 [emitted]
1010
c64eeda8f0bfba682f9d.js 1.01 KiB 6 [emitted]
11-
520c994eaddf273485ec.js 8.3 KiB 7 [emitted] main
11+
520c994eaddf273485ec.js 8.09 KiB 7 [emitted] main
1212
Entrypoint main = 520c994eaddf273485ec.js
1313
chunk {0} 1744d4ad4296f5fa250c.js 1.76 KiB {7} [recorded]
1414
> aggressive-splitted duplicate [11] (webpack)/test/statsCases/aggressive-splitting-on-demand/index.js 4:0-51

test/statsCases/chunks/expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Time: Xms
44
0.bundle.js 288 bytes 0 [emitted]
55
1.bundle.js 152 bytes 1 [emitted]
66
2.bundle.js 232 bytes 2 [emitted]
7-
bundle.js 6.97 KiB 3 [emitted] main
7+
bundle.js 6.76 KiB 3 [emitted] main
88
chunk {0} 0.bundle.js 54 bytes {3} [rendered]
99
> [0] (webpack)/test/statsCases/chunks/index.js 3:0-16
1010
[3] (webpack)/test/statsCases/chunks/c.js 54 bytes {0} [built]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Hash: 9b62d877d26dd61e1fb9
22
Time: Xms
33
Asset Size Chunks Chunk Names
4-
main.js 2.63 KiB 0 [emitted] main
4+
main.js 2.42 KiB 0 [emitted] main
55
[0] (webpack)/test/statsCases/color-disabled/index.js 0 bytes {0} [built]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Hash: <CLR=BOLD>9b62d877d26dd61e1fb9</CLR>
22
Time: <CLR=BOLD>X</CLR>ms
33
<CLR=BOLD>Asset</CLR> <CLR=BOLD>Size</CLR> <CLR=BOLD>Chunks</CLR> <CLR=39,BOLD><CLR=22> <CLR=39,BOLD><CLR=22><CLR=BOLD>Chunk Names</CLR>
4-
<CLR=32>main.js</CLR> 2.63 KiB <CLR=BOLD>0</CLR> <CLR=32>[emitted]</CLR> main
4+
<CLR=32>main.js</CLR> 2.42 KiB <CLR=BOLD>0</CLR> <CLR=32>[emitted]</CLR> main
55
[0] <CLR=BOLD>(webpack)/test/statsCases/color-enabled-custom/index.js</CLR> 0 bytes {<CLR=33>0</CLR>}<CLR=32> [built]</CLR>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Hash: <CLR=BOLD>9b62d877d26dd61e1fb9</CLR>
22
Time: <CLR=BOLD>X</CLR>ms
33
<CLR=BOLD>Asset</CLR> <CLR=BOLD>Size</CLR> <CLR=BOLD>Chunks</CLR> <CLR=39,BOLD><CLR=22> <CLR=39,BOLD><CLR=22><CLR=BOLD>Chunk Names</CLR>
4-
<CLR=32,BOLD>main.js</CLR> 2.63 KiB <CLR=BOLD>0</CLR> <CLR=32,BOLD>[emitted]</CLR> main
4+
<CLR=32,BOLD>main.js</CLR> 2.42 KiB <CLR=BOLD>0</CLR> <CLR=32,BOLD>[emitted]</CLR> main
55
[0] <CLR=BOLD>(webpack)/test/statsCases/color-enabled/index.js</CLR> 0 bytes {<CLR=33,BOLD>0</CLR>}<CLR=32,BOLD> [built]</CLR>

test/statsCases/commons-chunk-min-size-0/expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Hash: 6e3e301d55085d22e738
22
Time: Xms
33
Asset Size Chunks Chunk Names
44
entry-1.js 81 bytes 0 [emitted] entry-1
5-
vendor-1.js 8.02 KiB 1 [emitted] vendor-1
5+
vendor-1.js 7.81 KiB 1 [emitted] vendor-1
66
[0] (webpack)/test/statsCases/commons-chunk-min-size-0/modules/a.js 22 bytes {1} [built]
77
[1] (webpack)/test/statsCases/commons-chunk-min-size-0/modules/b.js 22 bytes {1} [built]
88
[2] (webpack)/test/statsCases/commons-chunk-min-size-0/modules/c.js 22 bytes {1} [built]

test/statsCases/commons-chunk-min-size-Infinity/expected.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Hash: 6b34e4a15d90c981775e
22
Time: Xms
33
Asset Size Chunks Chunk Names
4-
entry-1.js 3.24 KiB 0 [emitted] entry-1
5-
vendor-1.js 3 KiB 1 [emitted] vendor-1
4+
entry-1.js 3.03 KiB 0 [emitted] entry-1
5+
vendor-1.js 2.79 KiB 1 [emitted] vendor-1
66
[0] (webpack)/test/statsCases/commons-chunk-min-size-Infinity/modules/a.js 22 bytes {0} {1} [built]
77
[1] (webpack)/test/statsCases/commons-chunk-min-size-Infinity/modules/b.js 22 bytes {0} {1} [built]
88
[2] (webpack)/test/statsCases/commons-chunk-min-size-Infinity/modules/c.js 22 bytes {0} {1} [built]

test/statsCases/commons-chunk-plugin-children/expected.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Child normal:
66
3.bundle.js 837 bytes 3 [emitted] x2
77
4.bundle.js 530 bytes 4 [emitted] x1
88
5.bundle.js 1.13 KiB 5 [emitted] xx5
9-
bundle.js 7.05 KiB 6 [emitted] main
9+
bundle.js 6.84 KiB 6 [emitted] main
1010
chunk {0} 0.bundle.js (x4) 56 bytes {6} [rendered]
1111
> x4 [4] (webpack)/test/statsCases/commons-chunk-plugin-children/index.js 4:0-42
1212
[0] (webpack)/test/statsCases/commons-chunk-plugin-children/a.js 0 bytes {0} {1} {2} {3} {4} [built]
@@ -51,7 +51,7 @@ Child children:
5151
3.bundle.js 692 bytes 3 [emitted] x2
5252
4.bundle.js 472 bytes 4 [emitted] x1
5353
5.bundle.js 1.13 KiB 5 [emitted] xx5
54-
bundle.js 7.17 KiB 6 [emitted] main
54+
bundle.js 6.96 KiB 6 [emitted] main
5555
chunk {0} 0.bundle.js (x4) 56 bytes {6} [rendered]
5656
> x4 [4] (webpack)/test/statsCases/commons-chunk-plugin-children/index.js 4:0-42
5757
[1] (webpack)/test/statsCases/commons-chunk-plugin-children/c.js 0 bytes {0} {1} {5} [built]
@@ -90,7 +90,7 @@ Child async:
9090
4.bundle.js 692 bytes 4 [emitted] x2
9191
5.bundle.js 472 bytes 5 [emitted] x1
9292
6.bundle.js 1.13 KiB 6 [emitted] xx5
93-
bundle.js 7.25 KiB 7 [emitted] main
93+
bundle.js 7.04 KiB 7 [emitted] main
9494
chunk {0} 0.bundle.js 0 bytes {7} [rendered]
9595
> async commons x1 [4] (webpack)/test/statsCases/commons-chunk-plugin-children/index.js 1:0-42
9696
> async commons x2 [4] (webpack)/test/statsCases/commons-chunk-plugin-children/index.js 2:0-42
@@ -134,7 +134,7 @@ Child deep-children:
134134
3.bundle.js 912 bytes 3 [emitted] x3
135135
4.bundle.js 692 bytes 4 [emitted] x2
136136
5.bundle.js 472 bytes 5 [emitted] x1
137-
bundle.js 7.22 KiB 6 [emitted] main
137+
bundle.js 7.01 KiB 6 [emitted] main
138138
chunk {0} 0.bundle.js (xx5) 42 bytes {6} [rendered]
139139
> xx5 [9] (webpack)/test/statsCases/commons-chunk-plugin-children/x5.js 3:0-44
140140
[3] (webpack)/test/statsCases/commons-chunk-plugin-children/d.js 0 bytes {0} {1} [built]
@@ -171,7 +171,7 @@ Child deep-async:
171171
4.bundle.js 692 bytes 4 [emitted] x2
172172
5.bundle.js 472 bytes 5 [emitted] x1
173173
6.bundle.js 1.01 KiB 6 [emitted] xx5
174-
bundle.js 7.25 KiB 7 [emitted] main
174+
bundle.js 7.04 KiB 7 [emitted] main
175175
chunk {0} 0.bundle.js 0 bytes {7} [rendered]
176176
> async commons x1 [4] (webpack)/test/statsCases/commons-chunk-plugin-children/index.js 1:0-42
177177
> async commons x2 [4] (webpack)/test/statsCases/commons-chunk-plugin-children/index.js 2:0-42

test/statsCases/commons-plugin-issue-4980/expected.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Child
55
Asset Size Chunks Chunk Names
66
app.js 1.29 KiB 0 [emitted] app
77
vendor.3210cd7580ff3ec8d7c1.js 619 bytes 1 [emitted] vendor
8-
runtime.js 7.06 KiB 2 [emitted] runtime
8+
runtime.js 6.85 KiB 2 [emitted] runtime
99
[./constants.js] (webpack)/test/statsCases/commons-plugin-issue-4980/constants.js 87 bytes {1} [built]
1010
[./entry-1.js] (webpack)/test/statsCases/commons-plugin-issue-4980/entry-1.js 67 bytes {0} [built]
1111
[./submodule-a.js] (webpack)/test/statsCases/commons-plugin-issue-4980/submodule-a.js 59 bytes {0} [built]
@@ -16,7 +16,7 @@ Child
1616
Asset Size Chunks Chunk Names
1717
app.js 1.34 KiB 0 [emitted] app
1818
vendor.3210cd7580ff3ec8d7c1.js 619 bytes 1 [emitted] vendor
19-
runtime.js 7.06 KiB 2 [emitted] runtime
19+
runtime.js 6.85 KiB 2 [emitted] runtime
2020
[./constants.js] (webpack)/test/statsCases/commons-plugin-issue-4980/constants.js 87 bytes {1} [built]
2121
[./entry-2.js] (webpack)/test/statsCases/commons-plugin-issue-4980/entry-2.js 67 bytes {0} [built]
2222
[./submodule-a.js] (webpack)/test/statsCases/commons-plugin-issue-4980/submodule-a.js 59 bytes {0} [built]

0 commit comments

Comments
 (0)