Skip to content

Commit 1c5f294

Browse files
authored
Merge pull request webpack#6280 from webpack/default/entrypoints-stats
show entrypoints by default
2 parents b5b4e02 + bf898c0 commit 1c5f294

File tree

46 files changed

+92
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+92
-4
lines changed

lib/Stats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class Stats {
106106
const showVersion = optionOrLocalFallback(options.version, true);
107107
const showTimings = optionOrLocalFallback(options.timings, true);
108108
const showAssets = optionOrLocalFallback(options.assets, true);
109-
const showEntrypoints = optionOrLocalFallback(options.entrypoints, !forToString);
109+
const showEntrypoints = optionOrLocalFallback(options.entrypoints, true);
110110
const showChunks = optionOrLocalFallback(options.chunks, !forToString);
111111
const showChunkModules = optionOrLocalFallback(options.chunkModules, true);
112112
const showChunkOrigins = optionOrLocalFallback(options.chunkOrigins, !forToString);

test/statsCases/accept-stats.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ var dirs = fs.readdirSync(__dirname);
44
dirs.forEach(function(dir) {
55
var actual = path.join(__dirname, dir, "actual.txt");
66
var expected = path.join(__dirname, dir, "expected.txt");
7-
if(fs.existsSync(actual)) {
8-
fs.unlinkSync(expected);
9-
fs.renameSync(actual, expected);
7+
try {
8+
if(fs.existsSync(actual)) {
9+
fs.unlinkSync(expected);
10+
fs.renameSync(actual, expected);
11+
}
12+
} catch(e) {
13+
console.log(e);
1014
}
1115
});

test/statsCases/async-commons-chunk-all-selected/expected.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Entrypoint entry = entry.js
12
chunk {0} 0.js 21 bytes {3} [rendered]
23
> async commons [3] ./index.js 2:1-5:3
34
> async commons [3] ./index.js 9:1-13:3

test/statsCases/async-commons-chunk/expected.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Entrypoint main = main.js
12
chunk {0} 0.js 21 bytes {3} [rendered]
23
> async commons [3] ./index.js 2:1-5:3
34
> async commons [3] ./index.js 9:1-13:3

test/statsCases/chunks-development/expected.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Time: Xms
55
1.bundle.js 394 bytes 1 [emitted]
66
2.bundle.js 782 bytes 2 [emitted]
77
bundle.js 7.56 KiB main [emitted] main
8+
Entrypoint main = bundle.js
89
chunk {main} bundle.js (main) 73 bytes [entry] [rendered]
910
> main [./index.js] ./index.js
1011
[./a.js] 22 bytes {main} [built]

test/statsCases/chunks/expected.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Time: Xms
55
1.bundle.js 289 bytes 1 [emitted]
66
2.bundle.js 227 bytes 2 [emitted]
77
bundle.js 6.97 KiB 3 [emitted] main
8+
Entrypoint main = bundle.js
89
chunk {0} 0.bundle.js 22 bytes {3} [rendered]
910
> [4] ./index.js 2:0-16
1011
[2] ./b.js 22 bytes {0} [built]

test/statsCases/circular-correctness/expected.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Entrypoint main = bundle.js
12
chunk {0} 0.bundle.js (a) 49 bytes {2} {3} [rendered]
23
[1] ./module-a.js 49 bytes {0} [built]
34
chunk {1} 1.bundle.js (b) 49 bytes {2} {3} [rendered]

test/statsCases/color-disabled/expected.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ Hash: 4449339aa773e1bdb62b
22
Time: Xms
33
Asset Size Chunks Chunk Names
44
main.js 2.6 KiB 0 [emitted] main
5+
Entrypoint main = main.js
56
[0] ./index.js 0 bytes {0} [built]

test/statsCases/color-enabled-custom/expected.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ Hash: <CLR=BOLD>4449339aa773e1bdb62b</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>
44
<CLR=32>main.js</CLR> 2.6 KiB <CLR=BOLD>0</CLR> <CLR=32>[emitted]</CLR> main
5+
Entrypoint <CLR=BOLD>main</CLR> = <CLR=32>main.js</CLR>
56
[0] <CLR=BOLD>./index.js</CLR> 0 bytes {<CLR=33>0</CLR>}<CLR=32> [built]</CLR>

test/statsCases/color-enabled/expected.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ Hash: <CLR=BOLD>4449339aa773e1bdb62b</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>
44
<CLR=32,BOLD>main.js</CLR> 2.6 KiB <CLR=BOLD>0</CLR> <CLR=32,BOLD>[emitted]</CLR> main
5+
Entrypoint <CLR=BOLD>main</CLR> = <CLR=32,BOLD>main.js</CLR>
56
[0] <CLR=BOLD>./index.js</CLR> 0 bytes {<CLR=33,BOLD>0</CLR>}<CLR=32,BOLD> [built]</CLR>

0 commit comments

Comments
 (0)