diff --git a/declarations/WebpackOptions.d.ts b/declarations/WebpackOptions.d.ts index 4402b9853..48ac37cf0 100644 --- a/declarations/WebpackOptions.d.ts +++ b/declarations/WebpackOptions.d.ts @@ -1267,6 +1267,10 @@ export interface StatsOptions { * add the origins of chunks and chunk merging info */ chunkOrigins?: boolean; + /** + * add root modules information to chunk information + */ + chunkRootModules?: boolean; /** * add chunk information */ diff --git a/lib/ChunkGraph.js b/lib/ChunkGraph.js index e19551838..774ac832a 100644 --- a/lib/ChunkGraph.js +++ b/lib/ChunkGraph.js @@ -15,6 +15,7 @@ const { compareSelect, compareIds } = require("./util/comparators"); +const findGraphRoots = require("./util/findGraphRoots"); /** @typedef {import("./AsyncDependenciesBlock")} AsyncDependenciesBlock */ /** @typedef {import("./Chunk")} Chunk */ @@ -155,6 +156,8 @@ class ChunkGraph { this._blockChunkGroups = new WeakMap(); /** @private @type {ModuleGraph} */ this.moduleGraph = moduleGraph; + + this._getGraphRoots = this._getGraphRoots.bind(this); } /** @@ -185,6 +188,25 @@ class ChunkGraph { return c; } + /** + * @param {SortableSet} set the sortable Set to get the roots of + * @returns {Module[]} the graph roots + */ + _getGraphRoots(set) { + const { moduleGraph } = this; + return Array.from( + findGraphRoots(set, module => { + return moduleGraph + .getOutgoingConnections(module) + .reduce((arr, connection) => { + const module = connection.module; + if (module) arr.push(module); + return arr; + }, []); + }) + ).sort(compareModulesByIdentifier); + } + /** * @param {Chunk} chunk the new chunk * @param {Module} module the module @@ -534,6 +556,15 @@ class ChunkGraph { return cgc.modules.getFromUnorderedCache(getModulesSizes); } + /** + * @param {Chunk} chunk the chunk + * @returns {Module[]} root modules of the chunks (ordered by identifer) + */ + getChunkRootModules(chunk) { + const cgc = this._getChunkGraphChunk(chunk); + return cgc.modules.getFromUnorderedCache(this._getGraphRoots); + } + /** * @param {Chunk} chunk the chunk * @param {ChunkSizeOptions} options options object diff --git a/lib/ModuleGraph.js b/lib/ModuleGraph.js index 5e7124709..0ca16a6d9 100644 --- a/lib/ModuleGraph.js +++ b/lib/ModuleGraph.js @@ -300,7 +300,7 @@ class ModuleGraph { * @param {Module} module the module * @returns {ModuleGraphConnection[]} list of outgoing connections */ - getOutgoingConnection(module) { + getOutgoingConnections(module) { const connections = this._getModuleGraphModule(module).outgoingConnections; return Array.from(connections); } diff --git a/lib/Stats.js b/lib/Stats.js index 16acdcfeb..42d15106b 100644 --- a/lib/Stats.js +++ b/lib/Stats.js @@ -170,7 +170,14 @@ class Stats { !forToString ); const showChunks = optionOrLocalFallback(options.chunks, !forToString); - const showChunkModules = optionOrLocalFallback(options.chunkModules, true); + const showChunkModules = optionOrLocalFallback( + options.chunkModules, + !forToString + ); + const showChunkRootModules = optionOrLocalFallback( + options.chunkRootModules, + forToString ? !showChunkModules : true + ); const showChunkOrigins = optionOrLocalFallback( options.chunkOrigins, !forToString @@ -178,7 +185,7 @@ class Stats { const showModules = optionOrLocalFallback(options.modules, true); const showNestedModules = optionOrLocalFallback( options.nestedModules, - true + !forToString ); const showOrphanModules = optionOrLocalFallback( options.orphanModules, @@ -793,6 +800,25 @@ class Stats { ); } } + if (showChunkRootModules) { + const rootModules = chunkGraph.getChunkRootModules(chunk); + obj.rootModules = rootModules + .slice() + .sort(sortRealModules) + .filter(createModuleFilter("root-of-chunk")) + .map(m => fnModule(m)); + obj.filteredRootModules = rootModules.length - obj.rootModules.length; + obj.nonRootModules = + chunkGraph.getNumberOfChunkModules(chunk) - rootModules.length; + if (sortModules) { + obj.rootModules.sort( + concatComparators( + sortByField(sortModules), + keepOriginalOrder(obj.rootModules) + ) + ); + } + } if (showChunkOrigins) { const originsKeySet = new Set(); obj.origins = Array.from(chunk.groupsIterable, g => g.origins) @@ -1059,7 +1085,7 @@ class Stats { color: getAssetColor(asset, colors.normal) }, { - value: asset.chunks.join(", "), + value: asset.chunks.map(c => `{${c}}`).join(", "), color: colors.bold }, { @@ -1134,21 +1160,6 @@ class Stats { processChunkGroups(outputChunkGroups, "Chunk Group"); } - const modulesByIdentifier = {}; - if (obj.modules) { - for (const module of obj.modules) { - modulesByIdentifier[`$${module.identifier}`] = module; - } - } else if (obj.chunks) { - for (const chunk of obj.chunks) { - if (chunk.modules) { - for (const module of chunk.modules) { - modulesByIdentifier[`$${module.identifier}`] = module; - } - } - } - } - const processSizes = sizes => { const keys = Object.keys(sizes); if (keys.length > 1) { @@ -1341,11 +1352,16 @@ class Stats { newline(); } if (module.modules) { - processModulesList(module, prefix + "| "); + processModulesList(module, prefix + "| ", "nested module"); } }; - const processModulesList = (obj, prefix) => { + const processModulesList = ( + obj, + prefix, + itemType = "module", + dependentItemType = "dependent module" + ) => { if (obj.modules) { let maxModuleId = 0; for (const module of obj.modules) { @@ -1397,7 +1413,19 @@ class Stats { if (obj.modules.length > 0) colors.normal(" + "); colors.normal(obj.filteredModules); if (obj.modules.length > 0) colors.normal(" hidden"); - colors.normal(obj.filteredModules !== 1 ? " modules" : " module"); + colors.normal(` ${itemType}${obj.filteredModules !== 1 ? "s" : ""}`); + newline(); + } + if (obj.dependentModules > 0) { + const additional = obj.modules.length > 0 || obj.filteredModules > 0; + colors.normal(prefix); + colors.normal(" "); + if (additional) colors.normal(" + "); + colors.normal(obj.dependentModules); + if (additional) colors.normal(" hidden"); + colors.normal( + ` ${dependentItemType}${obj.dependentModules !== 1 ? "s" : ""}` + ); newline(); } } @@ -1473,9 +1501,8 @@ class Stats { colors.normal("["); colors.normal(origin.moduleId); colors.normal("] "); - const module = modulesByIdentifier[`$${origin.module}`]; - if (module) { - colors.bold(module.name); + if (origin.moduleName) { + colors.bold(origin.moduleName); colors.normal(" "); } } @@ -1485,7 +1512,21 @@ class Stats { newline(); } } - processModulesList(chunk, " "); + const hasRootModules = + chunk.rootModules || + chunk.filteredRootModules || + chunk.nonRootModules; + processModulesList( + { + modules: chunk.rootModules, + filteredModules: chunk.filteredRootModules, + dependentModules: chunk.nonRootModules + }, + " ", + "root module", + "dependent module" + ); + processModulesList(chunk, hasRootModules ? " | " : " ", "chunk module"); } } @@ -1552,6 +1593,7 @@ class Stats { modules: false, chunks: true, chunkModules: true, + chunkRootModules: false, chunkOrigins: true, depth: true, env: true, @@ -1572,6 +1614,7 @@ class Stats { chunkGroups: true, chunks: true, chunkModules: false, + chunkRootModules: false, chunkOrigins: true, depth: true, usedExports: true, diff --git a/lib/util/findGraphRoots.js b/lib/util/findGraphRoots.js new file mode 100644 index 000000000..d53a27d88 --- /dev/null +++ b/lib/util/findGraphRoots.js @@ -0,0 +1,214 @@ +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ + +"use strict"; + +const NO_MARKER = 0; +const IN_PROGRESS_MARKER = 1; +const DONE_MARKER = 2; +const DONE_MAYBE_ROOT_CYCLE_MARKER = 3; +const DONE_AND_ROOT_MARKER = 4; + +class Node { + constructor(item) { + this.item = item; + this.dependencies = new Set(); + this.marker = NO_MARKER; + this.cycle = undefined; + this.incoming = 0; + } +} + +class Cycle { + constructor() { + this.nodes = new Set(); + } +} + +/** + * @typedef {Object} StackEntry + * @property {Node} node + * @property {Node[]} openEdges + */ + +/** + * @template T + * @param {Iterable} items list of items + * @param {function(T): Iterable} getDependencies function to get dependencies of an item (items that are not in list are ignored) + * @returns {Iterable} graph roots of the items + */ +module.exports = (items, getDependencies) => { + const itemToNode = new Map(); + for (const item of items) { + const node = new Node(item); + itemToNode.set(item, node); + } + + // early exit when there is only a single item + if (itemToNode.size <= 1) return items; + + // grab all the dependencies + for (const node of itemToNode.values()) { + for (const dep of getDependencies(node.item)) { + const depNode = itemToNode.get(dep); + if (depNode !== undefined) { + node.dependencies.add(depNode); + } + } + } + + // Set of current root modules + // items will be removed if a new reference to it has been found + /** @type {Set} */ + const roots = new Set(); + + // Set of current cycles without references to it + // cycles will be removed if a new reference to it has been found + // that is not part of the cycle + /** @type {Set} */ + const rootCycles = new Set(); + + // For all non-marked nodes + for (const selectedNode of itemToNode.values()) { + if (selectedNode.marker === NO_MARKER) { + // deep-walk all referenced modules + // in a non-recursive way + + // start by entering the selected node + selectedNode.marker = IN_PROGRESS_MARKER; + + // keep a stack to avoid recursive walk + /** @type {StackEntry[]} */ + const stack = [ + { + node: selectedNode, + openEdges: Array.from(selectedNode.dependencies) + } + ]; + + // process the top item until stack is empty + while (stack.length > 0) { + const topOfStack = stack[stack.length - 1]; + + // Are there still edges unprocessed in the current node? + if (topOfStack.openEdges.length > 0) { + // Process one dependency + const dependency = topOfStack.openEdges.pop(); + switch (dependency.marker) { + case NO_MARKER: + // dependency has not be visited yet + // mark it as in-progress and recurse + stack.push({ + node: dependency, + openEdges: Array.from(dependency.dependencies) + }); + dependency.marker = IN_PROGRESS_MARKER; + break; + case IN_PROGRESS_MARKER: { + // It's a in-progress cycle + let cycle = dependency.cycle; + if (!cycle) { + cycle = new Cycle(); + cycle.nodes.add(dependency); + dependency.cycle = cycle; + } + // set cycle property for each node in the cycle + // if nodes are already part of a cycle + // we merge the cycles to a shared cycle + for ( + let i = stack.length - 1; + stack[i].node !== dependency; + i-- + ) { + const node = stack[i].node; + if (node.cycle) { + if (node.cycle !== cycle) { + // merge cycles + for (const cycleNode of node.cycle.nodes) { + cycleNode.cycle = cycle; + cycle.nodes.add(cycleNode); + } + } + } else { + node.cycle = cycle; + cycle.nodes.add(node); + } + } + // don't recurse into dependencies + // these are already on the stack + break; + } + case DONE_AND_ROOT_MARKER: + // This node has be visited yet and is currently a root node + // But as this is a new reference to the node + // it's not really a root + // so we have to convert it to a normal node + dependency.marker = DONE_MARKER; + roots.delete(dependency); + break; + case DONE_MAYBE_ROOT_CYCLE_MARKER: + // This node has be visited yet and + // is maybe currently part of a completed root cycle + // we found a new reference to the cycle + // so it's not really a root cycle + // remove the cycle from the root cycles + // and convert it to a normal node + rootCycles.delete(dependency.cycle); + dependency.marker = DONE_MARKER; + break; + // DONE_MARKER: nothing to do, don't recurse into dependencies + } + } else { + // All dependencies of the current node has been visited + // we leave the node + stack.pop(); + topOfStack.node.marker = DONE_MARKER; + } + } + const cycle = selectedNode.cycle; + if (cycle) { + for (const node of cycle.nodes) { + node.marker = DONE_MAYBE_ROOT_CYCLE_MARKER; + } + rootCycles.add(cycle); + } else { + selectedNode.marker = DONE_AND_ROOT_MARKER; + roots.add(selectedNode); + } + } + } + + // Extract roots from root cycles + // We take the nodes with most incoming edges + // inside of the cycle + for (const cycle of rootCycles) { + let max = 0; + const cycleRoots = new Set(); + const nodes = cycle.nodes; + for (const node of nodes) { + for (const dep of node.dependencies) { + if (nodes.has(dep)) { + dep.incoming++; + if (dep.incoming < max) continue; + if (dep.incoming > max) { + cycleRoots.clear(); + max = dep.incoming; + } + cycleRoots.add(dep); + } + } + } + for (const cycleRoot of cycleRoots) { + roots.add(cycleRoot); + } + } + + // When roots were found, return them + if (roots.size > 0) { + return Array.from(roots, r => r.item); + } else { + throw new Error("Implementation of findGraphRoots is broken"); + } +}; diff --git a/schemas/WebpackOptions.json b/schemas/WebpackOptions.json index 436990645..e2f1f7c98 100644 --- a/schemas/WebpackOptions.json +++ b/schemas/WebpackOptions.json @@ -1745,6 +1745,10 @@ "description": "add the origins of chunks and chunk merging info", "type": "boolean" }, + "chunkRootModules": { + "description": "add root modules information to chunk information", + "type": "boolean" + }, "chunks": { "description": "add chunk information", "type": "boolean" diff --git a/test/__snapshots__/StatsTestCases.test.js.snap b/test/__snapshots__/StatsTestCases.test.js.snap index e548635ec..a0433bfed 100644 --- a/test/__snapshots__/StatsTestCases.test.js.snap +++ b/test/__snapshots__/StatsTestCases.test.js.snap @@ -7,10 +7,10 @@ Child fitting: Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 6d4f975750019bac00ab.js 1.91 KiB 1 [emitted] - 8189b08cd27e9a402cfd.js 1.91 KiB 2 [emitted] - 99d11b1aa4205fde5855.js 1.07 KiB 0 [emitted] - e4b61b9eec97b86b9f8d.js 10.2 KiB 3 [emitted] + 6d4f975750019bac00ab.js 1.91 KiB {1} [emitted] + 8189b08cd27e9a402cfd.js 1.91 KiB {2} [emitted] + 99d11b1aa4205fde5855.js 1.07 KiB {0} [emitted] + e4b61b9eec97b86b9f8d.js 10.2 KiB {3} [emitted] Entrypoint main = 6d4f975750019bac00ab.js 8189b08cd27e9a402cfd.js e4b61b9eec97b86b9f8d.js chunk {0} 99d11b1aa4205fde5855.js 916 bytes <{1}> <{2}> <{3}> > ./g [4] ./index.js 7:0-13 @@ -28,16 +28,16 @@ Child fitting: [3] ./e.js 899 bytes {3} [built] [4] ./index.js 111 bytes {3} [built] [6] ./f.js 900 bytes {3} [built] - + 7 hidden modules + + 7 hidden chunk modules Child content-change: Hash: 54aaa53b6ce07e328cf3 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 6d4f975750019bac00ab.js 1.91 KiB 1 [emitted] - 8189b08cd27e9a402cfd.js 1.91 KiB 2 [emitted] - 99d11b1aa4205fde5855.js 1.07 KiB 0 [emitted] - e4b61b9eec97b86b9f8d.js 10.2 KiB 3 [emitted] + 6d4f975750019bac00ab.js 1.91 KiB {1} [emitted] + 8189b08cd27e9a402cfd.js 1.91 KiB {2} [emitted] + 99d11b1aa4205fde5855.js 1.07 KiB {0} [emitted] + e4b61b9eec97b86b9f8d.js 10.2 KiB {3} [emitted] Entrypoint main = 6d4f975750019bac00ab.js 8189b08cd27e9a402cfd.js e4b61b9eec97b86b9f8d.js chunk {0} 99d11b1aa4205fde5855.js 916 bytes <{1}> <{2}> <{3}> > ./g [4] ./index.js 7:0-13 @@ -55,26 +55,26 @@ Child content-change: [3] ./e.js 899 bytes {3} [built] [4] ./index.js 111 bytes {3} [built] [6] ./f.js 900 bytes {3} [built] - + 7 hidden modules" + + 7 hidden chunk modules" `; exports[`StatsTestCases should print correct stats for aggressive-splitting-on-demand 1`] = ` "Hash: 0fbcd3a02808735be098 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT - Asset Size Chunks Chunk Names -0be5d8afac110f861b7d.js 1.91 KiB 6, 7 [emitted] -3081da5ca608c7b8a93a.js 1020 bytes 9 [emitted] -5327bae36ddcf26b92c8.js 7.28 KiB 10 [emitted] main -614403a53db789f4b5f3.js 1010 bytes 4 [emitted] -6645d08a80b36541ffaf.js 1.91 KiB 11 [emitted] -6763ff816950f818d0e4.js 1.91 KiB 5 [emitted] -6d4f975750019bac00ab.js 1.91 KiB 1 [emitted] -a4aed00646aacaeb7594.js 1.91 KiB 8 [emitted] -c755d3bdf3b21460ae16.js 1.91 KiB 3, 4 [emitted] -dab3048e1331e764f236.js 1.91 KiB 0 [emitted] -df46f76f59ed35c1e521.js 1.93 KiB 2 [emitted] -f07283992ef24d56c6e2.js 1010 bytes 7 [emitted] + Asset Size Chunks Chunk Names +0be5d8afac110f861b7d.js 1.91 KiB {6}, {7} [emitted] +3081da5ca608c7b8a93a.js 1020 bytes {9} [emitted] +5327bae36ddcf26b92c8.js 7.28 KiB {10} [emitted] main +614403a53db789f4b5f3.js 1010 bytes {4} [emitted] +6645d08a80b36541ffaf.js 1.91 KiB {11} [emitted] +6763ff816950f818d0e4.js 1.91 KiB {5} [emitted] +6d4f975750019bac00ab.js 1.91 KiB {1} [emitted] +a4aed00646aacaeb7594.js 1.91 KiB {8} [emitted] +c755d3bdf3b21460ae16.js 1.91 KiB {3}, {4} [emitted] +dab3048e1331e764f236.js 1.91 KiB {0} [emitted] +df46f76f59ed35c1e521.js 1.93 KiB {2} [emitted] +f07283992ef24d56c6e2.js 1010 bytes {7} [emitted] Entrypoint main = 5327bae36ddcf26b92c8.js chunk {0} dab3048e1331e764f236.js 1.76 KiB <{10}> ={2}= ={3}= ={4}= ={5}= ={7}= [recorded] aggressive splitted > ./b ./d ./e ./f ./g [11] ./index.js 5:0-44 @@ -120,7 +120,7 @@ chunk {9} 3081da5ca608c7b8a93a.js 899 bytes <{10}> chunk {10} 5327bae36ddcf26b92c8.js (main) 248 bytes (javascript) 3.88 KiB (runtime) >{0}< >{1}< >{2}< >{3}< >{4}< >{5}< >{6}< >{7}< >{8}< >{9}< >{11}< [entry] [rendered] > ./index main [11] ./index.js 248 bytes {10} [built] - + 4 hidden modules + + 4 hidden chunk modules chunk {11} 6645d08a80b36541ffaf.js 1.76 KiB <{10}> ={2}= ={6}= [rendered] [recorded] aggressive splitted > ./f ./g ./h ./i ./j ./k [11] ./index.js 4:0-51 [6] ./h.js 899 bytes {3} {11} [built] @@ -132,7 +132,7 @@ exports[`StatsTestCases should print correct stats for async-commons-chunk 1`] = chunk {0} main.js (main) 515 bytes (javascript) 3.6 KiB (runtime) >{1}< >{2}< >{3}< [entry] [rendered] > ./ main [0] ./index.js 515 bytes {0} [built] - + 4 hidden modules + + 4 hidden root modules chunk {1} 1.js 21 bytes <{0}> ={2}= ={3}= [rendered] reused as split chunk (cache group: default) > [0] ./index.js 17:1-21:3 > [0] ./index.js 2:1-5:3 @@ -155,60 +155,38 @@ exports[`StatsTestCases should print correct stats for async-commons-chunk-auto chunk {0} disabled/main.js (main) 147 bytes (javascript) 4.53 KiB (runtime) >{2}< >{3}< >{5}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} disabled/a.js (a) 216 bytes (javascript) 4.49 KiB (runtime) >{7}< [entry] [rendered] > ./a a [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - [2] ./d.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [3] ./node_modules/x.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [4] ./node_modules/y.js 20 bytes {1} {2} {3} {4} [built] - + 7 hidden modules + + 7 hidden root modules + + 3 hidden dependent modules chunk {2} disabled/async-a.js (async-a) 216 bytes <{0}> >{7}< [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - [2] ./d.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [3] ./node_modules/x.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [4] ./node_modules/y.js 20 bytes {1} {2} {3} {4} [built] + + 3 hidden dependent modules chunk {3} disabled/async-b.js (async-b) 152 bytes <{0}> [rendered] > ./b [0] ./index.js 2:0-47 - [2] ./d.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [3] ./node_modules/x.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [4] ./node_modules/y.js 20 bytes {1} {2} {3} {4} [built] [5] ./b.js 72 bytes {3} {4} [built] - [6] ./f.js 20 bytes {3} {4} {5} {6} {7} [built] + + 4 hidden dependent modules chunk {4} disabled/b.js (b) 152 bytes (javascript) 279 bytes (runtime) [entry] [rendered] > ./b b - [2] ./d.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [3] ./node_modules/x.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [4] ./node_modules/y.js 20 bytes {1} {2} {3} {4} [built] [5] ./b.js 72 bytes {3} {4} [built] - [6] ./f.js 20 bytes {3} {4} {5} {6} {7} [built] - + 1 hidden module + + 1 hidden root module + + 4 hidden dependent modules chunk {5} disabled/async-c.js (async-c) 167 bytes <{0}> [rendered] > ./c [0] ./index.js 3:0-47 - [2] ./d.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [3] ./node_modules/x.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [6] ./f.js 20 bytes {3} {4} {5} {6} {7} [built] [7] ./c.js + 1 modules 107 bytes {5} {6} [built] - | ./node_modules/z.js 20 bytes [built] - | ./c.js 72 bytes [built] + + 3 hidden dependent modules chunk {6} disabled/c.js (c) 167 bytes (javascript) 888 bytes (runtime) [entry] [rendered] > ./c c - [2] ./d.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [3] ./node_modules/x.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [6] ./f.js 20 bytes {3} {4} {5} {6} {7} [built] [7] ./c.js + 1 modules 107 bytes {5} {6} [built] - | ./node_modules/z.js 20 bytes [built] - | ./c.js 72 bytes [built] - + 3 hidden modules + + 3 hidden root modules + + 3 hidden dependent modules chunk {7} disabled/async-g.js (async-g) 54 bytes <{1}> <{2}> [rendered] - > ./g [] 6:0-47 - [6] ./f.js 20 bytes {3} {4} {5} {6} {7} [built] + > ./g [] ./a.js 6:0-47 [8] ./g.js 34 bytes {7} [built] + + 1 hidden dependent module Child default: Entrypoint main = default/main.js Entrypoint a = default/a.js @@ -217,21 +195,15 @@ Child default: chunk {0} default/main.js (main) 147 bytes (javascript) 4.67 KiB (runtime) >{1}< >{3}< >{6}< >{7}< >{8}< >{9}< >{10}< >{11}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} default/async-a.js (async-a) 156 bytes <{0}> ={3}= ={6}= ={7}= >{9}< >{12}< [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] chunk {2} default/a.js (a) 216 bytes (javascript) 4.54 KiB (runtime) >{9}< >{12}< [entry] [rendered] > ./a a [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - [2] ./d.js 20 bytes {2} {3} {4} {5} [built] - [3] ./node_modules/x.js 20 bytes {2} {4} {5} {6} [built] - [4] ./node_modules/y.js 20 bytes {2} {4} {7} [built] - + 7 hidden modules + + 7 hidden root modules + + 3 hidden dependent modules chunk {3} default/async-a~async-b~async-c.js (async-a~async-b~async-c) 20 bytes <{0}> ={1}= ={6}= ={7}= ={8}= ={9}= ={10}= ={11}= >{9}< >{12}< [rendered] split chunk (cache group: default) (name: async-a~async-b~async-c) > ./a [0] ./index.js 1:0-47 > ./b [0] ./index.js 2:0-47 @@ -239,20 +211,14 @@ Child default: [2] ./d.js 20 bytes {2} {3} {4} {5} [built] chunk {4} default/b.js (b) 152 bytes (javascript) 279 bytes (runtime) [entry] [rendered] > ./b b - [2] ./d.js 20 bytes {2} {3} {4} {5} [built] - [3] ./node_modules/x.js 20 bytes {2} {4} {5} {6} [built] - [4] ./node_modules/y.js 20 bytes {2} {4} {7} [built] [5] ./b.js 72 bytes {4} {8} [built] - [6] ./f.js 20 bytes {4} {5} {9} [built] - + 1 hidden module + + 1 hidden root module + + 4 hidden dependent modules chunk {5} default/c.js (c) 152 bytes (javascript) 279 bytes (runtime) [entry] [rendered] > ./c c - [2] ./d.js 20 bytes {2} {3} {4} {5} [built] - [3] ./node_modules/x.js 20 bytes {2} {4} {5} {6} [built] - [6] ./f.js 20 bytes {4} {5} {9} [built] [7] ./c.js 72 bytes {5} {10} [built] - [8] ./node_modules/z.js 20 bytes {5} {11} [built] - + 1 hidden module + + 1 hidden root module + + 4 hidden dependent modules chunk {6} default/vendors~async-a~async-b~async-c.js (vendors~async-a~async-b~async-c) 20 bytes <{0}> ={1}= ={3}= ={7}= ={8}= ={9}= ={10}= ={11}= >{9}< >{12}< [rendered] split chunk (cache group: defaultVendors) (name: vendors~async-a~async-b~async-c) > ./a [0] ./index.js 1:0-47 > ./b [0] ./index.js 2:0-47 @@ -268,7 +234,7 @@ Child default: chunk {9} default/async-b~async-c~async-g.js (async-b~async-c~async-g) 20 bytes <{0}> <{1}> <{2}> <{3}> <{6}> <{7}> ={3}= ={6}= ={7}= ={8}= ={10}= ={11}= ={12}= [rendered] split chunk (cache group: default) (name: async-b~async-c~async-g) > ./b [0] ./index.js 2:0-47 > ./c [0] ./index.js 3:0-47 - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [6] ./f.js 20 bytes {4} {5} {9} [built] chunk {10} default/async-c.js (async-c) 72 bytes <{0}> ={3}= ={6}= ={9}= ={11}= [rendered] > ./c [0] ./index.js 3:0-47 @@ -277,7 +243,7 @@ Child default: > ./c [0] ./index.js 3:0-47 [8] ./node_modules/z.js 20 bytes {5} {11} [built] chunk {12} default/async-g.js (async-g) 34 bytes <{1}> <{2}> <{3}> <{6}> <{7}> ={9}= [rendered] - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [9] ./g.js 34 bytes {12} [built] Child vendors: Entrypoint main = vendors/main.js @@ -287,48 +253,34 @@ Child vendors: chunk {0} vendors/main.js (main) 147 bytes (javascript) 4.52 KiB (runtime) >{2}< >{3}< >{4}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} vendors/a.js (a) 176 bytes (javascript) 5.44 KiB (runtime) ={7}= >{8}< [entry] [rendered] > ./a a [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - [2] ./d.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - + 7 hidden modules + + 7 hidden root modules + + 1 hidden dependent module chunk {2} vendors/async-a.js (async-a) 216 bytes <{0}> >{8}< [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - [2] ./d.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [3] ./node_modules/x.js 20 bytes {2} {3} {4} {7} [built] - [4] ./node_modules/y.js 20 bytes {2} {3} {7} [built] + + 3 hidden dependent modules chunk {3} vendors/async-b.js (async-b) 152 bytes <{0}> [rendered] > ./b [0] ./index.js 2:0-47 - [2] ./d.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [3] ./node_modules/x.js 20 bytes {2} {3} {4} {7} [built] - [4] ./node_modules/y.js 20 bytes {2} {3} {7} [built] [5] ./b.js 72 bytes {3} {5} [built] - [6] ./f.js 20 bytes {3} {4} {5} {6} {8} [built] + + 4 hidden dependent modules chunk {4} vendors/async-c.js (async-c) 152 bytes <{0}> [rendered] > ./c [0] ./index.js 3:0-47 - [2] ./d.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [3] ./node_modules/x.js 20 bytes {2} {3} {4} {7} [built] - [6] ./f.js 20 bytes {3} {4} {5} {6} {8} [built] [7] ./c.js 72 bytes {4} {6} [built] - [8] ./node_modules/z.js 20 bytes {4} {7} [built] + + 4 hidden dependent modules chunk {5} vendors/b.js (b) 112 bytes (javascript) 2.52 KiB (runtime) ={7}= [entry] [rendered] > ./b b - [2] ./d.js 20 bytes {1} {2} {3} {4} {5} {6} [built] [5] ./b.js 72 bytes {3} {5} [built] - [6] ./f.js 20 bytes {3} {4} {5} {6} {8} [built] - + 2 hidden modules + + 2 hidden root modules + + 2 hidden dependent modules chunk {6} vendors/c.js (c) 112 bytes (javascript) 2.52 KiB (runtime) ={7}= [entry] [rendered] > ./c c - [2] ./d.js 20 bytes {1} {2} {3} {4} {5} {6} [built] - [6] ./f.js 20 bytes {3} {4} {5} {6} {8} [built] [7] ./c.js 72 bytes {4} {6} [built] - + 2 hidden modules + + 2 hidden root modules + + 2 hidden dependent modules chunk {7} vendors/vendors.js (vendors) 60 bytes ={1}= ={5}= ={6}= >{8}< [initial] [rendered] split chunk (cache group: vendors) (name: vendors) > ./a a > ./b b @@ -337,9 +289,9 @@ Child vendors: [4] ./node_modules/y.js 20 bytes {2} {3} {7} [built] [8] ./node_modules/z.js 20 bytes {4} {7} [built] chunk {8} vendors/async-g.js (async-g) 54 bytes <{1}> <{2}> <{7}> [rendered] - > ./g [] 6:0-47 - [6] ./f.js 20 bytes {3} {4} {5} {6} {8} [built] + > ./g [] ./a.js 6:0-47 [9] ./g.js 34 bytes {8} [built] + + 1 hidden dependent module Child multiple-vendors: Entrypoint main = multiple-vendors/main.js Entrypoint a = multiple-vendors/vendors~a~async-a~async-b~async-c~b~c.js multiple-vendors/vendors~a~async-a~async-b~b.js multiple-vendors/a~async-a~async-b~async-c~b~c.js multiple-vendors/a.js @@ -348,18 +300,14 @@ Child multiple-vendors: chunk {0} multiple-vendors/main.js (main) 147 bytes (javascript) 4.7 KiB (runtime) >{2}< >{3}< >{4}< >{5}< >{6}< >{8}< >{10}< >{11}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} multiple-vendors/a.js (a) 156 bytes (javascript) 5.49 KiB (runtime) ={3}= ={4}= ={5}= >{8}< >{12}< [entry] [rendered] > ./a a [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - + 7 hidden modules + + 7 hidden root modules chunk {2} multiple-vendors/async-a.js (async-a) 156 bytes <{0}> ={3}= ={4}= ={5}= >{8}< >{12}< [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] chunk {3} multiple-vendors/a~async-a~async-b~async-c~b~c.js (a~async-a~async-b~async-c~b~c) 20 bytes <{0}> ={1}= ={2}= ={4}= ={5}= ={6}= ={7}= ={8}= ={9}= ={10}= ={11}= >{8}< >{12}< [initial] [rendered] split chunk (cache group: default) (name: a~async-a~async-b~async-c~b~c) > ./a [0] ./index.js 1:0-47 > ./b [0] ./index.js 2:0-47 @@ -388,18 +336,18 @@ Child multiple-vendors: chunk {7} multiple-vendors/b.js (b) 92 bytes (javascript) 2.54 KiB (runtime) ={3}= ={4}= ={5}= [entry] [rendered] > ./b b [5] ./b.js 72 bytes {6} {7} [built] - [6] ./f.js 20 bytes {7} {8} {9} [built] - + 2 hidden modules + + 2 hidden root modules + + 1 hidden dependent module chunk {8} multiple-vendors/async-b~async-c~async-g.js (async-b~async-c~async-g) 20 bytes <{0}> <{1}> <{2}> <{3}> <{4}> <{5}> ={3}= ={4}= ={5}= ={6}= ={10}= ={11}= ={12}= [rendered] split chunk (cache group: default) (name: async-b~async-c~async-g) > ./b [0] ./index.js 2:0-47 > ./c [0] ./index.js 3:0-47 - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [6] ./f.js 20 bytes {7} {8} {9} [built] chunk {9} multiple-vendors/c.js (c) 92 bytes (javascript) 2.54 KiB (runtime) ={3}= ={4}= ={11}= [entry] [rendered] > ./c c - [6] ./f.js 20 bytes {7} {8} {9} [built] [7] ./c.js 72 bytes {9} {10} [built] - + 2 hidden modules + + 2 hidden root modules + + 1 hidden dependent module chunk {10} multiple-vendors/async-c.js (async-c) 72 bytes <{0}> ={3}= ={4}= ={8}= ={11}= [rendered] > ./c [0] ./index.js 3:0-47 [7] ./c.js 72 bytes {9} {10} [built] @@ -408,7 +356,7 @@ Child multiple-vendors: > ./c c [8] ./node_modules/z.js 20 bytes {11} [built] chunk {12} multiple-vendors/async-g.js (async-g) 34 bytes <{1}> <{2}> <{3}> <{4}> <{5}> ={8}= [rendered] - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [9] ./g.js 34 bytes {12} [built] Child all: Entrypoint main = all/main.js @@ -418,18 +366,14 @@ Child all: chunk {0} all/main.js (main) 147 bytes (javascript) 4.69 KiB (runtime) >{2}< >{3}< >{4}< >{5}< >{6}< >{8}< >{10}< >{11}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} all/a.js (a) 156 bytes (javascript) 5.48 KiB (runtime) ={3}= ={4}= ={5}= >{8}< >{12}< [entry] [rendered] > ./a a [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - + 7 hidden modules + + 7 hidden root modules chunk {2} all/async-a.js (async-a) 156 bytes <{0}> ={3}= ={4}= ={5}= >{8}< >{12}< [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] chunk {3} all/a~async-a~async-b~async-c~b~c.js (a~async-a~async-b~async-c~b~c) 20 bytes <{0}> ={1}= ={2}= ={4}= ={5}= ={6}= ={7}= ={8}= ={9}= ={10}= ={11}= >{8}< >{12}< [initial] [rendered] split chunk (cache group: default) (name: a~async-a~async-b~async-c~b~c) > ./a [0] ./index.js 1:0-47 > ./b [0] ./index.js 2:0-47 @@ -458,18 +402,18 @@ Child all: chunk {7} all/b.js (b) 92 bytes (javascript) 2.54 KiB (runtime) ={3}= ={4}= ={5}= [entry] [rendered] > ./b b [5] ./b.js 72 bytes {6} {7} [built] - [6] ./f.js 20 bytes {7} {8} {9} [built] - + 2 hidden modules + + 2 hidden root modules + + 1 hidden dependent module chunk {8} all/async-b~async-c~async-g.js (async-b~async-c~async-g) 20 bytes <{0}> <{1}> <{2}> <{3}> <{4}> <{5}> ={3}= ={4}= ={5}= ={6}= ={10}= ={11}= ={12}= [rendered] split chunk (cache group: default) (name: async-b~async-c~async-g) > ./b [0] ./index.js 2:0-47 > ./c [0] ./index.js 3:0-47 - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [6] ./f.js 20 bytes {7} {8} {9} [built] chunk {9} all/c.js (c) 92 bytes (javascript) 2.54 KiB (runtime) ={3}= ={4}= ={11}= [entry] [rendered] > ./c c - [6] ./f.js 20 bytes {7} {8} {9} [built] [7] ./c.js 72 bytes {9} {10} [built] - + 2 hidden modules + + 2 hidden root modules + + 1 hidden dependent module chunk {10} all/async-c.js (async-c) 72 bytes <{0}> ={3}= ={4}= ={8}= ={11}= [rendered] > ./c [0] ./index.js 3:0-47 [7] ./c.js 72 bytes {9} {10} [built] @@ -478,7 +422,7 @@ Child all: > ./c c [8] ./node_modules/z.js 20 bytes {11} [built] chunk {12} all/async-g.js (async-g) 34 bytes <{1}> <{2}> <{3}> <{4}> <{5}> ={8}= [rendered] - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [9] ./g.js 34 bytes {12} [built]" `; @@ -487,8 +431,8 @@ exports[`StatsTestCases should print correct stats for chunk-module-id-range 1`] Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main1.js 2.99 KiB 1 [emitted] main1 -main2.js 2.98 KiB 0 [emitted] main2 +main1.js 2.99 KiB {1} [emitted] main1 +main2.js 2.98 KiB {0} [emitted] main2 Entrypoint main1 = main1.js Entrypoint main2 = main2.js chunk {0} main2.js (main2) 136 bytes (javascript) 279 bytes (runtime) [entry] [rendered] @@ -498,7 +442,7 @@ chunk {0} main2.js (main2) 136 bytes (javascript) 279 bytes (runtime) [entry] [2] ./f.js 20 bytes {0} [built] [3] ./main2.js 56 bytes {0} [built] [101] ./a.js 20 bytes {0} {1} [built] - + 1 hidden module + + 1 hidden chunk module chunk {1} main1.js (main1) 136 bytes (javascript) 279 bytes (runtime) [entry] [rendered] > ./main1 main1 [0] ./d.js 20 bytes {0} {1} [built] @@ -506,7 +450,7 @@ chunk {1} main1.js (main1) 136 bytes (javascript) 279 bytes (runtime) [entry] [100] ./main1.js 56 bytes {1} [built] [101] ./a.js 20 bytes {0} {1} [built] [102] ./b.js 20 bytes {1} [built] - + 1 hidden module" + + 1 hidden chunk module" `; exports[`StatsTestCases should print correct stats for chunks 1`] = ` @@ -514,10 +458,10 @@ exports[`StatsTestCases should print correct stats for chunks 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -1.bundle.js 143 bytes 1 [emitted] -2.bundle.js 305 bytes 2 [emitted] -3.bundle.js 214 bytes 3 [emitted] - bundle.js 5.86 KiB 0 [emitted] main +1.bundle.js 143 bytes {1} [emitted] +2.bundle.js 305 bytes {2} [emitted] +3.bundle.js 214 bytes {3} [emitted] + bundle.js 5.86 KiB {0} [emitted] main Entrypoint main = bundle.js chunk {0} bundle.js (main) 73 bytes (javascript) 3.59 KiB (runtime) >{1}< >{2}< [entry] [rendered] > ./index main @@ -527,7 +471,7 @@ chunk {0} bundle.js (main) 73 bytes (javascript) 3.59 KiB (runtime) >{1}< >{2 [1] ./a.js 22 bytes {0} [built] cjs require ./a [0] ./index.js 1:0-14 [0] Xms -> Xms (resolving: Xms, restoring: Xms, integration: Xms, building: Xms, storing: Xms) - + 4 hidden modules + + 4 hidden chunk modules chunk {1} 1.bundle.js 22 bytes <{0}> [rendered] > ./b [0] ./index.js 2:0-16 [2] ./b.js 22 bytes {1} [built] @@ -553,10 +497,10 @@ exports[`StatsTestCases should print correct stats for chunks-development 1`] = Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -0.bundle.js 680 bytes 0 [emitted] -b.bundle.js 326 bytes b [emitted] - bundle.js 6.38 KiB main [emitted] main -c.bundle.js 523 bytes c [emitted] +0.bundle.js 680 bytes {0} [emitted] +b.bundle.js 326 bytes {b} [emitted] + bundle.js 6.38 KiB {main} [emitted] main +c.bundle.js 523 bytes {c} [emitted] Entrypoint main = bundle.js chunk {0} 0.bundle.js 60 bytes <{c}> [rendered] > [./c.js] ./c.js 1:0-52 @@ -585,14 +529,14 @@ chunk {main} bundle.js (main) 3.59 KiB (runtime) 73 bytes (javascript) >{b}< >{c [./index.js] 51 bytes {main} [built] entry ./index main Xms (resolving: Xms, restoring: Xms, integration: Xms, building: Xms, storing: Xms) - + 4 hidden modules" + + 4 hidden chunk modules" `; exports[`StatsTestCases should print correct stats for circular-correctness 1`] = ` "Entrypoint main = bundle.js chunk {0} bundle.js (main) 98 bytes (javascript) 4.83 KiB (runtime) >{1}< >{2}< [entry] [rendered] [0] ./index.js 98 bytes {0} [built] - + 7 hidden modules + + 7 hidden chunk modules chunk {1} 1.bundle.js (a) 49 bytes <{0}> <{3}> >{3}< [rendered] [1] ./module-a.js 49 bytes {1} [built] chunk {2} 2.bundle.js (b) 49 bytes <{0}> <{3}> >{3}< [rendered] @@ -606,7 +550,7 @@ exports[`StatsTestCases should print correct stats for color-disabled 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main.js 1.18 KiB 0 [emitted] main +main.js 1.18 KiB {0} [emitted] main Entrypoint main = main.js [0] ./index.js 0 bytes {0} [built]" `; @@ -616,7 +560,7 @@ exports[`StatsTestCases should print correct stats for color-enabled 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main.js 1.18 KiB 0 [emitted] main +main.js 1.18 KiB {0} [emitted] main Entrypoint main = main.js [0] ./index.js 0 bytes {0} [built]" `; @@ -626,7 +570,7 @@ exports[`StatsTestCases should print correct stats for color-enabled-custom 1`] Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main.js 1.18 KiB 0 [emitted] main +main.js 1.18 KiB {0} [emitted] main Entrypoint main = main.js [0] ./index.js 0 bytes {0} [built]" `; @@ -636,8 +580,8 @@ exports[`StatsTestCases should print correct stats for commons-chunk-min-size-0 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - entry-1.js 4.29 KiB 0 [emitted] entry-1 -vendor-1~entry-1.js 287 bytes 1 [emitted] vendor-1~entry-1 + entry-1.js 4.29 KiB {0} [emitted] entry-1 +vendor-1~entry-1.js 287 bytes {1} [emitted] vendor-1~entry-1 Entrypoint entry-1 = vendor-1~entry-1.js entry-1.js [0] ./entry-1.js 145 bytes {0} [built] [1] ./modules/a.js 22 bytes {1} [built] @@ -654,8 +598,8 @@ exports[`StatsTestCases should print correct stats for commons-chunk-min-size-In Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - entry-1.js 4.29 KiB 0 [emitted] entry-1 -vendor-1.js 287 bytes 1 [emitted] vendor-1 + entry-1.js 4.29 KiB {0} [emitted] entry-1 +vendor-1.js 287 bytes {1} [emitted] vendor-1 Entrypoint entry-1 = vendor-1.js entry-1.js [0] ./entry-1.js 145 bytes {0} [built] [1] ./modules/a.js 22 bytes {1} [built] @@ -674,28 +618,22 @@ Child Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - app.js 5.51 KiB 1 [emitted] app - vendor.js 627 bytes 0 [emitted] vendor + app.js 5.51 KiB {1} [emitted] app + vendor.js 627 bytes {0} [emitted] vendor Entrypoint app = vendor.js app.js [./constants.js] 87 bytes {0} [built] [./entry-1.js] ./entry-1.js + 2 modules 190 bytes {1} [built] - | ./submodule-a.js 59 bytes [built] - | ./submodule-b.js 59 bytes [built] - | ./entry-1.js 67 bytes [built] + 4 hidden modules Child Hash: fcc40386d67027c1e7ef Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - app.js 5.53 KiB 1 [emitted] app - vendor.js 627 bytes 0 [emitted] vendor + app.js 5.53 KiB {1} [emitted] app + vendor.js 627 bytes {0} [emitted] vendor Entrypoint app = vendor.js app.js [./constants.js] 87 bytes {0} [built] [./entry-2.js] ./entry-2.js + 2 modules 197 bytes {1} [built] - | ./submodule-a.js 59 bytes [built] - | ./submodule-c.js 66 bytes [built] - | ./entry-2.js 67 bytes [built] + 4 hidden modules" `; @@ -724,7 +662,7 @@ Child Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - main.js 1.21 KiB 0 [emitted] main + main.js 1.21 KiB {0} [emitted] main Entrypoint main = main.js [0] ./index.js 24 bytes {0} [built] Child @@ -732,7 +670,7 @@ Child Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - main.js 1.21 KiB 0 [emitted] main + main.js 1.21 KiB {0} [emitted] main Entrypoint main = main.js [0] ./index.js 24 bytes {0} [built] Child @@ -740,7 +678,7 @@ Child Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - main.js 1.21 KiB 0 [emitted] main + main.js 1.21 KiB {0} [emitted] main Entrypoint main = main.js [0] ./index.js 24 bytes {0} [built]" `; @@ -750,7 +688,7 @@ exports[`StatsTestCases should print correct stats for dll-reference-plugin-issu Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -bundle.js 1.21 KiB 0 [emitted] main +bundle.js 1.21 KiB {0} [emitted] main Entrypoint main = bundle.js [0] ./entry.js 29 bytes {0} [built]" `; @@ -760,7 +698,7 @@ exports[`StatsTestCases should print correct stats for dll-reference-plugin-issu Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -bundle.js 1.21 KiB 0 main +bundle.js 1.21 KiB {0} main Entrypoint main = bundle.js [0] ./entry.js 29 bytes {0} [built] @@ -773,7 +711,7 @@ exports[`StatsTestCases should print correct stats for exclude-with-loader 1`] = Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -bundle.js 1.85 KiB 0 [emitted] main +bundle.js 1.85 KiB {0} [emitted] main + 1 hidden asset Entrypoint main = bundle.js [0] ./index.js 77 bytes {0} [built] @@ -786,7 +724,7 @@ exports[`StatsTestCases should print correct stats for external 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main.js 1.33 KiB 0 [emitted] main +main.js 1.33 KiB {0} [emitted] main Entrypoint main = main.js [0] ./index.js 17 bytes {0} [built] [1] external \\"test\\" 42 bytes {0} [built]" @@ -799,7 +737,7 @@ Child undefined: Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js WARNING in Terser Plugin: Dropping side-effect-free statement [./index.js:6,0] @@ -828,49 +766,49 @@ Child Terser: Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js Child /Terser/: Hash: 42b5b065d0606a3bb933 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js Child warnings => true: Hash: 42b5b065d0606a3bb933 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js Child [Terser]: Hash: 42b5b065d0606a3bb933 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js Child [/Terser/]: Hash: 42b5b065d0606a3bb933 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js Child [warnings => true]: Hash: 42b5b065d0606a3bb933 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js Child should not filter: Hash: 42b5b065d0606a3bb933 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js WARNING in Terser Plugin: Dropping side-effect-free statement [./index.js:6,0] @@ -899,7 +837,7 @@ Child /should not filter/: Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js WARNING in Terser Plugin: Dropping side-effect-free statement [./index.js:6,0] @@ -928,7 +866,7 @@ Child warnings => false: Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js WARNING in Terser Plugin: Dropping side-effect-free statement [./index.js:6,0] @@ -957,7 +895,7 @@ Child [should not filter]: Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js WARNING in Terser Plugin: Dropping side-effect-free statement [./index.js:6,0] @@ -986,7 +924,7 @@ Child [/should not filter/]: Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js WARNING in Terser Plugin: Dropping side-effect-free statement [./index.js:6,0] @@ -1015,7 +953,7 @@ Child [warnings => false]: Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 1.26 KiB 0 [emitted] main + bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js WARNING in Terser Plugin: Dropping side-effect-free statement [./index.js:6,0] @@ -1047,11 +985,11 @@ Entrypoint e2 = e2.js chunk {0} e1.js (e1) 49 bytes (javascript) 4.86 KiB (runtime) >{2}< [entry] [rendered] [0] ./e1.js 49 bytes {0} [built] entry ./e1 e1 - + 7 hidden modules + + 7 hidden chunk modules chunk {1} e2.js (e2) 49 bytes (javascript) 4.86 KiB (runtime) >{3}< [entry] [rendered] [1] ./e2.js 49 bytes {1} [built] entry ./e2 e2 - + 7 hidden modules + + 7 hidden chunk modules chunk {2} a.js (a) 49 bytes <{0}> <{3}> >{4}< [rendered] [2] ./module-a.js 49 bytes {2} [built] import() ./module-a [0] ./e1.js 1:0-47 @@ -1075,7 +1013,7 @@ chunk {0} e1.js (e1) 119 bytes (javascript) 5.19 KiB (runtime) >{2}< >{3}< [e harmony side effect evaluation ./module-x [0] ./e1.js 1:0-20 harmony side effect evaluation ./module-x [2] ./e2.js 1:0-20 import() ./module-x [6] ./module-b.js 2:0-20 - + 8 hidden modules + + 8 hidden chunk modules chunk {1} e2.js (e2) 119 bytes (javascript) 5.19 KiB (runtime) >{3}< >{4}< [entry] [rendered] [1] ./module-x.js 49 bytes {0} {1} [built] harmony side effect evaluation ./module-x [0] ./e1.js 1:0-20 @@ -1083,7 +1021,7 @@ chunk {1} e2.js (e2) 119 bytes (javascript) 5.19 KiB (runtime) >{3}< >{4}< [e import() ./module-x [6] ./module-b.js 2:0-20 [2] ./e2.js 70 bytes {1} [built] entry ./e2 e2 - + 8 hidden modules + + 8 hidden chunk modules chunk {2} a.js (a) 49 bytes <{0}> <{4}> >{5}< [rendered] [3] ./module-a.js 49 bytes {2} [built] import() ./module-a [0] ./e1.js 2:0-47 @@ -1100,15 +1038,41 @@ chunk {5} b.js (b) 179 bytes <{2}> >{4}< [rendered] import() ./module-b [3] ./module-a.js 1:0-47" `; +exports[`StatsTestCases should print correct stats for graph-roots 1`] = ` +"chunk {0} main.js (main) 426 bytes (javascript) 4.52 KiB (runtime) >{1}< >{2}< >{3}< >{4}< >{5}< [entry] [rendered] + [0] ./index.js 426 bytes {0} [built] + + 7 hidden root modules +chunk {1} tree.js (tree) 42 bytes <{0}> [rendered] + [1] ./tree/index.js 14 bytes {1} [built] + + 3 hidden dependent modules +chunk {2} trees.js (trees) 70 bytes <{0}> [rendered] + [5] ./trees/1.js 14 bytes {2} [built] + [9] ./trees/2.js 14 bytes {2} [built] + [10] ./trees/3.js 14 bytes {2} [built] + + 3 hidden dependent modules +chunk {3} cycle.js (cycle) 60 bytes <{0}> [rendered] + [11] ./cycle/index.js 14 bytes {3} [built] + [12] ./cycle/a.js 14 bytes {3} [built] + [13] ./cycle/b.js 14 bytes {3} [built] + [14] ./cycle/c.js 18 bytes {3} [built] +chunk {4} cycle2.js (cycle2) 78 bytes <{0}> [rendered] + [15] ./cycle2/index.js 14 bytes {4} [built] + + 3 hidden dependent modules +chunk {5} cycles.js (cycles) 156 bytes <{0}> [rendered] + [19] ./cycles/1/index.js 14 bytes {5} [built] + [23] ./cycles/2/index.js 14 bytes {5} [built] + + 6 hidden dependent modules" +`; + exports[`StatsTestCases should print correct stats for import-context-filter 1`] = ` "Hash: 09573a046ee58671566d Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.js 316 bytes 1 [emitted] - 2.js 316 bytes 2 [emitted] - 3.js 316 bytes 3 [emitted] -entry.js 7 KiB 0 [emitted] entry + 1.js 316 bytes {1} [emitted] + 2.js 316 bytes {2} [emitted] + 3.js 316 bytes {3} [emitted] +entry.js 7 KiB {0} [emitted] entry Entrypoint entry = entry.js [0] ./entry.js 450 bytes {0} [built] [1] ./templates lazy ^\\\\.\\\\/.*$ include: \\\\.js$ exclude: \\\\.noimport\\\\.js$ namespace object 160 bytes {0} [optional] [built] @@ -1123,8 +1087,8 @@ exports[`StatsTestCases should print correct stats for import-weak 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.js 149 bytes 1 [emitted] -entry.js 7.57 KiB 0 [emitted] entry + 1.js 149 bytes {1} [emitted] +entry.js 7.57 KiB {0} [emitted] entry Entrypoint entry = entry.js [0] ./entry.js 120 bytes {0} [built] [1] ./modules/b.js 22 bytes {1} [built] @@ -1160,10 +1124,10 @@ Child Hash: 2ba8ab3bffe8244542df Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT - Asset Size Chunks Chunk Names - a-all~main-e059d0c0be5c568a9457.js 139 bytes all~main [emitted] all~main - a-main-b428b5ce6ed1d3521fe6.js 108 bytes main [emitted] main - a-runtime~main-d36d034510d9cf767cba.js 3.83 KiB runtime~main [emitted] runtime~main + Asset Size Chunks Chunk Names + a-all~main-e059d0c0be5c568a9457.js 139 bytes {all~main} [emitted] all~main + a-main-b428b5ce6ed1d3521fe6.js 108 bytes {main} [emitted] main + a-runtime~main-d36d034510d9cf767cba.js 3.83 KiB {runtime~main} [emitted] runtime~main Entrypoint main = a-runtime~main-d36d034510d9cf767cba.js a-all~main-e059d0c0be5c568a9457.js a-main-b428b5ce6ed1d3521fe6.js [0] ./a.js 18 bytes {all~main} [built] + 1 hidden module @@ -1171,11 +1135,11 @@ Child Hash: 3a8dec11e3b521111383 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT - Asset Size Chunks Chunk Names - b-all~main-8b29ed2bccd5364b9a21.js 467 bytes all~main [emitted] all~main - b-main-16255158ee19b0bb829b.js 123 bytes main [emitted] main - b-runtime~main-01ce119541ec655ee18e.js 4.94 KiB runtime~main [emitted] runtime~main - b-vendors~main-03b96f1b9af0d680391c.js 157 bytes vendors~main [emitted] vendors~main + Asset Size Chunks Chunk Names + b-all~main-8b29ed2bccd5364b9a21.js 467 bytes {all~main} [emitted] all~main + b-main-16255158ee19b0bb829b.js 123 bytes {main} [emitted] main + b-runtime~main-01ce119541ec655ee18e.js 4.94 KiB {runtime~main} [emitted] runtime~main + b-vendors~main-03b96f1b9af0d680391c.js 157 bytes {vendors~main} [emitted] vendors~main Entrypoint main = b-runtime~main-01ce119541ec655ee18e.js b-vendors~main-03b96f1b9af0d680391c.js b-all~main-8b29ed2bccd5364b9a21.js b-main-16255158ee19b0bb829b.js [0] ./b.js 17 bytes {all~main} [built] [1] ./node_modules/vendor.js 23 bytes {vendors~main} [built] @@ -1184,12 +1148,12 @@ Child Hash: 55e761a26f320d15e9c9 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT - Asset Size Chunks Chunk Names - c-all~main-f8b48a056b34d9becf80.js 318 bytes all~main [emitted] all~main - c-b0-acaae4a329e5ce7a7d66.js 470 bytes b0 [emitted] - c-b1-418390a7cc4d15bf73c9.js 141 bytes b1 [emitted] - c-main-0f9606a49d6299b30678.js 122 bytes main [emitted] main - c-runtime~main-0aa080ec44109d9405fd.js 7.64 KiB runtime~main [emitted] runtime~main + Asset Size Chunks Chunk Names + c-all~main-f8b48a056b34d9becf80.js 318 bytes {all~main} [emitted] all~main + c-b0-acaae4a329e5ce7a7d66.js 470 bytes {b0} [emitted] + c-b1-418390a7cc4d15bf73c9.js 141 bytes {b1} [emitted] + c-main-0f9606a49d6299b30678.js 122 bytes {main} [emitted] main + c-runtime~main-0aa080ec44109d9405fd.js 7.64 KiB {runtime~main} [emitted] runtime~main Entrypoint main = c-runtime~main-0aa080ec44109d9405fd.js c-all~main-f8b48a056b34d9becf80.js c-main-0f9606a49d6299b30678.js (prefetch: c-b1-418390a7cc4d15bf73c9.js c-b0-acaae4a329e5ce7a7d66.js) [0] ./c.js 61 bytes {all~main} [built] [1] ./b.js 17 bytes {b0} [built] @@ -1204,7 +1168,7 @@ Child 1 chunks: Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - bundle.js 3.73 KiB 0 [emitted] main + bundle.js 3.73 KiB {0} [emitted] main Entrypoint main = bundle.js chunk {0} bundle.js (main) 219 bytes (javascript) 1.25 KiB (runtime) <{0}> >{0}< [entry] [rendered] [0] ./index.js 101 bytes {0} [built] @@ -1213,18 +1177,18 @@ Child 1 chunks: [3] ./c.js 30 bytes {0} [built] [4] ./d.js 22 bytes {0} [built] [5] ./e.js 22 bytes {0} [built] - + 3 hidden modules + + 3 hidden chunk modules Child 2 chunks: Hash: 639010b99ba9b72eeaf2 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.bundle.js 651 bytes 1 [emitted] c - bundle.js 7.4 KiB 0 [emitted] main + 1.bundle.js 651 bytes {1} [emitted] c + bundle.js 7.4 KiB {0} [emitted] main Entrypoint main = bundle.js chunk {0} bundle.js (main) 101 bytes (javascript) 4.83 KiB (runtime) >{1}< [entry] [rendered] [0] ./index.js 101 bytes {0} [built] - + 7 hidden modules + + 7 hidden chunk modules chunk {1} 1.bundle.js (c) 118 bytes <{0}> <{1}> >{1}< [rendered] [1] ./a.js 22 bytes {1} [built] [2] ./b.js 22 bytes {1} [built] @@ -1236,13 +1200,13 @@ Child 3 chunks: Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.bundle.js 513 bytes 1 [emitted] c - 2.bundle.js 214 bytes 2 [emitted] - bundle.js 7.4 KiB 0 [emitted] main + 1.bundle.js 513 bytes {1} [emitted] c + 2.bundle.js 214 bytes {2} [emitted] + bundle.js 7.4 KiB {0} [emitted] main Entrypoint main = bundle.js chunk {0} bundle.js (main) 101 bytes (javascript) 4.83 KiB (runtime) >{1}< [entry] [rendered] [0] ./index.js 101 bytes {0} [built] - + 7 hidden modules + + 7 hidden chunk modules chunk {1} 1.bundle.js (c) 74 bytes <{0}> >{2}< [rendered] [1] ./a.js 22 bytes {1} [built] [2] ./b.js 22 bytes {1} [built] @@ -1255,14 +1219,14 @@ Child 4 chunks: Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.bundle.js 218 bytes 1 [emitted] - 2.bundle.js 369 bytes 2 [emitted] c - 3.bundle.js 214 bytes 3 [emitted] - bundle.js 7.4 KiB 0 [emitted] main + 1.bundle.js 218 bytes {1} [emitted] + 2.bundle.js 369 bytes {2} [emitted] c + 3.bundle.js 214 bytes {3} [emitted] + bundle.js 7.4 KiB {0} [emitted] main Entrypoint main = bundle.js chunk {0} bundle.js (main) 101 bytes (javascript) 4.83 KiB (runtime) >{1}< >{2}< [entry] [rendered] [0] ./index.js 101 bytes {0} [built] - + 7 hidden modules + + 7 hidden chunk modules chunk {1} 1.bundle.js 44 bytes <{0}> [rendered] [1] ./a.js 22 bytes {1} [built] [2] ./b.js 22 bytes {1} [built] @@ -1278,7 +1242,7 @@ exports[`StatsTestCases should print correct stats for max-modules 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main.js 4.92 KiB 0 [emitted] main +main.js 4.92 KiB {0} [emitted] main Entrypoint main = main.js [0] ./index.js 181 bytes {0} [built] [1] ./a.js?1 33 bytes {0} [built] @@ -1308,7 +1272,7 @@ exports[`StatsTestCases should print correct stats for max-modules-default 1`] = Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main.js 4.92 KiB 0 [emitted] main +main.js 4.92 KiB {0} [emitted] main Entrypoint main = main.js [0] ./index.js 181 bytes {0} [built] [1] ./a.js?1 33 bytes {0} [built] @@ -1335,7 +1299,7 @@ Built at: Thu Jan 01 1970 00:00:00 GMT Entrypoint main = main.js chunk {0} main.js (main) 12 bytes (javascript) 4.46 KiB (runtime) >{1}< [entry] [rendered] [0] ./index.js 12 bytes {0} [built] - + 7 hidden modules + + 7 hidden chunk modules chunk {1} 1.js 68 bytes <{0}> [rendered] [1] ./node_modules/a/index.js 17 bytes {1} [built] [2] ./node_modules/a/1.png 51 bytes {1} [built] [1 asset] @@ -1346,16 +1310,16 @@ chunk {1} 1.js 68 bytes <{0}> [rendered] `; exports[`StatsTestCases should print correct stats for module-deduplication 1`] = ` -"Asset Size Chunks Chunk Names - 3.js 724 bytes 3, 6 [emitted] - 4.js 724 bytes 4, 7 [emitted] - 5.js 726 bytes 5, 8 [emitted] - 6.js 670 bytes 6 [emitted] - 7.js 670 bytes 7 [emitted] - 8.js 671 bytes 8 [emitted] -e1.js 8.02 KiB 0 [emitted] e1 -e2.js 8.04 KiB 1 [emitted] e2 -e3.js 8.07 KiB 2 [emitted] e3 +"Asset Size Chunks Chunk Names + 3.js 724 bytes {3}, {6} [emitted] + 4.js 724 bytes {4}, {7} [emitted] + 5.js 726 bytes {5}, {8} [emitted] + 6.js 670 bytes {6} [emitted] + 7.js 670 bytes {7} [emitted] + 8.js 671 bytes {8} [emitted] +e1.js 8.02 KiB {0} [emitted] e1 +e2.js 8.04 KiB {1} [emitted] e2 +e3.js 8.07 KiB {2} [emitted] e3 Entrypoint e1 = e1.js Entrypoint e2 = e2.js Entrypoint e3 = e3.js @@ -1365,21 +1329,21 @@ chunk {0} e1.js (e1) 152 bytes (javascript) 4.46 KiB (runtime) >{4}< >{5}< >{ [2] ./b.js 9 bytes {0} {1} {2} [built] [3] ./c.js 9 bytes {0} [built] [4] ./d.js 9 bytes {0} {3} [built] - + 7 hidden modules + + 7 hidden chunk modules chunk {1} e2.js (e2) 152 bytes (javascript) 4.46 KiB (runtime) >{3}< >{5}< >{7}< [entry] [rendered] [1] ./a.js 9 bytes {0} {1} {2} [built] [2] ./b.js 9 bytes {0} {1} {2} [built] [5] ./e2.js 116 bytes {1} [built] [6] ./e.js 9 bytes {1} [built] [7] ./f.js 9 bytes {1} {4} [built] - + 7 hidden modules + + 7 hidden chunk modules chunk {2} e3.js (e3) 152 bytes (javascript) 4.46 KiB (runtime) >{3}< >{4}< >{8}< [entry] [rendered] [1] ./a.js 9 bytes {0} {1} {2} [built] [2] ./b.js 9 bytes {0} {1} {2} [built] [8] ./e3.js 116 bytes {2} [built] [9] ./g.js 9 bytes {2} [built] [10] ./h.js 9 bytes {2} {5} [built] - + 7 hidden modules + + 7 hidden chunk modules chunk {3} 3.js 37 bytes <{1}> <{2}> [rendered] [4] ./d.js 9 bytes {0} {3} [built] [11] ./async1.js 28 bytes {3} {6} [built] @@ -1399,12 +1363,12 @@ chunk {8} 8.js 28 bytes <{2}> [rendered] exports[`StatsTestCases should print correct stats for module-deduplication-named 1`] = ` " Asset Size Chunks Chunk Names -async1.js 813 bytes 3 [emitted] async1 -async2.js 813 bytes 4 [emitted] async2 -async3.js 815 bytes 5 [emitted] async3 - e1.js 7.9 KiB 0 [emitted] e1 - e2.js 7.93 KiB 1 [emitted] e2 - e3.js 7.96 KiB 2 [emitted] e3 +async1.js 813 bytes {3} [emitted] async1 +async2.js 813 bytes {4} [emitted] async2 +async3.js 815 bytes {5} [emitted] async3 + e1.js 7.9 KiB {0} [emitted] e1 + e2.js 7.93 KiB {1} [emitted] e2 + e3.js 7.96 KiB {2} [emitted] e3 Entrypoint e1 = e1.js Entrypoint e2 = e2.js Entrypoint e3 = e3.js @@ -1414,21 +1378,21 @@ chunk {0} e1.js (e1) 144 bytes (javascript) 4.5 KiB (runtime) >{3}< [entry] [ [2] ./b.js 9 bytes {0} {1} {2} [built] [3] ./c.js 9 bytes {0} [built] [4] ./d.js 9 bytes {0} {3} [built] - + 7 hidden modules + + 7 hidden chunk modules chunk {1} e2.js (e2) 144 bytes (javascript) 4.5 KiB (runtime) >{4}< [entry] [rendered] [1] ./a.js 9 bytes {0} {1} {2} [built] [2] ./b.js 9 bytes {0} {1} {2} [built] [5] ./e2.js 108 bytes {1} [built] [6] ./e.js 9 bytes {1} [built] [7] ./f.js 9 bytes {1} {4} [built] - + 7 hidden modules + + 7 hidden chunk modules chunk {2} e3.js (e3) 144 bytes (javascript) 4.5 KiB (runtime) >{5}< [entry] [rendered] [1] ./a.js 9 bytes {0} {1} {2} [built] [2] ./b.js 9 bytes {0} {1} {2} [built] [8] ./e3.js 108 bytes {2} [built] [9] ./g.js 9 bytes {2} [built] [10] ./h.js 9 bytes {2} {5} [built] - + 7 hidden modules + + 7 hidden chunk modules chunk {3} async1.js (async1) 89 bytes <{0}> <{5}> >{4}< [rendered] [4] ./d.js 9 bytes {0} {3} [built] [11] ./async1.js 80 bytes {3} [built] @@ -1444,7 +1408,7 @@ exports[`StatsTestCases should print correct stats for module-trace-disabled-in- "Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main.js 1.84 KiB 0 main +main.js 1.84 KiB {0} main Entrypoint main = main.js [0] ./index.js 19 bytes {0} [built] [1] ./inner.js 53 bytes {0} [built] @@ -1468,7 +1432,7 @@ exports[`StatsTestCases should print correct stats for module-trace-enabled-in-e "Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main.js 1.84 KiB 0 main +main.js 1.84 KiB {0} main Entrypoint main = main.js [0] ./index.js 19 bytes {0} [built] [1] ./inner.js 53 bytes {0} [built] @@ -1501,7 +1465,7 @@ exports[`StatsTestCases should print correct stats for named-chunk-groups 1`] = chunk {0} main.js (main) 146 bytes (javascript) 4.54 KiB (runtime) >{1}< >{2}< >{3}< >{4}< >{5}< [entry] [rendered] > ./ main [0] ./index.js 146 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} async-a.js (async-a) 40 bytes <{0}> ={2}= [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js 40 bytes {1} [built] @@ -1527,7 +1491,7 @@ Child chunk {0} main.js (main) 146 bytes (javascript) 4.54 KiB (runtime) >{1}< >{2}< >{3}< >{4}< >{5}< [entry] [rendered] > ./ main [0] ./index.js 146 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} async-a.js (async-a) 40 bytes <{0}> ={2}= [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js 40 bytes {1} [built] @@ -1551,9 +1515,9 @@ exports[`StatsTestCases should print correct stats for named-chunks-plugin 1`] = "Hash: b40f78b5432adf35decc Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT - Asset Size Chunks Chunk Names - entry.js 4.15 KiB entry [emitted] entry -vendor.js 251 bytes vendor [emitted] vendor + Asset Size Chunks Chunk Names + entry.js 4.15 KiB {entry} [emitted] entry +vendor.js 251 bytes {vendor} [emitted] vendor Entrypoint entry = vendor.js entry.js [./entry.js] 72 bytes {entry} [built] [./modules/a.js] 22 bytes {vendor} [built] @@ -1566,10 +1530,10 @@ exports[`StatsTestCases should print correct stats for named-chunks-plugin-async "Hash: 81d1667529e4739174b9 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT - Asset Size Chunks Chunk Names -chunk-containing-__a_js.js 336 bytes chunk-containing-__a_js [emitted] -chunk-containing-__b_js.js 167 bytes chunk-containing-__b_js [emitted] - entry.js 7.31 KiB entry [emitted] entry + Asset Size Chunks Chunk Names +chunk-containing-__a_js.js 336 bytes {chunk-containing-__a_js} [emitted] +chunk-containing-__b_js.js 167 bytes {chunk-containing-__b_js} [emitted] + entry.js 7.31 KiB {entry} [emitted] entry Entrypoint entry = entry.js [0] ./entry.js 47 bytes {entry} [built] [1] ./modules/a.js 37 bytes {chunk-containing-__a_js} [built] @@ -1582,7 +1546,7 @@ exports[`StatsTestCases should print correct stats for no-emit-on-errors-plugin- Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -bundle.js 1.19 KiB 0 main +bundle.js 1.19 KiB {0} main child.js 1.19 KiB Entrypoint main = bundle.js [967] ./index.js 0 bytes {0} [built] @@ -1592,7 +1556,7 @@ The 'mode' option has not been set, webpack will fallback to 'production' for th You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/ Child child: Asset Size Chunks Chunk Names - child.js 1.19 KiB 0 child + child.js 1.19 KiB {0} child Entrypoint child = child.js [967] ./index.js 0 bytes {0} [built] @@ -1603,21 +1567,21 @@ exports[`StatsTestCases should print correct stats for optimize-chunks 1`] = ` "Hash: 3b4887db1b6734bc4708 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT - Asset Size Chunks Chunk Names - ab.js 171 bytes 1 [emitted] ab - abd.js 214 bytes 2, 1 [emitted] abd - ac in ab.js 115 bytes 7 [emitted] ac in ab - chunk.js 160 bytes 3, 7 [emitted] chunk - cir1.js 315 bytes 4 [emitted] cir1 -cir2 from cir1.js 360 bytes 6, 5 [emitted] cir2 from cir1 - cir2.js 315 bytes 5 [emitted] cir2 - main.js 6.65 KiB 0 [emitted] main + Asset Size Chunks Chunk Names + ab.js 171 bytes {1} [emitted] ab + abd.js 214 bytes {2}, {1} [emitted] abd + ac in ab.js 115 bytes {7} [emitted] ac in ab + chunk.js 160 bytes {3}, {7} [emitted] chunk + cir1.js 315 bytes {4} [emitted] cir1 +cir2 from cir1.js 360 bytes {6}, {5} [emitted] cir2 from cir1 + cir2.js 315 bytes {5} [emitted] cir2 + main.js 6.65 KiB {0} [emitted] main Entrypoint main = main.js chunk {0} main.js (main) 523 bytes (javascript) 3.68 KiB (runtime) >{1}< >{2}< >{4}< >{5}< [entry] [rendered] > ./index main [0] ./index.js 523 bytes {0} [built] [1] ./modules/f.js 0 bytes {0} [built] - + 4 hidden modules + + 4 hidden chunk modules chunk {1} ab.js (ab) 0 bytes <{0}> >{7}< [rendered] > [0] ./index.js 1:0-6:8 [2] ./modules/a.js 0 bytes {1} {2} [built] @@ -1650,11 +1614,9 @@ chunk {7} ac in ab.js (ac in ab) 0 bytes <{1}> >{3}< [rendered] exports[`StatsTestCases should print correct stats for parse-error 1`] = ` " Asset Size Chunks Chunk Names -main.js 3.67 KiB 0 main +main.js 3.67 KiB {0} main Entrypoint main = main.js [0] ./index.js + 1 modules 35 bytes {0} [built] - | ./a.js 15 bytes [built] - | ./index.js 15 bytes [built] [1] ./b.js 169 bytes {0} [built] [failed] [1 error] + 4 hidden modules @@ -1677,7 +1639,7 @@ Child Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - warning.pro-web.js 294 KiB 0 [emitted] [big] main + warning.pro-web.js 294 KiB {0} [emitted] [big] main Entrypoint main [big] = warning.pro-web.js [0] ./index.js 293 KiB {0} [built] @@ -1700,7 +1662,7 @@ Child Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - warning.pro-webworker.js 294 KiB 0 [emitted] [big] main + warning.pro-webworker.js 294 KiB {0} [emitted] [big] main Entrypoint main [big] = warning.pro-webworker.js [0] ./index.js 293 KiB {0} [built] @@ -1723,7 +1685,7 @@ Child Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - no-warning.pro-node.js 294 KiB 0 [emitted] main + no-warning.pro-node.js 294 KiB {0} [emitted] main Entrypoint main = no-warning.pro-node.js [0] ./index.js 293 KiB {0} [built] Child @@ -1731,7 +1693,7 @@ Child Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - no-warning.dev-web.js 1.72 MiB main [emitted] main + no-warning.dev-web.js 1.72 MiB {main} [emitted] main Entrypoint main = no-warning.dev-web.js [./index.js] 293 KiB {main} [built] Child @@ -1739,7 +1701,7 @@ Child Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - no-warning.dev-node.js 1.72 MiB main [emitted] main + no-warning.dev-node.js 1.72 MiB {main} [emitted] main Entrypoint main = no-warning.dev-node.js [./index.js] 293 KiB {main} [built] Child @@ -1747,7 +1709,7 @@ Child Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - no-warning.dev-web-with-limit-set.js 1.72 MiB main [emitted] [big] main + no-warning.dev-web-with-limit-set.js 1.72 MiB {main} [emitted] [big] main Entrypoint main [big] = no-warning.dev-web-with-limit-set.js [./index.js] 293 KiB {main} [built] Child @@ -1755,7 +1717,7 @@ Child Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - warning.pro-node-with-hints-set.js 294 KiB 0 [emitted] [big] main + warning.pro-node-with-hints-set.js 294 KiB {0} [emitted] [big] main Entrypoint main [big] = warning.pro-node-with-hints-set.js [0] ./index.js 293 KiB {0} [built] @@ -1779,10 +1741,10 @@ exports[`StatsTestCases should print correct stats for performance-disabled 1`] "Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.js 143 bytes 1 [emitted] - 2.js 305 bytes 2 [emitted] - 3.js 214 bytes 3 [emitted] -main.js 299 KiB 0 [emitted] main + 1.js 143 bytes {1} [emitted] + 2.js 305 bytes {2} [emitted] + 3.js 214 bytes {3} [emitted] +main.js 299 KiB {0} [emitted] main Entrypoint main = main.js [0] ./index.js 52 bytes {0} [built] [1] ./a.js 293 KiB {0} [built] @@ -1797,10 +1759,10 @@ exports[`StatsTestCases should print correct stats for performance-error 1`] = ` "Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.js 143 bytes 1 [emitted] - 2.js 305 bytes 2 [emitted] - 3.js 214 bytes 3 [emitted] -main.js 299 KiB 0 [emitted] [big] main + 1.js 143 bytes {1} [emitted] + 2.js 305 bytes {2} [emitted] + 3.js 214 bytes {3} [emitted] +main.js 299 KiB {0} [emitted] [big] main Entrypoint main [big] = main.js [0] ./index.js 52 bytes {0} [built] [1] ./a.js 293 KiB {0} [built] @@ -1826,8 +1788,8 @@ exports[`StatsTestCases should print correct stats for performance-no-async-chun "Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main.js 294 KiB 0 [emitted] [big] main - sec.js 1.52 KiB 1 [emitted] sec +main.js 294 KiB {0} [emitted] [big] main + sec.js 1.52 KiB {1} [emitted] sec Entrypoint main [big] = main.js Entrypoint sec = sec.js [0] ./index.js 32 bytes {0} [built] @@ -1857,10 +1819,10 @@ exports[`StatsTestCases should print correct stats for performance-no-hints 1`] "Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.js 143 bytes 1 [emitted] - 2.js 305 bytes 2 [emitted] - 3.js 214 bytes 3 [emitted] -main.js 299 KiB 0 [emitted] [big] main + 1.js 143 bytes {1} [emitted] + 2.js 305 bytes {2} [emitted] + 3.js 214 bytes {3} [emitted] +main.js 299 KiB {0} [emitted] [big] main Entrypoint main [big] = main.js [0] ./index.js 52 bytes {0} [built] [1] ./a.js 293 KiB {0} [built] @@ -1875,8 +1837,8 @@ exports[`StatsTestCases should print correct stats for performance-oversize-limi "Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main.js 294 KiB 0 [emitted] [big] main - sec.js 294 KiB 1 [emitted] [big] sec +main.js 294 KiB {0} [emitted] [big] main + sec.js 294 KiB {1} [emitted] [big] sec Entrypoint main [big] = main.js Entrypoint sec [big] = sec.js [0] ./index.js 16 bytes {0} [built] @@ -1904,13 +1866,13 @@ For more info visit https://webpack.js.org/guides/code-splitting/" exports[`StatsTestCases should print correct stats for prefetch 1`] = ` " Asset Size Chunks Chunk Names - inner.js 115 bytes 5 [emitted] inner - inner2.js 158 bytes 6 [emitted] inner2 - main.js 9.17 KiB 0 [emitted] main - normal.js 115 bytes 2 [emitted] normal - prefetched.js 538 bytes 1 [emitted] prefetched -prefetched2.js 115 bytes 3 [emitted] prefetched2 -prefetched3.js 115 bytes 4 [emitted] prefetched3 + inner.js 115 bytes {5} [emitted] inner + inner2.js 158 bytes {6} [emitted] inner2 + main.js 9.17 KiB {0} [emitted] main + normal.js 115 bytes {2} [emitted] normal + prefetched.js 538 bytes {1} [emitted] prefetched +prefetched2.js 115 bytes {3} [emitted] prefetched2 +prefetched3.js 115 bytes {4} [emitted] prefetched3 Entrypoint main = main.js (prefetch: prefetched2.js prefetched.js prefetched3.js) chunk {0} main.js (main) 436 bytes (javascript) 5.85 KiB (runtime) >{1}< >{2}< >{3}< >{4}< (prefetch: {3} {1} {4}) [entry] [rendered] chunk {1} prefetched.js (prefetched) 228 bytes <{0}> >{5}< >{6}< (prefetch: {6} {5}) [rendered] @@ -1937,13 +1899,13 @@ chunk {10} c2.js (c2) 0 bytes <{3}> [rendered]" exports[`StatsTestCases should print correct stats for preload 1`] = ` " Asset Size Chunks Chunk Names - inner.js 115 bytes 5 [emitted] inner - inner2.js 158 bytes 6 [emitted] inner2 - main.js 9.15 KiB 0 [emitted] main - normal.js 115 bytes 2 [emitted] normal - preloaded.js 528 bytes 1 [emitted] preloaded -preloaded2.js 115 bytes 3 [emitted] preloaded2 -preloaded3.js 115 bytes 4 [emitted] preloaded3 + inner.js 115 bytes {5} [emitted] inner + inner2.js 158 bytes {6} [emitted] inner2 + main.js 9.15 KiB {0} [emitted] main + normal.js 115 bytes {2} [emitted] normal + preloaded.js 528 bytes {1} [emitted] preloaded +preloaded2.js 115 bytes {3} [emitted] preloaded2 +preloaded3.js 115 bytes {4} [emitted] preloaded3 Entrypoint main = main.js (preload: preloaded2.js preloaded.js preloaded3.js) chunk {0} main.js (main) 424 bytes (javascript) 5.83 KiB (runtime) >{1}< >{2}< >{3}< >{4}< (preload: {3} {1} {4}) [entry] [rendered] chunk {1} preloaded.js (preloaded) 226 bytes <{0}> >{5}< >{6}< (preload: {6} {5}) [rendered] @@ -1959,10 +1921,10 @@ exports[`StatsTestCases should print correct stats for preset-detailed 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.js 143 bytes 1 [emitted] - 2.js 305 bytes 2 [emitted] - 3.js 214 bytes 3 [emitted] -main.js 5.87 KiB 0 [emitted] main + 1.js 143 bytes {1} [emitted] + 2.js 305 bytes {2} [emitted] + 3.js 214 bytes {3} [emitted] +main.js 5.87 KiB {0} [emitted] main Entrypoint main = main.js chunk {0} main.js (main) 73 bytes (javascript) 3.6 KiB (runtime) >{1}< >{2}< [entry] [rendered] > ./index main @@ -2025,10 +1987,10 @@ exports[`StatsTestCases should print correct stats for preset-normal 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.js 143 bytes 1 [emitted] - 2.js 305 bytes 2 [emitted] - 3.js 214 bytes 3 [emitted] -main.js 5.87 KiB 0 [emitted] main + 1.js 143 bytes {1} [emitted] + 2.js 305 bytes {2} [emitted] + 3.js 214 bytes {3} [emitted] +main.js 5.87 KiB {0} [emitted] main Entrypoint main = main.js [0] ./index.js 51 bytes {0} [built] [1] ./a.js 22 bytes {0} [built] @@ -2043,10 +2005,10 @@ exports[`StatsTestCases should print correct stats for preset-normal-performance "Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.js 143 bytes 1 [emitted] - 2.js 305 bytes 2 [emitted] - 3.js 214 bytes 3 [emitted] -main.js 299 KiB 0 [emitted] [big] main + 1.js 143 bytes {1} [emitted] + 2.js 305 bytes {2} [emitted] + 3.js 214 bytes {3} [emitted] +main.js 299 KiB {0} [emitted] [big] main Entrypoint main [big] = main.js [0] ./index.js 52 bytes {0} [built] [1] ./a.js 293 KiB {0} [built] @@ -2072,14 +2034,14 @@ exports[`StatsTestCases should print correct stats for preset-normal-performance "Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.js 173 bytes 1 [emitted] - 1.js.map 161 bytes 1 [emitted] - 2.js 335 bytes 2 [emitted] - 2.js.map 210 bytes 2 [emitted] - 3.js 244 bytes 3 [emitted] - 3.js.map 226 bytes 3 [emitted] - main.js 299 KiB 0 [emitted] [big] main -main.js.map 1.72 MiB 0 [emitted] main + 1.js 173 bytes {1} [emitted] + 1.js.map 161 bytes {1} [emitted] + 2.js 335 bytes {2} [emitted] + 2.js.map 210 bytes {2} [emitted] + 3.js 244 bytes {3} [emitted] + 3.js.map 226 bytes {3} [emitted] + main.js 299 KiB {0} [emitted] [big] main +main.js.map 1.72 MiB {0} [emitted] main Entrypoint main [big] = main.js main.js.map [0] ./index.js 52 bytes {0} [built] [1] ./a.js 293 KiB {0} [built] @@ -2106,10 +2068,10 @@ exports[`StatsTestCases should print correct stats for preset-verbose 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.js 143 bytes 1 [emitted] - 2.js 305 bytes 2 [emitted] - 3.js 214 bytes 3 [emitted] -main.js 5.87 KiB 0 [emitted] main + 1.js 143 bytes {1} [emitted] + 2.js 305 bytes {2} [emitted] + 3.js 214 bytes {3} [emitted] +main.js 5.87 KiB {0} [emitted] main Entrypoint main = main.js chunk {0} main.js (main) 73 bytes (javascript) 3.6 KiB (runtime) >{1}< >{2}< [entry] [rendered] > ./index main @@ -2158,7 +2120,7 @@ exports[`StatsTestCases should print correct stats for resolve-plugin-context 1` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -bundle.js 1.61 KiB 0 [emitted] main +bundle.js 1.61 KiB {0} [emitted] main Entrypoint main = bundle.js [0] ./index.js 48 bytes {0} [built] [1] ./node_modules/abc/index.js 16 bytes {0} [built] @@ -2172,7 +2134,7 @@ exports[`StatsTestCases should print correct stats for reverse-sort-modules 1`] Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main.js 4.92 KiB 0 [emitted] main +main.js 4.92 KiB {0} [emitted] main Entrypoint main = main.js [28] ./a.js?10 33 bytes {0} [built] [26] ./c.js?9 33 bytes {0} [built] @@ -2205,9 +2167,9 @@ Entrypoint e2 = runtime~e2.js e2.js" exports[`StatsTestCases should print correct stats for runtime-chunk-integration 1`] = ` "Child base: Asset Size Chunks Chunk Names - 2.js 752 bytes 2 [emitted] - main1.js 547 bytes 1 [emitted] main1 - runtime.js 6.79 KiB 0 [emitted] runtime + 2.js 752 bytes {2} [emitted] + main1.js 547 bytes {1} [emitted] main1 + runtime.js 6.79 KiB {0} [emitted] runtime Entrypoint main1 = runtime.js main1.js [0] ./main1.js 66 bytes {1} [built] [1] ./b.js 20 bytes {2} [built] @@ -2216,9 +2178,9 @@ exports[`StatsTestCases should print correct stats for runtime-chunk-integration + 5 hidden modules Child manifest is named entry: Asset Size Chunks Chunk Names - 2.js 761 bytes 2 [emitted] - main1.js 547 bytes 0 [emitted] main1 - manifest.js 8.04 KiB 1 [emitted] manifest + 2.js 761 bytes {2} [emitted] + main1.js 547 bytes {0} [emitted] main1 + manifest.js 8.04 KiB {1} [emitted] manifest Entrypoint main1 = manifest.js main1.js Entrypoint manifest = manifest.js [0] ./main1.js 66 bytes {0} [built] @@ -2263,9 +2225,6 @@ Entrypoint entry = entry.js ModuleConcatenation bailout: Module uses module.loaded [7] ./concatenated.js + 2 modules 116 bytes {2} [built] ModuleConcatenation bailout: Cannot concat with external \\"external\\" (<- Module is not an ECMAScript module) - | ./concatenated2.js 48 bytes [built] - | ./concatenated1.js 37 bytes [built] - | ./concatenated.js 26 bytes [built] [8] external \\"external\\" 42 bytes {0} [built] ModuleConcatenation bailout: Module is not an ECMAScript module + 9 hidden modules" @@ -2300,12 +2259,8 @@ Child [0] ./first.js + 1 modules 248 bytes {0} [built] ModuleConcatenation bailout: Cannot concat with ./common.js (<- Module is referenced from different chunks by these modules: ./first.js + 1 modules, ./second.js) ModuleConcatenation bailout: Cannot concat with ./vendor.js (<- Module is referenced from different chunks by these modules: ./first.js + 1 modules, ./second.js) - | ./module_first.js 31 bytes [built] - | ./first.js 207 bytes [built] [1] ./vendor.js 25 bytes {1} [built] [2] ./common.js + 1 modules 62 bytes {0} {2} [built] - | ./common2.js 25 bytes [built] - | ./common.js 37 bytes [built] [3] ./second.js 177 bytes {2} [built] ModuleConcatenation bailout: Cannot concat with ./common.js (<- Module is referenced from different chunks by these modules: ./first.js + 1 modules, ./second.js) ModuleConcatenation bailout: Cannot concat with ./vendor.js (<- Module is referenced from different chunks by these modules: ./first.js + 1 modules, ./second.js) @@ -2327,8 +2282,8 @@ exports[`StatsTestCases should print correct stats for side-effects-issue-7428 1 Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.js 489 bytes 1 [emitted] -main.js 8.02 KiB 0 [emitted] main + 1.js 489 bytes {1} [emitted] +main.js 8.02 KiB {0} [emitted] main Entrypoint main = main.js [0] ./main.js + 1 modules 231 bytes {0} [built] harmony side effect evaluation ./CompB ./components/src/CompAB/index.js 2:0-43 @@ -2376,7 +2331,7 @@ exports[`StatsTestCases should print correct stats for side-effects-simple-unuse Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -main.js 2.36 KiB 0 [emitted] main +main.js 2.36 KiB {0} [emitted] main Entrypoint main = main.js [0] ./index.js + 2 modules 158 bytes {0} [built] harmony side effect evaluation ./c ./node_modules/pmodule/b.js 5:0-24 @@ -2408,7 +2363,7 @@ exports[`StatsTestCases should print correct stats for simple 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -bundle.js 1.38 KiB main [emitted] main +bundle.js 1.38 KiB {main} [emitted] main Entrypoint main = bundle.js [./index.js] 0 bytes {main} [built]" `; @@ -2418,7 +2373,7 @@ exports[`StatsTestCases should print correct stats for simple-more-info 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -bundle.js 1.18 KiB 0 [emitted] main +bundle.js 1.18 KiB {0} [emitted] main Entrypoint main = bundle.js [0] ./index.js 0 bytes {0} [built] entry ./index main @@ -2434,21 +2389,15 @@ exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` chunk {0} default/main.js (main) 147 bytes (javascript) 4.67 KiB (runtime) >{1}< >{3}< >{6}< >{7}< >{8}< >{9}< >{10}< >{11}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} default/async-a.js (async-a) 156 bytes <{0}> ={3}= ={6}= ={7}= >{9}< >{12}< [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] chunk {2} default/a.js (a) 216 bytes (javascript) 4.54 KiB (runtime) >{9}< >{12}< [entry] [rendered] > ./a a [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - [2] ./d.js 20 bytes {2} {3} {4} {5} [built] - [3] ./node_modules/x.js 20 bytes {2} {4} {5} {6} [built] - [4] ./node_modules/y.js 20 bytes {2} {4} {7} [built] - + 7 hidden modules + + 7 hidden root modules + + 3 hidden dependent modules chunk {3} default/async-a~async-b~async-c.js (async-a~async-b~async-c) 20 bytes <{0}> ={1}= ={6}= ={7}= ={8}= ={9}= ={10}= ={11}= >{9}< >{12}< [rendered] split chunk (cache group: default) (name: async-a~async-b~async-c) > ./a [0] ./index.js 1:0-47 > ./b [0] ./index.js 2:0-47 @@ -2456,20 +2405,14 @@ exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` [2] ./d.js 20 bytes {2} {3} {4} {5} [built] chunk {4} default/b.js (b) 152 bytes (javascript) 279 bytes (runtime) [entry] [rendered] > ./b b - [2] ./d.js 20 bytes {2} {3} {4} {5} [built] - [3] ./node_modules/x.js 20 bytes {2} {4} {5} {6} [built] - [4] ./node_modules/y.js 20 bytes {2} {4} {7} [built] [5] ./b.js 72 bytes {4} {8} [built] - [6] ./f.js 20 bytes {4} {5} {9} [built] - + 1 hidden module + + 1 hidden root module + + 4 hidden dependent modules chunk {5} default/c.js (c) 152 bytes (javascript) 279 bytes (runtime) [entry] [rendered] > ./c c - [2] ./d.js 20 bytes {2} {3} {4} {5} [built] - [3] ./node_modules/x.js 20 bytes {2} {4} {5} {6} [built] - [6] ./f.js 20 bytes {4} {5} {9} [built] [7] ./c.js 72 bytes {5} {10} [built] - [8] ./node_modules/z.js 20 bytes {5} {11} [built] - + 1 hidden module + + 1 hidden root module + + 4 hidden dependent modules chunk {6} default/vendors~async-a~async-b~async-c.js (vendors~async-a~async-b~async-c) 20 bytes <{0}> ={1}= ={3}= ={7}= ={8}= ={9}= ={10}= ={11}= >{9}< >{12}< [rendered] split chunk (cache group: defaultVendors) (name: vendors~async-a~async-b~async-c) > ./a [0] ./index.js 1:0-47 > ./b [0] ./index.js 2:0-47 @@ -2485,7 +2428,7 @@ exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` chunk {9} default/async-b~async-c~async-g.js (async-b~async-c~async-g) 20 bytes <{0}> <{1}> <{2}> <{3}> <{6}> <{7}> ={3}= ={6}= ={7}= ={8}= ={10}= ={11}= ={12}= [rendered] split chunk (cache group: default) (name: async-b~async-c~async-g) > ./b [0] ./index.js 2:0-47 > ./c [0] ./index.js 3:0-47 - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [6] ./f.js 20 bytes {4} {5} {9} [built] chunk {10} default/async-c.js (async-c) 72 bytes <{0}> ={3}= ={6}= ={9}= ={11}= [rendered] > ./c [0] ./index.js 3:0-47 @@ -2494,7 +2437,7 @@ exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` > ./c [0] ./index.js 3:0-47 [8] ./node_modules/z.js 20 bytes {5} {11} [built] chunk {12} default/async-g.js (async-g) 34 bytes <{1}> <{2}> <{3}> <{6}> <{7}> ={9}= [rendered] - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [9] ./g.js 34 bytes {12} [built] Child all-chunks: Entrypoint main = default/main.js @@ -2504,18 +2447,14 @@ Child all-chunks: chunk {0} default/main.js (main) 147 bytes (javascript) 4.69 KiB (runtime) >{2}< >{3}< >{4}< >{5}< >{6}< >{8}< >{10}< >{11}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} default/a.js (a) 156 bytes (javascript) 5.48 KiB (runtime) ={3}= ={4}= ={5}= >{8}< >{12}< [entry] [rendered] > ./a a [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - + 7 hidden modules + + 7 hidden root modules chunk {2} default/async-a.js (async-a) 156 bytes <{0}> ={3}= ={4}= ={5}= >{8}< >{12}< [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] chunk {3} default/a~async-a~async-b~async-c~b~c.js (a~async-a~async-b~async-c~b~c) 20 bytes <{0}> ={1}= ={2}= ={4}= ={5}= ={6}= ={7}= ={8}= ={9}= ={10}= ={11}= >{8}< >{12}< [initial] [rendered] split chunk (cache group: default) (name: a~async-a~async-b~async-c~b~c) > ./a [0] ./index.js 1:0-47 > ./b [0] ./index.js 2:0-47 @@ -2544,18 +2483,18 @@ Child all-chunks: chunk {7} default/b.js (b) 92 bytes (javascript) 2.54 KiB (runtime) ={3}= ={4}= ={5}= [entry] [rendered] > ./b b [5] ./b.js 72 bytes {6} {7} [built] - [6] ./f.js 20 bytes {7} {8} {9} [built] - + 2 hidden modules + + 2 hidden root modules + + 1 hidden dependent module chunk {8} default/async-b~async-c~async-g.js (async-b~async-c~async-g) 20 bytes <{0}> <{1}> <{2}> <{3}> <{4}> <{5}> ={3}= ={4}= ={5}= ={6}= ={10}= ={11}= ={12}= [rendered] split chunk (cache group: default) (name: async-b~async-c~async-g) > ./b [0] ./index.js 2:0-47 > ./c [0] ./index.js 3:0-47 - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [6] ./f.js 20 bytes {7} {8} {9} [built] chunk {9} default/c.js (c) 92 bytes (javascript) 2.54 KiB (runtime) ={3}= ={4}= ={11}= [entry] [rendered] > ./c c - [6] ./f.js 20 bytes {7} {8} {9} [built] [7] ./c.js 72 bytes {9} {10} [built] - + 2 hidden modules + + 2 hidden root modules + + 1 hidden dependent module chunk {10} default/async-c.js (async-c) 72 bytes <{0}> ={3}= ={4}= ={8}= ={11}= [rendered] > ./c [0] ./index.js 3:0-47 [7] ./c.js 72 bytes {9} {10} [built] @@ -2564,7 +2503,7 @@ Child all-chunks: > ./c c [8] ./node_modules/z.js 20 bytes {11} [built] chunk {12} default/async-g.js (async-g) 34 bytes <{1}> <{2}> <{3}> <{4}> <{5}> ={8}= [rendered] - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [9] ./g.js 34 bytes {12} [built] Child manual: Entrypoint main = default/main.js @@ -2574,7 +2513,7 @@ Child manual: chunk {0} default/main.js (main) 147 bytes (javascript) 4.54 KiB (runtime) >{1}< >{3}< >{4}< >{6}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} default/vendors.js (vendors) 60 bytes <{0}> ={2}= ={3}= ={4}= ={5}= ={6}= ={7}= >{8}< [initial] [rendered] split chunk (cache group: vendors) (name: vendors) > ./a [0] ./index.js 1:0-47 > ./b [0] ./index.js 2:0-47 @@ -2600,48 +2539,40 @@ Child manual: > y a > z a [4] ./a.js + 1 modules 156 bytes {2} {3} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - [5] ./d.js 20 bytes {2} {3} {4} {5} {6} {7} [built] - + 7 hidden modules + + 7 hidden root modules + + 1 hidden dependent module chunk {3} default/async-a.js (async-a) 176 bytes <{0}> ={1}= >{8}< [rendered] > ./a [0] ./index.js 1:0-47 [4] ./a.js + 1 modules 156 bytes {2} {3} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - [5] ./d.js 20 bytes {2} {3} {4} {5} {6} {7} [built] + + 1 hidden dependent module chunk {4} default/async-b.js (async-b) 112 bytes <{0}> ={1}= [rendered] > ./b [0] ./index.js 2:0-47 - [5] ./d.js 20 bytes {2} {3} {4} {5} {6} {7} [built] [6] ./b.js 72 bytes {4} {5} [built] - [7] ./f.js 20 bytes {4} {5} {6} {7} {8} [built] + + 2 hidden dependent modules chunk {5} default/b.js (b) 112 bytes (javascript) 2.55 KiB (runtime) ={1}= [entry] [rendered] > ./b b > x b > y b > z b - [5] ./d.js 20 bytes {2} {3} {4} {5} {6} {7} [built] [6] ./b.js 72 bytes {4} {5} [built] - [7] ./f.js 20 bytes {4} {5} {6} {7} {8} [built] - + 2 hidden modules + + 2 hidden root modules + + 2 hidden dependent modules chunk {6} default/async-c.js (async-c) 112 bytes <{0}> ={1}= [rendered] > ./c [0] ./index.js 3:0-47 - [5] ./d.js 20 bytes {2} {3} {4} {5} {6} {7} [built] - [7] ./f.js 20 bytes {4} {5} {6} {7} {8} [built] [8] ./c.js 72 bytes {6} {7} [built] + + 2 hidden dependent modules chunk {7} default/c.js (c) 112 bytes (javascript) 2.55 KiB (runtime) ={1}= [entry] [rendered] > ./c c > x c > y c > z c - [5] ./d.js 20 bytes {2} {3} {4} {5} {6} {7} [built] - [7] ./f.js 20 bytes {4} {5} {6} {7} {8} [built] [8] ./c.js 72 bytes {6} {7} [built] - + 2 hidden modules + + 2 hidden root modules + + 2 hidden dependent modules chunk {8} default/async-g.js (async-g) 54 bytes <{1}> <{2}> <{3}> [rendered] - > ./g [] 6:0-47 - [7] ./f.js 20 bytes {4} {5} {6} {7} {8} [built] + > ./g [] ./a.js 6:0-47 [9] ./g.js 34 bytes {8} [built] + + 1 hidden dependent module Child name-too-long: Entrypoint main = main.js Entrypoint aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa = vendors~aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa~async-a~async-b~async-c~bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb~cccccc~50ebc41f.js vendors~aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa~async-a~async-b~bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.js aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa~async-a~async-b~async-c~bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb~cccccccccccccc~18066793.js async-a.js aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.js @@ -2649,23 +2580,21 @@ Child name-too-long: Entrypoint cccccccccccccccccccccccccccccc = vendors~aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa~async-a~async-b~async-c~bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb~cccccc~50ebc41f.js vendors~async-c~cccccccccccccccccccccccccccccc.js aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa~async-a~async-b~async-c~bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb~cccccccccccccc~18066793.js async-b~async-c~async-g~bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb~cccccccccccccccccccccccccccccc.js async-c.js cccccccccccccccccccccccccccccc.js chunk {0} aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.js (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) 5.53 KiB ={4}= ={5}= ={6}= ={7}= >{9}< >{12}< [entry] [rendered] > ./a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - 7 modules + 7 root modules chunk {1} bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.js (bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) 2.53 KiB ={5}= ={6}= ={7}= ={8}= ={9}= [entry] [rendered] > ./b bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb - 2 modules + 2 root modules chunk {2} cccccccccccccccccccccccccccccc.js (cccccccccccccccccccccccccccccc) 2.53 KiB ={5}= ={6}= ={9}= ={10}= ={11}= [entry] [rendered] > ./c cccccccccccccccccccccccccccccc - 2 modules + 2 root modules chunk {3} main.js (main) 147 bytes (javascript) 4.98 KiB (runtime) >{4}< >{5}< >{6}< >{7}< >{8}< >{9}< >{10}< >{11}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {3} [built] - + 7 hidden modules + + 7 hidden root modules chunk {4} async-a.js (async-a) 156 bytes <{3}> ={0}= ={5}= ={6}= ={7}= >{9}< >{12}< [initial] [rendered] reused as split chunk (cache group: default) > ./a [0] ./index.js 1:0-47 > ./a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa [1] ./a.js + 1 modules 156 bytes {4} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] chunk {5} aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa~async-a~async-b~async-c~bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb~cccccccccccccc~18066793.js (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa~async-a~async-b~async-c~bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb~cccccccccccccc~18066793) 20 bytes <{3}> ={0}= ={1}= ={2}= ={4}= ={6}= ={7}= ={8}= ={9}= ={10}= ={11}= >{9}< >{12}< [initial] [rendered] split chunk (cache group: default) (name: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa~async-a~async-b~async-c~bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb~cccccccccccccc~18066793) > ./a [0] ./index.js 1:0-47 > ./b [0] ./index.js 2:0-47 @@ -2695,7 +2624,7 @@ Child name-too-long: chunk {9} async-b~async-c~async-g~bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb~cccccccccccccccccccccccccccccc.js (async-b~async-c~async-g~bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb~cccccccccccccccccccccccccccccc) 20 bytes <{0}> <{3}> <{4}> <{5}> <{6}> <{7}> ={1}= ={2}= ={5}= ={6}= ={7}= ={8}= ={10}= ={11}= ={12}= [initial] [rendered] split chunk (cache group: default) (name: async-b~async-c~async-g~bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb~cccccccccccccccccccccccccccccc) > ./b [0] ./index.js 2:0-47 > ./c [0] ./index.js 3:0-47 - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 > ./b bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb > ./c cccccccccccccccccccccccccccccc [6] ./f.js 20 bytes {9} [built] @@ -2708,7 +2637,7 @@ Child name-too-long: > ./c cccccccccccccccccccccccccccccc [8] ./node_modules/z.js 20 bytes {11} [built] chunk {12} async-g.js (async-g) 34 bytes <{0}> <{4}> <{5}> <{6}> <{7}> ={9}= [rendered] - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [9] ./g.js 34 bytes {12} [built] Child custom-chunks-filter: Entrypoint main = default/main.js @@ -2718,21 +2647,15 @@ Child custom-chunks-filter: chunk {0} default/main.js (main) 147 bytes (javascript) 4.69 KiB (runtime) >{1}< >{3}< >{4}< >{5}< >{6}< >{8}< >{10}< >{11}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} default/async-a.js (async-a) 156 bytes <{0}> ={3}= ={4}= ={5}= >{8}< >{12}< [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] chunk {2} default/a.js (a) 216 bytes (javascript) 4.54 KiB (runtime) >{8}< >{12}< [entry] [rendered] > ./a a [1] ./a.js + 1 modules 156 bytes {1} {2} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - [2] ./d.js 20 bytes {2} {3} [built] - [3] ./node_modules/x.js 20 bytes {2} {4} [built] - [4] ./node_modules/y.js 20 bytes {2} {5} [built] - + 7 hidden modules + + 7 hidden root modules + + 3 hidden dependent modules chunk {3} default/async-a~async-b~async-c~b~c.js (async-a~async-b~async-c~b~c) 20 bytes <{0}> ={1}= ={4}= ={5}= ={6}= ={7}= ={8}= ={9}= ={10}= ={11}= >{8}< >{12}< [initial] [rendered] split chunk (cache group: default) (name: async-a~async-b~async-c~b~c) > ./a [0] ./index.js 1:0-47 > ./b [0] ./index.js 2:0-47 @@ -2758,18 +2681,18 @@ Child custom-chunks-filter: chunk {7} default/b.js (b) 92 bytes (javascript) 2.54 KiB (runtime) ={3}= ={4}= ={5}= [entry] [rendered] > ./b b [5] ./b.js 72 bytes {6} {7} [built] - [6] ./f.js 20 bytes {7} {8} {9} [built] - + 2 hidden modules + + 2 hidden root modules + + 1 hidden dependent module chunk {8} default/async-b~async-c~async-g.js (async-b~async-c~async-g) 20 bytes <{0}> <{1}> <{2}> <{3}> <{4}> <{5}> ={3}= ={4}= ={5}= ={6}= ={10}= ={11}= ={12}= [rendered] split chunk (cache group: default) (name: async-b~async-c~async-g) > ./b [0] ./index.js 2:0-47 > ./c [0] ./index.js 3:0-47 - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [6] ./f.js 20 bytes {7} {8} {9} [built] chunk {9} default/c.js (c) 92 bytes (javascript) 2.54 KiB (runtime) ={3}= ={4}= ={11}= [entry] [rendered] > ./c c - [6] ./f.js 20 bytes {7} {8} {9} [built] [7] ./c.js 72 bytes {9} {10} [built] - + 2 hidden modules + + 2 hidden root modules + + 1 hidden dependent module chunk {10} default/async-c.js (async-c) 72 bytes <{0}> ={3}= ={4}= ={8}= ={11}= [rendered] > ./c [0] ./index.js 3:0-47 [7] ./c.js 72 bytes {9} {10} [built] @@ -2778,7 +2701,7 @@ Child custom-chunks-filter: > ./c c [8] ./node_modules/z.js 20 bytes {11} [built] chunk {12} default/async-g.js (async-g) 34 bytes <{1}> <{2}> <{3}> <{4}> <{5}> ={8}= [rendered] - > ./g [] 6:0-47 + > ./g [] ./a.js 6:0-47 [9] ./g.js 34 bytes {12} [built] Child custom-chunks-filter-in-cache-groups: Entrypoint main = default/main.js @@ -2788,7 +2711,7 @@ Child custom-chunks-filter-in-cache-groups: chunk {0} default/main.js (main) 147 bytes (javascript) 4.54 KiB (runtime) >{1}< >{3}< >{4}< >{6}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} default/vendors.js (vendors) 60 bytes <{0}> ={3}= ={4}= ={5}= ={6}= ={7}= >{8}< [initial] [rendered] split chunk (cache group: vendors) (name: vendors) > ./a [0] ./index.js 1:0-47 > ./b [0] ./index.js 2:0-47 @@ -2809,52 +2732,42 @@ Child custom-chunks-filter-in-cache-groups: > x a > y a > z a - [1] ./node_modules/x.js 20 bytes {1} {2} [built] - [2] ./node_modules/y.js 20 bytes {1} {2} [built] [3] ./node_modules/z.js 20 bytes {1} {2} [built] [4] ./a.js + 1 modules 156 bytes {2} {3} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - [5] ./d.js 20 bytes {2} {3} {4} {5} {6} {7} [built] - + 7 hidden modules + + 7 hidden root modules + + 3 hidden dependent modules chunk {3} default/async-a.js (async-a) 176 bytes <{0}> ={1}= >{8}< [rendered] > ./a [0] ./index.js 1:0-47 [4] ./a.js + 1 modules 156 bytes {2} {3} [built] - | ./e.js 20 bytes [built] - | ./a.js 121 bytes [built] - [5] ./d.js 20 bytes {2} {3} {4} {5} {6} {7} [built] + + 1 hidden dependent module chunk {4} default/async-b.js (async-b) 112 bytes <{0}> ={1}= [rendered] > ./b [0] ./index.js 2:0-47 - [5] ./d.js 20 bytes {2} {3} {4} {5} {6} {7} [built] [6] ./b.js 72 bytes {4} {5} [built] - [7] ./f.js 20 bytes {4} {5} {6} {7} {8} [built] + + 2 hidden dependent modules chunk {5} default/b.js (b) 112 bytes (javascript) 2.55 KiB (runtime) ={1}= [entry] [rendered] > ./b b > x b > y b > z b - [5] ./d.js 20 bytes {2} {3} {4} {5} {6} {7} [built] [6] ./b.js 72 bytes {4} {5} [built] - [7] ./f.js 20 bytes {4} {5} {6} {7} {8} [built] - + 2 hidden modules + + 2 hidden root modules + + 2 hidden dependent modules chunk {6} default/async-c.js (async-c) 112 bytes <{0}> ={1}= [rendered] > ./c [0] ./index.js 3:0-47 - [5] ./d.js 20 bytes {2} {3} {4} {5} {6} {7} [built] - [7] ./f.js 20 bytes {4} {5} {6} {7} {8} [built] [8] ./c.js 72 bytes {6} {7} [built] + + 2 hidden dependent modules chunk {7} default/c.js (c) 112 bytes (javascript) 2.55 KiB (runtime) ={1}= [entry] [rendered] > ./c c > x c > y c > z c - [5] ./d.js 20 bytes {2} {3} {4} {5} {6} {7} [built] - [7] ./f.js 20 bytes {4} {5} {6} {7} {8} [built] [8] ./c.js 72 bytes {6} {7} [built] - + 2 hidden modules + + 2 hidden root modules + + 2 hidden dependent modules chunk {8} default/async-g.js (async-g) 54 bytes <{1}> <{2}> <{3}> [rendered] - > ./g [] 6:0-47 - [7] ./f.js 20 bytes {4} {5} {6} {7} {8} [built] - [9] ./g.js 34 bytes {8} [built]" + > ./g [] ./a.js 6:0-47 + [9] ./g.js 34 bytes {8} [built] + + 1 hidden dependent module" `; exports[`StatsTestCases should print correct stats for split-chunks-automatic-name 1`] = ` @@ -2862,12 +2775,10 @@ exports[`StatsTestCases should print correct stats for split-chunks-automatic-na chunk {0} main.js (main) 147 bytes (javascript) 4.62 KiB (runtime) >{1}< >{2}< >{3}< >{4}< >{5}< >{6}< >{7}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} async-a.js (async-a) 107 bytes <{0}> ={2}= ={3}= [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js + 1 modules 107 bytes {1} [built] - | ./e.js 20 bytes [built] - | ./a.js 72 bytes [built] chunk {2} common~async-a~async-b~async-c.js (common~async-a~async-b~async-c) 40 bytes <{0}> ={1}= ={3}= ={4}= ={5}= ={6}= ={7}= [rendered] split chunk (cache group: default) (name: common~async-a~async-b~async-c) > ./a [0] ./index.js 1:0-47 > ./b [0] ./index.js 2:0-47 @@ -2898,7 +2809,7 @@ exports[`StatsTestCases should print correct stats for split-chunks-combinations chunk {0} main.js (main) 343 bytes (javascript) 4.58 KiB (runtime) >{1}< >{2}< >{3}< >{4}< >{5}< >{6}< >{7}< >{8}< [entry] [rendered] > ./ main [0] ./index.js 343 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} async-a.js (async-a) 48 bytes <{0}> ={2}= [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js 48 bytes {1} [built] @@ -2909,24 +2820,24 @@ chunk {2} async-a~async-b.js (async-a~async-b) 134 bytes <{0}> ={1}= ={8}= [r [3] ./y.js 67 bytes {2} [built] chunk {3} async-c.js (async-c) 101 bytes <{0}> [rendered] > ./c [0] ./index.js 3:0-47 - [2] ./x.js 67 bytes {2} {3} {4} {5} {6} {7} [built] [5] ./c.js 34 bytes {3} [built] + + 1 hidden dependent module chunk {4} async-d.js (async-d) 101 bytes <{0}> [rendered] > ./d [0] ./index.js 4:0-47 - [2] ./x.js 67 bytes {2} {3} {4} {5} {6} {7} [built] [6] ./d.js 34 bytes {4} [built] + + 1 hidden dependent module chunk {5} async-e.js (async-e) 101 bytes <{0}> [rendered] > ./e [0] ./index.js 5:0-47 - [2] ./x.js 67 bytes {2} {3} {4} {5} {6} {7} [built] [7] ./e.js 34 bytes {5} [built] + + 1 hidden dependent module chunk {6} async-f.js (async-f) 101 bytes <{0}> [rendered] > ./f [0] ./index.js 6:0-47 - [2] ./x.js 67 bytes {2} {3} {4} {5} {6} {7} [built] [8] ./f.js 34 bytes {6} [built] + + 1 hidden dependent module chunk {7} async-g.js (async-g) 101 bytes <{0}> [rendered] > ./g [0] ./index.js 7:0-47 - [2] ./x.js 67 bytes {2} {3} {4} {5} {6} {7} [built] [9] ./g.js 34 bytes {7} [built] + + 1 hidden dependent module chunk {8} async-b.js (async-b) 48 bytes <{0}> ={2}= [rendered] > ./b [0] ./index.js 2:0-47 [4] ./b.js 48 bytes {8} [built]" @@ -2937,7 +2848,7 @@ exports[`StatsTestCases should print correct stats for split-chunks-issue-6413 1 chunk {0} main.js (main) 147 bytes (javascript) 3.97 KiB (runtime) >{1}< >{2}< >{3}< >{4}< >{5}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 5 hidden modules + + 5 hidden root modules chunk {1} async-a.js (async-a) 19 bytes <{0}> ={2}= ={3}= [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js 19 bytes {1} [built] @@ -2964,18 +2875,18 @@ exports[`StatsTestCases should print correct stats for split-chunks-issue-6696 1 chunk {0} main.js (main) 110 bytes (javascript) 4.85 KiB (runtime) ={1}= >{2}< >{3}< [entry] [rendered] > ./ main [0] ./index.js 110 bytes {0} [built] - + 5 hidden modules + + 5 hidden root modules chunk {1} vendors.js (vendors) 20 bytes ={0}= >{2}< >{3}< [initial] [rendered] split chunk (cache group: vendors) (name: vendors) > ./ main [1] ./node_modules/y.js 20 bytes {1} [built] chunk {2} async-a.js (async-a) 32 bytes <{0}> <{1}> [rendered] > ./a [0] ./index.js 2:0-47 [2] ./a.js 12 bytes {2} [built] - [3] ./node_modules/x.js 20 bytes {2} {3} [built] + + 1 hidden dependent module chunk {3} async-b.js (async-b) 32 bytes <{0}> <{1}> [rendered] > ./b [0] ./index.js 3:0-47 - [3] ./node_modules/x.js 20 bytes {2} {3} [built] - [4] ./b.js 12 bytes {3} [built]" + [4] ./b.js 12 bytes {3} [built] + + 1 hidden dependent module" `; exports[`StatsTestCases should print correct stats for split-chunks-issue-7401 1`] = ` @@ -2985,7 +2896,7 @@ Chunk Group c = vendors~a~c.js c.js chunk {0} a.js (a) 12 bytes (javascript) 2.52 KiB (runtime) ={1}= [entry] [rendered] > ./a a [0] ./a.js 12 bytes {0} [built] - + 2 hidden modules + + 2 hidden root modules chunk {1} vendors~a~c.js (vendors~a~c) 20 bytes <{2}> ={0}= ={3}= [initial] [rendered] split chunk (cache group: defaultVendors) (name: vendors~a~c) > ./c [2] ./b.js 1:0-41 > ./a a @@ -2993,7 +2904,7 @@ chunk {1} vendors~a~c.js (vendors~a~c) 20 bytes <{2}> ={0}= ={3}= [initial] [ chunk {2} b.js (b) 43 bytes (javascript) 3.89 KiB (runtime) >{1}< >{3}< [entry] [rendered] > ./b b [2] ./b.js 43 bytes {2} [built] - + 5 hidden modules + + 5 hidden root modules chunk {3} c.js (c) 12 bytes <{2}> ={1}= [rendered] > ./c [2] ./b.js 1:0-41 [3] ./c.js 12 bytes {3} [built]" @@ -3023,7 +2934,7 @@ exports[`StatsTestCases should print correct stats for split-chunks-max-size 1`] chunk {3} prod-main~02369f19.js (main~02369f19) 1.57 KiB (javascript) 3.14 KiB (runtime) ={0}= ={1}= ={2}= ={4}= ={5}= ={6}= ={7}= ={8}= ={9}= ={10}= ={11}= ={12}= [entry] [rendered] > ./ main [12] ./very-big.js?1 1.57 KiB {3} [built] - + 4 hidden modules + + 4 hidden root modules chunk {4} prod-main~c6931360.js (main~c6931360) 1.57 KiB ={0}= ={1}= ={2}= ={3}= ={5}= ={6}= ={7}= ={8}= ={9}= ={10}= ={11}= ={12}= [initial] [rendered] > ./ main [13] ./very-big.js?2 1.57 KiB {4} [built] @@ -3139,7 +3050,7 @@ Child development: chunk {main~._very-big.js~62f7f644} dev-main~._very-big.js~62f7f644.js (main~._very-big.js~62f7f644) 3.52 KiB (runtime) 1.57 KiB (javascript) ={main~._big.js~1}= ={main~._in-some-directory_b}= ={main~._in-some-directory_very-big.js~8d76cf03}= ={main~._index.js~41f5a26e}= ={main~._inner-module_small.js~3}= ={main~._small.js~1}= ={main~._subfolder_big.js~b}= ={main~._subfolder_small.js~1}= ={main~._very-big.js~08cf55cf}= ={main~._very-big.js~4647fb9d}= ={vendors~main~._node_modules_b}= ={vendors~main~._node_modules_very-big.js~6bdbed7b}= [entry] [rendered] > ./ main [./very-big.js?1] 1.57 KiB {main~._very-big.js~62f7f644} [built] - + 4 hidden modules + + 4 hidden root modules chunk {vendors~main~._node_modules_b} dev-vendors~main~._node_modules_b.js (vendors~main~._node_modules_b) 402 bytes ={main~._big.js~1}= ={main~._in-some-directory_b}= ={main~._in-some-directory_very-big.js~8d76cf03}= ={main~._index.js~41f5a26e}= ={main~._inner-module_small.js~3}= ={main~._small.js~1}= ={main~._subfolder_big.js~b}= ={main~._subfolder_small.js~1}= ={main~._very-big.js~08cf55cf}= ={main~._very-big.js~4647fb9d}= ={main~._very-big.js~62f7f644}= ={vendors~main~._node_modules_very-big.js~6bdbed7b}= [initial] [rendered] split chunk (cache group: defaultVendors) (name: vendors~main) > ./ main [./node_modules/big.js?1] 268 bytes {vendors~main~._node_modules_b} [built] @@ -3192,7 +3103,7 @@ Child switched: [803] ./small.js?7 67 bytes {3} [built] [853] ./inner-module/small.js?3 67 bytes {3} [built] [991] ./small.js?2 67 bytes {3} [built] - + 3 hidden modules + + 3 hidden root modules chunk {4} switched-vendors~main~7274e1de.js (vendors~main~7274e1de) 1.96 KiB ={0}= ={1}= ={2}= ={3}= ={5}= ={6}= ={7}= ={8}= [initial] [rendered] split chunk (cache group: defaultVendors) (name: vendors~main) > ./ main [208] ./node_modules/small.js?1 67 bytes {4} [built] @@ -3202,7 +3113,7 @@ Child switched: chunk {5} switched-main~02369f19.js (main~02369f19) 1.57 KiB (javascript) 3.13 KiB (runtime) ={0}= ={1}= ={2}= ={3}= ={4}= ={6}= ={7}= ={8}= [entry] [rendered] > ./ main [358] ./very-big.js?1 1.57 KiB {5} [built] - + 4 hidden modules + + 4 hidden root modules chunk {6} switched-main~c6931360.js (main~c6931360) 1.57 KiB ={0}= ={1}= ={2}= ={3}= ={4}= ={5}= ={7}= ={8}= [initial] [rendered] > ./ main [772] ./very-big.js?2 1.57 KiB {6} [built] @@ -3272,7 +3183,7 @@ Child zero-min: chunk {6} zero-min-main~02369f19.js (main~02369f19) 1.57 KiB (javascript) 3.14 KiB (runtime) ={0}= ={1}= ={2}= ={3}= ={4}= ={5}= ={7}= ={8}= ={9}= ={10}= ={11}= ={12}= [entry] [rendered] > ./ main [358] ./very-big.js?1 1.57 KiB {6} [built] - + 4 hidden modules + + 4 hidden root modules chunk {7} zero-min-main~6a2ae26b.js (main~6a2ae26b) 536 bytes ={0}= ={1}= ={2}= ={3}= ={4}= ={5}= ={6}= ={8}= ={9}= ={10}= ={11}= ={12}= [initial] [rendered] > ./ main [605] ./in-some-directory/small.js?3 67 bytes {7} [built] @@ -3300,7 +3211,7 @@ Child enforce-min-size: Entrypoint main = enforce-min-size-all~main~6e7ead72.js enforce-min-size-all~main~6a2ae26b.js enforce-min-size-all~main~17acad98.js enforce-min-size-all~main~b2c7414a.js enforce-min-size-all~main~75f09de8.js enforce-min-size-all~main~7274e1de.js enforce-min-size-all~main~0feae4ad.js enforce-min-size-all~main~052b3814.js enforce-min-size-all~main~3ff27526.js enforce-min-size-all~main~11485824.js enforce-min-size-all~main~c6931360.js enforce-min-size-all~main~cd7c5bfc.js enforce-min-size-all~main~02369f19.js enforce-min-size-main.js chunk {0} enforce-min-size-main.js (main) 3.14 KiB ={1}= ={2}= ={3}= ={4}= ={5}= ={6}= ={7}= ={8}= ={9}= ={10}= ={11}= ={12}= ={13}= [entry] [rendered] > ./ main - 4 modules + 4 root modules chunk {1} enforce-min-size-all~main~11485824.js (all~main~11485824) 603 bytes ={0}= ={2}= ={3}= ={4}= ={5}= ={6}= ={7}= ={8}= ={9}= ={10}= ={11}= ={12}= ={13}= [initial] [rendered] split chunk (cache group: all) (name: all~main) > ./ main [8] ./subfolder/small.js?3 67 bytes {1} [built] @@ -3379,12 +3290,11 @@ exports[`StatsTestCases should print correct stats for split-chunks-prefer-bigge chunk {0} default/main.js (main) 147 bytes (javascript) 4.53 KiB (runtime) >{1}< >{2}< >{3}< >{4}< [entry] [rendered] > ./ main [0] ./index.js 147 bytes {0} [built] - + 7 hidden modules + + 7 hidden root modules chunk {1} default/async-a.js (async-a) 134 bytes <{0}> [rendered] > ./a [0] ./index.js 1:0-47 [1] ./a.js 48 bytes {1} [built] - [2] ./d.js 43 bytes {1} {2} [built] - [3] ./e.js 43 bytes {1} {3} [built] + + 2 hidden dependent modules chunk {2} default/async-b~async-c.js (async-b~async-c) 110 bytes <{0}> ={3}= ={4}= [rendered] split chunk (cache group: default) (name: async-b~async-c) > ./b [0] ./index.js 2:0-47 > ./c [0] ./index.js 3:0-47 @@ -3392,8 +3302,8 @@ chunk {2} default/async-b~async-c.js (async-b~async-c) 110 bytes <{0}> ={3}= [5] ./f.js 67 bytes {2} [built] chunk {3} default/async-b.js (async-b) 105 bytes <{0}> ={2}= [rendered] > ./b [0] ./index.js 2:0-47 - [3] ./e.js 43 bytes {1} {3} [built] [4] ./b.js 62 bytes {3} [built] + + 1 hidden dependent module chunk {4} default/async-c.js (async-c) 48 bytes <{0}> ={2}= [rendered] > ./c [0] ./index.js 3:0-47 [6] ./c.js 48 bytes {4} [built]" @@ -3404,7 +3314,7 @@ exports[`StatsTestCases should print correct stats for tree-shaking 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -bundle.js 7.04 KiB 0 [emitted] main +bundle.js 7.04 KiB {0} [emitted] main Entrypoint main = bundle.js [0] ./index.js 315 bytes {0} [built] [no exports] @@ -3442,7 +3352,7 @@ exports[`StatsTestCases should print correct stats for warnings-terser 1`] = ` Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names -bundle.js 1.26 KiB 0 [emitted] main +bundle.js 1.26 KiB {0} [emitted] main Entrypoint main = bundle.js [0] ./index.js 299 bytes {0} [built] [1] ./a.js 249 bytes {0} [built] @@ -3464,22 +3374,22 @@ exports[`StatsTestCases should print correct stats for wasm-explorer-examples-sy Time: Xms Built at: Thu Jan 01 1970 00:00:00 GMT Asset Size Chunks Chunk Names - 1.bundle.js 3.93 KiB 1 [emitted] - 2.bundle.js 427 bytes 2 [emitted] - 3.bundle.js 836 bytes 3 [emitted] - 4.bundle.js 325 bytes 4 [emitted] -46cd2b5787876cc1f6f5.module.wasm 132 bytes 2 [emitted] - 5.bundle.js 427 bytes 5 [emitted] -8e00e13c987102e631df.module.wasm 511 bytes 5 [emitted] -8f1828430343773fe2e2.module.wasm 133 bytes 3 [emitted] -96cb6b7544a37a59f651.module.wasm 226 bytes 3 [emitted] - bundle.js 10.5 KiB 0 [emitted] main~b2c7414a -df74c7b89cf80ed06dc7.module.wasm 95 bytes 1 [emitted] -fb965440c633ab0ab0e6.module.wasm 126 bytes 1 [emitted] + 1.bundle.js 3.93 KiB {1} [emitted] + 2.bundle.js 427 bytes {2} [emitted] + 3.bundle.js 836 bytes {3} [emitted] + 4.bundle.js 325 bytes {4} [emitted] +46cd2b5787876cc1f6f5.module.wasm 132 bytes {2} [emitted] + 5.bundle.js 427 bytes {5} [emitted] +8e00e13c987102e631df.module.wasm 511 bytes {5} [emitted] +8f1828430343773fe2e2.module.wasm 133 bytes {3} [emitted] +96cb6b7544a37a59f651.module.wasm 226 bytes {3} [emitted] + bundle.js 10.5 KiB {0} [emitted] main~b2c7414a +df74c7b89cf80ed06dc7.module.wasm 95 bytes {1} [emitted] +fb965440c633ab0ab0e6.module.wasm 126 bytes {1} [emitted] Entrypoint main = bundle.js chunk {0} bundle.js (main~b2c7414a) 586 bytes (javascript) 6.43 KiB (runtime) >{1}< >{2}< >{3}< >{4}< >{5}< [entry] [rendered] [0] ./index.js 586 bytes {0} [built] - + 7 hidden modules + + 7 hidden chunk modules chunk {1} 1.bundle.js, fb965440c633ab0ab0e6.module.wasm, df74c7b89cf80ed06dc7.module.wasm 1.6 KiB (javascript) 274 bytes (webassembly) <{0}> ={2}= ={3}= ={4}= ={5}= [rendered] [1] ./tests.js 1.4 KiB {1} [built] [3] ./testFunction.wasm 100 bytes (javascript) 154 bytes (webassembly) {1} [built] diff --git a/test/statsCases/graph-roots/cycle/a.js b/test/statsCases/graph-roots/cycle/a.js new file mode 100644 index 000000000..e6da568dd --- /dev/null +++ b/test/statsCases/graph-roots/cycle/a.js @@ -0,0 +1 @@ +import "./b"; diff --git a/test/statsCases/graph-roots/cycle/b.js b/test/statsCases/graph-roots/cycle/b.js new file mode 100644 index 000000000..4c72c1fbf --- /dev/null +++ b/test/statsCases/graph-roots/cycle/b.js @@ -0,0 +1 @@ +import "./c"; diff --git a/test/statsCases/graph-roots/cycle/c.js b/test/statsCases/graph-roots/cycle/c.js new file mode 100644 index 000000000..4b07c6bdc --- /dev/null +++ b/test/statsCases/graph-roots/cycle/c.js @@ -0,0 +1 @@ +import "./index"; diff --git a/test/statsCases/graph-roots/cycle/index.js b/test/statsCases/graph-roots/cycle/index.js new file mode 100644 index 000000000..3a0ce2965 --- /dev/null +++ b/test/statsCases/graph-roots/cycle/index.js @@ -0,0 +1 @@ +import "./a"; diff --git a/test/statsCases/graph-roots/cycle2/a.js b/test/statsCases/graph-roots/cycle2/a.js new file mode 100644 index 000000000..e6da568dd --- /dev/null +++ b/test/statsCases/graph-roots/cycle2/a.js @@ -0,0 +1 @@ +import "./b"; diff --git a/test/statsCases/graph-roots/cycle2/b.js b/test/statsCases/graph-roots/cycle2/b.js new file mode 100644 index 000000000..340d7a0d7 --- /dev/null +++ b/test/statsCases/graph-roots/cycle2/b.js @@ -0,0 +1,2 @@ +import "./c"; +import "./index"; diff --git a/test/statsCases/graph-roots/cycle2/c.js b/test/statsCases/graph-roots/cycle2/c.js new file mode 100644 index 000000000..4b07c6bdc --- /dev/null +++ b/test/statsCases/graph-roots/cycle2/c.js @@ -0,0 +1 @@ +import "./index"; diff --git a/test/statsCases/graph-roots/cycle2/index.js b/test/statsCases/graph-roots/cycle2/index.js new file mode 100644 index 000000000..3a0ce2965 --- /dev/null +++ b/test/statsCases/graph-roots/cycle2/index.js @@ -0,0 +1 @@ +import "./a"; diff --git a/test/statsCases/graph-roots/cycles/1/a.js b/test/statsCases/graph-roots/cycles/1/a.js new file mode 100644 index 000000000..44107222c --- /dev/null +++ b/test/statsCases/graph-roots/cycles/1/a.js @@ -0,0 +1,2 @@ +import "./index"; +import "./b"; diff --git a/test/statsCases/graph-roots/cycles/1/b.js b/test/statsCases/graph-roots/cycles/1/b.js new file mode 100644 index 000000000..4c72c1fbf --- /dev/null +++ b/test/statsCases/graph-roots/cycles/1/b.js @@ -0,0 +1 @@ +import "./c"; diff --git a/test/statsCases/graph-roots/cycles/1/c.js b/test/statsCases/graph-roots/cycles/1/c.js new file mode 100644 index 000000000..4b07c6bdc --- /dev/null +++ b/test/statsCases/graph-roots/cycles/1/c.js @@ -0,0 +1 @@ +import "./index"; diff --git a/test/statsCases/graph-roots/cycles/1/index.js b/test/statsCases/graph-roots/cycles/1/index.js new file mode 100644 index 000000000..3a0ce2965 --- /dev/null +++ b/test/statsCases/graph-roots/cycles/1/index.js @@ -0,0 +1 @@ +import "./a"; diff --git a/test/statsCases/graph-roots/cycles/2/a.js b/test/statsCases/graph-roots/cycles/2/a.js new file mode 100644 index 000000000..e6da568dd --- /dev/null +++ b/test/statsCases/graph-roots/cycles/2/a.js @@ -0,0 +1 @@ +import "./b"; diff --git a/test/statsCases/graph-roots/cycles/2/b.js b/test/statsCases/graph-roots/cycles/2/b.js new file mode 100644 index 000000000..340d7a0d7 --- /dev/null +++ b/test/statsCases/graph-roots/cycles/2/b.js @@ -0,0 +1,2 @@ +import "./c"; +import "./index"; diff --git a/test/statsCases/graph-roots/cycles/2/c.js b/test/statsCases/graph-roots/cycles/2/c.js new file mode 100644 index 000000000..4b07c6bdc --- /dev/null +++ b/test/statsCases/graph-roots/cycles/2/c.js @@ -0,0 +1 @@ +import "./index"; diff --git a/test/statsCases/graph-roots/cycles/2/index.js b/test/statsCases/graph-roots/cycles/2/index.js new file mode 100644 index 000000000..3a0ce2965 --- /dev/null +++ b/test/statsCases/graph-roots/cycles/2/index.js @@ -0,0 +1 @@ +import "./a"; diff --git a/test/statsCases/graph-roots/index.js b/test/statsCases/graph-roots/index.js new file mode 100644 index 000000000..fbddfe100 --- /dev/null +++ b/test/statsCases/graph-roots/index.js @@ -0,0 +1,12 @@ +import(/* webpackChunkName: "tree" */ "./tree"); + +import(/* webpackChunkName: "trees" */ "./trees/1"); +import(/* webpackChunkName: "trees" */ "./trees/2"); +import(/* webpackChunkName: "trees" */ "./trees/3"); + +import(/* webpackChunkName: "cycle" */ "./cycle"); + +import(/* webpackChunkName: "cycle2" */ "./cycle2"); + +import(/* webpackChunkName: "cycles" */ "./cycles/1"); +import(/* webpackChunkName: "cycles" */ "./cycles/2"); diff --git a/test/statsCases/graph-roots/tree/a.js b/test/statsCases/graph-roots/tree/a.js new file mode 100644 index 000000000..e6da568dd --- /dev/null +++ b/test/statsCases/graph-roots/tree/a.js @@ -0,0 +1 @@ +import "./b"; diff --git a/test/statsCases/graph-roots/tree/b.js b/test/statsCases/graph-roots/tree/b.js new file mode 100644 index 000000000..4c72c1fbf --- /dev/null +++ b/test/statsCases/graph-roots/tree/b.js @@ -0,0 +1 @@ +import "./c"; diff --git a/test/statsCases/graph-roots/tree/c.js b/test/statsCases/graph-roots/tree/c.js new file mode 100644 index 000000000..e69de29bb diff --git a/test/statsCases/graph-roots/tree/index.js b/test/statsCases/graph-roots/tree/index.js new file mode 100644 index 000000000..3a0ce2965 --- /dev/null +++ b/test/statsCases/graph-roots/tree/index.js @@ -0,0 +1 @@ +import "./a"; diff --git a/test/statsCases/graph-roots/trees/1.js b/test/statsCases/graph-roots/trees/1.js new file mode 100644 index 000000000..3a0ce2965 --- /dev/null +++ b/test/statsCases/graph-roots/trees/1.js @@ -0,0 +1 @@ +import "./a"; diff --git a/test/statsCases/graph-roots/trees/2.js b/test/statsCases/graph-roots/trees/2.js new file mode 100644 index 000000000..3a0ce2965 --- /dev/null +++ b/test/statsCases/graph-roots/trees/2.js @@ -0,0 +1 @@ +import "./a"; diff --git a/test/statsCases/graph-roots/trees/3.js b/test/statsCases/graph-roots/trees/3.js new file mode 100644 index 000000000..e6da568dd --- /dev/null +++ b/test/statsCases/graph-roots/trees/3.js @@ -0,0 +1 @@ +import "./b"; diff --git a/test/statsCases/graph-roots/trees/a.js b/test/statsCases/graph-roots/trees/a.js new file mode 100644 index 000000000..e6da568dd --- /dev/null +++ b/test/statsCases/graph-roots/trees/a.js @@ -0,0 +1 @@ +import "./b"; diff --git a/test/statsCases/graph-roots/trees/b.js b/test/statsCases/graph-roots/trees/b.js new file mode 100644 index 000000000..4c72c1fbf --- /dev/null +++ b/test/statsCases/graph-roots/trees/b.js @@ -0,0 +1 @@ +import "./c"; diff --git a/test/statsCases/graph-roots/trees/c.js b/test/statsCases/graph-roots/trees/c.js new file mode 100644 index 000000000..e69de29bb diff --git a/test/statsCases/graph-roots/webpack.config.js b/test/statsCases/graph-roots/webpack.config.js new file mode 100644 index 000000000..82f53db63 --- /dev/null +++ b/test/statsCases/graph-roots/webpack.config.js @@ -0,0 +1,14 @@ +module.exports = { + mode: "development", + entry: "./index.js", + optimization: { + moduleIds: "natural", + chunkIds: "natural", + splitChunks: false + }, + stats: { + all: false, + chunks: true, + chunkRootModules: true + } +};