From 6b59d113a43e0b2ff150abc05a356b350295852a Mon Sep 17 00:00:00 2001 From: Sergey Melyukov Date: Mon, 2 Dec 2019 17:59:37 +0300 Subject: [PATCH 1/4] optimize webpack runtime size --- lib/ContextModule.js | 31 +- lib/RuntimeGlobals.js | 6 + lib/Template.js | 12 +- ...armonyExportImportedSpecifierDependency.js | 3 +- lib/javascript/JavascriptModulesPlugin.js | 35 +- lib/node/ReadFileChunkLoadingRuntimeModule.js | 5 +- lib/node/RequireChunkLoadingRuntimeModule.js | 5 +- lib/web/JsonpChunkLoadingRuntimeModule.js | 17 +- lib/web/JsonpTemplatePlugin.js | 25 +- .../ImportScriptsChunkLoadingRuntimeModule.js | 5 +- test/Stats.test.js | 4 +- .../__snapshots__/StatsTestCases.test.js.snap | 364 +++++++++--------- 12 files changed, 287 insertions(+), 225 deletions(-) diff --git a/lib/ContextModule.js b/lib/ContextModule.js index bf7a77869..103aeb2c2 100644 --- a/lib/ContextModule.js +++ b/lib/ContextModule.js @@ -545,7 +545,7 @@ function webpackContext(req) { ${returnModuleObject} } function webpackContextResolve(req) { - if(!Object.prototype.hasOwnProperty.call(map, req)) { + if(!${RuntimeGlobals.hasOwnProperty}(map, req)) { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; @@ -584,7 +584,7 @@ function webpackContext(req) { ${returnModuleObject} } function webpackContextResolve(req) { - if(!Object.prototype.hasOwnProperty.call(map, req)) { + if(!${RuntimeGlobals.hasOwnProperty}(map, req)) { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; @@ -632,7 +632,7 @@ function webpackAsyncContextResolve(req) { // Here Promise.resolve().then() is used instead of new Promise() to prevent // uncaught exception popping up in devtools return Promise.resolve().then(${arrow ? "() =>" : "function()"} { - if(!Object.prototype.hasOwnProperty.call(map, req)) { + if(!${RuntimeGlobals.hasOwnProperty}(map, req)) { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; @@ -640,7 +640,9 @@ function webpackAsyncContextResolve(req) { return map[req]; }); } -webpackAsyncContext.keys = function webpackAsyncContextKeys() { +webpackAsyncContext.keys = ${ + arrow ? "_ => {" : "function webpackAsyncContextKeys() {" + } return Object.keys(map); }; webpackAsyncContext.resolve = webpackAsyncContextResolve; @@ -676,7 +678,7 @@ function webpackAsyncContextResolve(req) { // Here Promise.resolve().then() is used instead of new Promise() to prevent // uncaught exception popping up in devtools return Promise.resolve().then(${arrow ? "() =>" : "function()"} { - if(!Object.prototype.hasOwnProperty.call(map, req)) { + if(!${RuntimeGlobals.hasOwnProperty}(map, req)) { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; @@ -684,7 +686,9 @@ function webpackAsyncContextResolve(req) { return map[req]; }); } -webpackAsyncContext.keys = function webpackAsyncContextKeys() { +webpackAsyncContext.keys = ${ + arrow ? "_ => {" : "function webpackAsyncContextKeys() {" + } return Object.keys(map); }; webpackAsyncContext.resolve = webpackAsyncContextResolve; @@ -726,7 +730,7 @@ function webpackAsyncContext(req) { } function webpackAsyncContextResolve(req) { return ${promise}.then(${arrow ? "() =>" : "function()"} { - if(!Object.prototype.hasOwnProperty.call(map, req)) { + if(!${RuntimeGlobals.hasOwnProperty}(map, req)) { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; @@ -734,7 +738,9 @@ function webpackAsyncContextResolve(req) { return map[req]; }); } -webpackAsyncContext.keys = function webpackAsyncContextKeys() { +webpackAsyncContext.keys = ${ + arrow ? "_ => {" : "function webpackAsyncContextKeys() {" + } return Object.keys(map); }; webpackAsyncContext.resolve = webpackAsyncContextResolve; @@ -821,7 +827,7 @@ module.exports = webpackAsyncContext;`; ? `${shortMode ? "" : ""} function webpackAsyncContext(req) { return Promise.resolve().then(${arrow ? "() =>" : "function()"} { - if(!Object.prototype.hasOwnProperty.call(map, req)) { + if(!${RuntimeGlobals.hasOwnProperty}(map, req)) { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; @@ -832,7 +838,7 @@ function webpackAsyncContext(req) { }); }` : `function webpackAsyncContext(req) { - if(!Object.prototype.hasOwnProperty.call(map, req)) { + if(!${RuntimeGlobals.hasOwnProperty}(map, req)) { return Promise.resolve().then(${arrow ? "() =>" : "function()"} { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; @@ -848,7 +854,9 @@ function webpackAsyncContext(req) { return `var map = ${JSON.stringify(map, null, "\t")}; ${webpackAsyncContext} -webpackAsyncContext.keys = function webpackAsyncContextKeys() { +webpackAsyncContext.keys = ${ + arrow ? "_ => {" : "function webpackAsyncContextKeys() {" + } return Object.keys(map); }; webpackAsyncContext.id = ${JSON.stringify(id)}; @@ -962,6 +970,7 @@ module.exports = webpackEmptyAsyncContext;`; this.blocks.map(b => b.dependencies[0]) )); set.push(RuntimeGlobals.module); + set.push(RuntimeGlobals.hasOwnProperty); if (allDeps.length > 0) { const asyncMode = this.options.mode; set.push(RuntimeGlobals.require); diff --git a/lib/RuntimeGlobals.js b/lib/RuntimeGlobals.js index 3563540e5..92f489fb0 100644 --- a/lib/RuntimeGlobals.js +++ b/lib/RuntimeGlobals.js @@ -199,3 +199,9 @@ exports.amdOptions = "__webpack_require__.amdO"; * the System polyfill object */ exports.system = "__webpack_require__.System"; + +/** + * the shorthand for Object.prototype.hasOwnProperty + * using of ot decreases the compiled bundle size + */ +exports.hasOwnProperty = "__webpack_require__.hop"; diff --git a/lib/Template.js b/lib/Template.js index 2be5f8799..44f274dba 100644 --- a/lib/Template.js +++ b/lib/Template.js @@ -321,9 +321,15 @@ class Template { const moduleSource = codeGenResult.sources.get("runtime"); if (moduleSource) { source.add(Template.toNormalComment(module.identifier()) + "\n"); - source.add("!function() {\n"); - source.add(new PrefixSource("\t", moduleSource)); - source.add("\n}();\n\n"); + if (renderContext.runtimeTemplate.supportsArrowFunction()) { + source.add("(() => {\n"); + source.add(new PrefixSource("\t", moduleSource)); + source.add("\n})();\n\n"); + } else { + source.add("!function() {\n"); + source.add(new PrefixSource("\t", moduleSource)); + source.add("\n}();\n\n"); + } } } } diff --git a/lib/dependencies/HarmonyExportImportedSpecifierDependency.js b/lib/dependencies/HarmonyExportImportedSpecifierDependency.js index 35a4bc24e..4422b644c 100644 --- a/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +++ b/lib/dependencies/HarmonyExportImportedSpecifierDependency.js @@ -892,8 +892,9 @@ HarmonyExportImportedSpecifierDependency.Template = class HarmonyExportImportedS runtimeRequirements.add(RuntimeGlobals.exports); runtimeRequirements.add(RuntimeGlobals.definePropertyGetters); + runtimeRequirements.add(RuntimeGlobals.hasOwnProperty); - return `if(Object.prototype.hasOwnProperty.call(${name}, ${JSON.stringify( + return `if(${RuntimeGlobals.hasOwnProperty}(${name}, ${JSON.stringify( valueKey[0] )})) ${ RuntimeGlobals.definePropertyGetters diff --git a/lib/javascript/JavascriptModulesPlugin.js b/lib/javascript/JavascriptModulesPlugin.js index 36950855c..fc50ebcbf 100644 --- a/lib/javascript/JavascriptModulesPlugin.js +++ b/lib/javascript/JavascriptModulesPlugin.js @@ -489,7 +489,7 @@ class JavascriptModulesPlugin { let source = new ConcatSource(); let prefix; if (iife) { - if (runtimeTemplate.supportsConst()) { + if (runtimeTemplate.supportsArrowFunction()) { source.add("/******/ (() => { // webpackBootstrap\n"); } else { source.add("/******/ (function() { // webpackBootstrap\n"); @@ -571,10 +571,17 @@ class JavascriptModulesPlugin { const innerStrict = !allStrict && m.buildInfo.strict; const iife = innerStrict || inlinedModules.size > 1 || chunkModules; if (iife) { - source.add("!function() {\n"); - if (innerStrict) source.add('"use strict";\n'); - source.add(renderedModule); - source.add("\n}();\n"); + if (runtimeTemplate.supportsArrowFunction()) { + source.add("(() => {\n"); + if (innerStrict) source.add('"use strict";\n'); + source.add(renderedModule); + source.add("\n})();\n\n"); + } else { + source.add("!function() {\n"); + if (innerStrict) source.add('"use strict";\n'); + source.add(renderedModule); + source.add("\n}();\n"); + } } else { source.add(renderedModule); source.add("\n"); @@ -703,6 +710,24 @@ class JavascriptModulesPlugin { buf.push(""); } + if (runtimeRequirements.has(RuntimeGlobals.hasOwnProperty)) { + buf.push("// the shorthand for Object.prototype.hasOwnProperty"); + if (runtimeTemplate.supportsArrowFunction()) { + buf.push( + `${RuntimeGlobals.hasOwnProperty} = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);` + ); + } else { + buf.push(`${RuntimeGlobals.hasOwnProperty} = function (obj, prop) {`); + buf.push( + Template.indent( + "return Object.prototype.hasOwnProperty.call(obj, prop);" + ) + ); + buf.push("};"); + } + buf.push(""); + } + if ( moduleFactories || runtimeRequirements.has(RuntimeGlobals.moduleFactoriesAddOnly) diff --git a/lib/node/ReadFileChunkLoadingRuntimeModule.js b/lib/node/ReadFileChunkLoadingRuntimeModule.js index 3c554d5bd..2b68cb278 100644 --- a/lib/node/ReadFileChunkLoadingRuntimeModule.js +++ b/lib/node/ReadFileChunkLoadingRuntimeModule.js @@ -14,6 +14,7 @@ class ReadFileChunkLoadingRuntimeModule extends RuntimeModule { constructor(runtimeRequirements) { super("readFile chunk loading", 10); this.runtimeRequirements = runtimeRequirements; + this.runtimeRequirements.add(RuntimeGlobals.hasOwnProperty); } /** @@ -77,7 +78,7 @@ class ReadFileChunkLoadingRuntimeModule extends RuntimeModule { "var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;", "for(var moduleId in moreModules) {", Template.indent([ - "if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {", + `if(${RuntimeGlobals.hasOwnProperty}(moreModules, moduleId)) {`, Template.indent([ `${RuntimeGlobals.moduleFactories}[moduleId] = moreModules[moduleId];` ]), @@ -148,7 +149,7 @@ class ReadFileChunkLoadingRuntimeModule extends RuntimeModule { "var runtime = update.runtime;", "for(var moduleId in updatedModules) {", Template.indent([ - "if(Object.prototype.hasOwnProperty.call(updatedModules, moduleId)) {", + `if(${RuntimeGlobals.hasOwnProperty}(updatedModules, moduleId)) {`, Template.indent([ `currentUpdate[moduleId] = updatedModules[moduleId];`, "if(updatedModulesList) updatedModulesList.push(moduleId);" diff --git a/lib/node/RequireChunkLoadingRuntimeModule.js b/lib/node/RequireChunkLoadingRuntimeModule.js index 4b79c218d..c3d1b6817 100644 --- a/lib/node/RequireChunkLoadingRuntimeModule.js +++ b/lib/node/RequireChunkLoadingRuntimeModule.js @@ -14,6 +14,7 @@ class RequireChunkLoadingRuntimeModule extends RuntimeModule { constructor(runtimeRequirements) { super("require chunk loading", 10); this.runtimeRequirements = runtimeRequirements; + this.runtimeRequirements.add(RuntimeGlobals.hasOwnProperty); } /** @@ -62,7 +63,7 @@ class RequireChunkLoadingRuntimeModule extends RuntimeModule { "var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;", "for(var moduleId in moreModules) {", Template.indent([ - "if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {", + `if(${RuntimeGlobals.hasOwnProperty}(moreModules, moduleId)) {`, Template.indent([ `${RuntimeGlobals.moduleFactories}[moduleId] = moreModules[moduleId];` ]), @@ -107,7 +108,7 @@ class RequireChunkLoadingRuntimeModule extends RuntimeModule { "var runtime = update.runtime;", "for(var moduleId in updatedModules) {", Template.indent([ - "if(Object.prototype.hasOwnProperty.call(updatedModules, moduleId)) {", + `if(${RuntimeGlobals.hasOwnProperty}(updatedModules, moduleId)) {`, Template.indent([ `currentUpdate[moduleId] = updatedModules[moduleId];`, "if(updatedModulesList) updatedModulesList.push(moduleId);" diff --git a/lib/web/JsonpChunkLoadingRuntimeModule.js b/lib/web/JsonpChunkLoadingRuntimeModule.js index ee40e418e..7f9a37a49 100644 --- a/lib/web/JsonpChunkLoadingRuntimeModule.js +++ b/lib/web/JsonpChunkLoadingRuntimeModule.js @@ -18,6 +18,7 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule { this.jsonpScript = jsonpScript; this.linkPreload = linkPreload; this.linkPrefetch = linkPrefetch; + this.runtimeRequirements.add(RuntimeGlobals.hasOwnProperty); } /** @@ -112,7 +113,7 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule { hasJsMatcher !== false ? Template.indent([ "// JSONP chunk loading for javascript", - `var installedChunkData = Object.prototype.hasOwnProperty.call(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;`, + `var installedChunkData = ${RuntimeGlobals.hasOwnProperty}(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;`, 'if(installedChunkData !== 0) { // 0 means "already installed".', Template.indent([ "", @@ -141,7 +142,7 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule { `var loadingEnded = ${runtimeTemplate.basicFunction( "", [ - "if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId)) {", + `if(${RuntimeGlobals.hasOwnProperty}(installedChunks, chunkId)) {`, Template.indent([ "installedChunkData = installedChunks[chunkId];", "if(installedChunkData !== 0) installedChunks[chunkId] = undefined;", @@ -173,7 +174,7 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule { "chunkId", "chunkPreloadData", [ - "if(!Object.prototype.hasOwnProperty.call(installedChunks, chunkId) || installedChunks[chunkId] === undefined) {", + `if(!${RuntimeGlobals.hasOwnProperty}(installedChunks, chunkId) || installedChunks[chunkId] === undefined) {`, Template.indent([ "installedChunks[chunkId] = null;", linkPreload.call("", chunk), @@ -202,7 +203,7 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule { ? Template.asString([ "function prefetchChunk(chunkId) {", Template.indent([ - "if(!Object.prototype.hasOwnProperty.call(installedChunks, chunkId) || installedChunks[chunkId] === undefined) {", + `if(!${RuntimeGlobals.hasOwnProperty}(installedChunks, chunkId) || installedChunks[chunkId] === undefined) {`, Template.indent([ "installedChunks[chunkId] = null;", linkPrefetch.call("", chunk), @@ -251,7 +252,7 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule { [ "for(var moduleId in moreModules) {", Template.indent([ - "if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {", + `if(${RuntimeGlobals.hasOwnProperty}(moreModules, moduleId)) {`, Template.indent([ "currentUpdate[moduleId] = moreModules[moduleId];", "if(currentUpdatedModulesList) currentUpdatedModulesList.push(moduleId);" @@ -310,7 +311,7 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule { "currentUpdateRuntime = [];", "currentUpdatedModulesList = updatedModulesList;", runtimeTemplate.forEach("chunkId", "chunkIds", [ - "if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId] !== undefined) {", + `if(${RuntimeGlobals.hasOwnProperty}(installedChunks, chunkId) && installedChunks[chunkId] !== undefined) {`, Template.indent(["promises.push(loadUpdateChunk(chunkId));"]), "}", "currentUpdateChunks[chunkId] = true;" @@ -414,7 +415,7 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule { "for(;i < chunkIds.length; i++) {", Template.indent([ "chunkId = chunkIds[i];", - "if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {", + `if(${RuntimeGlobals.hasOwnProperty}(installedChunks, chunkId) && installedChunks[chunkId]) {`, Template.indent("resolves.push(installedChunks[chunkId][0]);"), "}", "installedChunks[chunkId] = 0;" @@ -422,7 +423,7 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule { "}", "for(moduleId in moreModules) {", Template.indent([ - "if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {", + `if(${RuntimeGlobals.hasOwnProperty}(moreModules, moduleId)) {`, Template.indent( `${RuntimeGlobals.moduleFactories}[moduleId] = moreModules[moduleId];` ), diff --git a/lib/web/JsonpTemplatePlugin.js b/lib/web/JsonpTemplatePlugin.js index 84da81fe9..339fb5bc3 100644 --- a/lib/web/JsonpTemplatePlugin.js +++ b/lib/web/JsonpTemplatePlugin.js @@ -145,6 +145,7 @@ class JsonpTemplatePlugin { linkPreload, linkPrefetch } = JsonpTemplatePlugin.getCompilationHooks(compilation); + const { runtimeTemplate } = compilation; jsonpScript.tap("JsonpTemplatePlugin", (_, chunk, hash) => { const { @@ -178,9 +179,13 @@ class JsonpTemplatePlugin { : "", "// create error before stack unwound to get useful stacktrace later", "var error = new Error();", - "onScriptComplete = function (event) {", + runtimeTemplate.supportsArrowFunction() + ? "onScriptComplete = event => {" + : "onScriptComplete = function (event) {", Template.indent([ - "onScriptComplete = function() {};", + runtimeTemplate.supportsArrowFunction() + ? "onScriptComplete = _ => _;" + : "onScriptComplete = function() {};", "// avoid mem leaks in IE.", "script.onerror = script.onload = null;", "clearTimeout(timeout);", @@ -198,11 +203,17 @@ class JsonpTemplatePlugin { "}" ]), "};", - "var timeout = setTimeout(function(){", - Template.indent([ - "onScriptComplete({ type: 'timeout', target: script });" - ]), - `}, ${chunkLoadTimeout});`, + ...(runtimeTemplate.supportsArrowFunction() + ? [ + `var timeout = setTimeout(_ => onScriptComplete({ type: 'timeout', target: script }), ${chunkLoadTimeout});` + ] + : [ + "var timeout = setTimeout(function(){", + Template.indent([ + "onScriptComplete({ type: 'timeout', target: script });" + ]), + `}, ${chunkLoadTimeout});` + ]), "script.onerror = script.onload = onScriptComplete;" ]); }); diff --git a/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js b/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js index 784206930..13c68cc23 100644 --- a/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +++ b/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js @@ -12,6 +12,7 @@ class ImportScriptsChunkLoadingRuntimeModule extends RuntimeModule { constructor(runtimeRequirements) { super("importScripts chunk loading", 10); this.runtimeRequirements = runtimeRequirements; + this.runtimeRequirements.add(RuntimeGlobals.hasOwnProperty); } /** @@ -57,7 +58,7 @@ class ImportScriptsChunkLoadingRuntimeModule extends RuntimeModule { Template.indent([ "for(var moduleId in moreModules) {", Template.indent([ - "if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {", + `if(${RuntimeGlobals.hasOwnProperty}(moreModules, moduleId)) {`, Template.indent( `${RuntimeGlobals.moduleFactories}[moduleId] = moreModules[moduleId];` ), @@ -95,7 +96,7 @@ class ImportScriptsChunkLoadingRuntimeModule extends RuntimeModule { Template.indent([ "for(var moduleId in moreModules) {", Template.indent([ - "if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {", + `if(${RuntimeGlobals.hasOwnProperty}(moreModules, moduleId)) {`, Template.indent([ "currentUpdate[moduleId] = moreModules[moduleId];", "if(updatedModulesList) updatedModulesList.push(moduleId);" diff --git a/test/Stats.test.js b/test/Stats.test.js index 1b237170e..568231662 100644 --- a/test/Stats.test.js +++ b/test/Stats.test.js @@ -217,10 +217,10 @@ describe("Stats", () => { "comparedForEmit": false, "emitted": true, "info": Object { - "size": 2044, + "size": 1940, }, "name": "entryB.js", - "size": 2044, + "size": 1940, }, ], "assetsByChunkName": Object { diff --git a/test/__snapshots__/StatsTestCases.test.js.snap b/test/__snapshots__/StatsTestCases.test.js.snap index d9c4859dd..825612b04 100644 --- a/test/__snapshots__/StatsTestCases.test.js.snap +++ b/test/__snapshots__/StatsTestCases.test.js.snap @@ -1,19 +1,19 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`StatsTestCases should print correct stats for aggressive-splitting-entry 1`] = ` -"Hash: fcad093fca05fdcf9752e43314981289fe6ebb3f +"Hash: 20682156c1fe7b669bcf57a7f01638081fc55a7a Child fitting: - Hash: fcad093fca05fdcf9752 + Hash: 20682156c1fe7b669bcf Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) Asset Size fitting-1e85d2c6a3bb53369456.js 1.91 KiB [emitted] [immutable] - fitting-2a9daaa415de9850f1f7.js 12.9 KiB [emitted] [immutable] fitting-32fa512a201604f3e8b7.js 1.08 KiB [emitted] [immutable] + fitting-61fe3dde1d85a317e6b6.js 13 KiB [emitted] [immutable] fitting-64ea4fa3fe9d8c4817d8.js 1.91 KiB [emitted] [immutable] - Entrypoint main = fitting-1e85d2c6a3bb53369456.js fitting-64ea4fa3fe9d8c4817d8.js fitting-2a9daaa415de9850f1f7.js - chunk fitting-2a9daaa415de9850f1f7.js 1.87 KiB (javascript) 6.47 KiB (runtime) [entry] [rendered] + Entrypoint main = fitting-1e85d2c6a3bb53369456.js fitting-64ea4fa3fe9d8c4817d8.js fitting-61fe3dde1d85a317e6b6.js + chunk fitting-61fe3dde1d85a317e6b6.js 1.87 KiB (javascript) 6.38 KiB (runtime) [entry] [rendered] > ./index main ./e.js 899 bytes [built] ./f.js 900 bytes [built] @@ -31,7 +31,7 @@ Child fitting: > ./g ./index.js 7:0-13 ./g.js 916 bytes [built] Child content-change: - Hash: e43314981289fe6ebb3f + Hash: 57a7f01638081fc55a7a Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) @@ -39,9 +39,9 @@ Child content-change: content-change-1e85d2c6a3bb53369456.js 1.91 KiB [emitted] [immutable] content-change-32fa512a201604f3e8b7.js 1.08 KiB [emitted] [immutable] content-change-64ea4fa3fe9d8c4817d8.js 1.91 KiB [emitted] [immutable] - content-change-d2f4adaffaa59f60285a.js 12.9 KiB [emitted] [immutable] - Entrypoint main = content-change-1e85d2c6a3bb53369456.js content-change-64ea4fa3fe9d8c4817d8.js content-change-d2f4adaffaa59f60285a.js - chunk content-change-d2f4adaffaa59f60285a.js 1.87 KiB (javascript) 6.48 KiB (runtime) [entry] [rendered] + content-change-849572b2706776689c0f.js 13 KiB [emitted] [immutable] + Entrypoint main = content-change-1e85d2c6a3bb53369456.js content-change-64ea4fa3fe9d8c4817d8.js content-change-849572b2706776689c0f.js + chunk content-change-849572b2706776689c0f.js 1.87 KiB (javascript) 6.39 KiB (runtime) [entry] [rendered] > ./index main ./e.js 899 bytes [built] ./f.js 900 bytes [built] @@ -61,7 +61,7 @@ Child content-change: `; exports[`StatsTestCases should print correct stats for aggressive-splitting-on-demand 1`] = ` -"Hash: 9f7aab050ded0bbf1402 +"Hash: 4798821178ee0166bc1b Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) @@ -70,20 +70,20 @@ PublicPath: (none) 21fd8e73389271e24957.js 1.91 KiB [emitted] [immutable] 64ea4fa3fe9d8c4817d8.js 1.91 KiB [emitted] [immutable] 6a2a05a9feb43a535129.js 1.91 KiB [emitted] [immutable] -831ca3ab1d7c1dda3bc6.js 9.24 KiB [emitted] [immutable] [name: main] ae7ced4135ed4f2282f6.js 1.91 KiB [emitted] [immutable] b4a95c5544295741de67.js 1010 bytes [emitted] [immutable] b63bab94d02c84e0f081.js 1.91 KiB [emitted] [immutable] +cec7f1c8b0e402364394.js 9.29 KiB [emitted] [immutable] [name: main] db9a189ff52c97050941.js 1.91 KiB [emitted] [immutable] de61daf57f7861bbb2f6.js 1.91 KiB [emitted] [immutable] f80243284f4ab491b78e.js 1.91 KiB [emitted] [immutable] fb5a5560e641649a6ed8.js 1010 bytes [emitted] [immutable] -Entrypoint main = 831ca3ab1d7c1dda3bc6.js +Entrypoint main = cec7f1c8b0e402364394.js chunk 64ea4fa3fe9d8c4817d8.js 1.76 KiB [rendered] [recorded] aggressive splitted > ./c ./d ./e ./index.js 3:0-30 ./c.js 899 bytes [built] ./d.js 899 bytes [built] -chunk 831ca3ab1d7c1dda3bc6.js (main) 248 bytes (javascript) 4.53 KiB (runtime) [entry] [rendered] +chunk cec7f1c8b0e402364394.js (main) 248 bytes (javascript) 4.45 KiB (runtime) [entry] [rendered] > ./index main ./index.js 248 bytes [built] + 4 hidden chunk modules @@ -137,7 +137,7 @@ Built at: 1970-04-20 12:42:42 Asset Size 44af8fe384aadccba06e.svg 656 bytes [emitted] [immutable] [name: (main)] 62787d6ac9d673cc8926.png 14.6 KiB [emitted] [immutable] [name: (main)] - bundle.js 3.6 KiB [emitted] [name: main] + bundle.js 3.59 KiB [emitted] [name: main] c2a9ba2e6ec92fd70245.jpg 5.89 KiB [emitted] [immutable] [name: (main)] Entrypoint main = bundle.js (44af8fe384aadccba06e.svg 62787d6ac9d673cc8926.png c2a9ba2e6ec92fd70245.jpg) ./index.js 111 bytes [built] @@ -149,7 +149,7 @@ Entrypoint main = bundle.js (44af8fe384aadccba06e.svg 62787d6ac9d673cc8926.png c exports[`StatsTestCases should print correct stats for async-commons-chunk 1`] = ` "Entrypoint main = main.js -chunk main.js (main) 515 bytes (javascript) 4.22 KiB (runtime) >{460}< >{847}< >{996}< [entry] [rendered] +chunk main.js (main) 515 bytes (javascript) 4.13 KiB (runtime) >{460}< >{847}< >{996}< [entry] [rendered] > ./ main ./index.js 515 bytes [built] + 4 hidden root modules @@ -181,7 +181,7 @@ exports[`StatsTestCases should print correct stats for async-commons-chunk-auto > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] + 1 hidden dependent module - chunk disabled/main.js (main) 147 bytes (javascript) 4.91 KiB (runtime) [entry] [rendered] + chunk disabled/main.js (main) 147 bytes (javascript) 4.82 KiB (runtime) [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 6 hidden root modules @@ -198,7 +198,7 @@ exports[`StatsTestCases should print correct stats for async-commons-chunk-auto ./c.js + 1 modules 107 bytes [built] + 2 hidden root modules + 3 hidden dependent modules - chunk disabled/a.js (a) 216 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] + chunk disabled/a.js (a) 216 bytes (javascript) 4.77 KiB (runtime) [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] + 6 hidden root modules @@ -220,7 +220,7 @@ Child default: chunk default/async-g.js (async-g) 34 bytes [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk default/main.js (main) 147 bytes (javascript) 4.92 KiB (runtime) [entry] [rendered] + chunk default/main.js (main) 147 bytes (javascript) 4.83 KiB (runtime) [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 6 hidden root modules @@ -253,7 +253,7 @@ Child default: chunk default/769.js (id hint: vendors) 20 bytes [rendered] split chunk (cache group: defaultVendors) > ./c ./index.js 3:0-47 ./node_modules/z.js 20 bytes [built] - chunk default/a.js (a) 216 bytes (javascript) 4.91 KiB (runtime) [entry] [rendered] + chunk default/a.js (a) 216 bytes (javascript) 4.82 KiB (runtime) [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] + 6 hidden root modules @@ -270,7 +270,7 @@ Child vendors: Entrypoint a = vendors/vendors.js vendors/a.js Entrypoint b = vendors/vendors.js vendors/b.js Entrypoint c = vendors/vendors.js vendors/c.js - chunk vendors/b.js (b) 112 bytes (javascript) 2.94 KiB (runtime) [entry] [rendered] + chunk vendors/b.js (b) 112 bytes (javascript) 2.92 KiB (runtime) [entry] [rendered] > ./b b ./b.js 72 bytes [built] + 3 hidden root modules @@ -279,7 +279,7 @@ Child vendors: > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] + 1 hidden dependent module - chunk vendors/main.js (main) 147 bytes (javascript) 4.91 KiB (runtime) [entry] [rendered] + chunk vendors/main.js (main) 147 bytes (javascript) 4.82 KiB (runtime) [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 6 hidden root modules @@ -298,12 +298,12 @@ Child vendors: > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] + 4 hidden dependent modules - chunk vendors/c.js (c) 112 bytes (javascript) 2.94 KiB (runtime) [entry] [rendered] + chunk vendors/c.js (c) 112 bytes (javascript) 2.92 KiB (runtime) [entry] [rendered] > ./c c ./c.js 72 bytes [built] + 3 hidden root modules + 2 hidden dependent modules - chunk vendors/a.js (a) 176 bytes (javascript) 5.79 KiB (runtime) [entry] [rendered] + chunk vendors/a.js (a) 176 bytes (javascript) 5.7 KiB (runtime) [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] + 6 hidden root modules @@ -325,7 +325,7 @@ Child multiple-vendors: > ./b b > ./c c ./node_modules/x.js 20 bytes [built] - chunk multiple-vendors/b.js (b) 92 bytes (javascript) 2.97 KiB (runtime) [entry] [rendered] + chunk multiple-vendors/b.js (b) 92 bytes (javascript) 2.94 KiB (runtime) [entry] [rendered] > ./b b ./b.js 72 bytes [built] + 3 hidden root modules @@ -333,7 +333,7 @@ Child multiple-vendors: chunk multiple-vendors/async-g.js (async-g) 34 bytes [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk multiple-vendors/main.js (main) 147 bytes (javascript) 4.94 KiB (runtime) [entry] [rendered] + chunk multiple-vendors/main.js (main) 147 bytes (javascript) 4.86 KiB (runtime) [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 6 hidden root modules @@ -343,7 +343,7 @@ Child multiple-vendors: chunk multiple-vendors/async-c.js (async-c) 72 bytes [rendered] > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] - chunk multiple-vendors/c.js (c) 92 bytes (javascript) 2.97 KiB (runtime) [entry] [rendered] + chunk multiple-vendors/c.js (c) 92 bytes (javascript) 2.94 KiB (runtime) [entry] [rendered] > ./c c ./c.js 72 bytes [built] + 3 hidden root modules @@ -365,7 +365,7 @@ Child multiple-vendors: > ./c ./index.js 3:0-47 > ./c c ./node_modules/z.js 20 bytes [built] - chunk multiple-vendors/a.js (a) 156 bytes (javascript) 5.84 KiB (runtime) [entry] [rendered] + chunk multiple-vendors/a.js (a) 156 bytes (javascript) 5.76 KiB (runtime) [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] + 6 hidden root modules @@ -383,7 +383,7 @@ Child all: Entrypoint a = all/282.js all/954.js all/767.js all/a.js Entrypoint b = all/282.js all/954.js all/767.js all/b.js Entrypoint c = all/282.js all/769.js all/767.js all/c.js - chunk all/b.js (b) 92 bytes (javascript) 2.97 KiB (runtime) [entry] [rendered] + chunk all/b.js (b) 92 bytes (javascript) 2.94 KiB (runtime) [entry] [rendered] > ./b b ./b.js 72 bytes [built] + 3 hidden root modules @@ -391,7 +391,7 @@ Child all: chunk all/async-g.js (async-g) 34 bytes [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk all/main.js (main) 147 bytes (javascript) 4.92 KiB (runtime) [entry] [rendered] + chunk all/main.js (main) 147 bytes (javascript) 4.83 KiB (runtime) [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 6 hidden root modules @@ -409,7 +409,7 @@ Child all: chunk all/async-c.js (async-c) 72 bytes [rendered] > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] - chunk all/c.js (c) 92 bytes (javascript) 2.97 KiB (runtime) [entry] [rendered] + chunk all/c.js (c) 92 bytes (javascript) 2.94 KiB (runtime) [entry] [rendered] > ./c c ./c.js 72 bytes [built] + 3 hidden root modules @@ -431,7 +431,7 @@ Child all: > ./c ./index.js 3:0-47 > ./c c ./node_modules/z.js 20 bytes [built] - chunk all/a.js (a) 156 bytes (javascript) 5.83 KiB (runtime) [entry] [rendered] + chunk all/a.js (a) 156 bytes (javascript) 5.75 KiB (runtime) [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] + 6 hidden root modules @@ -452,8 +452,8 @@ Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) Asset Size -main1.js 4.31 KiB [emitted] [name: main1] -main2.js 4.3 KiB [emitted] [name: main2] +main1.js 4.3 KiB [emitted] [name: main1] +main2.js 4.29 KiB [emitted] [name: main2] Entrypoint main1 = main1.js Entrypoint main2 = main2.js chunk main2.js (main2) 136 bytes (javascript) 632 bytes (runtime) [entry] [rendered] @@ -475,7 +475,7 @@ chunk main1.js (main1) 136 bytes (javascript) 632 bytes (runtime) [entry] [rende `; exports[`StatsTestCases should print correct stats for chunks 1`] = ` -"Hash: d84b0166770e8e413794 +"Hash: 4cbc292ad8af00b41d82 Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) @@ -483,9 +483,9 @@ PublicPath: (none) 460.bundle.js 324 bytes [emitted] 524.bundle.js 210 bytes [emitted] 996.bundle.js 142 bytes [emitted] - bundle.js 7.76 KiB [emitted] [name: main] + bundle.js 7.81 KiB [emitted] [name: main] Entrypoint main = bundle.js -chunk bundle.js (main) 73 bytes (javascript) 4.22 KiB (runtime) >{460}< >{996}< [entry] [rendered] +chunk bundle.js (main) 73 bytes (javascript) 4.14 KiB (runtime) >{460}< >{996}< [entry] [rendered] > ./index main ./a.js 22 bytes [built] cjs require ./a ./index.js 1:0-14 @@ -515,13 +515,13 @@ chunk 996.bundle.js 22 bytes <{179}> [rendered] `; exports[`StatsTestCases should print correct stats for chunks-development 1`] = ` -"Hash: 354c02d8df65b5d711fc +"Hash: 2c61b06c054656851bb8 Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) Asset Size b_js.bundle.js 359 bytes [emitted] - bundle.js 8.34 KiB [emitted] [name: main] + bundle.js 8.38 KiB [emitted] [name: main] c_js.bundle.js 588 bytes [emitted] d_js-e_js.bundle.js 759 bytes [emitted] Entrypoint main = bundle.js @@ -543,7 +543,7 @@ chunk d_js-e_js.bundle.js 60 bytes <{c_js}> [rendered] ./e.js 38 bytes [built] require.ensure item ./e ./c.js 1:0-52 Xms -> Xms -> Xms (resolving: Xms, restoring: Xms, integration: Xms, building: Xms, storing: Xms) -chunk bundle.js (main) 73 bytes (javascript) 4.23 KiB (runtime) >{b_js}< >{c_js}< [entry] [rendered] +chunk bundle.js (main) 73 bytes (javascript) 4.14 KiB (runtime) >{b_js}< >{c_js}< [entry] [rendered] > ./index main ./a.js 22 bytes [built] cjs require ./a ./e.js 1:0-14 @@ -559,7 +559,7 @@ exports[`StatsTestCases should print correct stats for circular-correctness 1`] "Entrypoint main = bundle.js chunk 128.bundle.js (b) 49 bytes <{179}> <{459}> >{459}< [rendered] ./module-b.js 49 bytes [built] -chunk bundle.js (main) 98 bytes (javascript) 5.51 KiB (runtime) >{128}< >{786}< [entry] [rendered] +chunk bundle.js (main) 98 bytes (javascript) 5.42 KiB (runtime) >{128}< >{786}< [entry] [rendered] ./index.js 98 bytes [built] + 7 hidden chunk modules chunk 459.bundle.js (c) 98 bytes <{128}> <{786}> >{128}< >{786}< [rendered] @@ -599,12 +599,12 @@ Entrypoint main = main.js `; exports[`StatsTestCases should print correct stats for commons-chunk-min-size-0 1`] = ` -"Hash: 146f41a048eac4e3460b +"Hash: b4e574793b9e7c75d51d Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 429.js 278 bytes [emitted] [id hint: vendor-1] -entry-1.js 5.21 KiB [emitted] [name: entry-1] +entry-1.js 5.35 KiB [emitted] [name: entry-1] Entrypoint entry-1 = 429.js entry-1.js ./entry-1.js 145 bytes [built] ./modules/a.js 22 bytes [built] @@ -617,11 +617,11 @@ Entrypoint entry-1 = 429.js entry-1.js `; exports[`StatsTestCases should print correct stats for commons-chunk-min-size-Infinity 1`] = ` -"Hash: de1693890e4211841dce +"Hash: e2e0b97a20a6c5bf8425 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size - entry-1.js 5.21 KiB [emitted] [name: entry-1] + entry-1.js 5.35 KiB [emitted] [name: entry-1] vendor-1.js 278 bytes [emitted] [name: vendor-1] [id hint: vendor-1] Entrypoint entry-1 = vendor-1.js entry-1.js ./entry-1.js 145 bytes [built] @@ -635,26 +635,26 @@ Entrypoint entry-1 = vendor-1.js entry-1.js `; exports[`StatsTestCases should print correct stats for commons-plugin-issue-4980 1`] = ` -"Hash: fb493bbf819aa0277a27de9a180f2da5454780b1 +"Hash: 658a95832a31a62c4b4823efa9b811c3ce8726ae Child - Hash: fb493bbf819aa0277a27 + Hash: 658a95832a31a62c4b48 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size - app.1147bb1cde3dd41269e4-1.js 5.81 KiB [emitted] [immutable] [name: app] + app.7f5960a3338f572272c6-1.js 5.95 KiB [emitted] [immutable] [name: app] vendor.6b4bbfa3863de7632c2b-1.js 615 bytes [emitted] [immutable] [name: vendor] [id hint: vendor] - Entrypoint app = vendor.6b4bbfa3863de7632c2b-1.js app.1147bb1cde3dd41269e4-1.js + Entrypoint app = vendor.6b4bbfa3863de7632c2b-1.js app.7f5960a3338f572272c6-1.js ./entry-1.js + 2 modules 190 bytes [built] ./constants.js 87 bytes [built] + 2 hidden modules Child - Hash: de9a180f2da5454780b1 + Hash: 23efa9b811c3ce8726ae Time: Xms Built at: 1970-04-20 12:42:42 Asset Size - app.10fa3cd6ae475f4c6e5c-2.js 5.82 KiB [emitted] [immutable] [name: app] + app.3a24fe0ab12d4fad9268-2.js 5.96 KiB [emitted] [immutable] [name: app] vendor.6b4bbfa3863de7632c2b-2.js 615 bytes [emitted] [immutable] [name: vendor] [id hint: vendor] - Entrypoint app = vendor.6b4bbfa3863de7632c2b-2.js app.10fa3cd6ae475f4c6e5c-2.js + Entrypoint app = vendor.6b4bbfa3863de7632c2b-2.js app.3a24fe0ab12d4fad9268-2.js ./entry-2.js + 2 modules 197 bytes [built] ./constants.js 87 bytes [built] + 2 hidden modules" @@ -678,52 +678,52 @@ exports[`StatsTestCases should print correct stats for concat-and-sideeffects 1` `; exports[`StatsTestCases should print correct stats for context-independence 1`] = ` -"Hash: d224cadf61a4617b73d5d224cadf61a4617b73d5f30e485867079a7ad027f30e485867079a7ad027 +"Hash: 1b180490432bc69f35e21b180490432bc69f35e241a63d9c7dfe9022358a41a63d9c7dfe9022358a Child - Hash: d224cadf61a4617b73d5 + Hash: 1b180490432bc69f35e2 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 703-31a50198ea37e1d30825.js 438 bytes [emitted] [immutable] 703-31a50198ea37e1d30825.js.map 343 bytes [emitted] [dev] - main-f94c4a4e5ad089468096.js 8.03 KiB [emitted] [immutable] [name: main] - main-f94c4a4e5ad089468096.js.map 7.12 KiB [emitted] [dev] [name: (main)] - Entrypoint main = main-f94c4a4e5ad089468096.js (main-f94c4a4e5ad089468096.js.map) + main-4db59440dafa4c5e6c60.js 8.07 KiB [emitted] [immutable] [name: main] + main-4db59440dafa4c5e6c60.js.map 7.16 KiB [emitted] [dev] [name: (main)] + Entrypoint main = main-4db59440dafa4c5e6c60.js (main-4db59440dafa4c5e6c60.js.map) ./a/index.js 40 bytes [built] ./a/chunk.js + 1 modules 66 bytes [built] + 5 hidden modules Child - Hash: d224cadf61a4617b73d5 + Hash: 1b180490432bc69f35e2 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 703-31a50198ea37e1d30825.js 438 bytes [emitted] [immutable] 703-31a50198ea37e1d30825.js.map 343 bytes [emitted] [dev] - main-f94c4a4e5ad089468096.js 8.03 KiB [emitted] [immutable] [name: main] - main-f94c4a4e5ad089468096.js.map 7.12 KiB [emitted] [dev] [name: (main)] - Entrypoint main = main-f94c4a4e5ad089468096.js (main-f94c4a4e5ad089468096.js.map) + main-4db59440dafa4c5e6c60.js 8.07 KiB [emitted] [immutable] [name: main] + main-4db59440dafa4c5e6c60.js.map 7.16 KiB [emitted] [dev] [name: (main)] + Entrypoint main = main-4db59440dafa4c5e6c60.js (main-4db59440dafa4c5e6c60.js.map) ./b/index.js 40 bytes [built] ./b/chunk.js + 1 modules 66 bytes [built] + 5 hidden modules Child - Hash: f30e485867079a7ad027 + Hash: 41a63d9c7dfe9022358a Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 703-71c02d17a0d4fdf148ec.js 962 bytes [emitted] [immutable] - main-7145276cf3aaae458872.js 8.37 KiB [emitted] [immutable] [name: main] - Entrypoint main = main-7145276cf3aaae458872.js + main-d6f96e18d7efef35b2f8.js 8.41 KiB [emitted] [immutable] [name: main] + Entrypoint main = main-d6f96e18d7efef35b2f8.js ./a/index.js 40 bytes [built] ./a/chunk.js + 1 modules 66 bytes [built] + 5 hidden modules Child - Hash: f30e485867079a7ad027 + Hash: 41a63d9c7dfe9022358a Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 703-71c02d17a0d4fdf148ec.js 962 bytes [emitted] [immutable] - main-7145276cf3aaae458872.js 8.37 KiB [emitted] [immutable] [name: main] - Entrypoint main = main-7145276cf3aaae458872.js + main-d6f96e18d7efef35b2f8.js 8.41 KiB [emitted] [immutable] [name: main] + Entrypoint main = main-d6f96e18d7efef35b2f8.js ./b/index.js 40 bytes [built] ./b/chunk.js + 1 modules 66 bytes [built] + 5 hidden modules" @@ -785,7 +785,7 @@ exports[`StatsTestCases should print correct stats for exclude-with-loader 1`] = Time: Xms Built at: 1970-04-20 12:42:42 Asset Size -bundle.js 3.39 KiB [emitted] [name: main] +bundle.js 3.37 KiB [emitted] [name: main] + 1 hidden asset Entrypoint main = bundle.js (5bcd36918d225eeda398ea3f372b7f16.json) ./index.js 77 bytes [built] @@ -1066,7 +1066,7 @@ Entrypoint e2 = e2.js chunk b.js (b) 49 bytes <{786}> >{459}< [rendered] ./module-b.js 49 bytes [built] import() ./module-b ./module-a.js 1:0-47 -chunk e1.js (e1) 49 bytes (javascript) 5.53 KiB (runtime) >{786}< [entry] [rendered] +chunk e1.js (e1) 49 bytes (javascript) 5.45 KiB (runtime) >{786}< [entry] [rendered] ./e1.js 49 bytes [built] entry ./e1 e1 + 7 hidden chunk modules @@ -1074,7 +1074,7 @@ chunk c.js (c) 49 bytes <{128}> <{621}> >{786}< [rendered] ./module-c.js 49 bytes [built] import() ./module-c ./e2.js 1:0-47 import() ./module-c ./module-b.js 1:0-47 -chunk e2.js (e2) 49 bytes (javascript) 5.53 KiB (runtime) >{459}< [entry] [rendered] +chunk e2.js (e2) 49 bytes (javascript) 5.45 KiB (runtime) >{459}< [entry] [rendered] ./e2.js 49 bytes [built] entry ./e2 e2 + 7 hidden chunk modules @@ -1090,7 +1090,7 @@ Entrypoint e2 = e2.js chunk b.js (b) 179 bytes <{786}> >{459}< [rendered] ./module-b.js 179 bytes [built] import() ./module-b ./module-a.js 1:0-47 -chunk e1.js (e1) 119 bytes (javascript) 5.8 KiB (runtime) >{786}< >{892}< [entry] [rendered] +chunk e1.js (e1) 119 bytes (javascript) 5.71 KiB (runtime) >{786}< >{892}< [entry] [rendered] ./e1.js 70 bytes [built] entry ./e1 e1 ./module-x.js 49 bytes [built] @@ -1102,7 +1102,7 @@ chunk c.js (c) 49 bytes <{128}> <{621}> >{786}< [rendered] ./module-c.js 49 bytes [built] import() ./module-c ./e2.js 2:0-47 import() ./module-c ./module-b.js 1:0-47 -chunk e2.js (e2) 119 bytes (javascript) 5.8 KiB (runtime) >{459}< >{892}< [entry] [rendered] +chunk e2.js (e2) 119 bytes (javascript) 5.71 KiB (runtime) >{459}< >{892}< [entry] [rendered] ./e2.js 70 bytes [built] entry ./e2 e2 ./module-x.js 49 bytes [built] @@ -1140,7 +1140,7 @@ chunk id-equals-name_js0.js 1 bytes [rendered] ./id-equals-name.js 1 bytes [built] chunk id-equals-name_js_3.js 1 bytes [rendered] ./id-equals-name.js?3 1 bytes [built] -chunk main.js (main) 639 bytes (javascript) 5.76 KiB (runtime) [entry] [rendered] +chunk main.js (main) 639 bytes (javascript) 5.67 KiB (runtime) [entry] [rendered] ./index.js 639 bytes [built] + 8 hidden root modules chunk tree.js (tree) 43 bytes [rendered] @@ -1156,18 +1156,18 @@ chunk trees.js (trees) 71 bytes [rendered] exports[`StatsTestCases should print correct stats for immutable 1`] = ` " Asset Size 1b847d037d2872a4c68b.js 346 bytes [emitted] [immutable] -99c16c4af44c16e93796.js 9.8 KiB [emitted] [immutable] [name: main]" +a795a8e353265efa1f64.js 9.84 KiB [emitted] [immutable] [name: main]" `; exports[`StatsTestCases should print correct stats for import-context-filter 1`] = ` -"Hash: a4781a78f362402f4df3 +"Hash: 53a423a693782ab4ca20 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 398.js 484 bytes [emitted] 544.js 484 bytes [emitted] 718.js 484 bytes [emitted] -entry.js 9.59 KiB [emitted] [name: entry] +entry.js 9.58 KiB [emitted] [name: entry] Entrypoint entry = entry.js ./entry.js 450 bytes [built] ./templates lazy ^\\\\.\\\\/.*$ include: \\\\.js$ exclude: \\\\.noimport\\\\.js$ namespace object 160 bytes [optional] [built] @@ -1178,7 +1178,7 @@ Entrypoint entry = entry.js `; exports[`StatsTestCases should print correct stats for import-weak 1`] = ` -"Hash: 2de11bcb194cf8fecd10 +"Hash: 55cf3fe2ec019f412a76 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size @@ -1215,42 +1215,42 @@ Compilation error while processing magic comment(-s): /* webpackPrefetch: nope * `; exports[`StatsTestCases should print correct stats for issue-7577 1`] = ` -"Hash: 9a8ebd77376ca4e971467d0bce3c2657b89596d726d124d51179b769d853 +"Hash: 4b4104a173f5a3f2a1926801b30c9bfcad621f7d5330373e33fd5c6c78af Child - Hash: 9a8ebd77376ca4e97146 + Hash: 4b4104a173f5a3f2a192 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size a-all-a_js-a0ca01d3da48ab4385f6.js 144 bytes [emitted] [immutable] [id hint: all] a-main-fa06855251b873131c2c.js 115 bytes [emitted] [immutable] [name: main] - a-runtime~main-246c0390086c2335301b.js 4.76 KiB [emitted] [immutable] [name: runtime~main] - Entrypoint main = a-runtime~main-246c0390086c2335301b.js a-all-a_js-a0ca01d3da48ab4385f6.js a-main-fa06855251b873131c2c.js + a-runtime~main-eba1c576dae4e0c4529c.js 4.9 KiB [emitted] [immutable] [name: runtime~main] + Entrypoint main = a-runtime~main-eba1c576dae4e0c4529c.js a-all-a_js-a0ca01d3da48ab4385f6.js a-main-fa06855251b873131c2c.js ./a.js 18 bytes [built] + 1 hidden module Child - Hash: 7d0bce3c2657b89596d7 + Hash: 6801b30c9bfcad621f7d Time: Xms Built at: 1970-04-20 12:42:42 Asset Size b-all-b_js-3219344d13cc334d7831.js 479 bytes [emitted] [immutable] [id hint: all] b-main-6da637b8d22f213c8475.js 148 bytes [emitted] [immutable] [name: main] - b-runtime~main-26eb148ab52ff25ff9bb.js 5.76 KiB [emitted] [immutable] [name: runtime~main] + b-runtime~main-79ced853eb9d30ca8052.js 5.9 KiB [emitted] [immutable] [name: runtime~main] b-vendors-node_modules_vendor_js-a51f8ed2c8dc9ce97afd.js 189 bytes [emitted] [immutable] [id hint: vendors] - Entrypoint main = b-runtime~main-26eb148ab52ff25ff9bb.js b-vendors-node_modules_vendor_js-a51f8ed2c8dc9ce97afd.js b-all-b_js-3219344d13cc334d7831.js b-main-6da637b8d22f213c8475.js + Entrypoint main = b-runtime~main-79ced853eb9d30ca8052.js b-vendors-node_modules_vendor_js-a51f8ed2c8dc9ce97afd.js b-all-b_js-3219344d13cc334d7831.js b-main-6da637b8d22f213c8475.js ./b.js 17 bytes [built] ./node_modules/vendor.js 23 bytes [built] + 3 hidden modules Child - Hash: 26d124d51179b769d853 + Hash: 5330373e33fd5c6c78af Time: Xms Built at: 1970-04-20 12:42:42 Asset Size c-all-b_js-3219344d13cc334d7831.js 506 bytes [emitted] [immutable] [id hint: all] c-all-c_js-6756694a5d280748f5a3.js 382 bytes [emitted] [immutable] [id hint: all] c-main-476756bfcb471445cf2c.js 164 bytes [emitted] [immutable] [name: main] - c-runtime~main-17d831e3a178122f7097.js 11.3 KiB [emitted] [immutable] [name: runtime~main] + c-runtime~main-fa4455db157bcccab319.js 11.4 KiB [emitted] [immutable] [name: runtime~main] c-vendors-node_modules_vendor_js-a51f8ed2c8dc9ce97afd.js 189 bytes [emitted] [immutable] [id hint: vendors] - Entrypoint main = c-runtime~main-17d831e3a178122f7097.js c-all-c_js-6756694a5d280748f5a3.js c-main-476756bfcb471445cf2c.js (prefetch: c-vendors-node_modules_vendor_js-a51f8ed2c8dc9ce97afd.js c-all-b_js-3219344d13cc334d7831.js) + Entrypoint main = c-runtime~main-fa4455db157bcccab319.js c-all-c_js-6756694a5d280748f5a3.js c-main-476756bfcb471445cf2c.js (prefetch: c-vendors-node_modules_vendor_js-a51f8ed2c8dc9ce97afd.js c-all-b_js-3219344d13cc334d7831.js) ./c.js 61 bytes [built] ./b.js 17 bytes [built] ./node_modules/vendor.js 23 bytes [built] @@ -1258,13 +1258,13 @@ Child `; exports[`StatsTestCases should print correct stats for limit-chunk-count-plugin 1`] = ` -"Hash: 0760a97c3867a4cb73a356a2f3e0393055c647b4740146ba33c792f0e978f970baea1892082d6c6c +"Hash: 0760a97c3867a4cb73a3095931fd6d65bd622ce8a013b1c2a699f07dc47b5ee9bf9a4ad538654956 Child 1 chunks: Hash: 0760a97c3867a4cb73a3 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size - bundle1.js 4.07 KiB [emitted] [name: main] + bundle1.js 4.05 KiB [emitted] [name: main] Entrypoint main = bundle1.js chunk bundle1.js (main) 219 bytes (javascript) 1.28 KiB (runtime) <{179}> >{179}< [entry] [rendered] ./a.js 22 bytes [built] @@ -1275,14 +1275,14 @@ Child 1 chunks: ./index.js 101 bytes [built] + 3 hidden chunk modules Child 2 chunks: - Hash: 56a2f3e0393055c647b4 + Hash: 095931fd6d65bd622ce8 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 459.bundle2.js 666 bytes [emitted] [name: c] - bundle2.js 9.74 KiB [emitted] [name: main] + bundle2.js 9.77 KiB [emitted] [name: main] Entrypoint main = bundle2.js - chunk bundle2.js (main) 101 bytes (javascript) 5.51 KiB (runtime) >{459}< [entry] [rendered] + chunk bundle2.js (main) 101 bytes (javascript) 5.42 KiB (runtime) >{459}< [entry] [rendered] ./index.js 101 bytes [built] + 7 hidden chunk modules chunk 459.bundle2.js (c) 118 bytes <{179}> <{459}> >{459}< [rendered] @@ -1292,15 +1292,15 @@ Child 2 chunks: ./d.js 22 bytes [built] ./e.js 22 bytes [built] Child 3 chunks: - Hash: 740146ba33c792f0e978 + Hash: a013b1c2a699f07dc47b Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 459.bundle3.js 530 bytes [emitted] [name: c] 524.bundle3.js 210 bytes [emitted] - bundle3.js 9.74 KiB [emitted] [name: main] + bundle3.js 9.77 KiB [emitted] [name: main] Entrypoint main = bundle3.js - chunk bundle3.js (main) 101 bytes (javascript) 5.51 KiB (runtime) >{459}< [entry] [rendered] + chunk bundle3.js (main) 101 bytes (javascript) 5.42 KiB (runtime) >{459}< [entry] [rendered] ./index.js 101 bytes [built] + 7 hidden chunk modules chunk 459.bundle3.js (c) 74 bytes <{179}> >{524}< [rendered] @@ -1311,16 +1311,16 @@ Child 3 chunks: ./d.js 22 bytes [built] ./e.js 22 bytes [built] Child 4 chunks: - Hash: f970baea1892082d6c6c + Hash: 5ee9bf9a4ad538654956 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 394.bundle4.js 210 bytes [emitted] 459.bundle4.js 394 bytes [emitted] [name: c] 524.bundle4.js 210 bytes [emitted] - bundle4.js 9.74 KiB [emitted] [name: main] + bundle4.js 9.77 KiB [emitted] [name: main] Entrypoint main = bundle4.js - chunk bundle4.js (main) 101 bytes (javascript) 5.51 KiB (runtime) >{394}< >{459}< [entry] [rendered] + chunk bundle4.js (main) 101 bytes (javascript) 5.42 KiB (runtime) >{394}< >{459}< [entry] [rendered] ./index.js 101 bytes [built] + 7 hidden chunk modules chunk 394.bundle4.js 44 bytes <{179}> [rendered] @@ -1380,7 +1380,7 @@ exports[`StatsTestCases should print correct stats for max-modules 1`] = ` Time: Xms Built at: 1970-04-20 12:42:42 Asset Size -main.js 5.35 KiB [emitted] [name: main] +main.js 5.34 KiB [emitted] [name: main] Entrypoint main = main.js ./index.js 181 bytes [built] ./a.js?1 33 bytes [built] @@ -1410,7 +1410,7 @@ exports[`StatsTestCases should print correct stats for max-modules-default 1`] = Time: Xms Built at: 1970-04-20 12:42:42 Asset Size -main.js 5.35 KiB [emitted] [name: main] +main.js 5.34 KiB [emitted] [name: main] Entrypoint main = main.js ./index.js 181 bytes [built] ./a.js?1 33 bytes [built] @@ -1431,7 +1431,7 @@ Entrypoint main = main.js `; exports[`StatsTestCases should print correct stats for module-assets 1`] = ` -"Hash: 511e53bdffb5731cb7f8 +"Hash: 9339f4f68d9f05598824 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size @@ -1439,14 +1439,14 @@ Built at: 1970-04-20 12:42:42 2.png 21 KiB [emitted] [name: (a, b)] a.js 988 bytes [emitted] [name: a] b.js 616 bytes [emitted] [name: b] -main.js 9.04 KiB [emitted] [name: main] +main.js 9.07 KiB [emitted] [name: main] Entrypoint main = main.js Chunk Group a = a.js (1.png 2.png) Chunk Group b = b.js (2.png) chunk b.js (b) 69 bytes [rendered] ./node_modules/a/2.png 51 bytes [built] [1 asset] ./node_modules/b/index.js 18 bytes [built] -chunk main.js (main) 82 bytes (javascript) 5.11 KiB (runtime) [entry] [rendered] +chunk main.js (main) 82 bytes (javascript) 5.03 KiB (runtime) [entry] [rendered] ./index.js 82 bytes [built] + 7 hidden chunk modules chunk a.js (a) 138 bytes [rendered] @@ -1477,7 +1477,7 @@ Entrypoint e2 = e2.js Entrypoint e3 = e3.js chunk 114.js 28 bytes [rendered] ./async1.js 28 bytes [built] -chunk e3.js (e3) 152 bytes (javascript) 5.09 KiB (runtime) [entry] [rendered] +chunk e3.js (e3) 152 bytes (javascript) 5 KiB (runtime) [entry] [rendered] ./a.js 9 bytes [built] ./b.js 9 bytes [built] ./e3.js 116 bytes [built] @@ -1486,7 +1486,7 @@ chunk e3.js (e3) 152 bytes (javascript) 5.09 KiB (runtime) [entry] [rendered] + 7 hidden chunk modules chunk 172.js 28 bytes [rendered] ./async2.js 28 bytes [built] -chunk e1.js (e1) 152 bytes (javascript) 5.09 KiB (runtime) [entry] [rendered] +chunk e1.js (e1) 152 bytes (javascript) 5 KiB (runtime) [entry] [rendered] ./a.js 9 bytes [built] ./b.js 9 bytes [built] ./c.js 9 bytes [built] @@ -1498,7 +1498,7 @@ chunk 326.js 37 bytes [rendered] ./h.js 9 bytes [built] chunk 593.js 28 bytes [rendered] ./async3.js 28 bytes [built] -chunk e2.js (e2) 152 bytes (javascript) 5.09 KiB (runtime) [entry] [rendered] +chunk e2.js (e2) 152 bytes (javascript) 5 KiB (runtime) [entry] [rendered] ./a.js 9 bytes [built] ./b.js 9 bytes [built] ./e.js 9 bytes [built] @@ -1524,14 +1524,14 @@ async3.js 824 bytes [emitted] [name: async3] Entrypoint e1 = e1.js Entrypoint e2 = e2.js Entrypoint e3 = e3.js -chunk e3.js (e3) 144 bytes (javascript) 5.14 KiB (runtime) [entry] [rendered] +chunk e3.js (e3) 144 bytes (javascript) 5.05 KiB (runtime) [entry] [rendered] ./a.js 9 bytes [built] ./b.js 9 bytes [built] ./e3.js 108 bytes [built] ./g.js 9 bytes [built] ./h.js 9 bytes [built] + 7 hidden chunk modules -chunk e1.js (e1) 144 bytes (javascript) 5.14 KiB (runtime) [entry] [rendered] +chunk e1.js (e1) 144 bytes (javascript) 5.05 KiB (runtime) [entry] [rendered] ./a.js 9 bytes [built] ./b.js 9 bytes [built] ./c.js 9 bytes [built] @@ -1544,7 +1544,7 @@ chunk async1.js (async1) 89 bytes [rendered] chunk async3.js (async3) 89 bytes [rendered] ./async3.js 80 bytes [built] ./h.js 9 bytes [built] -chunk e2.js (e2) 144 bytes (javascript) 5.14 KiB (runtime) [entry] [rendered] +chunk e2.js (e2) 144 bytes (javascript) 5.05 KiB (runtime) [entry] [rendered] ./a.js 9 bytes [built] ./b.js 9 bytes [built] ./e.js 9 bytes [built] @@ -1657,7 +1657,7 @@ exports[`StatsTestCases should print correct stats for named-chunk-groups 1`] = > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 ./shared.js 133 bytes [built] - chunk a-main.js (main) 146 bytes (javascript) 5.17 KiB (runtime) [entry] [rendered] + chunk a-main.js (main) 146 bytes (javascript) 5.08 KiB (runtime) [entry] [rendered] > ./ main ./index.js 146 bytes [built] + 7 hidden root modules @@ -1683,7 +1683,7 @@ Child > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 ./shared.js 133 bytes [built] - chunk b-main.js (main) 146 bytes (javascript) 5.17 KiB (runtime) [entry] [rendered] + chunk b-main.js (main) 146 bytes (javascript) 5.08 KiB (runtime) [entry] [rendered] > ./ main ./index.js 146 bytes [built] + 7 hidden root modules @@ -1703,11 +1703,11 @@ Child `; exports[`StatsTestCases should print correct stats for named-chunks-plugin 1`] = ` -"Hash: afccf40163f9367995f9 +"Hash: 1b22a7e988078bd5606a Time: Xms Built at: 1970-04-20 12:42:42 Asset Size - entry.js 5.08 KiB [emitted] [name: entry] + entry.js 5.22 KiB [emitted] [name: entry] vendor.js 241 bytes [emitted] [name: vendor] [id hint: vendor] Entrypoint entry = vendor.js entry.js ./entry.js 72 bytes [built] @@ -1718,11 +1718,11 @@ Entrypoint entry = vendor.js entry.js `; exports[`StatsTestCases should print correct stats for named-chunks-plugin-async 1`] = ` -"Hash: 56fb1261f49a8b4f7e76 +"Hash: ff02048eac4ee71c1977 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size - entry.js 9.6 KiB [emitted] [name: entry] + entry.js 9.64 KiB [emitted] [name: entry] modules_a_js.js 316 bytes [emitted] modules_b_js.js 153 bytes [emitted] Entrypoint entry = entry.js @@ -1747,7 +1747,7 @@ You can also set it to 'none' to disable any default behavior. Learn more: https `; exports[`StatsTestCases should print correct stats for optimize-chunks 1`] = ` -"Hash: 6034010df0329256fb56 +"Hash: 00123caf73c06f6c24e5 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size @@ -1758,13 +1758,13 @@ Built at: 1970-04-20 12:42:42 cir1.js 334 bytes [emitted] [name: cir1] cir2 from cir1.js 378 bytes [emitted] [name: cir2 from cir1] cir2.js 334 bytes [emitted] [name: cir2] - main.js 8.57 KiB [emitted] [name: main] + main.js 8.61 KiB [emitted] [name: main] Entrypoint main = main.js chunk ab.js (ab) 2 bytes <{179}> >{753}< [rendered] > ./index.js 1:0-6:8 ./modules/a.js 1 bytes [built] ./modules/b.js 1 bytes [built] -chunk main.js (main) 524 bytes (javascript) 4.32 KiB (runtime) >{90}< >{289}< >{374}< >{592}< [entry] [rendered] +chunk main.js (main) 524 bytes (javascript) 4.23 KiB (runtime) >{90}< >{289}< >{374}< >{592}< [entry] [rendered] > ./index main ./index.js 523 bytes [built] ./modules/f.js 1 bytes [built] @@ -2053,14 +2053,14 @@ exports[`StatsTestCases should print correct stats for prefetch 1`] = ` " Asset Size inner.js 114 bytes [emitted] [name: inner] inner2.js 154 bytes [emitted] [name: inner2] - main.js 12.2 KiB [emitted] [name: main] + main.js 12.3 KiB [emitted] [name: main] normal.js 113 bytes [emitted] [name: normal] prefetched.js 572 bytes [emitted] [name: prefetched] prefetched2.js 114 bytes [emitted] [name: prefetched2] prefetched3.js 114 bytes [emitted] [name: prefetched3] Entrypoint main = main.js (prefetch: prefetched2.js prefetched.js prefetched3.js) chunk normal.js (normal) 1 bytes <{179}> [rendered] -chunk main.js (main) 436 bytes (javascript) 6.59 KiB (runtime) >{30}< >{220}< >{379}< >{505}< (prefetch: {379} {505} {220}) [entry] [rendered] +chunk main.js (main) 436 bytes (javascript) 6.49 KiB (runtime) >{30}< >{220}< >{379}< >{505}< (prefetch: {379} {505} {220}) [entry] [rendered] chunk prefetched3.js (prefetched3) 1 bytes <{179}> [rendered] chunk prefetched2.js (prefetched2) 1 bytes <{179}> [rendered] chunk prefetched.js (prefetched) 228 bytes <{179}> >{641}< >{746}< (prefetch: {641} {746}) [rendered] @@ -2075,7 +2075,7 @@ chunk c1.js (c1) 1 bytes <{459}> [rendered] chunk b.js (b) 203 bytes <{179}> >{132}< >{751}< >{978}< (prefetch: {751} {132}) (preload: {978}) [rendered] chunk b3.js (b3) 1 bytes <{128}> [rendered] chunk a2.js (a2) 1 bytes <{786}> [rendered] -chunk main.js (main) 195 bytes (javascript) 7.02 KiB (runtime) >{128}< >{459}< >{786}< (prefetch: {786} {128} {459}) [entry] [rendered] +chunk main.js (main) 195 bytes (javascript) 6.91 KiB (runtime) >{128}< >{459}< >{786}< (prefetch: {786} {128} {459}) [entry] [rendered] chunk c.js (c) 134 bytes <{179}> >{3}< >{76}< (preload: {76} {3}) [rendered] chunk b1.js (b1) 1 bytes <{128}> [rendered] chunk a.js (a) 136 bytes <{179}> >{74}< >{178}< (prefetch: {74} {178}) [rendered] @@ -2093,7 +2093,7 @@ preloaded2.js 113 bytes [emitted] [name: preloaded2] preloaded3.js 112 bytes [emitted] [name: preloaded3] Entrypoint main = main.js (preload: preloaded2.js preloaded.js preloaded3.js) chunk normal.js (normal) 1 bytes [rendered] -chunk main.js (main) 424 bytes (javascript) 6.53 KiB (runtime) (preload: {363} {851} {355}) [entry] [rendered] +chunk main.js (main) 424 bytes (javascript) 6.43 KiB (runtime) (preload: {363} {851} {355}) [entry] [rendered] chunk preloaded3.js (preloaded3) 1 bytes [rendered] chunk preloaded2.js (preloaded2) 1 bytes [rendered] chunk inner2.js (inner2) 2 bytes [rendered] @@ -2110,7 +2110,7 @@ exports[`StatsTestCases should print correct stats for preset-detailed 1`] = ` <+> [LogTestPlugin] Collaped group [LogTestPlugin] Log [LogTestPlugin] End -Hash: 3748a7fa81a17c722236 +Hash: 3c1fd06ffa965b365ec1 Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) @@ -2118,9 +2118,9 @@ PublicPath: (none) 460.js 324 bytes {460} [emitted] 524.js 210 bytes {524} [emitted] 996.js 142 bytes {996} [emitted] -main.js 7.76 KiB {179} [emitted] [name: main] +main.js 7.8 KiB {179} [emitted] [name: main] Entrypoint main = main.js -chunk {179} main.js (main) 73 bytes (javascript) 4.22 KiB (runtime) >{460}< >{996}< [entry] [rendered] +chunk {179} main.js (main) 73 bytes (javascript) 4.13 KiB (runtime) >{460}< >{996}< [entry] [rendered] > ./index main chunk {460} 460.js 54 bytes <{179}> >{524}< [rendered] > ./c [10] ./index.js 3:0-16 @@ -2147,7 +2147,7 @@ webpack/runtime/ensure chunk 326 bytes {179} [runtime] webpack/runtime/get javascript chunk filename 167 bytes {179} [runtime] [no exports] [used exports unknown] -webpack/runtime/jsonp chunk loading 3.71 KiB {179} [runtime] +webpack/runtime/jsonp chunk loading 3.62 KiB {179} [runtime] [no exports] [used exports unknown] webpack/runtime/publicPath 27 bytes {179} [runtime] @@ -2227,14 +2227,14 @@ exports[`StatsTestCases should print correct stats for preset-normal 1`] = ` " [LogTestPlugin] Error [LogTestPlugin] Warning [LogTestPlugin] Info -Hash: 3748a7fa81a17c722236 +Hash: 3c1fd06ffa965b365ec1 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 460.js 324 bytes [emitted] 524.js 210 bytes [emitted] 996.js 142 bytes [emitted] -main.js 7.76 KiB [emitted] [name: main] +main.js 7.8 KiB [emitted] [name: main] Entrypoint main = main.js ./index.js 51 bytes [built] ./a.js 22 bytes [built] @@ -2328,7 +2328,7 @@ exports[`StatsTestCases should print correct stats for preset-verbose 1`] = ` [LogTestPlugin] Inner inner message [LogTestPlugin] Log [LogTestPlugin] End -Hash: 3748a7fa81a17c722236 +Hash: 3c1fd06ffa965b365ec1 Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) @@ -2336,9 +2336,9 @@ PublicPath: (none) 460.js 324 bytes {460} [emitted] 524.js 210 bytes {524} [emitted] 996.js 142 bytes {996} [emitted] -main.js 7.76 KiB {179} [emitted] [name: main] +main.js 7.8 KiB {179} [emitted] [name: main] Entrypoint main = main.js -chunk {179} main.js (main) 73 bytes (javascript) 4.22 KiB (runtime) >{460}< >{996}< [entry] [rendered] +chunk {179} main.js (main) 73 bytes (javascript) 4.13 KiB (runtime) >{460}< >{996}< [entry] [rendered] > ./index main [847] ./a.js 22 bytes {179} [depth 1] [built] ModuleConcatenation bailout: Module is not an ECMAScript module @@ -2355,7 +2355,7 @@ chunk {179} main.js (main) 73 bytes (javascript) 4.22 KiB (runtime) >{460}< >{99 webpack/runtime/get javascript chunk filename 167 bytes {179} [runtime] [no exports] [used exports unknown] - webpack/runtime/jsonp chunk loading 3.71 KiB {179} [runtime] + webpack/runtime/jsonp chunk loading 3.62 KiB {179} [runtime] [no exports] [used exports unknown] webpack/runtime/publicPath 27 bytes {179} [runtime] @@ -2447,7 +2447,7 @@ exports[`StatsTestCases should print correct stats for reverse-sort-modules 1`] Time: Xms Built at: 1970-04-20 12:42:42 Asset Size -main.js 5.35 KiB [emitted] [name: main] +main.js 5.34 KiB [emitted] [name: main] Entrypoint main = main.js ./index.js 181 bytes [built] ./a.js?1 33 bytes [built] @@ -2482,7 +2482,7 @@ exports[`StatsTestCases should print correct stats for runtime-chunk-integration Asset Size without-505.js 1.22 KiB [emitted] without-main1.js 556 bytes [emitted] [name: main1] - without-runtime.js 9.75 KiB [emitted] [name: runtime] + without-runtime.js 9.79 KiB [emitted] [name: runtime] Entrypoint main1 = without-runtime.js without-main1.js ./main1.js 66 bytes [built] ./b.js 20 bytes [built] @@ -2493,7 +2493,7 @@ Child manifest is named entry: Asset Size with-505.js 1.22 KiB [emitted] with-main1.js 556 bytes [emitted] [name: main1] - with-manifest.js 9.88 KiB [emitted] [name: manifest] + with-manifest.js 9.92 KiB [emitted] [name: manifest] Entrypoint main1 = with-manifest.js with-main1.js Entrypoint manifest = with-manifest.js ./main1.js 66 bytes [built] @@ -2515,7 +2515,7 @@ Entrypoint e2 = runtime.js e2.js" `; exports[`StatsTestCases should print correct stats for scope-hoisting-bailouts 1`] = ` -"Hash: d7a0f9fd554860ceac39 +"Hash: 0af8e1272c194257ae1d Time: Xms Built at: 1970-04-20 12:42:42 Entrypoint index = index.js @@ -2545,9 +2545,9 @@ external \\"external\\" 42 bytes [built] `; exports[`StatsTestCases should print correct stats for scope-hoisting-multi 1`] = ` -"Hash: 8f97fa868a60532083a64be341a68fa68b6969a2 +"Hash: 3185b2b1d691c508092358f18753ba7b12cd73c4 Child - Hash: 8f97fa868a60532083a6 + Hash: 3185b2b1d691c5080923 Time: Xms Built at: 1970-04-20 12:42:42 Entrypoint first = a-vendor.js a-first.js @@ -2565,7 +2565,7 @@ Child ./common_lazy_shared.js 25 bytes [built] + 10 hidden modules Child - Hash: 4be341a68fa68b6969a2 + Hash: 58f18753ba7b12cd73c4 Time: Xms Built at: 1970-04-20 12:42:42 Entrypoint first = b-vendor.js b-first.js @@ -2592,12 +2592,12 @@ Child `; exports[`StatsTestCases should print correct stats for side-effects-issue-7428 1`] = ` -"Hash: 3a66377e0a1ce3e7a401 +"Hash: bce063d118b185bcb1b8 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 1.js 642 bytes [emitted] -main.js 9.86 KiB [emitted] [name: main] +main.js 9.89 KiB [emitted] [name: main] Entrypoint main = main.js ./main.js + 1 modules 231 bytes [built] [no exports used] @@ -2712,7 +2712,7 @@ exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` chunk default/async-g.js (async-g) 34 bytes <{282}> <{767}> <{786}> <{794}> <{954}> ={568}= [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk default/main.js (main) 147 bytes (javascript) 4.92 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] + chunk default/main.js (main) 147 bytes (javascript) 4.83 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 6 hidden root modules @@ -2745,7 +2745,7 @@ exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` chunk default/769.js (id hint: vendors) 20 bytes <{179}> ={282}= ={383}= ={568}= ={767}= [rendered] split chunk (cache group: defaultVendors) > ./c ./index.js 3:0-47 ./node_modules/z.js 20 bytes [built] - chunk default/a.js (a) 216 bytes (javascript) 4.91 KiB (runtime) >{137}< >{568}< [entry] [rendered] + chunk default/a.js (a) 216 bytes (javascript) 4.82 KiB (runtime) >{137}< >{568}< [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] + 6 hidden root modules @@ -2762,7 +2762,7 @@ Child all-chunks: Entrypoint a = all-chunks/282.js all-chunks/954.js all-chunks/767.js all-chunks/a.js Entrypoint b = all-chunks/282.js all-chunks/954.js all-chunks/767.js all-chunks/b.js Entrypoint c = all-chunks/282.js all-chunks/769.js all-chunks/767.js all-chunks/c.js - chunk all-chunks/b.js (b) 92 bytes (javascript) 2.97 KiB (runtime) ={282}= ={767}= ={954}= [entry] [rendered] + chunk all-chunks/b.js (b) 92 bytes (javascript) 2.94 KiB (runtime) ={282}= ={767}= ={954}= [entry] [rendered] > ./b b ./b.js 72 bytes [built] + 3 hidden root modules @@ -2770,7 +2770,7 @@ Child all-chunks: chunk all-chunks/async-g.js (async-g) 34 bytes <{282}> <{767}> <{786}> <{794}> <{954}> ={568}= [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk all-chunks/main.js (main) 147 bytes (javascript) 4.92 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] + chunk all-chunks/main.js (main) 147 bytes (javascript) 4.84 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 6 hidden root modules @@ -2788,7 +2788,7 @@ Child all-chunks: chunk all-chunks/async-c.js (async-c) 72 bytes <{179}> ={282}= ={568}= ={767}= ={769}= [rendered] > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] - chunk all-chunks/c.js (c) 92 bytes (javascript) 2.97 KiB (runtime) ={282}= ={767}= ={769}= [entry] [rendered] + chunk all-chunks/c.js (c) 92 bytes (javascript) 2.94 KiB (runtime) ={282}= ={767}= ={769}= [entry] [rendered] > ./c c ./c.js 72 bytes [built] + 3 hidden root modules @@ -2810,7 +2810,7 @@ Child all-chunks: > ./c ./index.js 3:0-47 > ./c c ./node_modules/z.js 20 bytes [built] - chunk all-chunks/a.js (a) 156 bytes (javascript) 5.84 KiB (runtime) ={282}= ={767}= ={954}= >{137}< >{568}< [entry] [rendered] + chunk all-chunks/a.js (a) 156 bytes (javascript) 5.75 KiB (runtime) ={282}= ={767}= ={954}= >{137}< >{568}< [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] + 6 hidden root modules @@ -2828,7 +2828,7 @@ Child manual: Entrypoint a = manual/vendors.js manual/a.js Entrypoint b = manual/vendors.js manual/b.js Entrypoint c = manual/vendors.js manual/c.js - chunk manual/b.js (b) 112 bytes (javascript) 2.99 KiB (runtime) ={216}= [entry] [rendered] + chunk manual/b.js (b) 112 bytes (javascript) 2.96 KiB (runtime) ={216}= [entry] [rendered] > ./b b > x b > y b @@ -2840,7 +2840,7 @@ Child manual: > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] + 1 hidden dependent module - chunk manual/main.js (main) 147 bytes (javascript) 4.92 KiB (runtime) >{216}< >{334}< >{383}< >{794}< [entry] [rendered] + chunk manual/main.js (main) 147 bytes (javascript) 4.84 KiB (runtime) >{216}< >{334}< >{383}< >{794}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 6 hidden root modules @@ -2871,7 +2871,7 @@ Child manual: > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] + 2 hidden dependent modules - chunk manual/c.js (c) 112 bytes (javascript) 2.99 KiB (runtime) ={216}= [entry] [rendered] + chunk manual/c.js (c) 112 bytes (javascript) 2.96 KiB (runtime) ={216}= [entry] [rendered] > ./c c > x c > y c @@ -2879,7 +2879,7 @@ Child manual: ./c.js 72 bytes [built] + 3 hidden root modules + 2 hidden dependent modules - chunk manual/a.js (a) 176 bytes (javascript) 5.83 KiB (runtime) ={216}= >{137}< [entry] [rendered] + chunk manual/a.js (a) 176 bytes (javascript) 5.75 KiB (runtime) ={216}= >{137}< [entry] [rendered] > ./a a > x a > y a @@ -2899,7 +2899,7 @@ Child name-too-long: chunk name-too-long/async-g.js (async-g) 34 bytes <{282}> <{751}> <{767}> <{794}> <{954}> ={568}= [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk name-too-long/main.js (main) 147 bytes (javascript) 4.93 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] + chunk name-too-long/main.js (main) 147 bytes (javascript) 4.84 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 6 hidden root modules @@ -2926,13 +2926,13 @@ Child name-too-long: > ./b bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb > ./c cccccccccccccccccccccccccccccc ./f.js 20 bytes [built] - chunk name-too-long/cccccccccccccccccccccccccccccc.js (cccccccccccccccccccccccccccccc) 2.96 KiB ={282}= ={383}= ={568}= ={767}= ={769}= [entry] [rendered] + chunk name-too-long/cccccccccccccccccccccccccccccc.js (cccccccccccccccccccccccccccccc) 2.93 KiB ={282}= ={383}= ={568}= ={767}= ={769}= [entry] [rendered] > ./c cccccccccccccccccccccccccccccc 3 root modules - chunk name-too-long/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.js (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) 5.84 KiB ={282}= ={767}= ={794}= ={954}= >{137}< >{568}< [entry] [rendered] + chunk name-too-long/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.js (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) 5.75 KiB ={282}= ={767}= ={794}= ={954}= >{137}< >{568}< [entry] [rendered] > ./a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 6 root modules - chunk name-too-long/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.js (bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) 2.96 KiB ={282}= ={334}= ={568}= ={767}= ={954}= [entry] [rendered] + chunk name-too-long/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.js (bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) 2.93 KiB ={282}= ={334}= ={568}= ={767}= ={954}= [entry] [rendered] > ./b bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 3 root modules chunk name-too-long/767.js 20 bytes <{179}> ={282}= ={334}= ={383}= ={568}= ={658}= ={751}= ={766}= ={769}= ={794}= ={954}= >{137}< >{568}< [initial] [rendered] split chunk (cache group: default) @@ -2962,7 +2962,7 @@ Child custom-chunks-filter: Entrypoint a = custom-chunks-filter/a.js Entrypoint b = custom-chunks-filter/282.js custom-chunks-filter/954.js custom-chunks-filter/568.js custom-chunks-filter/b.js Entrypoint c = custom-chunks-filter/282.js custom-chunks-filter/769.js custom-chunks-filter/568.js custom-chunks-filter/c.js - chunk custom-chunks-filter/b.js (b) 92 bytes (javascript) 2.97 KiB (runtime) ={282}= ={568}= ={954}= [entry] [rendered] + chunk custom-chunks-filter/b.js (b) 92 bytes (javascript) 2.94 KiB (runtime) ={282}= ={568}= ={954}= [entry] [rendered] > ./b b ./b.js 72 bytes [built] + 3 hidden root modules @@ -2970,7 +2970,7 @@ Child custom-chunks-filter: chunk custom-chunks-filter/async-g.js (async-g) 34 bytes <{282}> <{767}> <{786}> <{794}> <{954}> ={568}= [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk custom-chunks-filter/main.js (main) 147 bytes (javascript) 4.93 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] + chunk custom-chunks-filter/main.js (main) 147 bytes (javascript) 4.85 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 6 hidden root modules @@ -2987,7 +2987,7 @@ Child custom-chunks-filter: chunk custom-chunks-filter/async-c.js (async-c) 72 bytes <{179}> ={282}= ={568}= ={767}= ={769}= [rendered] > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] - chunk custom-chunks-filter/c.js (c) 92 bytes (javascript) 2.97 KiB (runtime) ={282}= ={568}= ={769}= [entry] [rendered] + chunk custom-chunks-filter/c.js (c) 92 bytes (javascript) 2.94 KiB (runtime) ={282}= ={568}= ={769}= [entry] [rendered] > ./c c ./c.js 72 bytes [built] + 3 hidden root modules @@ -3008,7 +3008,7 @@ Child custom-chunks-filter: > ./c ./index.js 3:0-47 > ./c c ./node_modules/z.js 20 bytes [built] - chunk custom-chunks-filter/a.js (a) 216 bytes (javascript) 4.92 KiB (runtime) >{137}< >{568}< [entry] [rendered] + chunk custom-chunks-filter/a.js (a) 216 bytes (javascript) 4.83 KiB (runtime) >{137}< >{568}< [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] + 6 hidden root modules @@ -3026,7 +3026,7 @@ Child custom-chunks-filter-in-cache-groups: Entrypoint a = custom-chunks-filter-in-cache-groups/a.js Entrypoint b = custom-chunks-filter-in-cache-groups/vendors.js custom-chunks-filter-in-cache-groups/b.js Entrypoint c = custom-chunks-filter-in-cache-groups/vendors.js custom-chunks-filter-in-cache-groups/c.js - chunk custom-chunks-filter-in-cache-groups/b.js (b) 112 bytes (javascript) 2.99 KiB (runtime) ={216}= [entry] [rendered] + chunk custom-chunks-filter-in-cache-groups/b.js (b) 112 bytes (javascript) 2.96 KiB (runtime) ={216}= [entry] [rendered] > ./b b > x b > y b @@ -3038,7 +3038,7 @@ Child custom-chunks-filter-in-cache-groups: > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] + 1 hidden dependent module - chunk custom-chunks-filter-in-cache-groups/main.js (main) 147 bytes (javascript) 4.95 KiB (runtime) >{216}< >{334}< >{383}< >{794}< [entry] [rendered] + chunk custom-chunks-filter-in-cache-groups/main.js (main) 147 bytes (javascript) 4.87 KiB (runtime) >{216}< >{334}< >{383}< >{794}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 6 hidden root modules @@ -3065,7 +3065,7 @@ Child custom-chunks-filter-in-cache-groups: > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] + 2 hidden dependent modules - chunk custom-chunks-filter-in-cache-groups/c.js (c) 112 bytes (javascript) 2.99 KiB (runtime) ={216}= [entry] [rendered] + chunk custom-chunks-filter-in-cache-groups/c.js (c) 112 bytes (javascript) 2.96 KiB (runtime) ={216}= [entry] [rendered] > ./c c > x c > y c @@ -3073,7 +3073,7 @@ Child custom-chunks-filter-in-cache-groups: ./c.js 72 bytes [built] + 3 hidden root modules + 2 hidden dependent modules - chunk custom-chunks-filter-in-cache-groups/a.js (a) 236 bytes (javascript) 4.89 KiB (runtime) >{137}< [entry] [rendered] + chunk custom-chunks-filter-in-cache-groups/a.js (a) 236 bytes (javascript) 4.8 KiB (runtime) >{137}< [entry] [rendered] > ./a a > x a > y a @@ -3120,7 +3120,7 @@ chunk common-node_modules_y_js.js (id hint: common) 20 bytes <{main}> ={async-a} chunk common-node_modules_z_js.js (id hint: common) 20 bytes <{main}> ={async-c}= ={common-d_js}= ={common-f_js}= ={common-node_modules_x_js}= [rendered] split chunk (cache group: b) > ./c ./index.js 3:0-47 ./node_modules/z.js 20 bytes [built] -chunk main.js (main) 147 bytes (javascript) 4.84 KiB (runtime) >{async-a}< >{async-b}< >{async-c}< >{common-d_js}< >{common-f_js}< >{common-node_modules_x_js}< >{common-node_modules_y_js}< >{common-node_modules_z_js}< [entry] [rendered] +chunk main.js (main) 147 bytes (javascript) 4.75 KiB (runtime) >{async-a}< >{async-b}< >{async-c}< >{common-d_js}< >{common-f_js}< >{common-node_modules_x_js}< >{common-node_modules_y_js}< >{common-node_modules_z_js}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 6 hidden root modules" @@ -3128,7 +3128,7 @@ chunk main.js (main) 147 bytes (javascript) 4.84 KiB (runtime) >{async-a}< >{asy exports[`StatsTestCases should print correct stats for split-chunks-chunk-name 1`] = ` "Entrypoint main = default/main.js -chunk default/main.js (main) 192 bytes (javascript) 4.89 KiB (runtime) >{334}< >{709}< >{794}< [entry] [rendered] +chunk default/main.js (main) 192 bytes (javascript) 4.81 KiB (runtime) >{334}< >{709}< >{794}< [entry] [rendered] > ./ main ./index.js 192 bytes [built] + 6 hidden chunk modules @@ -3154,7 +3154,7 @@ chunk async-g.js (async-g) 101 bytes <{179}> [rendered] > ./g ./index.js 7:0-47 ./g.js 34 bytes [built] + 1 hidden dependent module -chunk main.js (main) 343 bytes (javascript) 5.21 KiB (runtime) >{31}< >{137}< >{206}< >{334}< >{383}< >{449}< >{794}< >{804}< [entry] [rendered] +chunk main.js (main) 343 bytes (javascript) 5.13 KiB (runtime) >{31}< >{137}< >{206}< >{334}< >{383}< >{449}< >{794}< >{804}< [entry] [rendered] > ./ main ./index.js 343 bytes [built] + 7 hidden root modules @@ -3185,7 +3185,7 @@ chunk 804.js 134 bytes <{179}> ={334}= ={794}= [rendered] split chunk (cache gro exports[`StatsTestCases should print correct stats for split-chunks-issue-6413 1`] = ` "Entrypoint main = main.js -chunk main.js (main) 147 bytes (javascript) 4.55 KiB (runtime) >{282}< >{334}< >{383}< >{543}< >{794}< [entry] [rendered] +chunk main.js (main) 147 bytes (javascript) 4.46 KiB (runtime) >{282}< >{334}< >{383}< >{543}< >{794}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 5 hidden root modules @@ -3212,7 +3212,7 @@ chunk async-a.js (async-a) 19 bytes <{179}> ={282}= ={543}= [rendered] exports[`StatsTestCases should print correct stats for split-chunks-issue-6696 1`] = ` "Entrypoint main = vendors.js main.js -chunk main.js (main) 110 bytes (javascript) 5.46 KiB (runtime) ={216}= >{334}< >{794}< [entry] [rendered] +chunk main.js (main) 110 bytes (javascript) 5.38 KiB (runtime) ={216}= >{334}< >{794}< [entry] [rendered] > ./ main ./index.js 110 bytes [built] + 5 hidden root modules @@ -3233,7 +3233,7 @@ exports[`StatsTestCases should print correct stats for split-chunks-issue-7401 1 "Entrypoint a = 282.js a.js Entrypoint b = b.js Chunk Group c = 282.js c.js -chunk b.js (b) 43 bytes (javascript) 4.51 KiB (runtime) >{282}< >{459}< [entry] [rendered] +chunk b.js (b) 43 bytes (javascript) 4.42 KiB (runtime) >{282}< >{459}< [entry] [rendered] > ./b b ./b.js 43 bytes [built] + 5 hidden root modules @@ -3244,7 +3244,7 @@ chunk 282.js (id hint: vendors) 20 bytes <{128}> ={459}= ={786}= [initial] [rend chunk c.js (c) 12 bytes <{128}> ={282}= [rendered] > ./c ./b.js 1:0-41 ./c.js 12 bytes [built] -chunk a.js (a) 12 bytes (javascript) 2.33 KiB (runtime) ={282}= [entry] [rendered] +chunk a.js (a) 12 bytes (javascript) 2.3 KiB (runtime) ={282}= [entry] [rendered] > ./a a ./a.js 12 bytes [built] + 1 hidden root module" @@ -3252,7 +3252,7 @@ chunk a.js (a) 12 bytes (javascript) 2.33 KiB (runtime) ={282}= [entry] [rendere exports[`StatsTestCases should print correct stats for split-chunks-keep-remaining-size 1`] = ` "Entrypoint main = default/main.js -chunk default/main.js (main) 147 bytes (javascript) 5.16 KiB (runtime) >{334}< >{383}< >{794}< >{821}< [entry] [rendered] +chunk default/main.js (main) 147 bytes (javascript) 5.08 KiB (runtime) >{334}< >{383}< >{794}< >{821}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 7 hidden chunk modules @@ -3338,7 +3338,7 @@ exports[`StatsTestCases should print correct stats for split-chunks-max-size 1`] > ./ main ./big.js?1 268 bytes [built] ./big.js?2 268 bytes [built] - chunk prod-main-12217e1d.js (main-12217e1d) 1.57 KiB (javascript) 2.97 KiB (runtime) ={1}= ={59}= ={198}= ={204}= ={318}= ={358}= ={400}= ={410}= ={490}= ={520}= ={662}= ={869}= [entry] [rendered] + chunk prod-main-12217e1d.js (main-12217e1d) 1.57 KiB (javascript) 2.95 KiB (runtime) ={1}= ={59}= ={198}= ={204}= ={318}= ={358}= ={400}= ={410}= ={490}= ={520}= ={662}= ={869}= [entry] [rendered] > ./ main ./very-big.js?1 1.57 KiB [built] + 3 hidden root modules @@ -3409,7 +3409,7 @@ Child development: chunk dev-main-very-big_js-4647fb9d.js (main-very-big_js-4647fb9d) 1.57 KiB ={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-62f7f644}= ={vendors-node_modules_big_js_1-node_modules_small_js_1-node_modules_small_js_2}= ={vendors-node_modules_very-big_js_1}= [initial] [rendered] > ./ main ./very-big.js?3 1.57 KiB [built] - chunk dev-main-very-big_js-62f7f644.js (main-very-big_js-62f7f644) 1.57 KiB (javascript) 3.61 KiB (runtime) ={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-node_modules_big_js_1-node_modules_small_js_1-node_modules_small_js_2}= ={vendors-node_modules_very-big_js_1}= [entry] [rendered] + chunk dev-main-very-big_js-62f7f644.js (main-very-big_js-62f7f644) 1.57 KiB (javascript) 3.58 KiB (runtime) ={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-node_modules_big_js_1-node_modules_small_js_1-node_modules_small_js_2}= ={vendors-node_modules_very-big_js_1}= [entry] [rendered] > ./ main ./very-big.js?1 1.57 KiB [built] + 4 hidden root modules @@ -3459,7 +3459,7 @@ Child switched: ./subfolder/small.js?3 67 bytes [built] ./subfolder/small.js?4 67 bytes [built] + 5 hidden root modules - chunk switched-main-12217e1d.js (main-12217e1d) 1.57 KiB (javascript) 2.95 KiB (runtime) ={1}= ={59}= ={247}= ={318}= ={520}= ={581}= ={997}= [entry] [rendered] + chunk switched-main-12217e1d.js (main-12217e1d) 1.57 KiB (javascript) 2.93 KiB (runtime) ={1}= ={59}= ={247}= ={318}= ={520}= ={581}= ={997}= [entry] [rendered] > ./ main ./very-big.js?1 1.57 KiB [built] + 3 hidden root modules @@ -3557,7 +3557,7 @@ Child zero-min: > ./ main ./big.js?1 268 bytes [built] ./big.js?2 268 bytes [built] - chunk zero-min-main-12217e1d.js (main-12217e1d) 1.57 KiB (javascript) 2.97 KiB (runtime) ={1}= ={59}= ={198}= ={204}= ={318}= ={358}= ={400}= ={410}= ={490}= ={520}= ={662}= ={869}= [entry] [rendered] + chunk zero-min-main-12217e1d.js (main-12217e1d) 1.57 KiB (javascript) 2.95 KiB (runtime) ={1}= ={59}= ={198}= ={204}= ={318}= ={358}= ={400}= ={410}= ={490}= ={520}= ={662}= ={869}= [entry] [rendered] > ./ main ./very-big.js?1 1.57 KiB [built] + 3 hidden root modules @@ -3568,7 +3568,7 @@ Child zero-min: ./node_modules/small.js?2 67 bytes [built] Child max-async-size: Entrypoint main = max-async-size-main.js - chunk max-async-size-main.js (main) 2.47 KiB (javascript) 5.21 KiB (runtime) >{342}< >{385}< >{820}< >{920}< [entry] [rendered] + chunk max-async-size-main.js (main) 2.47 KiB (javascript) 5.12 KiB (runtime) >{342}< >{385}< >{820}< >{920}< [entry] [rendered] > ./async main ./async/index.js 386 bytes [built] + 7 hidden root modules @@ -3596,7 +3596,7 @@ Child enforce-min-size: chunk enforce-min-size-10.js (id hint: all) 1.19 KiB ={179}= ={221}= ={262}= ={410}= ={434}= ={463}= ={519}= ={575}= ={614}= ={692}= ={822}= ={825}= ={869}= [initial] [rendered] split chunk (cache group: all) > ./ main ./index.js 1.19 KiB [built] - chunk enforce-min-size-main.js (main) 2.98 KiB ={10}= ={221}= ={262}= ={410}= ={434}= ={463}= ={519}= ={575}= ={614}= ={692}= ={822}= ={825}= ={869}= [entry] [rendered] + chunk enforce-min-size-main.js (main) 2.95 KiB ={10}= ={221}= ={262}= ={410}= ={434}= ={463}= ={519}= ={575}= ={614}= ={692}= ={822}= ={825}= ={869}= [entry] [rendered] > ./ main 3 root modules chunk enforce-min-size-221.js (id hint: all) 1.57 KiB ={10}= ={179}= ={262}= ={410}= ={434}= ={463}= ={519}= ={575}= ={614}= ={692}= ={822}= ={825}= ={869}= [initial] [rendered] split chunk (cache group: all) @@ -3676,7 +3676,7 @@ chunk default/118.js 110 bytes <{179}> ={334}= ={383}= [rendered] split chunk (c > ./c ./index.js 3:0-47 ./d.js 43 bytes [built] ./f.js 67 bytes [built] -chunk default/main.js (main) 147 bytes (javascript) 5.16 KiB (runtime) >{118}< >{334}< >{383}< >{794}< [entry] [rendered] +chunk default/main.js (main) 147 bytes (javascript) 5.08 KiB (runtime) >{118}< >{334}< >{383}< >{794}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] + 7 hidden root modules @@ -3694,11 +3694,11 @@ chunk default/async-a.js (async-a) 134 bytes <{179}> [rendered] `; exports[`StatsTestCases should print correct stats for tree-shaking 1`] = ` -"Hash: 0924253adfe530343bb4 +"Hash: 77b74ad56d4feb691266 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size -bundle.js 7.13 KiB [emitted] [name: main] +bundle.js 7.26 KiB [emitted] [name: main] Entrypoint main = bundle.js ./index.js 316 bytes [built] [1 warning] [no exports] @@ -3761,7 +3761,7 @@ WARNING in Terser Plugin: Dropping unused function someUnRemoteUsedFunction5 [we `; exports[`StatsTestCases should print correct stats for wasm-explorer-examples-sync 1`] = ` -"Hash: 7aa29a3dc984dbd67223 +"Hash: a71b60b9e30a9dbf1935 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size @@ -3774,7 +3774,7 @@ Built at: 1970-04-20 12:42:42 780.bundle.js 496 bytes [emitted] 99.bundle.js 205 bytes [emitted] a0e9dd97d7ced35a5b2c.module.wasm 154 bytes [emitted] [immutable] - bundle.js 11 KiB [emitted] [name: main-1df31ce3] + bundle.js 11.1 KiB [emitted] [name: main-1df31ce3] d37b3336426771c2a6e2.module.wasm 531 bytes [emitted] [immutable] ebd3f263522776d85971.module.wasm 156 bytes [emitted] [immutable] Entrypoint main = bundle.js @@ -3786,7 +3786,7 @@ chunk 325.bundle.js 1.54 KiB (javascript) 274 bytes (webassembly) [rendered] ./popcnt.wasm 50 bytes (javascript) 120 bytes (webassembly) [built] ./testFunction.wasm 50 bytes (javascript) 154 bytes (webassembly) [built] ./tests.js 1.44 KiB [built] -chunk bundle.js (main-1df31ce3) 586 bytes (javascript) 5.58 KiB (runtime) [entry] [rendered] +chunk bundle.js (main-1df31ce3) 586 bytes (javascript) 5.49 KiB (runtime) [entry] [rendered] ./index.js 586 bytes [built] + 7 hidden chunk modules chunk 526.bundle.js (id hint: vendors) 34 bytes [rendered] split chunk (cache group: defaultVendors) From faf784b6ab5d441f988ad50ee5a04b950db3f312 Mon Sep 17 00:00:00 2001 From: Sergey Melyukov Date: Tue, 3 Dec 2019 16:27:39 +0300 Subject: [PATCH 2/4] refactor hop runtime helper --- lib/RuntimeGlobals.js | 2 +- lib/RuntimePlugin.js | 11 + lib/RuntimeTemplate.js | 31 +- lib/javascript/JavascriptModulesPlugin.js | 23 +- .../DefinePropertyGettersRuntimeModule.js | 3 +- lib/runtime/GlobalRuntimeModule.js | 7 +- lib/runtime/HasOwnPropertyRuntimeModule.js | 32 + lib/web/JsonpChunkLoadingRuntimeModule.js | 1 - lib/web/JsonpTemplatePlugin.js | 59 +- .../ImportScriptsChunkLoadingRuntimeModule.js | 1 - lib/webworker/WebWorkerTemplatePlugin.js | 1 + test/Stats.test.js | 4 +- .../__snapshots__/StatsTestCases.test.js.snap | 638 +++++++++--------- .../module-concatenation-plugin/0/index.js | 2 +- 14 files changed, 429 insertions(+), 386 deletions(-) create mode 100644 lib/runtime/HasOwnPropertyRuntimeModule.js diff --git a/lib/RuntimeGlobals.js b/lib/RuntimeGlobals.js index 92f489fb0..2b925434b 100644 --- a/lib/RuntimeGlobals.js +++ b/lib/RuntimeGlobals.js @@ -204,4 +204,4 @@ exports.system = "__webpack_require__.System"; * the shorthand for Object.prototype.hasOwnProperty * using of ot decreases the compiled bundle size */ -exports.hasOwnProperty = "__webpack_require__.hop"; +exports.hasOwnProperty = "__webpack_require__.o"; diff --git a/lib/RuntimePlugin.js b/lib/RuntimePlugin.js index 97a066d5f..ce9243d31 100644 --- a/lib/RuntimePlugin.js +++ b/lib/RuntimePlugin.js @@ -16,6 +16,7 @@ const EnsureChunkRuntimeModule = require("./runtime/EnsureChunkRuntimeModule"); const GetChunkFilenameRuntimeModule = require("./runtime/GetChunkFilenameRuntimeModule"); const GetMainFilenameRuntimeModule = require("./runtime/GetMainFilenameRuntimeModule"); const GlobalRuntimeModule = require("./runtime/GlobalRuntimeModule"); +const HasOwnPropertyRuntimeModule = require("./runtime/HasOwnPropertyRuntimeModule"); const MakeNamespaceObjectRuntimeModule = require("./runtime/MakeNamespaceObjectRuntimeModule"); const PublicPathRuntimeModule = require("./runtime/PublicPathRuntimeModule"); @@ -45,6 +46,7 @@ const GLOBALS_ON_REQUIRE = [ ]; const TREE_DEPENDENCIES = { + [RuntimeGlobals.definePropertyGetters]: [RuntimeGlobals.hasOwnProperty], [RuntimeGlobals.compatGetDefaultExport]: [ RuntimeGlobals.definePropertyGetters ], @@ -113,6 +115,15 @@ class RuntimePlugin { ); return true; }); + compilation.hooks.runtimeRequirementInTree + .for(RuntimeGlobals.hasOwnProperty) + .tap("RuntimePlugin", chunk => { + compilation.addRuntimeModule( + chunk, + new HasOwnPropertyRuntimeModule() + ); + return true; + }); compilation.hooks.runtimeRequirementInTree .for(RuntimeGlobals.compatGetDefaultExport) .tap("RuntimePlugin", chunk => { diff --git a/lib/RuntimeTemplate.js b/lib/RuntimeTemplate.js index bce8e06f2..fea61e3b1 100644 --- a/lib/RuntimeTemplate.js +++ b/lib/RuntimeTemplate.js @@ -65,6 +65,10 @@ class RuntimeTemplate { : `function(${args}) {\n${Template.indent(body)}\n}`; } + iife(args, body) { + return `(${this.basicFunction(args, body)})()`; + } + forEach(variable, array, body) { return this.supportsForOf() ? `for(const ${variable} of ${array}) {\n${Template.indent(body)}\n}` @@ -184,9 +188,12 @@ class RuntimeTemplate { case "statements": return errorStatements; case "promise": - return `Promise.resolve().then(function() { ${errorStatements} })`; + return `Promise.resolve().then(${this.basicFunction( + "", + errorStatements + )})`; case "expression": - return `(function() { ${errorStatements} }())`; + return this.iife("", errorStatements); } } @@ -430,7 +437,10 @@ class RuntimeTemplate { weak, runtimeRequirements }); - getModuleFunction = `function() { ${header}return ${rawModule}; }`; + getModuleFunction = this.basicFunction( + "", + `${header}return ${rawModule}` + ); } else { runtimeRequirements.add(RuntimeGlobals.require); getModuleFunction = `__webpack_require__.bind(null, ${comment}${idExpr})`; @@ -438,21 +448,30 @@ class RuntimeTemplate { } else if (strict) { runtimeRequirements.add(RuntimeGlobals.createFakeNamespaceObject); if (header) { - getModuleFunction = `function() { ${header}return ${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 1); }`; + getModuleFunction = this.basicFunction( + "", + `${header}return ${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 1)` + ); } else { getModuleFunction = `${RuntimeGlobals.createFakeNamespaceObject}.bind(__webpack_require__, ${comment}${idExpr}, 1)`; } } else if (exportsType === "default") { runtimeRequirements.add(RuntimeGlobals.createFakeNamespaceObject); if (header) { - getModuleFunction = `function() { ${header}return ${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 3); }`; + getModuleFunction = this.basicFunction( + "", + `${header}return ${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 3)` + ); } else { getModuleFunction = `${RuntimeGlobals.createFakeNamespaceObject}.bind(__webpack_require__, ${comment}${idExpr}, 3)`; } } else { runtimeRequirements.add(RuntimeGlobals.createFakeNamespaceObject); if (header) { - getModuleFunction = `function() { ${header}return ${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 7); }`; + getModuleFunction = this.basicFunction( + "", + `${header}return ${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 7)` + ); } else { getModuleFunction = `${RuntimeGlobals.createFakeNamespaceObject}.bind(__webpack_require__, ${comment}${idExpr}, 7)`; } diff --git a/lib/javascript/JavascriptModulesPlugin.js b/lib/javascript/JavascriptModulesPlugin.js index d1551459f..7dc8b39b7 100644 --- a/lib/javascript/JavascriptModulesPlugin.js +++ b/lib/javascript/JavascriptModulesPlugin.js @@ -578,7 +578,10 @@ class JavascriptModulesPlugin { const innerStrict = !allStrict && m.buildInfo.strict; const iife = innerStrict || inlinedModules.size > 1 || chunkModules; if (iife) { - if (runtimeTemplate.supportsArrowFunction()) { + if ( + !runtimeRequirements.has(RuntimeGlobals.thisAsExports) && + runtimeTemplate.supportsArrowFunction() + ) { source.add("(() => {\n"); if (innerStrict) source.add('"use strict";\n'); source.add(renderedModule); @@ -717,24 +720,6 @@ class JavascriptModulesPlugin { buf.push(""); } - if (runtimeRequirements.has(RuntimeGlobals.hasOwnProperty)) { - buf.push("// the shorthand for Object.prototype.hasOwnProperty"); - if (runtimeTemplate.supportsArrowFunction()) { - buf.push( - `${RuntimeGlobals.hasOwnProperty} = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);` - ); - } else { - buf.push(`${RuntimeGlobals.hasOwnProperty} = function (obj, prop) {`); - buf.push( - Template.indent( - "return Object.prototype.hasOwnProperty.call(obj, prop);" - ) - ); - buf.push("};"); - } - buf.push(""); - } - if ( moduleFactories || runtimeRequirements.has(RuntimeGlobals.moduleFactoriesAddOnly) diff --git a/lib/runtime/DefinePropertyGettersRuntimeModule.js b/lib/runtime/DefinePropertyGettersRuntimeModule.js index 5eb93eb4f..5fce2be9c 100644 --- a/lib/runtime/DefinePropertyGettersRuntimeModule.js +++ b/lib/runtime/DefinePropertyGettersRuntimeModule.js @@ -21,11 +21,10 @@ class DefinePropertyGettersRuntimeModule extends HelperRuntimeModule { const fn = RuntimeGlobals.definePropertyGetters; return Template.asString([ "// define getter functions for harmony exports", - "var hasOwnProperty = Object.prototype.hasOwnProperty;", `${fn} = ${runtimeTemplate.basicFunction("exports, definition", [ `for(var key in definition) {`, Template.indent([ - "if(hasOwnProperty.call(definition, key) && !hasOwnProperty.call(exports, key)) {", + `if(${RuntimeGlobals.hasOwnProperty}(definition, key) && !${RuntimeGlobals.hasOwnProperty}(exports, key)) {`, Template.indent([ "Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });" ]), diff --git a/lib/runtime/GlobalRuntimeModule.js b/lib/runtime/GlobalRuntimeModule.js index 631521aa4..660fa7881 100644 --- a/lib/runtime/GlobalRuntimeModule.js +++ b/lib/runtime/GlobalRuntimeModule.js @@ -17,9 +17,9 @@ class GlobalRuntimeModule extends RuntimeModule { * @returns {string} runtime code */ generate() { + const { runtimeTemplate } = this.compilation; return Template.asString([ - `${RuntimeGlobals.global} = (function() {`, - Template.indent([ + `${RuntimeGlobals.global} = ${runtimeTemplate.iife("", [ "if (typeof globalThis === 'object') return globalThis;", "try {", Template.indent( @@ -38,8 +38,7 @@ class GlobalRuntimeModule extends RuntimeModule { // We return `undefined`, instead of nothing here, so it's // easier to handle this case: // if (!global) { … } - ]), - "})();" + ])};` ]); } } diff --git a/lib/runtime/HasOwnPropertyRuntimeModule.js b/lib/runtime/HasOwnPropertyRuntimeModule.js new file mode 100644 index 000000000..197179460 --- /dev/null +++ b/lib/runtime/HasOwnPropertyRuntimeModule.js @@ -0,0 +1,32 @@ +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Sergey Melyukov @smelukov +*/ + +"use strict"; + +const RuntimeGlobals = require("../RuntimeGlobals"); +const RuntimeModule = require("../RuntimeModule"); +const Template = require("../Template"); + +class HasOwnPropertyRuntimeModule extends RuntimeModule { + constructor() { + super("hasOwnProperty shorthand"); + } + + /** + * @returns {string} runtime code + */ + generate() { + const { runtimeTemplate } = this.compilation; + + return Template.asString([ + `${RuntimeGlobals.hasOwnProperty} = ${runtimeTemplate.returningFunction( + "Object.prototype.hasOwnProperty.call(obj, prop)", + "obj, prop" + )}` + ]); + } +} + +module.exports = HasOwnPropertyRuntimeModule; diff --git a/lib/web/JsonpChunkLoadingRuntimeModule.js b/lib/web/JsonpChunkLoadingRuntimeModule.js index 7f9a37a49..959f5955d 100644 --- a/lib/web/JsonpChunkLoadingRuntimeModule.js +++ b/lib/web/JsonpChunkLoadingRuntimeModule.js @@ -18,7 +18,6 @@ class JsonpChunkLoadingRuntimeModule extends RuntimeModule { this.jsonpScript = jsonpScript; this.linkPreload = linkPreload; this.linkPrefetch = linkPrefetch; - this.runtimeRequirements.add(RuntimeGlobals.hasOwnProperty); } /** diff --git a/lib/web/JsonpTemplatePlugin.js b/lib/web/JsonpTemplatePlugin.js index 339fb5bc3..c4689d5c1 100644 --- a/lib/web/JsonpTemplatePlugin.js +++ b/lib/web/JsonpTemplatePlugin.js @@ -179,41 +179,33 @@ class JsonpTemplatePlugin { : "", "// create error before stack unwound to get useful stacktrace later", "var error = new Error();", - runtimeTemplate.supportsArrowFunction() - ? "onScriptComplete = event => {" - : "onScriptComplete = function (event) {", - Template.indent([ - runtimeTemplate.supportsArrowFunction() - ? "onScriptComplete = _ => _;" - : "onScriptComplete = function() {};", - "// avoid mem leaks in IE.", - "script.onerror = script.onload = null;", - "clearTimeout(timeout);", - "var reportError = loadingEnded();", - "if(reportError) {", - Template.indent([ - "var errorType = event && (event.type === 'load' ? 'missing' : event.type);", - "var realSrc = event && event.target && event.target.src;", - "error.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';", - "error.name = 'ChunkLoadError';", - "error.type = errorType;", - "error.request = realSrc;", - "reportError(error);" - ]), - "}" - ]), - "};", - ...(runtimeTemplate.supportsArrowFunction() - ? [ - `var timeout = setTimeout(_ => onScriptComplete({ type: 'timeout', target: script }), ${chunkLoadTimeout});` - ] - : [ - "var timeout = setTimeout(function(){", + "onScriptComplete = " + + runtimeTemplate.basicFunction( + "event", + Template.asString([ + `onScriptComplete = ${runtimeTemplate.basicFunction("", "")}`, + "// avoid mem leaks in IE.", + "script.onerror = script.onload = null;", + "clearTimeout(timeout);", + "var reportError = loadingEnded();", + "if(reportError) {", Template.indent([ - "onScriptComplete({ type: 'timeout', target: script });" + "var errorType = event && (event.type === 'load' ? 'missing' : event.type);", + "var realSrc = event && event.target && event.target.src;", + "error.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';", + "error.name = 'ChunkLoadError';", + "error.type = errorType;", + "error.request = realSrc;", + "reportError(error);" ]), - `}, ${chunkLoadTimeout});` - ]), + "}" + ]) + ), + ";", + `var timeout = setTimeout(${runtimeTemplate.basicFunction( + "", + "onScriptComplete({ type: 'timeout', target: script })" + )}, ${chunkLoadTimeout});`, "script.onerror = script.onload = onScriptComplete;" ]); }); @@ -272,6 +264,7 @@ class JsonpTemplatePlugin { if (onceForChunkSet.has(chunk)) return; onceForChunkSet.add(chunk); set.add(RuntimeGlobals.moduleFactoriesAddOnly); + set.add(RuntimeGlobals.hasOwnProperty); compilation.addRuntimeModule( chunk, new JsonpChunkLoadingRuntimeModule( diff --git a/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js b/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js index 13c68cc23..7dac2ec16 100644 --- a/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +++ b/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js @@ -12,7 +12,6 @@ class ImportScriptsChunkLoadingRuntimeModule extends RuntimeModule { constructor(runtimeRequirements) { super("importScripts chunk loading", 10); this.runtimeRequirements = runtimeRequirements; - this.runtimeRequirements.add(RuntimeGlobals.hasOwnProperty); } /** diff --git a/lib/webworker/WebWorkerTemplatePlugin.js b/lib/webworker/WebWorkerTemplatePlugin.js index c258e77c0..b31b2600c 100644 --- a/lib/webworker/WebWorkerTemplatePlugin.js +++ b/lib/webworker/WebWorkerTemplatePlugin.js @@ -82,6 +82,7 @@ class WebWorkerTemplatePlugin { if (onceForChunkSet.has(chunk)) return; onceForChunkSet.add(chunk); set.add(RuntimeGlobals.moduleFactoriesAddOnly); + set.add(RuntimeGlobals.hasOwnProperty); compilation.addRuntimeModule( chunk, new ImportScriptsChunkLoadingRuntimeModule(set) diff --git a/test/Stats.test.js b/test/Stats.test.js index 568231662..db5de492b 100644 --- a/test/Stats.test.js +++ b/test/Stats.test.js @@ -217,10 +217,10 @@ describe("Stats", () => { "comparedForEmit": false, "emitted": true, "info": Object { - "size": 1940, + "size": 1881, }, "name": "entryB.js", - "size": 1940, + "size": 1881, }, ], "assetsByChunkName": Object { diff --git a/test/__snapshots__/StatsTestCases.test.js.snap b/test/__snapshots__/StatsTestCases.test.js.snap index 412f9f383..7d2f6f6c3 100644 --- a/test/__snapshots__/StatsTestCases.test.js.snap +++ b/test/__snapshots__/StatsTestCases.test.js.snap @@ -1,24 +1,24 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`StatsTestCases should print correct stats for aggressive-splitting-entry 1`] = ` -"Hash: 20682156c1fe7b669bcf57a7f01638081fc55a7a +"Hash: 3e9a5156d285240100f86c0a654fac4022388023 Child fitting: - Hash: 20682156c1fe7b669bcf + Hash: 3e9a5156d285240100f8 Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) Asset Size fitting-1e85d2c6a3bb53369456.js 1.91 KiB [emitted] [immutable] fitting-32fa512a201604f3e8b7.js 1.08 KiB [emitted] [immutable] - fitting-61fe3dde1d85a317e6b6.js 13 KiB [emitted] [immutable] fitting-64ea4fa3fe9d8c4817d8.js 1.91 KiB [emitted] [immutable] - Entrypoint main = fitting-1e85d2c6a3bb53369456.js fitting-64ea4fa3fe9d8c4817d8.js fitting-61fe3dde1d85a317e6b6.js - chunk fitting-61fe3dde1d85a317e6b6.js 1.87 KiB (javascript) 6.38 KiB (runtime) [entry] [rendered] + fitting-924d7c5cc437ae97bc00.js 13 KiB [emitted] [immutable] + Entrypoint main = fitting-1e85d2c6a3bb53369456.js fitting-64ea4fa3fe9d8c4817d8.js fitting-924d7c5cc437ae97bc00.js + chunk fitting-924d7c5cc437ae97bc00.js 1.87 KiB (javascript) 6.44 KiB (runtime) [entry] [rendered] > ./index main ./e.js 899 bytes [built] ./f.js 900 bytes [built] ./index.js 111 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk fitting-64ea4fa3fe9d8c4817d8.js 1.76 KiB [initial] [rendered] [recorded] aggressive splitted > ./index main ./c.js 899 bytes [built] @@ -31,22 +31,22 @@ Child fitting: > ./g ./index.js 7:0-13 ./g.js 916 bytes [built] Child content-change: - Hash: 57a7f01638081fc55a7a + Hash: 6c0a654fac4022388023 Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) Asset Size content-change-1e85d2c6a3bb53369456.js 1.91 KiB [emitted] [immutable] + content-change-21dae9f8fb83a384de5a.js 13 KiB [emitted] [immutable] content-change-32fa512a201604f3e8b7.js 1.08 KiB [emitted] [immutable] content-change-64ea4fa3fe9d8c4817d8.js 1.91 KiB [emitted] [immutable] - content-change-849572b2706776689c0f.js 13 KiB [emitted] [immutable] - Entrypoint main = content-change-1e85d2c6a3bb53369456.js content-change-64ea4fa3fe9d8c4817d8.js content-change-849572b2706776689c0f.js - chunk content-change-849572b2706776689c0f.js 1.87 KiB (javascript) 6.39 KiB (runtime) [entry] [rendered] + Entrypoint main = content-change-1e85d2c6a3bb53369456.js content-change-64ea4fa3fe9d8c4817d8.js content-change-21dae9f8fb83a384de5a.js + chunk content-change-21dae9f8fb83a384de5a.js 1.87 KiB (javascript) 6.45 KiB (runtime) [entry] [rendered] > ./index main ./e.js 899 bytes [built] ./f.js 900 bytes [built] ./index.js 111 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk content-change-64ea4fa3fe9d8c4817d8.js 1.76 KiB [initial] [rendered] [recorded] aggressive splitted > ./index main ./c.js 899 bytes [built] @@ -61,7 +61,7 @@ Child content-change: `; exports[`StatsTestCases should print correct stats for aggressive-splitting-on-demand 1`] = ` -"Hash: 4798821178ee0166bc1b +"Hash: 1f444a718517af4d97d0 Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) @@ -70,23 +70,23 @@ PublicPath: (none) 21fd8e73389271e24957.js 1.91 KiB [emitted] [immutable] 64ea4fa3fe9d8c4817d8.js 1.91 KiB [emitted] [immutable] 6a2a05a9feb43a535129.js 1.91 KiB [emitted] [immutable] +adff9df7a105cc65b63f.js 9.39 KiB [emitted] [immutable] [name: main] ae7ced4135ed4f2282f6.js 1.91 KiB [emitted] [immutable] b4a95c5544295741de67.js 1010 bytes [emitted] [immutable] b63bab94d02c84e0f081.js 1.91 KiB [emitted] [immutable] -cec7f1c8b0e402364394.js 9.29 KiB [emitted] [immutable] [name: main] db9a189ff52c97050941.js 1.91 KiB [emitted] [immutable] de61daf57f7861bbb2f6.js 1.91 KiB [emitted] [immutable] f80243284f4ab491b78e.js 1.91 KiB [emitted] [immutable] fb5a5560e641649a6ed8.js 1010 bytes [emitted] [immutable] -Entrypoint main = cec7f1c8b0e402364394.js +Entrypoint main = adff9df7a105cc65b63f.js chunk 64ea4fa3fe9d8c4817d8.js 1.76 KiB [rendered] [recorded] aggressive splitted > ./c ./d ./e ./index.js 3:0-30 ./c.js 899 bytes [built] ./d.js 899 bytes [built] -chunk cec7f1c8b0e402364394.js (main) 248 bytes (javascript) 4.45 KiB (runtime) [entry] [rendered] +chunk adff9df7a105cc65b63f.js (main) 248 bytes (javascript) 4.55 KiB (runtime) [entry] [rendered] > ./index main ./index.js 248 bytes [built] - + 4 hidden chunk modules + + 5 hidden chunk modules chunk 21fd8e73389271e24957.js 1.76 KiB [rendered] > ./f ./g ./h ./i ./j ./k ./index.js 4:0-51 ./j.js 901 bytes [built] @@ -147,10 +147,10 @@ Entrypoint main = bundle.js (7095cdad7dbe7d0415ca.png) exports[`StatsTestCases should print correct stats for async-commons-chunk 1`] = ` "Entrypoint main = main.js -chunk main.js (main) 515 bytes (javascript) 4.13 KiB (runtime) >{460}< >{847}< >{996}< [entry] [rendered] +chunk main.js (main) 515 bytes (javascript) 4.24 KiB (runtime) >{460}< >{847}< >{996}< [entry] [rendered] > ./ main ./index.js 515 bytes [built] - + 4 hidden root modules + + 5 hidden root modules chunk 460.js 21 bytes <{179}> ={847}= [rendered] > ./index.js 17:1-21:3 ./c.js 21 bytes [built] @@ -170,19 +170,19 @@ exports[`StatsTestCases should print correct stats for async-commons-chunk-auto Entrypoint a = disabled/a.js Entrypoint b = disabled/b.js Entrypoint c = disabled/c.js - chunk disabled/b.js (b) 152 bytes (javascript) 632 bytes (runtime) [entry] [rendered] + chunk disabled/b.js (b) 152 bytes (javascript) 668 bytes (runtime) [entry] [rendered] > ./b b ./b.js 72 bytes [built] - + 2 hidden root modules + + 3 hidden root modules + 4 hidden dependent modules chunk disabled/async-g.js (async-g) 54 bytes [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] + 1 hidden dependent module - chunk disabled/main.js (main) 147 bytes (javascript) 4.82 KiB (runtime) [entry] [rendered] + chunk disabled/main.js (main) 147 bytes (javascript) 4.88 KiB (runtime) [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk disabled/async-b.js (async-b) 152 bytes [rendered] > ./b ./index.js 2:0-47 ./b.js 72 bytes [built] @@ -191,15 +191,15 @@ exports[`StatsTestCases should print correct stats for async-commons-chunk-auto > ./c ./index.js 3:0-47 ./c.js + 1 modules 107 bytes [built] + 3 hidden dependent modules - chunk disabled/c.js (c) 167 bytes (javascript) 632 bytes (runtime) [entry] [rendered] + chunk disabled/c.js (c) 167 bytes (javascript) 668 bytes (runtime) [entry] [rendered] > ./c c ./c.js + 1 modules 107 bytes [built] - + 2 hidden root modules + + 3 hidden root modules + 3 hidden dependent modules - chunk disabled/a.js (a) 216 bytes (javascript) 4.77 KiB (runtime) [entry] [rendered] + chunk disabled/a.js (a) 216 bytes (javascript) 4.83 KiB (runtime) [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] - + 6 hidden root modules + + 7 hidden root modules + 3 hidden dependent modules chunk disabled/async-a.js (async-a) 216 bytes [rendered] > ./a ./index.js 1:0-47 @@ -210,18 +210,18 @@ Child default: Entrypoint a = default/a.js Entrypoint b = default/b.js Entrypoint c = default/c.js - chunk default/b.js (b) 152 bytes (javascript) 632 bytes (runtime) [entry] [rendered] + chunk default/b.js (b) 152 bytes (javascript) 668 bytes (runtime) [entry] [rendered] > ./b b ./b.js 72 bytes [built] - + 2 hidden root modules + + 3 hidden root modules + 4 hidden dependent modules chunk default/async-g.js (async-g) 34 bytes [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk default/main.js (main) 147 bytes (javascript) 4.83 KiB (runtime) [entry] [rendered] + chunk default/main.js (main) 147 bytes (javascript) 4.89 KiB (runtime) [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk default/282.js (id hint: vendors) 20 bytes [rendered] split chunk (cache group: defaultVendors) > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 @@ -233,10 +233,10 @@ Child default: chunk default/async-c.js (async-c) 72 bytes [rendered] > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] - chunk default/c.js (c) 152 bytes (javascript) 632 bytes (runtime) [entry] [rendered] + chunk default/c.js (c) 152 bytes (javascript) 668 bytes (runtime) [entry] [rendered] > ./c c ./c.js 72 bytes [built] - + 2 hidden root modules + + 3 hidden root modules + 4 hidden dependent modules chunk default/568.js 20 bytes [rendered] split chunk (cache group: default) > ./b ./index.js 2:0-47 @@ -251,10 +251,10 @@ Child default: chunk default/769.js (id hint: vendors) 20 bytes [rendered] split chunk (cache group: defaultVendors) > ./c ./index.js 3:0-47 ./node_modules/z.js 20 bytes [built] - chunk default/a.js (a) 216 bytes (javascript) 4.82 KiB (runtime) [entry] [rendered] + chunk default/a.js (a) 216 bytes (javascript) 4.88 KiB (runtime) [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] - + 6 hidden root modules + + 7 hidden root modules + 3 hidden dependent modules chunk default/async-a.js (async-a) 156 bytes [rendered] > ./a ./index.js 1:0-47 @@ -268,19 +268,19 @@ Child vendors: Entrypoint a = vendors/vendors.js vendors/a.js Entrypoint b = vendors/vendors.js vendors/b.js Entrypoint c = vendors/vendors.js vendors/c.js - chunk vendors/b.js (b) 112 bytes (javascript) 2.92 KiB (runtime) [entry] [rendered] + chunk vendors/b.js (b) 112 bytes (javascript) 2.95 KiB (runtime) [entry] [rendered] > ./b b ./b.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 2 hidden dependent modules chunk vendors/async-g.js (async-g) 54 bytes [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] + 1 hidden dependent module - chunk vendors/main.js (main) 147 bytes (javascript) 4.82 KiB (runtime) [entry] [rendered] + chunk vendors/main.js (main) 147 bytes (javascript) 4.88 KiB (runtime) [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk vendors/vendors.js (vendors) (id hint: vendors) 60 bytes [initial] [rendered] split chunk (cache group: vendors) (name: vendors) > ./a a > ./b b @@ -296,15 +296,15 @@ Child vendors: > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] + 4 hidden dependent modules - chunk vendors/c.js (c) 112 bytes (javascript) 2.92 KiB (runtime) [entry] [rendered] + chunk vendors/c.js (c) 112 bytes (javascript) 2.95 KiB (runtime) [entry] [rendered] > ./c c ./c.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 2 hidden dependent modules - chunk vendors/a.js (a) 176 bytes (javascript) 5.7 KiB (runtime) [entry] [rendered] + chunk vendors/a.js (a) 176 bytes (javascript) 5.76 KiB (runtime) [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] - + 6 hidden root modules + + 7 hidden root modules + 1 hidden dependent module chunk vendors/async-a.js (async-a) 216 bytes [rendered] > ./a ./index.js 1:0-47 @@ -323,28 +323,28 @@ Child multiple-vendors: > ./b b > ./c c ./node_modules/x.js 20 bytes [built] - chunk multiple-vendors/b.js (b) 92 bytes (javascript) 2.94 KiB (runtime) [entry] [rendered] + chunk multiple-vendors/b.js (b) 92 bytes (javascript) 2.97 KiB (runtime) [entry] [rendered] > ./b b ./b.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 1 hidden dependent module chunk multiple-vendors/async-g.js (async-g) 34 bytes [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk multiple-vendors/main.js (main) 147 bytes (javascript) 4.86 KiB (runtime) [entry] [rendered] + chunk multiple-vendors/main.js (main) 147 bytes (javascript) 4.92 KiB (runtime) [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk multiple-vendors/async-b.js (async-b) 72 bytes [rendered] > ./b ./index.js 2:0-47 ./b.js 72 bytes [built] chunk multiple-vendors/async-c.js (async-c) 72 bytes [rendered] > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] - chunk multiple-vendors/c.js (c) 92 bytes (javascript) 2.94 KiB (runtime) [entry] [rendered] + chunk multiple-vendors/c.js (c) 92 bytes (javascript) 2.97 KiB (runtime) [entry] [rendered] > ./c c ./c.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 1 hidden dependent module chunk multiple-vendors/568.js 20 bytes [rendered] split chunk (cache group: default) > ./b ./index.js 2:0-47 @@ -363,10 +363,10 @@ Child multiple-vendors: > ./c ./index.js 3:0-47 > ./c c ./node_modules/z.js 20 bytes [built] - chunk multiple-vendors/a.js (a) 156 bytes (javascript) 5.76 KiB (runtime) [entry] [rendered] + chunk multiple-vendors/a.js (a) 156 bytes (javascript) 5.82 KiB (runtime) [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk multiple-vendors/async-a.js (async-a) 156 bytes [rendered] > ./a ./index.js 1:0-47 ./a.js + 1 modules 156 bytes [built] @@ -381,18 +381,18 @@ Child all: Entrypoint a = all/282.js all/954.js all/767.js all/a.js Entrypoint b = all/282.js all/954.js all/767.js all/b.js Entrypoint c = all/282.js all/769.js all/767.js all/c.js - chunk all/b.js (b) 92 bytes (javascript) 2.94 KiB (runtime) [entry] [rendered] + chunk all/b.js (b) 92 bytes (javascript) 2.97 KiB (runtime) [entry] [rendered] > ./b b ./b.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 1 hidden dependent module chunk all/async-g.js (async-g) 34 bytes [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk all/main.js (main) 147 bytes (javascript) 4.83 KiB (runtime) [entry] [rendered] + chunk all/main.js (main) 147 bytes (javascript) 4.89 KiB (runtime) [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk all/282.js (id hint: vendors) 20 bytes [initial] [rendered] split chunk (cache group: vendors) > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 @@ -407,10 +407,10 @@ Child all: chunk all/async-c.js (async-c) 72 bytes [rendered] > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] - chunk all/c.js (c) 92 bytes (javascript) 2.94 KiB (runtime) [entry] [rendered] + chunk all/c.js (c) 92 bytes (javascript) 2.97 KiB (runtime) [entry] [rendered] > ./c c ./c.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 1 hidden dependent module chunk all/568.js 20 bytes [rendered] split chunk (cache group: default) > ./b ./index.js 2:0-47 @@ -429,10 +429,10 @@ Child all: > ./c ./index.js 3:0-47 > ./c c ./node_modules/z.js 20 bytes [built] - chunk all/a.js (a) 156 bytes (javascript) 5.75 KiB (runtime) [entry] [rendered] + chunk all/a.js (a) 156 bytes (javascript) 5.81 KiB (runtime) [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk all/async-a.js (async-a) 156 bytes [rendered] > ./a ./index.js 1:0-47 ./a.js + 1 modules 156 bytes [built] @@ -445,35 +445,35 @@ Child all: `; exports[`StatsTestCases should print correct stats for chunk-module-id-range 1`] = ` -"Hash: 004ccd2a26cdfec7bbd5 +"Hash: fb5c63d2e82f70b6a022 Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) Asset Size -main1.js 4.3 KiB [emitted] [name: main1] -main2.js 4.29 KiB [emitted] [name: main2] +main1.js 4.44 KiB [emitted] [name: main1] +main2.js 4.43 KiB [emitted] [name: main2] Entrypoint main1 = main1.js Entrypoint main2 = main2.js -chunk main2.js (main2) 136 bytes (javascript) 632 bytes (runtime) [entry] [rendered] +chunk main2.js (main2) 136 bytes (javascript) 668 bytes (runtime) [entry] [rendered] > ./main2 main2 ./a.js 20 bytes [built] ./d.js 20 bytes [built] ./e.js 20 bytes [built] ./f.js 20 bytes [built] ./main2.js 56 bytes [built] - + 2 hidden chunk modules -chunk main1.js (main1) 136 bytes (javascript) 632 bytes (runtime) [entry] [rendered] + + 3 hidden chunk modules +chunk main1.js (main1) 136 bytes (javascript) 668 bytes (runtime) [entry] [rendered] > ./main1 main1 ./a.js 20 bytes [built] ./b.js 20 bytes [built] ./c.js 20 bytes [built] ./d.js 20 bytes [built] ./main1.js 56 bytes [built] - + 2 hidden chunk modules" + + 3 hidden chunk modules" `; exports[`StatsTestCases should print correct stats for chunks 1`] = ` -"Hash: 4cbc292ad8af00b41d82 +"Hash: f7bc9eacfcfa73a582b4 Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) @@ -481,9 +481,9 @@ PublicPath: (none) 460.bundle.js 324 bytes [emitted] 524.bundle.js 210 bytes [emitted] 996.bundle.js 142 bytes [emitted] - bundle.js 7.81 KiB [emitted] [name: main] + bundle.js 7.91 KiB [emitted] [name: main] Entrypoint main = bundle.js -chunk bundle.js (main) 73 bytes (javascript) 4.14 KiB (runtime) >{460}< >{996}< [entry] [rendered] +chunk bundle.js (main) 73 bytes (javascript) 4.25 KiB (runtime) >{460}< >{996}< [entry] [rendered] > ./index main ./a.js 22 bytes [built] cjs require ./a ./index.js 1:0-14 @@ -491,7 +491,7 @@ chunk bundle.js (main) 73 bytes (javascript) 4.14 KiB (runtime) >{460}< >{996}< ./index.js 51 bytes [built] entry ./index main Xms (resolving: Xms, restoring: Xms, integration: Xms, building: Xms, storing: Xms) - + 4 hidden chunk modules + + 5 hidden chunk modules chunk 460.bundle.js 54 bytes <{179}> >{524}< [rendered] > ./c ./index.js 3:0-16 ./c.js 54 bytes [built] @@ -513,13 +513,13 @@ chunk 996.bundle.js 22 bytes <{179}> [rendered] `; exports[`StatsTestCases should print correct stats for chunks-development 1`] = ` -"Hash: 2c61b06c054656851bb8 +"Hash: bed3963e09b8f3d8b779 Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) Asset Size b_js.bundle.js 359 bytes [emitted] - bundle.js 8.38 KiB [emitted] [name: main] + bundle.js 8.49 KiB [emitted] [name: main] c_js.bundle.js 588 bytes [emitted] d_js-e_js.bundle.js 759 bytes [emitted] Entrypoint main = bundle.js @@ -541,7 +541,7 @@ chunk d_js-e_js.bundle.js 60 bytes <{c_js}> [rendered] ./e.js 38 bytes [built] require.ensure item ./e ./c.js 1:0-52 Xms -> Xms -> Xms (resolving: Xms, restoring: Xms, integration: Xms, building: Xms, storing: Xms) -chunk bundle.js (main) 73 bytes (javascript) 4.14 KiB (runtime) >{b_js}< >{c_js}< [entry] [rendered] +chunk bundle.js (main) 73 bytes (javascript) 4.25 KiB (runtime) >{b_js}< >{c_js}< [entry] [rendered] > ./index main ./a.js 22 bytes [built] cjs require ./a ./e.js 1:0-14 @@ -550,16 +550,16 @@ chunk bundle.js (main) 73 bytes (javascript) 4.14 KiB (runtime) >{b_js}< >{c_js} ./index.js 51 bytes [built] entry ./index main Xms (resolving: Xms, restoring: Xms, integration: Xms, building: Xms, storing: Xms) - + 4 hidden chunk modules" + + 5 hidden chunk modules" `; exports[`StatsTestCases should print correct stats for circular-correctness 1`] = ` "Entrypoint main = bundle.js chunk 128.bundle.js (b) 49 bytes <{179}> <{459}> >{459}< [rendered] ./module-b.js 49 bytes [built] -chunk bundle.js (main) 98 bytes (javascript) 5.42 KiB (runtime) >{128}< >{786}< [entry] [rendered] +chunk bundle.js (main) 98 bytes (javascript) 5.48 KiB (runtime) >{128}< >{786}< [entry] [rendered] ./index.js 98 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk 459.bundle.js (c) 98 bytes <{128}> <{786}> >{128}< >{786}< [rendered] ./module-c.js 98 bytes [built] chunk 786.bundle.js (a) 49 bytes <{179}> <{459}> >{459}< [rendered] @@ -597,12 +597,12 @@ Entrypoint main = main.js `; exports[`StatsTestCases should print correct stats for commons-chunk-min-size-0 1`] = ` -"Hash: b4e574793b9e7c75d51d +"Hash: c78165fa4b8e1f543b90 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 429.js 278 bytes [emitted] [id hint: vendor-1] -entry-1.js 5.35 KiB [emitted] [name: entry-1] +entry-1.js 5.37 KiB [emitted] [name: entry-1] Entrypoint entry-1 = 429.js entry-1.js ./entry-1.js 145 bytes [built] ./modules/a.js 22 bytes [built] @@ -611,15 +611,15 @@ Entrypoint entry-1 = 429.js entry-1.js ./modules/d.js 22 bytes [built] ./modules/e.js 22 bytes [built] ./modules/f.js 22 bytes [built] - + 1 hidden module" + + 2 hidden modules" `; exports[`StatsTestCases should print correct stats for commons-chunk-min-size-Infinity 1`] = ` -"Hash: e2e0b97a20a6c5bf8425 +"Hash: e1811e7bd2b08fe91369 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size - entry-1.js 5.35 KiB [emitted] [name: entry-1] + entry-1.js 5.37 KiB [emitted] [name: entry-1] vendor-1.js 278 bytes [emitted] [name: vendor-1] [id hint: vendor-1] Entrypoint entry-1 = vendor-1.js entry-1.js ./entry-1.js 145 bytes [built] @@ -629,33 +629,33 @@ Entrypoint entry-1 = vendor-1.js entry-1.js ./modules/d.js 22 bytes [built] ./modules/e.js 22 bytes [built] ./modules/f.js 22 bytes [built] - + 1 hidden module" + + 2 hidden modules" `; exports[`StatsTestCases should print correct stats for commons-plugin-issue-4980 1`] = ` -"Hash: 658a95832a31a62c4b4823efa9b811c3ce8726ae +"Hash: f574fa9691641230a92dbf35dda4a5870c2b90b4 Child - Hash: 658a95832a31a62c4b48 + Hash: f574fa9691641230a92d Time: Xms Built at: 1970-04-20 12:42:42 Asset Size - app.7f5960a3338f572272c6-1.js 5.95 KiB [emitted] [immutable] [name: app] + app.6a509d33476291bd4b84-1.js 5.91 KiB [emitted] [immutable] [name: app] vendor.6b4bbfa3863de7632c2b-1.js 615 bytes [emitted] [immutable] [name: vendor] [id hint: vendor] - Entrypoint app = vendor.6b4bbfa3863de7632c2b-1.js app.7f5960a3338f572272c6-1.js + Entrypoint app = vendor.6b4bbfa3863de7632c2b-1.js app.6a509d33476291bd4b84-1.js ./entry-1.js + 2 modules 190 bytes [built] ./constants.js 87 bytes [built] - + 2 hidden modules + + 3 hidden modules Child - Hash: 23efa9b811c3ce8726ae + Hash: bf35dda4a5870c2b90b4 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size - app.3a24fe0ab12d4fad9268-2.js 5.96 KiB [emitted] [immutable] [name: app] + app.3e294cabb068ca84e0dc-2.js 5.92 KiB [emitted] [immutable] [name: app] vendor.6b4bbfa3863de7632c2b-2.js 615 bytes [emitted] [immutable] [name: vendor] [id hint: vendor] - Entrypoint app = vendor.6b4bbfa3863de7632c2b-2.js app.3a24fe0ab12d4fad9268-2.js + Entrypoint app = vendor.6b4bbfa3863de7632c2b-2.js app.3e294cabb068ca84e0dc-2.js ./entry-2.js + 2 modules 197 bytes [built] ./constants.js 87 bytes [built] - + 2 hidden modules" + + 3 hidden modules" `; exports[`StatsTestCases should print correct stats for concat-and-sideeffects 1`] = ` @@ -676,55 +676,55 @@ exports[`StatsTestCases should print correct stats for concat-and-sideeffects 1` `; exports[`StatsTestCases should print correct stats for context-independence 1`] = ` -"Hash: 1b180490432bc69f35e21b180490432bc69f35e241a63d9c7dfe9022358a41a63d9c7dfe9022358a +"Hash: 3c160984a980dac95b913c160984a980dac95b9111fdc8efed5dc9a0356111fdc8efed5dc9a03561 Child - Hash: 1b180490432bc69f35e2 + Hash: 3c160984a980dac95b91 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 703-31a50198ea37e1d30825.js 438 bytes [emitted] [immutable] 703-31a50198ea37e1d30825.js.map 343 bytes [emitted] [dev] - main-4db59440dafa4c5e6c60.js 8.07 KiB [emitted] [immutable] [name: main] - main-4db59440dafa4c5e6c60.js.map 7.16 KiB [emitted] [dev] [name: (main)] - Entrypoint main = main-4db59440dafa4c5e6c60.js (main-4db59440dafa4c5e6c60.js.map) + main-4124fe68a732c1b5d1ad.js 8.18 KiB [emitted] [immutable] [name: main] + main-4124fe68a732c1b5d1ad.js.map 7.23 KiB [emitted] [dev] [name: (main)] + Entrypoint main = main-4124fe68a732c1b5d1ad.js (main-4124fe68a732c1b5d1ad.js.map) ./a/index.js 40 bytes [built] ./a/chunk.js + 1 modules 66 bytes [built] - + 5 hidden modules + + 6 hidden modules Child - Hash: 1b180490432bc69f35e2 + Hash: 3c160984a980dac95b91 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 703-31a50198ea37e1d30825.js 438 bytes [emitted] [immutable] 703-31a50198ea37e1d30825.js.map 343 bytes [emitted] [dev] - main-4db59440dafa4c5e6c60.js 8.07 KiB [emitted] [immutable] [name: main] - main-4db59440dafa4c5e6c60.js.map 7.16 KiB [emitted] [dev] [name: (main)] - Entrypoint main = main-4db59440dafa4c5e6c60.js (main-4db59440dafa4c5e6c60.js.map) + main-4124fe68a732c1b5d1ad.js 8.18 KiB [emitted] [immutable] [name: main] + main-4124fe68a732c1b5d1ad.js.map 7.23 KiB [emitted] [dev] [name: (main)] + Entrypoint main = main-4124fe68a732c1b5d1ad.js (main-4124fe68a732c1b5d1ad.js.map) ./b/index.js 40 bytes [built] ./b/chunk.js + 1 modules 66 bytes [built] - + 5 hidden modules + + 6 hidden modules Child - Hash: 41a63d9c7dfe9022358a + Hash: 11fdc8efed5dc9a03561 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 703-71c02d17a0d4fdf148ec.js 962 bytes [emitted] [immutable] - main-d6f96e18d7efef35b2f8.js 8.41 KiB [emitted] [immutable] [name: main] - Entrypoint main = main-d6f96e18d7efef35b2f8.js + main-105b1b44c9785e4fec51.js 8.52 KiB [emitted] [immutable] [name: main] + Entrypoint main = main-105b1b44c9785e4fec51.js ./a/index.js 40 bytes [built] ./a/chunk.js + 1 modules 66 bytes [built] - + 5 hidden modules + + 6 hidden modules Child - Hash: 41a63d9c7dfe9022358a + Hash: 11fdc8efed5dc9a03561 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 703-71c02d17a0d4fdf148ec.js 962 bytes [emitted] [immutable] - main-d6f96e18d7efef35b2f8.js 8.41 KiB [emitted] [immutable] [name: main] - Entrypoint main = main-d6f96e18d7efef35b2f8.js + main-105b1b44c9785e4fec51.js 8.52 KiB [emitted] [immutable] [name: main] + Entrypoint main = main-105b1b44c9785e4fec51.js ./b/index.js 40 bytes [built] ./b/chunk.js + 1 modules 66 bytes [built] - + 5 hidden modules" + + 6 hidden modules" `; exports[`StatsTestCases should print correct stats for define-plugin 1`] = ` @@ -779,16 +779,16 @@ Unexpected end of JSON input while parsing near '' `; exports[`StatsTestCases should print correct stats for exclude-with-loader 1`] = ` -"Hash: 6a760613e2615026d387 +"Hash: 44a857698e21eeb6ec4a Time: Xms Built at: 1970-04-20 12:42:42 Asset Size -bundle.js 3.37 KiB [emitted] [name: main] +bundle.js 3.51 KiB [emitted] [name: main] + 1 hidden asset Entrypoint main = bundle.js (5bcd36918d225eeda398ea3f372b7f16.json) ./index.js 77 bytes [built] ./a.txt 41 bytes [built] - + 5 hidden modules" + + 6 hidden modules" `; exports[`StatsTestCases should print correct stats for external 1`] = ` @@ -1064,18 +1064,18 @@ Entrypoint e2 = e2.js chunk b.js (b) 49 bytes <{786}> >{459}< [rendered] ./module-b.js 49 bytes [built] import() ./module-b ./module-a.js 1:0-47 -chunk e1.js (e1) 49 bytes (javascript) 5.45 KiB (runtime) >{786}< [entry] [rendered] +chunk e1.js (e1) 49 bytes (javascript) 5.5 KiB (runtime) >{786}< [entry] [rendered] ./e1.js 49 bytes [built] entry ./e1 e1 - + 7 hidden chunk modules + + 8 hidden chunk modules chunk c.js (c) 49 bytes <{128}> <{621}> >{786}< [rendered] ./module-c.js 49 bytes [built] import() ./module-c ./e2.js 1:0-47 import() ./module-c ./module-b.js 1:0-47 -chunk e2.js (e2) 49 bytes (javascript) 5.45 KiB (runtime) >{459}< [entry] [rendered] +chunk e2.js (e2) 49 bytes (javascript) 5.5 KiB (runtime) >{459}< [entry] [rendered] ./e2.js 49 bytes [built] entry ./e2 e2 - + 7 hidden chunk modules + + 8 hidden chunk modules chunk a.js (a) 49 bytes <{257}> <{459}> >{128}< [rendered] ./module-a.js 49 bytes [built] import() ./module-a ./e1.js 1:0-47 @@ -1088,26 +1088,26 @@ Entrypoint e2 = e2.js chunk b.js (b) 179 bytes <{786}> >{459}< [rendered] ./module-b.js 179 bytes [built] import() ./module-b ./module-a.js 1:0-47 -chunk e1.js (e1) 119 bytes (javascript) 5.71 KiB (runtime) >{786}< >{892}< [entry] [rendered] +chunk e1.js (e1) 119 bytes (javascript) 5.77 KiB (runtime) >{786}< >{892}< [entry] [rendered] ./e1.js 70 bytes [built] entry ./e1 e1 ./module-x.js 49 bytes [built] harmony side effect evaluation ./module-x ./e1.js 1:0-20 harmony side effect evaluation ./module-x ./e2.js 1:0-20 import() ./module-x ./module-b.js 2:0-20 - + 8 hidden chunk modules + + 9 hidden chunk modules chunk c.js (c) 49 bytes <{128}> <{621}> >{786}< [rendered] ./module-c.js 49 bytes [built] import() ./module-c ./e2.js 2:0-47 import() ./module-c ./module-b.js 1:0-47 -chunk e2.js (e2) 119 bytes (javascript) 5.71 KiB (runtime) >{459}< >{892}< [entry] [rendered] +chunk e2.js (e2) 119 bytes (javascript) 5.77 KiB (runtime) >{459}< >{892}< [entry] [rendered] ./e2.js 70 bytes [built] entry ./e2 e2 ./module-x.js 49 bytes [built] harmony side effect evaluation ./module-x ./e1.js 1:0-20 harmony side effect evaluation ./module-x ./e2.js 1:0-20 import() ./module-x ./module-b.js 2:0-20 - + 8 hidden chunk modules + + 9 hidden chunk modules chunk a.js (a) 49 bytes <{257}> <{459}> >{128}< [rendered] ./module-a.js 49 bytes [built] import() ./module-a ./e1.js 2:0-47 @@ -1138,9 +1138,9 @@ chunk id-equals-name_js0.js 1 bytes [rendered] ./id-equals-name.js 1 bytes [built] chunk id-equals-name_js_3.js 1 bytes [rendered] ./id-equals-name.js?3 1 bytes [built] -chunk main.js (main) 639 bytes (javascript) 5.67 KiB (runtime) [entry] [rendered] +chunk main.js (main) 639 bytes (javascript) 5.73 KiB (runtime) [entry] [rendered] ./index.js 639 bytes [built] - + 8 hidden root modules + + 9 hidden root modules chunk tree.js (tree) 43 bytes [rendered] ./tree/index.js 14 bytes [built] + 3 hidden dependent modules @@ -1154,29 +1154,29 @@ chunk trees.js (trees) 71 bytes [rendered] exports[`StatsTestCases should print correct stats for immutable 1`] = ` " Asset Size 1b847d037d2872a4c68b.js 346 bytes [emitted] [immutable] -a795a8e353265efa1f64.js 9.84 KiB [emitted] [immutable] [name: main]" +945fb1b905025df1339f.js 9.88 KiB [emitted] [immutable] [name: main]" `; exports[`StatsTestCases should print correct stats for import-context-filter 1`] = ` -"Hash: 53a423a693782ab4ca20 +"Hash: fde587e1bdf604f24e67 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 398.js 484 bytes [emitted] 544.js 484 bytes [emitted] 718.js 484 bytes [emitted] -entry.js 9.58 KiB [emitted] [name: entry] +entry.js 9.63 KiB [emitted] [name: entry] Entrypoint entry = entry.js ./entry.js 450 bytes [built] ./templates lazy ^\\\\.\\\\/.*$ include: \\\\.js$ exclude: \\\\.noimport\\\\.js$ namespace object 160 bytes [optional] [built] ./templates/bar.js 38 bytes [optional] [built] ./templates/baz.js 38 bytes [optional] [built] ./templates/foo.js 38 bytes [optional] [built] - + 6 hidden modules" + + 7 hidden modules" `; exports[`StatsTestCases should print correct stats for import-weak 1`] = ` -"Hash: 55cf3fe2ec019f412a76 +"Hash: 413c9966016a5c6b709a Time: Xms Built at: 1970-04-20 12:42:42 Asset Size @@ -1185,7 +1185,7 @@ entry.js 10.2 KiB [emitted] [name: entry] Entrypoint entry = entry.js ./entry.js 120 bytes [built] ./modules/b.js 22 bytes [built] - + 8 hidden modules" + + 9 hidden modules" `; exports[`StatsTestCases should print correct stats for import-with-invalid-options-comments 1`] = ` @@ -1196,7 +1196,7 @@ exports[`StatsTestCases should print correct stats for import-with-invalid-optio ./chunk-b.js 27 bytes [built] ./chunk-c.js 27 bytes [built] ./chunk-d.js 27 bytes [built] - + 7 hidden modules + + 8 hidden modules WARNING in ./chunk.js 2:11-84 Compilation error while processing magic comment(-s): /* webpackPrefetch: true, webpackChunkName: notGoingToCompileChunkName */: notGoingToCompileChunkName is not defined @@ -1213,76 +1213,76 @@ Compilation error while processing magic comment(-s): /* webpackPrefetch: nope * `; exports[`StatsTestCases should print correct stats for issue-7577 1`] = ` -"Hash: 4b4104a173f5a3f2a1926801b30c9bfcad621f7d5330373e33fd5c6c78af +"Hash: db17495307f9577cdf0574f8b47a2c1a85c2641ba52e42c5fb5bcb0d0cc1 Child - Hash: 4b4104a173f5a3f2a192 + Hash: db17495307f9577cdf05 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size a-all-a_js-a0ca01d3da48ab4385f6.js 144 bytes [emitted] [immutable] [id hint: all] a-main-fa06855251b873131c2c.js 115 bytes [emitted] [immutable] [name: main] - a-runtime~main-eba1c576dae4e0c4529c.js 4.9 KiB [emitted] [immutable] [name: runtime~main] - Entrypoint main = a-runtime~main-eba1c576dae4e0c4529c.js a-all-a_js-a0ca01d3da48ab4385f6.js a-main-fa06855251b873131c2c.js + a-runtime~main-58c0c5b1e0b10f369a33.js 4.93 KiB [emitted] [immutable] [name: runtime~main] + Entrypoint main = a-runtime~main-58c0c5b1e0b10f369a33.js a-all-a_js-a0ca01d3da48ab4385f6.js a-main-fa06855251b873131c2c.js ./a.js 18 bytes [built] - + 1 hidden module + + 2 hidden modules Child - Hash: 6801b30c9bfcad621f7d + Hash: 74f8b47a2c1a85c2641b Time: Xms Built at: 1970-04-20 12:42:42 Asset Size b-all-b_js-3219344d13cc334d7831.js 479 bytes [emitted] [immutable] [id hint: all] b-main-6da637b8d22f213c8475.js 148 bytes [emitted] [immutable] [name: main] - b-runtime~main-79ced853eb9d30ca8052.js 5.9 KiB [emitted] [immutable] [name: runtime~main] + b-runtime~main-79835f2c8b4a4d8e8e21.js 5.86 KiB [emitted] [immutable] [name: runtime~main] b-vendors-node_modules_vendor_js-a51f8ed2c8dc9ce97afd.js 189 bytes [emitted] [immutable] [id hint: vendors] - Entrypoint main = b-runtime~main-79ced853eb9d30ca8052.js b-vendors-node_modules_vendor_js-a51f8ed2c8dc9ce97afd.js b-all-b_js-3219344d13cc334d7831.js b-main-6da637b8d22f213c8475.js + Entrypoint main = b-runtime~main-79835f2c8b4a4d8e8e21.js b-vendors-node_modules_vendor_js-a51f8ed2c8dc9ce97afd.js b-all-b_js-3219344d13cc334d7831.js b-main-6da637b8d22f213c8475.js ./b.js 17 bytes [built] ./node_modules/vendor.js 23 bytes [built] - + 3 hidden modules + + 4 hidden modules Child - Hash: 5330373e33fd5c6c78af + Hash: a52e42c5fb5bcb0d0cc1 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size c-all-b_js-3219344d13cc334d7831.js 506 bytes [emitted] [immutable] [id hint: all] c-all-c_js-6756694a5d280748f5a3.js 382 bytes [emitted] [immutable] [id hint: all] c-main-476756bfcb471445cf2c.js 164 bytes [emitted] [immutable] [name: main] - c-runtime~main-fa4455db157bcccab319.js 11.4 KiB [emitted] [immutable] [name: runtime~main] + c-runtime~main-346ca173662bb43e22ef.js 11.4 KiB [emitted] [immutable] [name: runtime~main] c-vendors-node_modules_vendor_js-a51f8ed2c8dc9ce97afd.js 189 bytes [emitted] [immutable] [id hint: vendors] - Entrypoint main = c-runtime~main-fa4455db157bcccab319.js c-all-c_js-6756694a5d280748f5a3.js c-main-476756bfcb471445cf2c.js (prefetch: c-vendors-node_modules_vendor_js-a51f8ed2c8dc9ce97afd.js c-all-b_js-3219344d13cc334d7831.js) + Entrypoint main = c-runtime~main-346ca173662bb43e22ef.js c-all-c_js-6756694a5d280748f5a3.js c-main-476756bfcb471445cf2c.js (prefetch: c-vendors-node_modules_vendor_js-a51f8ed2c8dc9ce97afd.js c-all-b_js-3219344d13cc334d7831.js) ./c.js 61 bytes [built] ./b.js 17 bytes [built] ./node_modules/vendor.js 23 bytes [built] - + 7 hidden modules" + + 8 hidden modules" `; exports[`StatsTestCases should print correct stats for limit-chunk-count-plugin 1`] = ` -"Hash: 0760a97c3867a4cb73a3095931fd6d65bd622ce8a013b1c2a699f07dc47b5ee9bf9a4ad538654956 +"Hash: a0800a69d4b65916acc0edef925c59c09542572206d0ef7ed1356dcf7ae27c24a1e7619f90a97b8a Child 1 chunks: - Hash: 0760a97c3867a4cb73a3 + Hash: a0800a69d4b65916acc0 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size - bundle1.js 4.05 KiB [emitted] [name: main] + bundle1.js 4.19 KiB [emitted] [name: main] Entrypoint main = bundle1.js - chunk bundle1.js (main) 219 bytes (javascript) 1.28 KiB (runtime) <{179}> >{179}< [entry] [rendered] + chunk bundle1.js (main) 219 bytes (javascript) 1.32 KiB (runtime) <{179}> >{179}< [entry] [rendered] ./a.js 22 bytes [built] ./b.js 22 bytes [built] ./c.js 30 bytes [built] ./d.js 22 bytes [built] ./e.js 22 bytes [built] ./index.js 101 bytes [built] - + 3 hidden chunk modules + + 4 hidden chunk modules Child 2 chunks: - Hash: 095931fd6d65bd622ce8 + Hash: edef925c59c095425722 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 459.bundle2.js 666 bytes [emitted] [name: c] - bundle2.js 9.77 KiB [emitted] [name: main] + bundle2.js 9.82 KiB [emitted] [name: main] Entrypoint main = bundle2.js - chunk bundle2.js (main) 101 bytes (javascript) 5.42 KiB (runtime) >{459}< [entry] [rendered] + chunk bundle2.js (main) 101 bytes (javascript) 5.48 KiB (runtime) >{459}< [entry] [rendered] ./index.js 101 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk 459.bundle2.js (c) 118 bytes <{179}> <{459}> >{459}< [rendered] ./a.js 22 bytes [built] ./b.js 22 bytes [built] @@ -1290,17 +1290,17 @@ Child 2 chunks: ./d.js 22 bytes [built] ./e.js 22 bytes [built] Child 3 chunks: - Hash: a013b1c2a699f07dc47b + Hash: 06d0ef7ed1356dcf7ae2 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 459.bundle3.js 530 bytes [emitted] [name: c] 524.bundle3.js 210 bytes [emitted] - bundle3.js 9.77 KiB [emitted] [name: main] + bundle3.js 9.82 KiB [emitted] [name: main] Entrypoint main = bundle3.js - chunk bundle3.js (main) 101 bytes (javascript) 5.42 KiB (runtime) >{459}< [entry] [rendered] + chunk bundle3.js (main) 101 bytes (javascript) 5.48 KiB (runtime) >{459}< [entry] [rendered] ./index.js 101 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk 459.bundle3.js (c) 74 bytes <{179}> >{524}< [rendered] ./a.js 22 bytes [built] ./b.js 22 bytes [built] @@ -1309,18 +1309,18 @@ Child 3 chunks: ./d.js 22 bytes [built] ./e.js 22 bytes [built] Child 4 chunks: - Hash: 5ee9bf9a4ad538654956 + Hash: 7c24a1e7619f90a97b8a Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 394.bundle4.js 210 bytes [emitted] 459.bundle4.js 394 bytes [emitted] [name: c] 524.bundle4.js 210 bytes [emitted] - bundle4.js 9.77 KiB [emitted] [name: main] + bundle4.js 9.82 KiB [emitted] [name: main] Entrypoint main = bundle4.js - chunk bundle4.js (main) 101 bytes (javascript) 5.42 KiB (runtime) >{394}< >{459}< [entry] [rendered] + chunk bundle4.js (main) 101 bytes (javascript) 5.48 KiB (runtime) >{394}< >{459}< [entry] [rendered] ./index.js 101 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk 394.bundle4.js 44 bytes <{179}> [rendered] ./a.js 22 bytes [built] ./b.js 22 bytes [built] @@ -1429,7 +1429,7 @@ Entrypoint main = main.js `; exports[`StatsTestCases should print correct stats for module-assets 1`] = ` -"Hash: 9339f4f68d9f05598824 +"Hash: 6c0e387dd087e95c56bb Time: Xms Built at: 1970-04-20 12:42:42 Asset Size @@ -1437,16 +1437,16 @@ Built at: 1970-04-20 12:42:42 2.png 21 KiB [emitted] [name: (a, b)] a.js 988 bytes [emitted] [name: a] b.js 616 bytes [emitted] [name: b] -main.js 9.07 KiB [emitted] [name: main] +main.js 9.12 KiB [emitted] [name: main] Entrypoint main = main.js Chunk Group a = a.js (1.png 2.png) Chunk Group b = b.js (2.png) chunk b.js (b) 69 bytes [rendered] ./node_modules/a/2.png 51 bytes [built] [1 asset] ./node_modules/b/index.js 18 bytes [built] -chunk main.js (main) 82 bytes (javascript) 5.03 KiB (runtime) [entry] [rendered] +chunk main.js (main) 82 bytes (javascript) 5.09 KiB (runtime) [entry] [rendered] ./index.js 82 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk a.js (a) 138 bytes [rendered] ./node_modules/a/1.png 51 bytes [built] [1 asset] ./node_modules/a/2.png 51 bytes [built] [1 asset] @@ -1456,7 +1456,7 @@ chunk a.js (a) 138 bytes [rendered] ./node_modules/b/index.js 18 bytes [built] ./node_modules/a/1.png 51 bytes [built] [1 asset] ./node_modules/a/2.png 51 bytes [built] [1 asset] - + 7 hidden modules" + + 8 hidden modules" `; exports[`StatsTestCases should print correct stats for module-deduplication 1`] = ` @@ -1467,42 +1467,42 @@ exports[`StatsTestCases should print correct stats for module-deduplication 1`] 593.js 681 bytes [emitted] 716.js 734 bytes [emitted] 923.js 734 bytes [emitted] - e1.js 10.2 KiB [emitted] [name: e1] - e2.js 10.2 KiB [emitted] [name: e2] - e3.js 10.2 KiB [emitted] [name: e3] + e1.js 10.3 KiB [emitted] [name: e1] + e2.js 10.3 KiB [emitted] [name: e2] + e3.js 10.3 KiB [emitted] [name: e3] Entrypoint e1 = e1.js Entrypoint e2 = e2.js Entrypoint e3 = e3.js chunk 114.js 28 bytes [rendered] ./async1.js 28 bytes [built] -chunk e3.js (e3) 152 bytes (javascript) 5 KiB (runtime) [entry] [rendered] +chunk e3.js (e3) 152 bytes (javascript) 5.06 KiB (runtime) [entry] [rendered] ./a.js 9 bytes [built] ./b.js 9 bytes [built] ./e3.js 116 bytes [built] ./g.js 9 bytes [built] ./h.js 9 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk 172.js 28 bytes [rendered] ./async2.js 28 bytes [built] -chunk e1.js (e1) 152 bytes (javascript) 5 KiB (runtime) [entry] [rendered] +chunk e1.js (e1) 152 bytes (javascript) 5.06 KiB (runtime) [entry] [rendered] ./a.js 9 bytes [built] ./b.js 9 bytes [built] ./c.js 9 bytes [built] ./d.js 9 bytes [built] ./e1.js 116 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk 326.js 37 bytes [rendered] ./async3.js 28 bytes [built] ./h.js 9 bytes [built] chunk 593.js 28 bytes [rendered] ./async3.js 28 bytes [built] -chunk e2.js (e2) 152 bytes (javascript) 5 KiB (runtime) [entry] [rendered] +chunk e2.js (e2) 152 bytes (javascript) 5.06 KiB (runtime) [entry] [rendered] ./a.js 9 bytes [built] ./b.js 9 bytes [built] ./e.js 9 bytes [built] ./e2.js 116 bytes [built] ./f.js 9 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk 716.js 37 bytes [rendered] ./async2.js 28 bytes [built] ./f.js 9 bytes [built] @@ -1516,39 +1516,39 @@ exports[`StatsTestCases should print correct stats for module-deduplication-name async1.js 824 bytes [emitted] [name: async1] async2.js 824 bytes [emitted] [name: async2] async3.js 824 bytes [emitted] [name: async3] - e1.js 10.1 KiB [emitted] [name: e1] - e2.js 10.1 KiB [emitted] [name: e2] - e3.js 10.1 KiB [emitted] [name: e3] + e1.js 10.2 KiB [emitted] [name: e1] + e2.js 10.2 KiB [emitted] [name: e2] + e3.js 10.2 KiB [emitted] [name: e3] Entrypoint e1 = e1.js Entrypoint e2 = e2.js Entrypoint e3 = e3.js -chunk e3.js (e3) 144 bytes (javascript) 5.05 KiB (runtime) [entry] [rendered] +chunk e3.js (e3) 144 bytes (javascript) 5.11 KiB (runtime) [entry] [rendered] ./a.js 9 bytes [built] ./b.js 9 bytes [built] ./e3.js 108 bytes [built] ./g.js 9 bytes [built] ./h.js 9 bytes [built] - + 7 hidden chunk modules -chunk e1.js (e1) 144 bytes (javascript) 5.05 KiB (runtime) [entry] [rendered] + + 8 hidden chunk modules +chunk e1.js (e1) 144 bytes (javascript) 5.11 KiB (runtime) [entry] [rendered] ./a.js 9 bytes [built] ./b.js 9 bytes [built] ./c.js 9 bytes [built] ./d.js 9 bytes [built] ./e1.js 108 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk async1.js (async1) 89 bytes [rendered] ./async1.js 80 bytes [built] ./d.js 9 bytes [built] chunk async3.js (async3) 89 bytes [rendered] ./async3.js 80 bytes [built] ./h.js 9 bytes [built] -chunk e2.js (e2) 144 bytes (javascript) 5.05 KiB (runtime) [entry] [rendered] +chunk e2.js (e2) 144 bytes (javascript) 5.11 KiB (runtime) [entry] [rendered] ./a.js 9 bytes [built] ./b.js 9 bytes [built] ./e.js 9 bytes [built] ./e2.js 108 bytes [built] ./f.js 9 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk async2.js (async2) 89 bytes [rendered] ./async2.js 80 bytes [built] ./f.js 9 bytes [built]" @@ -1655,10 +1655,10 @@ exports[`StatsTestCases should print correct stats for named-chunk-groups 1`] = > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 ./shared.js 133 bytes [built] - chunk a-main.js (main) 146 bytes (javascript) 5.08 KiB (runtime) [entry] [rendered] + chunk a-main.js (main) 146 bytes (javascript) 5.14 KiB (runtime) [entry] [rendered] > ./ main ./index.js 146 bytes [built] - + 7 hidden root modules + + 8 hidden root modules chunk a-vendors.js (vendors) (id hint: vendors) 40 bytes [rendered] split chunk (cache group: vendors) (name: vendors) > ./c ./index.js 3:0-47 ./node_modules/x.js 20 bytes [built] @@ -1681,10 +1681,10 @@ Child > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 ./shared.js 133 bytes [built] - chunk b-main.js (main) 146 bytes (javascript) 5.08 KiB (runtime) [entry] [rendered] + chunk b-main.js (main) 146 bytes (javascript) 5.14 KiB (runtime) [entry] [rendered] > ./ main ./index.js 146 bytes [built] - + 7 hidden root modules + + 8 hidden root modules chunk b-vendors.js (vendors) (id hint: vendors) 40 bytes [rendered] split chunk (cache group: vendors) (name: vendors) > ./c ./index.js 3:0-47 ./node_modules/x.js 20 bytes [built] @@ -1701,33 +1701,33 @@ Child `; exports[`StatsTestCases should print correct stats for named-chunks-plugin 1`] = ` -"Hash: 1b22a7e988078bd5606a +"Hash: c2a9265bba5ea48f8d32 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size - entry.js 5.22 KiB [emitted] [name: entry] + entry.js 5.24 KiB [emitted] [name: entry] vendor.js 241 bytes [emitted] [name: vendor] [id hint: vendor] Entrypoint entry = vendor.js entry.js ./entry.js 72 bytes [built] ./modules/a.js 22 bytes [built] ./modules/b.js 22 bytes [built] ./modules/c.js 22 bytes [built] - + 1 hidden module" + + 2 hidden modules" `; exports[`StatsTestCases should print correct stats for named-chunks-plugin-async 1`] = ` -"Hash: ff02048eac4ee71c1977 +"Hash: 5b2d8bf6cb7123270228 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size - entry.js 9.64 KiB [emitted] [name: entry] + entry.js 9.68 KiB [emitted] [name: entry] modules_a_js.js 316 bytes [emitted] modules_b_js.js 153 bytes [emitted] Entrypoint entry = entry.js ./entry.js 47 bytes [built] ./modules/a.js 37 bytes [built] ./modules/b.js 22 bytes [built] - + 7 hidden modules" + + 8 hidden modules" `; exports[`StatsTestCases should print correct stats for no-emit-on-errors-plugin-with-child-error 1`] = ` @@ -1745,7 +1745,7 @@ You can also set it to 'none' to disable any default behavior. Learn more: https `; exports[`StatsTestCases should print correct stats for optimize-chunks 1`] = ` -"Hash: 00123caf73c06f6c24e5 +"Hash: 7311a4db759e711d1ef5 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size @@ -1756,17 +1756,17 @@ Built at: 1970-04-20 12:42:42 cir1.js 334 bytes [emitted] [name: cir1] cir2 from cir1.js 378 bytes [emitted] [name: cir2 from cir1] cir2.js 334 bytes [emitted] [name: cir2] - main.js 8.61 KiB [emitted] [name: main] + main.js 8.71 KiB [emitted] [name: main] Entrypoint main = main.js chunk ab.js (ab) 2 bytes <{179}> >{753}< [rendered] > ./index.js 1:0-6:8 ./modules/a.js 1 bytes [built] ./modules/b.js 1 bytes [built] -chunk main.js (main) 524 bytes (javascript) 4.23 KiB (runtime) >{90}< >{289}< >{374}< >{592}< [entry] [rendered] +chunk main.js (main) 524 bytes (javascript) 4.34 KiB (runtime) >{90}< >{289}< >{374}< >{592}< [entry] [rendered] > ./index main ./index.js 523 bytes [built] ./modules/f.js 1 bytes [built] - + 4 hidden chunk modules + + 5 hidden chunk modules chunk chunk.js (chunk) 2 bytes <{374}> <{753}> [rendered] > ./index.js 3:2-4:13 > ./index.js 9:1-10:12 @@ -1932,7 +1932,7 @@ Entrypoint main = main.js ./c.js 54 bytes [built] ./d.js 22 bytes [built] ./e.js 22 bytes [built] - + 4 hidden modules" + + 5 hidden modules" `; exports[`StatsTestCases should print correct stats for performance-error 1`] = ` @@ -1950,7 +1950,7 @@ Entrypoint main [big] = main.js< ./c.js 54 bytes [built] ./d.js 22 bytes [built] ./e.js 22 bytes [built] - + 4 hidden modules + + 5 hidden modules ERROR in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. @@ -2012,7 +2012,7 @@ Entrypoint main [big] = main.js< ./c.js 54 bytes [built] ./d.js 22 bytes [built] ./e.js 22 bytes [built] - + 4 hidden modules" + + 5 hidden modules" `; exports[`StatsTestCases should print correct stats for performance-oversize-limit-error 1`] = ` @@ -2058,7 +2058,7 @@ prefetched2.js 114 bytes [emitted] [name: prefetched2] prefetched3.js 114 bytes [emitted] [name: prefetched3] Entrypoint main = main.js (prefetch: prefetched2.js prefetched.js prefetched3.js) chunk normal.js (normal) 1 bytes <{179}> [rendered] -chunk main.js (main) 436 bytes (javascript) 6.49 KiB (runtime) >{30}< >{220}< >{379}< >{505}< (prefetch: {379} {505} {220}) [entry] [rendered] +chunk main.js (main) 436 bytes (javascript) 6.55 KiB (runtime) >{30}< >{220}< >{379}< >{505}< (prefetch: {379} {505} {220}) [entry] [rendered] chunk prefetched3.js (prefetched3) 1 bytes <{179}> [rendered] chunk prefetched2.js (prefetched2) 1 bytes <{179}> [rendered] chunk prefetched.js (prefetched) 228 bytes <{179}> >{641}< >{746}< (prefetch: {641} {746}) [rendered] @@ -2073,7 +2073,7 @@ chunk c1.js (c1) 1 bytes <{459}> [rendered] chunk b.js (b) 203 bytes <{179}> >{132}< >{751}< >{978}< (prefetch: {751} {132}) (preload: {978}) [rendered] chunk b3.js (b3) 1 bytes <{128}> [rendered] chunk a2.js (a2) 1 bytes <{786}> [rendered] -chunk main.js (main) 195 bytes (javascript) 6.91 KiB (runtime) >{128}< >{459}< >{786}< (prefetch: {786} {128} {459}) [entry] [rendered] +chunk main.js (main) 195 bytes (javascript) 6.97 KiB (runtime) >{128}< >{459}< >{786}< (prefetch: {786} {128} {459}) [entry] [rendered] chunk c.js (c) 134 bytes <{179}> >{3}< >{76}< (preload: {76} {3}) [rendered] chunk b1.js (b1) 1 bytes <{128}> [rendered] chunk a.js (a) 136 bytes <{179}> >{74}< >{178}< (prefetch: {74} {178}) [rendered] @@ -2084,14 +2084,14 @@ exports[`StatsTestCases should print correct stats for preload 1`] = ` " Asset Size inner.js 114 bytes [emitted] [name: inner] inner2.js 154 bytes [emitted] [name: inner2] - main.js 11.8 KiB [emitted] [name: main] + main.js 11.9 KiB [emitted] [name: main] normal.js 113 bytes [emitted] [name: normal] preloaded.js 557 bytes [emitted] [name: preloaded] preloaded2.js 113 bytes [emitted] [name: preloaded2] preloaded3.js 112 bytes [emitted] [name: preloaded3] Entrypoint main = main.js (preload: preloaded2.js preloaded.js preloaded3.js) chunk normal.js (normal) 1 bytes [rendered] -chunk main.js (main) 424 bytes (javascript) 6.43 KiB (runtime) (preload: {363} {851} {355}) [entry] [rendered] +chunk main.js (main) 424 bytes (javascript) 6.49 KiB (runtime) (preload: {363} {851} {355}) [entry] [rendered] chunk preloaded3.js (preloaded3) 1 bytes [rendered] chunk preloaded2.js (preloaded2) 1 bytes [rendered] chunk inner2.js (inner2) 2 bytes [rendered] @@ -2108,7 +2108,7 @@ exports[`StatsTestCases should print correct stats for preset-detailed 1`] = ` <+> [LogTestPlugin] Collaped group [LogTestPlugin] Log [LogTestPlugin] End -Hash: 3c1fd06ffa965b365ec1 +Hash: cc6b3725f6c0e8507ded Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) @@ -2116,9 +2116,9 @@ PublicPath: (none) 460.js 324 bytes {460} [emitted] 524.js 210 bytes {524} [emitted] 996.js 142 bytes {996} [emitted] -main.js 7.8 KiB {179} [emitted] [name: main] +main.js 7.91 KiB {179} [emitted] [name: main] Entrypoint main = main.js -chunk {179} main.js (main) 73 bytes (javascript) 4.13 KiB (runtime) >{460}< >{996}< [entry] [rendered] +chunk {179} main.js (main) 73 bytes (javascript) 4.24 KiB (runtime) >{460}< >{996}< [entry] [rendered] > ./index main chunk {460} 460.js 54 bytes <{179}> >{524}< [rendered] > ./c [10] ./index.js 3:0-16 @@ -2145,7 +2145,10 @@ webpack/runtime/ensure chunk 326 bytes {179} [runtime] webpack/runtime/get javascript chunk filename 167 bytes {179} [runtime] [no exports] [used exports unknown] -webpack/runtime/jsonp chunk loading 3.62 KiB {179} [runtime] +webpack/runtime/hasOwnProperty shorthand 86 bytes {179} [runtime] + [no exports] + [used exports unknown] +webpack/runtime/jsonp chunk loading 3.65 KiB {179} [runtime] [no exports] [used exports unknown] webpack/runtime/publicPath 27 bytes {179} [runtime] @@ -2191,7 +2194,7 @@ LOG from LogTestPlugin exports[`StatsTestCases should print correct stats for preset-minimal 1`] = ` " [LogTestPlugin] Error [LogTestPlugin] Warning - 10 modules + 11 modules LOG from LogTestPlugin Error @@ -2225,14 +2228,14 @@ exports[`StatsTestCases should print correct stats for preset-normal 1`] = ` " [LogTestPlugin] Error [LogTestPlugin] Warning [LogTestPlugin] Info -Hash: 3c1fd06ffa965b365ec1 +Hash: cc6b3725f6c0e8507ded Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 460.js 324 bytes [emitted] 524.js 210 bytes [emitted] 996.js 142 bytes [emitted] -main.js 7.8 KiB [emitted] [name: main] +main.js 7.91 KiB [emitted] [name: main] Entrypoint main = main.js ./index.js 51 bytes [built] ./a.js 22 bytes [built] @@ -2240,7 +2243,7 @@ Entrypoint main = main.js ./c.js 54 bytes [built] ./d.js 22 bytes [built] ./e.js 22 bytes [built] - + 4 hidden modules + + 5 hidden modules LOG from LogTestPlugin Error @@ -2265,7 +2268,7 @@ Entrypoint main [big] = main.js< ./c.js 54 bytes [built] ./d.js 22 bytes [built] ./e.js 22 bytes [built] - + 4 hidden modules + + 5 hidden modules WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. @@ -2299,7 +2302,7 @@ Entrypoint main [big] = main.js< ./c.js 54 bytes [built] ./d.js 22 bytes [built] ./e.js 22 bytes [built] - + 4 hidden modules + + 5 hidden modules WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. @@ -2326,7 +2329,7 @@ exports[`StatsTestCases should print correct stats for preset-verbose 1`] = ` [LogTestPlugin] Inner inner message [LogTestPlugin] Log [LogTestPlugin] End -Hash: 3c1fd06ffa965b365ec1 +Hash: cc6b3725f6c0e8507ded Time: Xms Built at: 1970-04-20 12:42:42 PublicPath: (none) @@ -2334,9 +2337,9 @@ PublicPath: (none) 460.js 324 bytes {460} [emitted] 524.js 210 bytes {524} [emitted] 996.js 142 bytes {996} [emitted] -main.js 7.8 KiB {179} [emitted] [name: main] +main.js 7.91 KiB {179} [emitted] [name: main] Entrypoint main = main.js -chunk {179} main.js (main) 73 bytes (javascript) 4.13 KiB (runtime) >{460}< >{996}< [entry] [rendered] +chunk {179} main.js (main) 73 bytes (javascript) 4.24 KiB (runtime) >{460}< >{996}< [entry] [rendered] > ./index main [847] ./a.js 22 bytes {179} [depth 1] [built] ModuleConcatenation bailout: Module is not an ECMAScript module @@ -2353,7 +2356,10 @@ chunk {179} main.js (main) 73 bytes (javascript) 4.13 KiB (runtime) >{460}< >{99 webpack/runtime/get javascript chunk filename 167 bytes {179} [runtime] [no exports] [used exports unknown] - webpack/runtime/jsonp chunk loading 3.62 KiB {179} [runtime] + webpack/runtime/hasOwnProperty shorthand 86 bytes {179} [runtime] + [no exports] + [used exports unknown] + webpack/runtime/jsonp chunk loading 3.65 KiB {179} [runtime] [no exports] [used exports unknown] webpack/runtime/publicPath 27 bytes {179} [runtime] @@ -2480,18 +2486,18 @@ exports[`StatsTestCases should print correct stats for runtime-chunk-integration Asset Size without-505.js 1.22 KiB [emitted] without-main1.js 556 bytes [emitted] [name: main1] - without-runtime.js 9.79 KiB [emitted] [name: runtime] + without-runtime.js 9.83 KiB [emitted] [name: runtime] Entrypoint main1 = without-runtime.js without-main1.js ./main1.js 66 bytes [built] ./b.js 20 bytes [built] ./c.js 20 bytes [built] ./d.js 20 bytes [built] - + 6 hidden modules + + 7 hidden modules Child manifest is named entry: Asset Size with-505.js 1.22 KiB [emitted] with-main1.js 556 bytes [emitted] [name: main1] - with-manifest.js 9.92 KiB [emitted] [name: manifest] + with-manifest.js 9.96 KiB [emitted] [name: manifest] Entrypoint main1 = with-manifest.js with-main1.js Entrypoint manifest = with-manifest.js ./main1.js 66 bytes [built] @@ -2499,7 +2505,7 @@ Child manifest is named entry: ./b.js 20 bytes [built] ./c.js 20 bytes [built] ./d.js 20 bytes [built] - + 6 hidden modules" + + 7 hidden modules" `; exports[`StatsTestCases should print correct stats for runtime-chunk-issue-7382 1`] = ` @@ -2513,7 +2519,7 @@ Entrypoint e2 = runtime.js e2.js" `; exports[`StatsTestCases should print correct stats for scope-hoisting-bailouts 1`] = ` -"Hash: 0af8e1272c194257ae1d +"Hash: 6c0e3ff2d7cd6333531e Time: Xms Built at: 1970-04-20 12:42:42 Entrypoint index = index.js @@ -2539,13 +2545,13 @@ Entrypoint entry = entry.js ModuleConcatenation bailout: Cannot concat with external \\"external\\" (<- Module is not an ECMAScript module) external \\"external\\" 42 bytes [built] ModuleConcatenation bailout: Module is not an ECMAScript module - + 7 hidden modules" + + 8 hidden modules" `; exports[`StatsTestCases should print correct stats for scope-hoisting-multi 1`] = ` -"Hash: 3185b2b1d691c508092358f18753ba7b12cd73c4 +"Hash: c32b7b7b3c075bb1b7ee58dad7f1031821535004 Child - Hash: 3185b2b1d691c5080923 + Hash: c32b7b7b3c075bb1b7ee Time: Xms Built at: 1970-04-20 12:42:42 Entrypoint first = a-vendor.js a-first.js @@ -2561,9 +2567,9 @@ Child ./common2.js 25 bytes [built] ./common_lazy.js 25 bytes [built] ./common_lazy_shared.js 25 bytes [built] - + 10 hidden modules + + 12 hidden modules Child - Hash: 58f18753ba7b12cd73c4 + Hash: 58dad7f1031821535004 Time: Xms Built at: 1970-04-20 12:42:42 Entrypoint first = b-vendor.js b-first.js @@ -2586,16 +2592,16 @@ Child ModuleConcatenation bailout: Cannot concat with ./common_lazy_shared.js (<- Module is referenced from different chunks by these modules: ./lazy_first.js, ./lazy_second.js, ./lazy_shared.js) ./common_lazy.js 25 bytes [built] ./common_lazy_shared.js 25 bytes [built] - + 12 hidden modules" + + 14 hidden modules" `; exports[`StatsTestCases should print correct stats for side-effects-issue-7428 1`] = ` -"Hash: bce063d118b185bcb1b8 +"Hash: 058fc77aba938f0dc820 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size 1.js 642 bytes [emitted] -main.js 9.89 KiB [emitted] [name: main] +main.js 9.94 KiB [emitted] [name: main] Entrypoint main = main.js ./main.js + 1 modules 231 bytes [built] [no exports used] @@ -2637,7 +2643,7 @@ Entrypoint main = main.js ./components/src/CompC/index.js 34 bytes [orphan] [built] [module unused] [inactive] harmony side effect evaluation ./CompC ./components/src/index.js 2:0-43 - + 6 hidden modules" + + 7 hidden modules" `; exports[`StatsTestCases should print correct stats for side-effects-simple-unused 1`] = ` @@ -2702,18 +2708,18 @@ exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` Entrypoint a = default/a.js Entrypoint b = default/b.js Entrypoint c = default/c.js - chunk default/b.js (b) 152 bytes (javascript) 632 bytes (runtime) [entry] [rendered] + chunk default/b.js (b) 152 bytes (javascript) 668 bytes (runtime) [entry] [rendered] > ./b b ./b.js 72 bytes [built] - + 2 hidden root modules + + 3 hidden root modules + 4 hidden dependent modules chunk default/async-g.js (async-g) 34 bytes <{282}> <{767}> <{786}> <{794}> <{954}> ={568}= [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk default/main.js (main) 147 bytes (javascript) 4.83 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] + chunk default/main.js (main) 147 bytes (javascript) 4.89 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk default/282.js (id hint: vendors) 20 bytes <{179}> ={334}= ={383}= ={568}= ={767}= ={769}= ={794}= ={954}= >{137}< >{568}< [rendered] split chunk (cache group: defaultVendors) > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 @@ -2725,10 +2731,10 @@ exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` chunk default/async-c.js (async-c) 72 bytes <{179}> ={282}= ={568}= ={767}= ={769}= [rendered] > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] - chunk default/c.js (c) 152 bytes (javascript) 632 bytes (runtime) [entry] [rendered] + chunk default/c.js (c) 152 bytes (javascript) 668 bytes (runtime) [entry] [rendered] > ./c c ./c.js 72 bytes [built] - + 2 hidden root modules + + 3 hidden root modules + 4 hidden dependent modules chunk default/568.js 20 bytes <{179}> <{282}> <{767}> <{786}> <{794}> <{954}> ={137}= ={282}= ={334}= ={383}= ={767}= ={769}= ={954}= [rendered] split chunk (cache group: default) > ./b ./index.js 2:0-47 @@ -2743,10 +2749,10 @@ exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` chunk default/769.js (id hint: vendors) 20 bytes <{179}> ={282}= ={383}= ={568}= ={767}= [rendered] split chunk (cache group: defaultVendors) > ./c ./index.js 3:0-47 ./node_modules/z.js 20 bytes [built] - chunk default/a.js (a) 216 bytes (javascript) 4.82 KiB (runtime) >{137}< >{568}< [entry] [rendered] + chunk default/a.js (a) 216 bytes (javascript) 4.88 KiB (runtime) >{137}< >{568}< [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] - + 6 hidden root modules + + 7 hidden root modules + 3 hidden dependent modules chunk default/async-a.js (async-a) 156 bytes <{179}> ={282}= ={767}= ={954}= >{137}< >{568}< [rendered] > ./a ./index.js 1:0-47 @@ -2760,18 +2766,18 @@ Child all-chunks: Entrypoint a = all-chunks/282.js all-chunks/954.js all-chunks/767.js all-chunks/a.js Entrypoint b = all-chunks/282.js all-chunks/954.js all-chunks/767.js all-chunks/b.js Entrypoint c = all-chunks/282.js all-chunks/769.js all-chunks/767.js all-chunks/c.js - chunk all-chunks/b.js (b) 92 bytes (javascript) 2.94 KiB (runtime) ={282}= ={767}= ={954}= [entry] [rendered] + chunk all-chunks/b.js (b) 92 bytes (javascript) 2.97 KiB (runtime) ={282}= ={767}= ={954}= [entry] [rendered] > ./b b ./b.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 1 hidden dependent module chunk all-chunks/async-g.js (async-g) 34 bytes <{282}> <{767}> <{786}> <{794}> <{954}> ={568}= [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk all-chunks/main.js (main) 147 bytes (javascript) 4.84 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] + chunk all-chunks/main.js (main) 147 bytes (javascript) 4.9 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk all-chunks/282.js (id hint: vendors) 20 bytes <{179}> ={128}= ={334}= ={383}= ={459}= ={568}= ={767}= ={769}= ={786}= ={794}= ={954}= >{137}< >{568}< [initial] [rendered] split chunk (cache group: defaultVendors) > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 @@ -2786,10 +2792,10 @@ Child all-chunks: chunk all-chunks/async-c.js (async-c) 72 bytes <{179}> ={282}= ={568}= ={767}= ={769}= [rendered] > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] - chunk all-chunks/c.js (c) 92 bytes (javascript) 2.94 KiB (runtime) ={282}= ={767}= ={769}= [entry] [rendered] + chunk all-chunks/c.js (c) 92 bytes (javascript) 2.97 KiB (runtime) ={282}= ={767}= ={769}= [entry] [rendered] > ./c c ./c.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 1 hidden dependent module chunk all-chunks/568.js 20 bytes <{179}> <{282}> <{767}> <{786}> <{794}> <{954}> ={137}= ={282}= ={334}= ={383}= ={767}= ={769}= ={954}= [rendered] split chunk (cache group: default) > ./b ./index.js 2:0-47 @@ -2808,10 +2814,10 @@ Child all-chunks: > ./c ./index.js 3:0-47 > ./c c ./node_modules/z.js 20 bytes [built] - chunk all-chunks/a.js (a) 156 bytes (javascript) 5.75 KiB (runtime) ={282}= ={767}= ={954}= >{137}< >{568}< [entry] [rendered] + chunk all-chunks/a.js (a) 156 bytes (javascript) 5.81 KiB (runtime) ={282}= ={767}= ={954}= >{137}< >{568}< [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk all-chunks/async-a.js (async-a) 156 bytes <{179}> ={282}= ={767}= ={954}= >{137}< >{568}< [rendered] > ./a ./index.js 1:0-47 ./a.js + 1 modules 156 bytes [built] @@ -2826,22 +2832,22 @@ Child manual: Entrypoint a = manual/vendors.js manual/a.js Entrypoint b = manual/vendors.js manual/b.js Entrypoint c = manual/vendors.js manual/c.js - chunk manual/b.js (b) 112 bytes (javascript) 2.96 KiB (runtime) ={216}= [entry] [rendered] + chunk manual/b.js (b) 112 bytes (javascript) 2.99 KiB (runtime) ={216}= [entry] [rendered] > ./b b > x b > y b > z b ./b.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 2 hidden dependent modules chunk manual/async-g.js (async-g) 54 bytes <{216}> <{786}> <{794}> [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] + 1 hidden dependent module - chunk manual/main.js (main) 147 bytes (javascript) 4.84 KiB (runtime) >{216}< >{334}< >{383}< >{794}< [entry] [rendered] + chunk manual/main.js (main) 147 bytes (javascript) 4.9 KiB (runtime) >{216}< >{334}< >{383}< >{794}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk manual/vendors.js (vendors) (id hint: vendors) 60 bytes <{179}> ={128}= ={334}= ={383}= ={459}= ={786}= ={794}= >{137}< [initial] [rendered] split chunk (cache group: vendors) (name: vendors) > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 @@ -2869,21 +2875,21 @@ Child manual: > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] + 2 hidden dependent modules - chunk manual/c.js (c) 112 bytes (javascript) 2.96 KiB (runtime) ={216}= [entry] [rendered] + chunk manual/c.js (c) 112 bytes (javascript) 2.99 KiB (runtime) ={216}= [entry] [rendered] > ./c c > x c > y c > z c ./c.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 2 hidden dependent modules - chunk manual/a.js (a) 176 bytes (javascript) 5.75 KiB (runtime) ={216}= >{137}< [entry] [rendered] + chunk manual/a.js (a) 176 bytes (javascript) 5.81 KiB (runtime) ={216}= >{137}< [entry] [rendered] > ./a a > x a > y a > z a ./a.js + 1 modules 156 bytes [built] - + 6 hidden root modules + + 7 hidden root modules + 1 hidden dependent module chunk manual/async-a.js (async-a) 176 bytes <{179}> ={216}= >{137}< [rendered] > ./a ./index.js 1:0-47 @@ -2897,10 +2903,10 @@ Child name-too-long: chunk name-too-long/async-g.js (async-g) 34 bytes <{282}> <{751}> <{767}> <{794}> <{954}> ={568}= [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk name-too-long/main.js (main) 147 bytes (javascript) 4.84 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] + chunk name-too-long/main.js (main) 147 bytes (javascript) 4.9 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk name-too-long/282.js (id hint: vendors) 20 bytes <{179}> ={334}= ={383}= ={568}= ={658}= ={751}= ={766}= ={767}= ={769}= ={794}= ={954}= >{137}< >{568}< [initial] [rendered] split chunk (cache group: defaultVendors) > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 @@ -2924,15 +2930,15 @@ Child name-too-long: > ./b bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb > ./c cccccccccccccccccccccccccccccc ./f.js 20 bytes [built] - chunk name-too-long/cccccccccccccccccccccccccccccc.js (cccccccccccccccccccccccccccccc) 2.93 KiB ={282}= ={383}= ={568}= ={767}= ={769}= [entry] [rendered] + chunk name-too-long/cccccccccccccccccccccccccccccc.js (cccccccccccccccccccccccccccccc) 2.96 KiB ={282}= ={383}= ={568}= ={767}= ={769}= [entry] [rendered] > ./c cccccccccccccccccccccccccccccc - 3 root modules - chunk name-too-long/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.js (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) 5.75 KiB ={282}= ={767}= ={794}= ={954}= >{137}< >{568}< [entry] [rendered] + 4 root modules + chunk name-too-long/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.js (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) 5.81 KiB ={282}= ={767}= ={794}= ={954}= >{137}< >{568}< [entry] [rendered] > ./a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - 6 root modules - chunk name-too-long/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.js (bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) 2.93 KiB ={282}= ={334}= ={568}= ={767}= ={954}= [entry] [rendered] + 7 root modules + chunk name-too-long/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.js (bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) 2.96 KiB ={282}= ={334}= ={568}= ={767}= ={954}= [entry] [rendered] > ./b bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb - 3 root modules + 4 root modules chunk name-too-long/767.js 20 bytes <{179}> ={282}= ={334}= ={383}= ={568}= ={658}= ={751}= ={766}= ={769}= ={794}= ={954}= >{137}< >{568}< [initial] [rendered] split chunk (cache group: default) > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 @@ -2960,18 +2966,18 @@ Child custom-chunks-filter: Entrypoint a = custom-chunks-filter/a.js Entrypoint b = custom-chunks-filter/282.js custom-chunks-filter/954.js custom-chunks-filter/568.js custom-chunks-filter/b.js Entrypoint c = custom-chunks-filter/282.js custom-chunks-filter/769.js custom-chunks-filter/568.js custom-chunks-filter/c.js - chunk custom-chunks-filter/b.js (b) 92 bytes (javascript) 2.94 KiB (runtime) ={282}= ={568}= ={954}= [entry] [rendered] + chunk custom-chunks-filter/b.js (b) 92 bytes (javascript) 2.97 KiB (runtime) ={282}= ={568}= ={954}= [entry] [rendered] > ./b b ./b.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 1 hidden dependent module chunk custom-chunks-filter/async-g.js (async-g) 34 bytes <{282}> <{767}> <{786}> <{794}> <{954}> ={568}= [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] - chunk custom-chunks-filter/main.js (main) 147 bytes (javascript) 4.85 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] + chunk custom-chunks-filter/main.js (main) 147 bytes (javascript) 4.91 KiB (runtime) >{282}< >{334}< >{383}< >{568}< >{767}< >{769}< >{794}< >{954}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk custom-chunks-filter/282.js (id hint: vendors) 20 bytes <{179}> ={128}= ={334}= ={383}= ={459}= ={568}= ={767}= ={769}= ={794}= ={954}= >{137}< >{568}< [initial] [rendered] split chunk (cache group: defaultVendors) > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 @@ -2985,10 +2991,10 @@ Child custom-chunks-filter: chunk custom-chunks-filter/async-c.js (async-c) 72 bytes <{179}> ={282}= ={568}= ={767}= ={769}= [rendered] > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] - chunk custom-chunks-filter/c.js (c) 92 bytes (javascript) 2.94 KiB (runtime) ={282}= ={568}= ={769}= [entry] [rendered] + chunk custom-chunks-filter/c.js (c) 92 bytes (javascript) 2.97 KiB (runtime) ={282}= ={568}= ={769}= [entry] [rendered] > ./c c ./c.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 1 hidden dependent module chunk custom-chunks-filter/568.js 20 bytes <{179}> <{282}> <{767}> <{786}> <{794}> <{954}> ={128}= ={137}= ={282}= ={334}= ={383}= ={459}= ={767}= ={769}= ={954}= [initial] [rendered] split chunk (cache group: default) > ./b ./index.js 2:0-47 @@ -3006,10 +3012,10 @@ Child custom-chunks-filter: > ./c ./index.js 3:0-47 > ./c c ./node_modules/z.js 20 bytes [built] - chunk custom-chunks-filter/a.js (a) 216 bytes (javascript) 4.83 KiB (runtime) >{137}< >{568}< [entry] [rendered] + chunk custom-chunks-filter/a.js (a) 216 bytes (javascript) 4.89 KiB (runtime) >{137}< >{568}< [entry] [rendered] > ./a a ./a.js + 1 modules 156 bytes [built] - + 6 hidden root modules + + 7 hidden root modules + 3 hidden dependent modules chunk custom-chunks-filter/async-a.js (async-a) 156 bytes <{179}> ={282}= ={767}= ={954}= >{137}< >{568}< [rendered] > ./a ./index.js 1:0-47 @@ -3024,22 +3030,22 @@ Child custom-chunks-filter-in-cache-groups: Entrypoint a = custom-chunks-filter-in-cache-groups/a.js Entrypoint b = custom-chunks-filter-in-cache-groups/vendors.js custom-chunks-filter-in-cache-groups/b.js Entrypoint c = custom-chunks-filter-in-cache-groups/vendors.js custom-chunks-filter-in-cache-groups/c.js - chunk custom-chunks-filter-in-cache-groups/b.js (b) 112 bytes (javascript) 2.96 KiB (runtime) ={216}= [entry] [rendered] + chunk custom-chunks-filter-in-cache-groups/b.js (b) 112 bytes (javascript) 2.99 KiB (runtime) ={216}= [entry] [rendered] > ./b b > x b > y b > z b ./b.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 2 hidden dependent modules chunk custom-chunks-filter-in-cache-groups/async-g.js (async-g) 54 bytes <{216}> <{786}> <{794}> [rendered] > ./g ./a.js 6:0-47 ./g.js 34 bytes [built] + 1 hidden dependent module - chunk custom-chunks-filter-in-cache-groups/main.js (main) 147 bytes (javascript) 4.87 KiB (runtime) >{216}< >{334}< >{383}< >{794}< [entry] [rendered] + chunk custom-chunks-filter-in-cache-groups/main.js (main) 147 bytes (javascript) 4.92 KiB (runtime) >{216}< >{334}< >{383}< >{794}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 6 hidden root modules + + 7 hidden root modules chunk custom-chunks-filter-in-cache-groups/vendors.js (vendors) (id hint: vendors) 60 bytes <{179}> ={128}= ={334}= ={383}= ={459}= ={794}= >{137}< [initial] [rendered] split chunk (cache group: vendors) (name: vendors) > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 @@ -3063,22 +3069,22 @@ Child custom-chunks-filter-in-cache-groups: > ./c ./index.js 3:0-47 ./c.js 72 bytes [built] + 2 hidden dependent modules - chunk custom-chunks-filter-in-cache-groups/c.js (c) 112 bytes (javascript) 2.96 KiB (runtime) ={216}= [entry] [rendered] + chunk custom-chunks-filter-in-cache-groups/c.js (c) 112 bytes (javascript) 2.99 KiB (runtime) ={216}= [entry] [rendered] > ./c c > x c > y c > z c ./c.js 72 bytes [built] - + 3 hidden root modules + + 4 hidden root modules + 2 hidden dependent modules - chunk custom-chunks-filter-in-cache-groups/a.js (a) 236 bytes (javascript) 4.8 KiB (runtime) >{137}< [entry] [rendered] + chunk custom-chunks-filter-in-cache-groups/a.js (a) 236 bytes (javascript) 4.86 KiB (runtime) >{137}< [entry] [rendered] > ./a a > x a > y a > z a ./a.js + 1 modules 156 bytes [built] ./node_modules/z.js 20 bytes [built] - + 6 hidden root modules + + 7 hidden root modules + 3 hidden dependent modules chunk custom-chunks-filter-in-cache-groups/async-a.js (async-a) 176 bytes <{179}> ={216}= >{137}< [rendered] > ./a ./index.js 1:0-47 @@ -3118,18 +3124,18 @@ chunk common-node_modules_y_js.js (id hint: common) 20 bytes <{main}> ={async-a} chunk common-node_modules_z_js.js (id hint: common) 20 bytes <{main}> ={async-c}= ={common-d_js}= ={common-f_js}= ={common-node_modules_x_js}= [rendered] split chunk (cache group: b) > ./c ./index.js 3:0-47 ./node_modules/z.js 20 bytes [built] -chunk main.js (main) 147 bytes (javascript) 4.75 KiB (runtime) >{async-a}< >{async-b}< >{async-c}< >{common-d_js}< >{common-f_js}< >{common-node_modules_x_js}< >{common-node_modules_y_js}< >{common-node_modules_z_js}< [entry] [rendered] +chunk main.js (main) 147 bytes (javascript) 4.81 KiB (runtime) >{async-a}< >{async-b}< >{async-c}< >{common-d_js}< >{common-f_js}< >{common-node_modules_x_js}< >{common-node_modules_y_js}< >{common-node_modules_z_js}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 6 hidden root modules" + + 7 hidden root modules" `; exports[`StatsTestCases should print correct stats for split-chunks-chunk-name 1`] = ` "Entrypoint main = default/main.js -chunk default/main.js (main) 192 bytes (javascript) 4.81 KiB (runtime) >{334}< >{709}< >{794}< [entry] [rendered] +chunk default/main.js (main) 192 bytes (javascript) 4.87 KiB (runtime) >{334}< >{709}< >{794}< [entry] [rendered] > ./ main ./index.js 192 bytes [built] - + 6 hidden chunk modules + + 7 hidden chunk modules chunk default/async-b.js (async-b) (id hint: vendors) 122 bytes <{179}> [rendered] reused as split chunk (cache group: defaultVendors) > b ./index.js 2:0-45 ./node_modules/b.js 122 bytes [built] @@ -3152,10 +3158,10 @@ chunk async-g.js (async-g) 101 bytes <{179}> [rendered] > ./g ./index.js 7:0-47 ./g.js 34 bytes [built] + 1 hidden dependent module -chunk main.js (main) 343 bytes (javascript) 5.13 KiB (runtime) >{31}< >{137}< >{206}< >{334}< >{383}< >{449}< >{794}< >{804}< [entry] [rendered] +chunk main.js (main) 343 bytes (javascript) 5.19 KiB (runtime) >{31}< >{137}< >{206}< >{334}< >{383}< >{449}< >{794}< >{804}< [entry] [rendered] > ./ main ./index.js 343 bytes [built] - + 7 hidden root modules + + 8 hidden root modules chunk async-f.js (async-f) 101 bytes <{179}> [rendered] > ./f ./index.js 6:0-47 ./f.js 34 bytes [built] @@ -3183,10 +3189,10 @@ chunk 804.js 134 bytes <{179}> ={334}= ={794}= [rendered] split chunk (cache gro exports[`StatsTestCases should print correct stats for split-chunks-issue-6413 1`] = ` "Entrypoint main = main.js -chunk main.js (main) 147 bytes (javascript) 4.46 KiB (runtime) >{282}< >{334}< >{383}< >{543}< >{794}< [entry] [rendered] +chunk main.js (main) 147 bytes (javascript) 4.57 KiB (runtime) >{282}< >{334}< >{383}< >{543}< >{794}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 5 hidden root modules + + 6 hidden root modules chunk 282.js (id hint: vendors) 20 bytes <{179}> ={334}= ={383}= ={543}= ={794}= [rendered] split chunk (cache group: defaultVendors) > ./a ./index.js 1:0-47 > ./b ./index.js 2:0-47 @@ -3210,10 +3216,10 @@ chunk async-a.js (async-a) 19 bytes <{179}> ={282}= ={543}= [rendered] exports[`StatsTestCases should print correct stats for split-chunks-issue-6696 1`] = ` "Entrypoint main = vendors.js main.js -chunk main.js (main) 110 bytes (javascript) 5.38 KiB (runtime) ={216}= >{334}< >{794}< [entry] [rendered] +chunk main.js (main) 110 bytes (javascript) 5.49 KiB (runtime) ={216}= >{334}< >{794}< [entry] [rendered] > ./ main ./index.js 110 bytes [built] - + 5 hidden root modules + + 6 hidden root modules chunk vendors.js (vendors) (id hint: vendors) 20 bytes ={179}= >{334}< >{794}< [initial] [rendered] split chunk (cache group: vendors) (name: vendors) > ./ main ./node_modules/y.js 20 bytes [built] @@ -3231,10 +3237,10 @@ exports[`StatsTestCases should print correct stats for split-chunks-issue-7401 1 "Entrypoint a = 282.js a.js Entrypoint b = b.js Chunk Group c = 282.js c.js -chunk b.js (b) 43 bytes (javascript) 4.42 KiB (runtime) >{282}< >{459}< [entry] [rendered] +chunk b.js (b) 43 bytes (javascript) 4.53 KiB (runtime) >{282}< >{459}< [entry] [rendered] > ./b b ./b.js 43 bytes [built] - + 5 hidden root modules + + 6 hidden root modules chunk 282.js (id hint: vendors) 20 bytes <{128}> ={459}= ={786}= [initial] [rendered] split chunk (cache group: defaultVendors) > ./c ./b.js 1:0-41 > ./a a @@ -3242,18 +3248,18 @@ chunk 282.js (id hint: vendors) 20 bytes <{128}> ={459}= ={786}= [initial] [rend chunk c.js (c) 12 bytes <{128}> ={282}= [rendered] > ./c ./b.js 1:0-41 ./c.js 12 bytes [built] -chunk a.js (a) 12 bytes (javascript) 2.3 KiB (runtime) ={282}= [entry] [rendered] +chunk a.js (a) 12 bytes (javascript) 2.38 KiB (runtime) ={282}= [entry] [rendered] > ./a a ./a.js 12 bytes [built] - + 1 hidden root module" + + 2 hidden root modules" `; exports[`StatsTestCases should print correct stats for split-chunks-keep-remaining-size 1`] = ` "Entrypoint main = default/main.js -chunk default/main.js (main) 147 bytes (javascript) 5.08 KiB (runtime) >{334}< >{383}< >{794}< >{821}< [entry] [rendered] +chunk default/main.js (main) 147 bytes (javascript) 5.13 KiB (runtime) >{334}< >{383}< >{794}< >{821}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk default/async-b.js (async-b) 39 bytes <{179}> ={821}= [rendered] > ./b ./index.js 2:0-47 ./b.js 39 bytes [built] @@ -3336,10 +3342,10 @@ exports[`StatsTestCases should print correct stats for split-chunks-max-size 1`] > ./ main ./big.js?1 268 bytes [built] ./big.js?2 268 bytes [built] - chunk prod-main-12217e1d.js (main-12217e1d) 1.57 KiB (javascript) 2.95 KiB (runtime) ={1}= ={59}= ={198}= ={204}= ={318}= ={358}= ={400}= ={410}= ={490}= ={520}= ={662}= ={869}= [entry] [rendered] + chunk prod-main-12217e1d.js (main-12217e1d) 1.57 KiB (javascript) 2.98 KiB (runtime) ={1}= ={59}= ={198}= ={204}= ={318}= ={358}= ={400}= ={410}= ={490}= ={520}= ={662}= ={869}= [entry] [rendered] > ./ main ./very-big.js?1 1.57 KiB [built] - + 3 hidden root modules + + 4 hidden root modules chunk prod-869.js (id hint: vendors) 402 bytes ={1}= ={59}= ={198}= ={204}= ={318}= ={358}= ={400}= ={410}= ={490}= ={520}= ={662}= ={663}= [initial] [rendered] split chunk (cache group: defaultVendors) > ./ main ./node_modules/big.js?1 268 bytes [built] @@ -3407,10 +3413,10 @@ Child development: chunk dev-main-very-big_js-4647fb9d.js (main-very-big_js-4647fb9d) 1.57 KiB ={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-62f7f644}= ={vendors-node_modules_big_js_1-node_modules_small_js_1-node_modules_small_js_2}= ={vendors-node_modules_very-big_js_1}= [initial] [rendered] > ./ main ./very-big.js?3 1.57 KiB [built] - chunk dev-main-very-big_js-62f7f644.js (main-very-big_js-62f7f644) 1.57 KiB (javascript) 3.58 KiB (runtime) ={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-node_modules_big_js_1-node_modules_small_js_1-node_modules_small_js_2}= ={vendors-node_modules_very-big_js_1}= [entry] [rendered] + chunk dev-main-very-big_js-62f7f644.js (main-very-big_js-62f7f644) 1.57 KiB (javascript) 3.62 KiB (runtime) ={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-node_modules_big_js_1-node_modules_small_js_1-node_modules_small_js_2}= ={vendors-node_modules_very-big_js_1}= [entry] [rendered] > ./ main ./very-big.js?1 1.57 KiB [built] - + 4 hidden root modules + + 5 hidden root modules chunk dev-vendors-node_modules_big_js_1-node_modules_small_js_1-node_modules_small_js_2.js (id hint: vendors) 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-node_modules_very-big_js_1}= [initial] [rendered] split chunk (cache group: defaultVendors) > ./ main ./node_modules/big.js?1 268 bytes [built] @@ -3457,10 +3463,10 @@ Child switched: ./subfolder/small.js?3 67 bytes [built] ./subfolder/small.js?4 67 bytes [built] + 5 hidden root modules - chunk switched-main-12217e1d.js (main-12217e1d) 1.57 KiB (javascript) 2.93 KiB (runtime) ={1}= ={59}= ={247}= ={318}= ={520}= ={581}= ={997}= [entry] [rendered] + chunk switched-main-12217e1d.js (main-12217e1d) 1.57 KiB (javascript) 2.96 KiB (runtime) ={1}= ={59}= ={247}= ={318}= ={520}= ={581}= ={997}= [entry] [rendered] > ./ main ./very-big.js?1 1.57 KiB [built] - + 3 hidden root modules + + 4 hidden root modules chunk switched-main-7aeafcb2.js (main-7aeafcb2) 1.64 KiB ={1}= ={59}= ={247}= ={318}= ={520}= ={581}= ={663}= [initial] [rendered] > ./ main ./big.js?1 268 bytes [built] @@ -3555,10 +3561,10 @@ Child zero-min: > ./ main ./big.js?1 268 bytes [built] ./big.js?2 268 bytes [built] - chunk zero-min-main-12217e1d.js (main-12217e1d) 1.57 KiB (javascript) 2.95 KiB (runtime) ={1}= ={59}= ={198}= ={204}= ={318}= ={358}= ={400}= ={410}= ={490}= ={520}= ={662}= ={869}= [entry] [rendered] + chunk zero-min-main-12217e1d.js (main-12217e1d) 1.57 KiB (javascript) 2.98 KiB (runtime) ={1}= ={59}= ={198}= ={204}= ={318}= ={358}= ={400}= ={410}= ={490}= ={520}= ={662}= ={869}= [entry] [rendered] > ./ main ./very-big.js?1 1.57 KiB [built] - + 3 hidden root modules + + 4 hidden root modules chunk zero-min-869.js (id hint: vendors) 402 bytes ={1}= ={59}= ={198}= ={204}= ={318}= ={358}= ={400}= ={410}= ={490}= ={520}= ={662}= ={663}= [initial] [rendered] split chunk (cache group: defaultVendors) > ./ main ./node_modules/big.js?1 268 bytes [built] @@ -3566,10 +3572,10 @@ Child zero-min: ./node_modules/small.js?2 67 bytes [built] Child max-async-size: Entrypoint main = max-async-size-main.js - chunk max-async-size-main.js (main) 2.47 KiB (javascript) 5.12 KiB (runtime) >{342}< >{385}< >{820}< >{920}< [entry] [rendered] + chunk max-async-size-main.js (main) 2.47 KiB (javascript) 5.18 KiB (runtime) >{342}< >{385}< >{820}< >{920}< [entry] [rendered] > ./async main ./async/index.js 386 bytes [built] - + 7 hidden root modules + + 8 hidden root modules + 6 hidden dependent modules chunk max-async-size-async-b-77a8c116.js (async-b-77a8c116) 1.57 KiB <{179}> ={385}= ={820}= ={920}= [rendered] > ./b ./async/index.js 10:2-49 @@ -3594,9 +3600,9 @@ Child enforce-min-size: chunk enforce-min-size-10.js (id hint: all) 1.19 KiB ={179}= ={221}= ={262}= ={410}= ={434}= ={463}= ={519}= ={575}= ={614}= ={692}= ={822}= ={825}= ={869}= [initial] [rendered] split chunk (cache group: all) > ./ main ./index.js 1.19 KiB [built] - chunk enforce-min-size-main.js (main) 2.95 KiB ={10}= ={221}= ={262}= ={410}= ={434}= ={463}= ={519}= ={575}= ={614}= ={692}= ={822}= ={825}= ={869}= [entry] [rendered] + chunk enforce-min-size-main.js (main) 2.98 KiB ={10}= ={221}= ={262}= ={410}= ={434}= ={463}= ={519}= ={575}= ={614}= ={692}= ={822}= ={825}= ={869}= [entry] [rendered] > ./ main - 3 root modules + 4 root modules chunk enforce-min-size-221.js (id hint: all) 1.57 KiB ={10}= ={179}= ={262}= ={410}= ={434}= ={463}= ={519}= ={575}= ={614}= ={692}= ={822}= ={825}= ={869}= [initial] [rendered] split chunk (cache group: all) > ./ main ./very-big.js?3 1.57 KiB [built] @@ -3674,10 +3680,10 @@ chunk default/118.js 110 bytes <{179}> ={334}= ={383}= [rendered] split chunk (c > ./c ./index.js 3:0-47 ./d.js 43 bytes [built] ./f.js 67 bytes [built] -chunk default/main.js (main) 147 bytes (javascript) 5.08 KiB (runtime) >{118}< >{334}< >{383}< >{794}< [entry] [rendered] +chunk default/main.js (main) 147 bytes (javascript) 5.13 KiB (runtime) >{118}< >{334}< >{383}< >{794}< [entry] [rendered] > ./ main ./index.js 147 bytes [built] - + 7 hidden root modules + + 8 hidden root modules chunk default/async-b.js (async-b) 105 bytes <{179}> ={118}= [rendered] > ./b ./index.js 2:0-47 ./b.js 62 bytes [built] @@ -3692,11 +3698,11 @@ chunk default/async-a.js (async-a) 134 bytes <{179}> [rendered] `; exports[`StatsTestCases should print correct stats for tree-shaking 1`] = ` -"Hash: 77b74ad56d4feb691266 +"Hash: 7682a53187338c456c65 Time: Xms Built at: 1970-04-20 12:42:42 Asset Size -bundle.js 7.26 KiB [emitted] [name: main] +bundle.js 7.23 KiB [emitted] [name: main] Entrypoint main = bundle.js ./index.js 316 bytes [built] [1 warning] [no exports] @@ -3727,7 +3733,7 @@ Entrypoint main = bundle.js [only some exports used: c] ./unknown2.js 1 bytes [built] [only some exports used: y] - + 2 hidden modules + + 3 hidden modules WARNING in ./index.js 9:0-36 require.include() is deprecated and will be removed soon. @@ -3759,7 +3765,7 @@ WARNING in Terser Plugin: Dropping unused function someUnRemoteUsedFunction5 [we `; exports[`StatsTestCases should print correct stats for wasm-explorer-examples-sync 1`] = ` -"Hash: a71b60b9e30a9dbf1935 +"Hash: c2f1d1cb06dadb29613f Time: Xms Built at: 1970-04-20 12:42:42 Asset Size @@ -3784,9 +3790,9 @@ chunk 325.bundle.js 1.54 KiB (javascript) 274 bytes (webassembly) [rendered] ./popcnt.wasm 50 bytes (javascript) 120 bytes (webassembly) [built] ./testFunction.wasm 50 bytes (javascript) 154 bytes (webassembly) [built] ./tests.js 1.44 KiB [built] -chunk bundle.js (main-1df31ce3) 586 bytes (javascript) 5.49 KiB (runtime) [entry] [rendered] +chunk bundle.js (main-1df31ce3) 586 bytes (javascript) 5.55 KiB (runtime) [entry] [rendered] ./index.js 586 bytes [built] - + 7 hidden chunk modules + + 8 hidden chunk modules chunk 526.bundle.js (id hint: vendors) 34 bytes [rendered] split chunk (cache group: defaultVendors) ./node_modules/env.js 34 bytes [built] chunk 780.bundle.js 110 bytes (javascript) 444 bytes (webassembly) [rendered] @@ -3801,5 +3807,5 @@ chunk 780.bundle.js 110 bytes (javascript) 444 bytes (webassembly) [rendered] ./fast-math.wasm 60 bytes (javascript) 290 bytes (webassembly) [built] ./duff.wasm 50 bytes (javascript) 531 bytes (webassembly) [built] ./node_modules/env.js 34 bytes [built] - + 7 hidden modules" + + 8 hidden modules" `; diff --git a/test/watchCases/plugins/module-concatenation-plugin/0/index.js b/test/watchCases/plugins/module-concatenation-plugin/0/index.js index d525d967e..91b447495 100644 --- a/test/watchCases/plugins/module-concatenation-plugin/0/index.js +++ b/test/watchCases/plugins/module-concatenation-plugin/0/index.js @@ -9,5 +9,5 @@ it("should watch for changes", function() { expect(require("./foo/" + WATCH_STEP)).toBe('This should be working.' + WATCH_STEP); } - expect(STATS_JSON.modules.length).toBe(6 + Number(WATCH_STEP)); + expect(STATS_JSON.modules.length).toBe(7 + Number(WATCH_STEP)); }); From 4b499b0429b5c5c13589fe1dce2c5f404140848c Mon Sep 17 00:00:00 2001 From: Sergey Melyukov Date: Tue, 3 Dec 2019 17:05:22 +0300 Subject: [PATCH 3/4] minor fixes --- lib/ContextModule.js | 32 +++++++------------ lib/RuntimeTemplate.js | 24 +++++++------- .../__snapshots__/StatsTestCases.test.js.snap | 2 +- 3 files changed, 25 insertions(+), 33 deletions(-) diff --git a/lib/ContextModule.js b/lib/ContextModule.js index a46435ec5..e517edc08 100644 --- a/lib/ContextModule.js +++ b/lib/ContextModule.js @@ -640,11 +640,9 @@ function webpackAsyncContextResolve(req) { return map[req]; }); } -webpackAsyncContext.keys = ${ - arrow ? "_ => {" : "function webpackAsyncContextKeys() {" - } - return Object.keys(map); -}; +webpackAsyncContext.keys = ${runtimeTemplate.returningFunction( + "Object.keys(map)" + )}; webpackAsyncContext.resolve = webpackAsyncContextResolve; webpackAsyncContext.id = ${JSON.stringify(id)}; module.exports = webpackAsyncContext;`; @@ -686,11 +684,9 @@ function webpackAsyncContextResolve(req) { return map[req]; }); } -webpackAsyncContext.keys = ${ - arrow ? "_ => {" : "function webpackAsyncContextKeys() {" - } - return Object.keys(map); -}; +webpackAsyncContext.keys = ${runtimeTemplate.returningFunction( + "Object.keys(map)" + )}; webpackAsyncContext.resolve = webpackAsyncContextResolve; webpackAsyncContext.id = ${JSON.stringify(id)}; module.exports = webpackAsyncContext;`; @@ -738,11 +734,9 @@ function webpackAsyncContextResolve(req) { return map[req]; }); } -webpackAsyncContext.keys = ${ - arrow ? "_ => {" : "function webpackAsyncContextKeys() {" - } - return Object.keys(map); -}; +webpackAsyncContext.keys = ${runtimeTemplate.returningFunction( + "Object.keys(map)" + )}; webpackAsyncContext.resolve = webpackAsyncContextResolve; webpackAsyncContext.id = ${JSON.stringify(id)}; module.exports = webpackAsyncContext;`; @@ -854,11 +848,9 @@ function webpackAsyncContext(req) { return `var map = ${JSON.stringify(map, null, "\t")}; ${webpackAsyncContext} -webpackAsyncContext.keys = ${ - arrow ? "_ => {" : "function webpackAsyncContextKeys() {" - } - return Object.keys(map); -}; +webpackAsyncContext.keys = ${runtimeTemplate.returningFunction( + "Object.keys(map)" + )}; webpackAsyncContext.id = ${JSON.stringify(id)}; module.exports = webpackAsyncContext;`; } diff --git a/lib/RuntimeTemplate.js b/lib/RuntimeTemplate.js index fea61e3b1..2d5ef83c5 100644 --- a/lib/RuntimeTemplate.js +++ b/lib/RuntimeTemplate.js @@ -448,30 +448,30 @@ class RuntimeTemplate { } else if (strict) { runtimeRequirements.add(RuntimeGlobals.createFakeNamespaceObject); if (header) { - getModuleFunction = this.basicFunction( - "", - `${header}return ${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 1)` - ); + const returnExpression = `${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 1)`; + getModuleFunction = header + ? this.basicFunction("", `${header}return ${returnExpression}`) + : this.returningFunction(returnExpression); } else { getModuleFunction = `${RuntimeGlobals.createFakeNamespaceObject}.bind(__webpack_require__, ${comment}${idExpr}, 1)`; } } else if (exportsType === "default") { runtimeRequirements.add(RuntimeGlobals.createFakeNamespaceObject); if (header) { - getModuleFunction = this.basicFunction( - "", - `${header}return ${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 3)` - ); + const returnExpression = `${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 3)`; + getModuleFunction = header + ? this.basicFunction("", `${header}return ${returnExpression}`) + : this.returningFunction(returnExpression); } else { getModuleFunction = `${RuntimeGlobals.createFakeNamespaceObject}.bind(__webpack_require__, ${comment}${idExpr}, 3)`; } } else { runtimeRequirements.add(RuntimeGlobals.createFakeNamespaceObject); if (header) { - getModuleFunction = this.basicFunction( - "", - `${header}return ${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 7)` - ); + const returnExpression = `${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 7)`; + getModuleFunction = header + ? this.basicFunction("", `${header}return ${returnExpression}`) + : this.returningFunction(returnExpression); } else { getModuleFunction = `${RuntimeGlobals.createFakeNamespaceObject}.bind(__webpack_require__, ${comment}${idExpr}, 7)`; } diff --git a/test/__snapshots__/StatsTestCases.test.js.snap b/test/__snapshots__/StatsTestCases.test.js.snap index 7d2f6f6c3..4adbec241 100644 --- a/test/__snapshots__/StatsTestCases.test.js.snap +++ b/test/__snapshots__/StatsTestCases.test.js.snap @@ -1165,7 +1165,7 @@ Built at: 1970-04-20 12:42:42 398.js 484 bytes [emitted] 544.js 484 bytes [emitted] 718.js 484 bytes [emitted] -entry.js 9.63 KiB [emitted] [name: entry] +entry.js 9.61 KiB [emitted] [name: entry] Entrypoint entry = entry.js ./entry.js 450 bytes [built] ./templates lazy ^\\\\.\\\\/.*$ include: \\\\.js$ exclude: \\\\.noimport\\\\.js$ namespace object 160 bytes [optional] [built] From f212d3c30edd55eccdc6840c85da1089562eb167 Mon Sep 17 00:00:00 2001 From: Sergey Melyukov Date: Tue, 3 Dec 2019 18:11:46 +0300 Subject: [PATCH 4/4] pr comments --- lib/RuntimeTemplate.js | 8 ++++---- lib/javascript/JavascriptModulesPlugin.js | 5 +---- lib/node/NodeTemplatePlugin.js | 1 + lib/node/ReadFileChunkLoadingRuntimeModule.js | 1 - lib/node/RequireChunkLoadingRuntimeModule.js | 1 - lib/runtime/GlobalRuntimeModule.js | 7 ++++--- 6 files changed, 10 insertions(+), 13 deletions(-) diff --git a/lib/RuntimeTemplate.js b/lib/RuntimeTemplate.js index 2d5ef83c5..69a735280 100644 --- a/lib/RuntimeTemplate.js +++ b/lib/RuntimeTemplate.js @@ -439,7 +439,7 @@ class RuntimeTemplate { }); getModuleFunction = this.basicFunction( "", - `${header}return ${rawModule}` + `${header}return ${rawModule};` ); } else { runtimeRequirements.add(RuntimeGlobals.require); @@ -450,7 +450,7 @@ class RuntimeTemplate { if (header) { const returnExpression = `${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 1)`; getModuleFunction = header - ? this.basicFunction("", `${header}return ${returnExpression}`) + ? this.basicFunction("", `${header}return ${returnExpression};`) : this.returningFunction(returnExpression); } else { getModuleFunction = `${RuntimeGlobals.createFakeNamespaceObject}.bind(__webpack_require__, ${comment}${idExpr}, 1)`; @@ -460,7 +460,7 @@ class RuntimeTemplate { if (header) { const returnExpression = `${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 3)`; getModuleFunction = header - ? this.basicFunction("", `${header}return ${returnExpression}`) + ? this.basicFunction("", `${header}return ${returnExpression};`) : this.returningFunction(returnExpression); } else { getModuleFunction = `${RuntimeGlobals.createFakeNamespaceObject}.bind(__webpack_require__, ${comment}${idExpr}, 3)`; @@ -470,7 +470,7 @@ class RuntimeTemplate { if (header) { const returnExpression = `${RuntimeGlobals.createFakeNamespaceObject}(${moduleIdExpr}, 7)`; getModuleFunction = header - ? this.basicFunction("", `${header}return ${returnExpression}`) + ? this.basicFunction("", `${header}return ${returnExpression};`) : this.returningFunction(returnExpression); } else { getModuleFunction = `${RuntimeGlobals.createFakeNamespaceObject}.bind(__webpack_require__, ${comment}${idExpr}, 7)`; diff --git a/lib/javascript/JavascriptModulesPlugin.js b/lib/javascript/JavascriptModulesPlugin.js index 7dc8b39b7..a1896ace8 100644 --- a/lib/javascript/JavascriptModulesPlugin.js +++ b/lib/javascript/JavascriptModulesPlugin.js @@ -578,10 +578,7 @@ class JavascriptModulesPlugin { const innerStrict = !allStrict && m.buildInfo.strict; const iife = innerStrict || inlinedModules.size > 1 || chunkModules; if (iife) { - if ( - !runtimeRequirements.has(RuntimeGlobals.thisAsExports) && - runtimeTemplate.supportsArrowFunction() - ) { + if (runtimeTemplate.supportsArrowFunction()) { source.add("(() => {\n"); if (innerStrict) source.add('"use strict";\n'); source.add(renderedModule); diff --git a/lib/node/NodeTemplatePlugin.js b/lib/node/NodeTemplatePlugin.js index 50473aa6c..3e8314611 100644 --- a/lib/node/NodeTemplatePlugin.js +++ b/lib/node/NodeTemplatePlugin.js @@ -60,6 +60,7 @@ class NodeTemplatePlugin { if (onceForChunkSet.has(chunk)) return; onceForChunkSet.add(chunk); set.add(RuntimeGlobals.moduleFactoriesAddOnly); + set.add(RuntimeGlobals.hasOwnProperty); compilation.addRuntimeModule(chunk, new ChunkLoadingRuntimeModule(set)); }; diff --git a/lib/node/ReadFileChunkLoadingRuntimeModule.js b/lib/node/ReadFileChunkLoadingRuntimeModule.js index 2b68cb278..ed0ad8067 100644 --- a/lib/node/ReadFileChunkLoadingRuntimeModule.js +++ b/lib/node/ReadFileChunkLoadingRuntimeModule.js @@ -14,7 +14,6 @@ class ReadFileChunkLoadingRuntimeModule extends RuntimeModule { constructor(runtimeRequirements) { super("readFile chunk loading", 10); this.runtimeRequirements = runtimeRequirements; - this.runtimeRequirements.add(RuntimeGlobals.hasOwnProperty); } /** diff --git a/lib/node/RequireChunkLoadingRuntimeModule.js b/lib/node/RequireChunkLoadingRuntimeModule.js index c3d1b6817..a55c9d8b1 100644 --- a/lib/node/RequireChunkLoadingRuntimeModule.js +++ b/lib/node/RequireChunkLoadingRuntimeModule.js @@ -14,7 +14,6 @@ class RequireChunkLoadingRuntimeModule extends RuntimeModule { constructor(runtimeRequirements) { super("require chunk loading", 10); this.runtimeRequirements = runtimeRequirements; - this.runtimeRequirements.add(RuntimeGlobals.hasOwnProperty); } /** diff --git a/lib/runtime/GlobalRuntimeModule.js b/lib/runtime/GlobalRuntimeModule.js index 660fa7881..631521aa4 100644 --- a/lib/runtime/GlobalRuntimeModule.js +++ b/lib/runtime/GlobalRuntimeModule.js @@ -17,9 +17,9 @@ class GlobalRuntimeModule extends RuntimeModule { * @returns {string} runtime code */ generate() { - const { runtimeTemplate } = this.compilation; return Template.asString([ - `${RuntimeGlobals.global} = ${runtimeTemplate.iife("", [ + `${RuntimeGlobals.global} = (function() {`, + Template.indent([ "if (typeof globalThis === 'object') return globalThis;", "try {", Template.indent( @@ -38,7 +38,8 @@ class GlobalRuntimeModule extends RuntimeModule { // We return `undefined`, instead of nothing here, so it's // easier to handle this case: // if (!global) { … } - ])};` + ]), + "})();" ]); } }