Skip to content

Commit 2b6cf7e

Browse files
committed
Revert "Simplify module-reasons test case"
This reverts commit db710c9.
1 parent db710c9 commit 2b6cf7e

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

test/__snapshots__/StatsTestCases.test.js.snap

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,16 +1453,17 @@ If you don't want to include a polyfill, you can use an empty module like this:
14531453
`;
14541454

14551455
exports[`StatsTestCases should print correct stats for module-reasons 1`] = `
1456-
"Hash: 5423dc08099c1caec38c
1456+
"Hash: 3584c47f06ef83e85f02
14571457
Time: Xms
14581458
Built at: Thu Jan 01 1970 00:00:00 GMT
14591459
Asset Size Chunks Chunk Names
1460-
main.js 2.67 KiB {404} [emitted] main
1460+
main.js 2.75 KiB {404} [emitted] main
14611461
Entrypoint main = main.js
1462-
[21] ./b.js 8 bytes {404} [built]
1463-
cjs require ./b [143] ./index.js + 1 modules 1:0-14 ./a.js
1464-
[143] ./index.js + 1 modules 52 bytes {404} [built]
1462+
[523] ./index.js + 2 modules 102 bytes {404} [built]
14651463
entry ./index main
1464+
[911] ./c.js 8 bytes {404} [built]
1465+
cjs require ./c [523] ./index.js + 2 modules 1:0-14 ./b.js
1466+
cjs require ./c [523] ./index.js + 2 modules 1:0-14 ./a.js
14661467
+ 2 hidden modules"
14671468
`;
14681469

test/statsCases/module-reasons/a.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
require("./b");
1+
require("./c");
22
export const a = "a";

test/statsCases/module-reasons/b.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
// empty
1+
require("./c");
2+
export const b = "b";

test/statsCases/module-reasons/c.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// empty
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
import "./a";
2+
import "./b";

0 commit comments

Comments
 (0)