From ff8946e849cd4845ae76511eae12a1140ec34b95 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Fri, 2 Aug 2019 09:40:41 +0200 Subject: [PATCH] update examples --- examples/aggressive-merging/README.md | 16 ++++---- examples/chunkhash/README.md | 18 +++++---- .../README.md | 15 ++++--- .../code-splitted-require.context/README.md | 15 ++++--- .../code-splitting-bundle-loader/README.md | 15 ++++--- examples/code-splitting-harmony/README.md | 15 ++++--- .../README.md | 15 ++++--- .../README.md | 15 ++++--- .../README.md | 15 ++++--- examples/code-splitting/README.md | 15 ++++--- examples/coffee-script/README.md | 4 +- .../common-chunk-and-vendor-chunk/README.md | 25 ++++++------ examples/common-chunk-grandchildren/README.md | 15 ++++--- examples/commonjs/README.md | 4 +- .../dll-app-and-vendor/0-vendor/README.md | 4 +- examples/dll-app-and-vendor/1-app/README.md | 4 +- examples/dll-entry-only/README.md | 4 +- examples/dll-user/README.md | 4 +- examples/dll/README.md | 4 +- examples/explicit-vendor-chunk/README.md | 20 +++++----- examples/externals/README.md | 4 +- examples/extra-async-chunk-advanced/README.md | 15 ++++--- examples/extra-async-chunk/README.md | 15 ++++--- examples/harmony-interop/README.md | 4 +- examples/harmony-library/README.md | 4 +- examples/harmony-unused/README.md | 4 +- examples/harmony/README.md | 15 ++++--- examples/http2-aggressive-splitting/README.md | 38 +++++++++--------- examples/hybrid-routing/README.md | 20 ++++++---- examples/i18n/README.md | 4 +- examples/loader/README.md | 4 +- examples/many-pages/README.md | 16 ++++---- examples/mixed/README.md | 15 ++++--- examples/multi-compiler/README.md | 4 +- examples/multi-part-library/README.md | 4 +- examples/multiple-entry-points/README.md | 28 ++++++++----- examples/named-chunks/README.md | 15 ++++--- examples/require.context/README.md | 4 +- examples/require.resolve/README.md | 4 +- examples/scope-hoisting/README.md | 15 ++++--- examples/side-effects/README.md | 4 +- examples/source-map/README.md | 30 +++++++------- examples/two-explicit-vendor-chunks/README.md | 4 +- examples/wasm-simple/README.md | 39 ++++++++++--------- examples/web-worker/README.md | 14 +++---- 45 files changed, 316 insertions(+), 249 deletions(-) diff --git a/examples/aggressive-merging/README.md b/examples/aggressive-merging/README.md index e10feab8330..9abcdf9732f 100644 --- a/examples/aggressive-merging/README.md +++ b/examples/aggressive-merging/README.md @@ -60,13 +60,13 @@ module.exports = { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.chunk.js 5.96 KiB 0 [emitted] 4.chunk.js 405 bytes 4 [emitted] -pageA.bundle.js 8.28 KiB 1 [emitted] pageA -pageB.bundle.js 8.28 KiB 2 [emitted] pageB -pageC.bundle.js 8.28 KiB 3 [emitted] pageC +pageA.bundle.js 8.5 KiB 1 [emitted] pageA +pageB.bundle.js 8.5 KiB 2 [emitted] pageB +pageC.bundle.js 8.5 KiB 3 [emitted] pageC Entrypoint pageA = pageA.bundle.js Entrypoint pageB = pageB.bundle.js Entrypoint pageC = pageC.bundle.js @@ -108,13 +108,13 @@ chunk {4} 4.chunk.js 42 bytes <{3}> [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.chunk.js 173 bytes 0, 4 [emitted] 4.chunk.js 118 bytes 4 [emitted] -pageA.bundle.js 2.03 KiB 1 [emitted] pageA -pageB.bundle.js 2.03 KiB 2 [emitted] pageB -pageC.bundle.js 2.05 KiB 3 [emitted] pageC +pageA.bundle.js 2.11 KiB 1 [emitted] pageA +pageB.bundle.js 2.11 KiB 2 [emitted] pageB +pageC.bundle.js 2.12 KiB 3 [emitted] pageC Entrypoint pageA = pageA.bundle.js Entrypoint pageB = pageB.bundle.js Entrypoint pageC = pageC.bundle.js diff --git a/examples/chunkhash/README.md b/examples/chunkhash/README.md index 38c70c7bc0e..4f3a19ff2ce 100644 --- a/examples/chunkhash/README.md +++ b/examples/chunkhash/README.md @@ -43,7 +43,7 @@ module.exports = { @@ -68,7 +68,7 @@ module.exports = { /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -104,6 +104,7 @@ module.exports = { /******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); /******/ } /******/ } +/******/ /******/ return result; /******/ } /******/ @@ -180,6 +181,8 @@ module.exports = { /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -189,7 +192,8 @@ module.exports = { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -308,12 +312,12 @@ __webpack_require__.e(/*! import() */ 3).then(__webpack_require__.t.bind(null, / ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 2.[chunkhash].js 269 bytes 2 [emitted] 3.[chunkhash].js 263 bytes 3 [emitted] main.[chunkhash].js 485 bytes 1 [emitted] main -runtime~main.[chunkhash].js 8.71 KiB 0 [emitted] runtime~main +runtime~main.[chunkhash].js 8.94 KiB 0 [emitted] runtime~main Entrypoint main = runtime~main.[chunkhash].js main.[chunkhash].js chunk {0} runtime~main.[chunkhash].js (runtime~main) 0 bytes ={1}= >{2}< >{3}< [entry] [rendered] > ./example main @@ -335,12 +339,12 @@ chunk {3} 3.[chunkhash].js 28 bytes <{0}> <{1}> [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 2.[chunkhash].js 77 bytes 2 [emitted] 3.[chunkhash].js 78 bytes 3 [emitted] main.[chunkhash].js 149 bytes 0 [emitted] main -runtime~main.[chunkhash].js 2.13 KiB 1 [emitted] runtime~main +runtime~main.[chunkhash].js 2.21 KiB 1 [emitted] runtime~main Entrypoint main = runtime~main.[chunkhash].js main.[chunkhash].js chunk {0} main.[chunkhash].js (main) 55 bytes ={1}= >{2}< >{3}< [initial] [rendered] > ./example main diff --git a/examples/code-splitted-require.context-amd/README.md b/examples/code-splitted-require.context-amd/README.md index 3c52353b9ec..06bc9833b87 100644 --- a/examples/code-splitted-require.context-amd/README.md +++ b/examples/code-splitted-require.context-amd/README.md @@ -31,7 +31,7 @@ getTemplate("b", function(b) { /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -123,6 +123,8 @@ getTemplate("b", function(b) { /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -132,7 +134,8 @@ getTemplate("b", function(b) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -333,10 +336,10 @@ module.exports = function() { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 1.81 KiB 1 [emitted] - output.js 8.41 KiB 0 [emitted] main + output.js 8.63 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 251 bytes >{1}< [entry] [rendered] > ./example.js main @@ -361,10 +364,10 @@ chunk {1} 1.output.js 457 bytes <{0}> [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 621 bytes 1 [emitted] - output.js 2.12 KiB 0 [emitted] main + output.js 2.2 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 251 bytes >{1}< [entry] [rendered] > ./example.js main diff --git a/examples/code-splitted-require.context/README.md b/examples/code-splitted-require.context/README.md index e9421719fdd..c45ee9b738c 100644 --- a/examples/code-splitted-require.context/README.md +++ b/examples/code-splitted-require.context/README.md @@ -31,7 +31,7 @@ getTemplate("b", function(b) { /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -123,6 +123,8 @@ getTemplate("b", function(b) { /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -132,7 +134,8 @@ getTemplate("b", function(b) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -333,10 +336,10 @@ module.exports = function() { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 1.81 KiB 1 [emitted] - output.js 8.35 KiB 0 [emitted] main + output.js 8.57 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 266 bytes >{1}< [entry] [rendered] > ./example.js main @@ -361,10 +364,10 @@ chunk {1} 1.output.js 457 bytes <{0}> [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 621 bytes 1 [emitted] - output.js 2.1 KiB 0 [emitted] main + output.js 2.18 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 266 bytes >{1}< [entry] [rendered] > ./example.js main diff --git a/examples/code-splitting-bundle-loader/README.md b/examples/code-splitting-bundle-loader/README.md index 18925d298d8..b1c039d9bdf 100644 --- a/examples/code-splitting-bundle-loader/README.md +++ b/examples/code-splitting-bundle-loader/README.md @@ -33,7 +33,7 @@ module.exports = "It works"; /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -125,6 +125,8 @@ module.exports = "It works"; /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -134,7 +136,8 @@ module.exports = "It works"; /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -289,10 +292,10 @@ module.exports = "It works"; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 257 bytes 1 [emitted] - output.js 8.78 KiB 0 [emitted] main + output.js 9 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 375 bytes >{1}< [entry] [rendered] > ./example.js main @@ -310,10 +313,10 @@ chunk {1} 1.output.js 28 bytes <{0}> [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 98 bytes 1 [emitted] - output.js 2.16 KiB 0 [emitted] main + output.js 2.24 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 375 bytes >{1}< [entry] [rendered] > ./example.js main diff --git a/examples/code-splitting-harmony/README.md b/examples/code-splitting-harmony/README.md index de14f806c2b..b7db1b42252 100644 --- a/examples/code-splitting-harmony/README.md +++ b/examples/code-splitting-harmony/README.md @@ -41,7 +41,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) { /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -133,6 +133,8 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) { /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -142,7 +144,8 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -327,12 +330,12 @@ module.exports = webpackAsyncContext; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 275 bytes 0 [emitted] 1.output.js 284 bytes 1 [emitted] 3.output.js 270 bytes 3 [emitted] - output.js 9.72 KiB 2 [emitted] main + output.js 9.94 KiB 2 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 13 bytes <{2}> [rendered] > ./1 [4] ./node_modules/c lazy ^\.\/.*$ namespace object ./1 @@ -359,12 +362,12 @@ chunk {3} 3.output.js 11 bytes <{2}> [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 76 bytes 0 [emitted] 1.output.js 77 bytes 1 [emitted] 3.output.js 78 bytes 3 [emitted] - output.js 2.53 KiB 2 [emitted] main + output.js 2.61 KiB 2 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 13 bytes <{2}> [rendered] > ./1 [4] ./node_modules/c lazy ^\.\/.*$ namespace object ./1 diff --git a/examples/code-splitting-native-import-context-filter/README.md b/examples/code-splitting-native-import-context-filter/README.md index 730e2e38867..c1e5026dd23 100644 --- a/examples/code-splitting-native-import-context-filter/README.md +++ b/examples/code-splitting-native-import-context-filter/README.md @@ -60,7 +60,7 @@ export default foo; /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -152,6 +152,8 @@ export default foo; /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -161,7 +163,8 @@ export default foo; /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -345,12 +348,12 @@ module.exports = webpackAsyncContext; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 433 bytes 0 [emitted] 1.output.js 442 bytes 1 [emitted] 2.output.js 436 bytes 2 [emitted] - output.js 9.45 KiB 3 [emitted] main + output.js 9.67 KiB 3 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 38 bytes <{3}> [rendered] > ./bar [4] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar @@ -385,12 +388,12 @@ chunk {3} output.js (main) 597 bytes >{0}< >{1}< >{2}< [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 113 bytes 0 [emitted] 1.output.js 114 bytes 1 [emitted] 2.output.js 115 bytes 2 [emitted] - output.js 2.52 KiB 3 [emitted] main + output.js 2.6 KiB 3 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 38 bytes <{3}> [rendered] > ./bar [4] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar diff --git a/examples/code-splitting-native-import-context/README.md b/examples/code-splitting-native-import-context/README.md index e2b9776ba5d..a98d4bcc27a 100644 --- a/examples/code-splitting-native-import-context/README.md +++ b/examples/code-splitting-native-import-context/README.md @@ -49,7 +49,7 @@ export default foo; /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -141,6 +141,8 @@ export default foo; /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -150,7 +152,8 @@ export default foo; /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -332,12 +335,12 @@ module.exports = webpackAsyncContext; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 433 bytes 0 [emitted] 1.output.js 442 bytes 1 [emitted] 2.output.js 436 bytes 2 [emitted] - output.js 9.26 KiB 3 [emitted] main + output.js 9.48 KiB 3 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 38 bytes <{3}> [rendered] > ./bar [4] ./templates lazy ^\.\/.*$ namespace object ./bar @@ -372,12 +375,12 @@ chunk {3} output.js (main) 441 bytes >{0}< >{1}< >{2}< [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 113 bytes 0 [emitted] 1.output.js 114 bytes 1 [emitted] 2.output.js 115 bytes 2 [emitted] - output.js 2.49 KiB 3 [emitted] main + output.js 2.56 KiB 3 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 38 bytes <{3}> [rendered] > ./bar [4] ./templates lazy ^\.\/.*$ namespace object ./bar diff --git a/examples/code-splitting-specify-chunk-name/README.md b/examples/code-splitting-specify-chunk-name/README.md index aa91f0cb76d..c67924c7d74 100644 --- a/examples/code-splitting-specify-chunk-name/README.md +++ b/examples/code-splitting-specify-chunk-name/README.md @@ -49,7 +49,7 @@ export default foo; /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -141,6 +141,8 @@ export default foo; /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -150,7 +152,8 @@ export default foo; /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -324,12 +327,12 @@ module.exports = webpackAsyncContext; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 442 bytes 0 [emitted] chunk-bar-baz0 1.output.js 436 bytes 1 [emitted] chunk-bar-baz2 2.output.js 433 bytes 2 [emitted] chunk-foo - output.js 9.46 KiB 3 [emitted] main + output.js 9.68 KiB 3 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js (chunk-bar-baz0) 38 bytes <{3}> [rendered] > ./bar [4] ./templates lazy ^\.\/ba.*$ namespace object ./bar @@ -364,12 +367,12 @@ chunk {3} output.js (main) 565 bytes >{0}< >{1}< >{2}< [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 114 bytes 0 [emitted] chunk-bar-baz0 1.output.js 115 bytes 1 [emitted] chunk-bar-baz2 2.output.js 113 bytes 2 [emitted] chunk-foo - output.js 2.51 KiB 3 [emitted] main + output.js 2.59 KiB 3 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js (chunk-bar-baz0) 38 bytes <{3}> [rendered] > ./bar [4] ./templates lazy ^\.\/ba.*$ namespace object ./bar diff --git a/examples/code-splitting/README.md b/examples/code-splitting/README.md index a75cc4b5098..fbb6ba9905e 100644 --- a/examples/code-splitting/README.md +++ b/examples/code-splitting/README.md @@ -52,7 +52,7 @@ require.ensure(["c"], function(require) { /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -144,6 +144,8 @@ require.ensure(["c"], function(require) { /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -153,7 +155,8 @@ require.ensure(["c"], function(require) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -324,10 +327,10 @@ Minimized ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 490 bytes 1 [emitted] - output.js 8.69 KiB 0 [emitted] main + output.js 8.91 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 161 bytes >{1}< [entry] [rendered] > ./example.js main @@ -343,10 +346,10 @@ chunk {1} 1.output.js 22 bytes <{0}> [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 95 bytes 1 [emitted] - output.js 2.05 KiB 0 [emitted] main + output.js 2.13 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 161 bytes >{1}< [entry] [rendered] > ./example.js main diff --git a/examples/coffee-script/README.md b/examples/coffee-script/README.md index 4e9a09ffe43..4f970ccaf4c 100644 --- a/examples/coffee-script/README.md +++ b/examples/coffee-script/README.md @@ -167,7 +167,7 @@ module.exports = 42; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 4.31 KiB 0 [emitted] main Entrypoint main = output.js @@ -186,7 +186,7 @@ chunk {0} output.js (main) 206 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 1.07 KiB 0 [emitted] main Entrypoint main = output.js diff --git a/examples/common-chunk-and-vendor-chunk/README.md b/examples/common-chunk-and-vendor-chunk/README.md index b29c8c6e5c6..ee1266dedcc 100644 --- a/examples/common-chunk-and-vendor-chunk/README.md +++ b/examples/common-chunk-and-vendor-chunk/README.md @@ -154,7 +154,7 @@ module.exports = "utility3"; /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -190,6 +190,7 @@ module.exports = "utility3"; /******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); /******/ } /******/ } +/******/ /******/ return result; /******/ } /******/ @@ -346,7 +347,7 @@ module.exports = "utility1"; /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -382,6 +383,7 @@ module.exports = "utility1"; /******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); /******/ } /******/ } +/******/ /******/ return result; /******/ } /******/ @@ -524,7 +526,7 @@ module.exports = "pageB"; /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -560,6 +562,7 @@ module.exports = "pageB"; /******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); /******/ } /******/ } +/******/ /******/ return result; /******/ } /******/ @@ -691,13 +694,13 @@ module.exports = "pageC"; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names commons~pageA~pageB~pageC.js 269 bytes 2 [emitted] commons~pageA~pageB~pageC commons~pageB~pageC.js 269 bytes 4 [emitted] commons~pageB~pageC - pageA.js 6.7 KiB 0 [emitted] pageA - pageB.js 6.5 KiB 3 [emitted] pageB - pageC.js 6.45 KiB 5 [emitted] pageC + pageA.js 6.77 KiB 0 [emitted] pageA + pageB.js 6.58 KiB 3 [emitted] pageB + pageC.js 6.52 KiB 5 [emitted] pageC vendor.js 536 bytes 1 [emitted] vendor Entrypoint pageA = vendor.js commons~pageA~pageB~pageC.js pageA.js Entrypoint pageB = vendor.js commons~pageA~pageB~pageC.js commons~pageB~pageC.js pageB.js @@ -740,13 +743,13 @@ chunk {5} pageC.js (pageC) 102 bytes ={2}= ={4}= [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names commons~pageA~pageB~pageC.js 96 bytes 0 [emitted] commons~pageA~pageB~pageC commons~pageB~pageC.js 97 bytes 1 [emitted] commons~pageB~pageC - pageA.js 1.52 KiB 3 [emitted] pageA - pageB.js 1.49 KiB 4 [emitted] pageB - pageC.js 1.48 KiB 5 [emitted] pageC + pageA.js 1.56 KiB 3 [emitted] pageA + pageB.js 1.53 KiB 4 [emitted] pageB + pageC.js 1.52 KiB 5 [emitted] pageC vendor.js 134 bytes 2 [emitted] vendor Entrypoint pageA = vendor.js commons~pageA~pageB~pageC.js pageA.js Entrypoint pageB = vendor.js commons~pageA~pageB~pageC.js commons~pageB~pageC.js pageB.js diff --git a/examples/common-chunk-grandchildren/README.md b/examples/common-chunk-grandchildren/README.md index 509625a48ae..4681f220372 100644 --- a/examples/common-chunk-grandchildren/README.md +++ b/examples/common-chunk-grandchildren/README.md @@ -120,7 +120,7 @@ module.exports = { /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -212,6 +212,8 @@ module.exports = { /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -221,7 +223,8 @@ module.exports = { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -453,13 +456,13 @@ module.exports = function() { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 337 bytes 0 [emitted] 2.output.js 408 bytes 2 [emitted] 3.output.js 542 bytes 3 [emitted] 4.output.js 408 bytes 4 [emitted] - output.js 8.74 KiB 1 [emitted] main + output.js 8.96 KiB 1 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 69 bytes <{1}> <{3}> ={2}= ={4}= [rendered] split chunk (cache group: default) > [1] ./example.js 3:1-6:3 @@ -491,13 +494,13 @@ chunk {4} 4.output.js 136 bytes <{3}> ={0}= [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 133 bytes 0 [emitted] 2.output.js 138 bytes 2 [emitted] 3.output.js 198 bytes 3 [emitted] 4.output.js 138 bytes 4 [emitted] - output.js 2.13 KiB 1 [emitted] main + output.js 2.21 KiB 1 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 69 bytes <{1}> <{3}> ={2}= ={4}= [rendered] split chunk (cache group: default) > [1] ./example.js 3:1-6:3 diff --git a/examples/commonjs/README.md b/examples/commonjs/README.md index 1b02600ca48..192ccec3c1a 100644 --- a/examples/commonjs/README.md +++ b/examples/commonjs/README.md @@ -184,7 +184,7 @@ exports.add = function() { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 4.4 KiB 0 [emitted] main Entrypoint main = output.js @@ -202,7 +202,7 @@ chunk {0} output.js (main) 326 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 1.1 KiB 0 [emitted] main Entrypoint main = output.js diff --git a/examples/dll-app-and-vendor/0-vendor/README.md b/examples/dll-app-and-vendor/0-vendor/README.md index 927a0ed3445..8199a1e5d1f 100644 --- a/examples/dll-app-and-vendor/0-vendor/README.md +++ b/examples/dll-app-and-vendor/0-vendor/README.md @@ -181,7 +181,7 @@ function square(n) { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names vendor.js 4.28 KiB 0 [emitted] main Entrypoint main = vendor.js @@ -197,7 +197,7 @@ chunk {0} vendor.js (main) 57 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names vendor.js 1.06 KiB 0 [emitted] main Entrypoint main = vendor.js diff --git a/examples/dll-app-and-vendor/1-app/README.md b/examples/dll-app-and-vendor/1-app/README.md index b9d5190435f..0271a2584b3 100644 --- a/examples/dll-app-and-vendor/1-app/README.md +++ b/examples/dll-app-and-vendor/1-app/README.md @@ -189,7 +189,7 @@ module.exports = vendor_lib_a132d30959ef28c3f004; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names app.js 4.86 KiB 0 [emitted] main Entrypoint main = app.js @@ -211,7 +211,7 @@ chunk {0} app.js (main) 178 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names app.js 1.09 KiB 0 [emitted] main Entrypoint main = app.js diff --git a/examples/dll-entry-only/README.md b/examples/dll-entry-only/README.md index 20146b6f00b..84a2964a6da 100644 --- a/examples/dll-entry-only/README.md +++ b/examples/dll-entry-only/README.md @@ -233,7 +233,7 @@ var cjs = __webpack_require__(1); ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names dll.js 5.03 KiB 0 [emitted] dll Entrypoint dll = dll.js @@ -265,7 +265,7 @@ chunk {0} dll.js (dll) 216 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names dll.js 1.15 KiB 0 [emitted] dll Entrypoint dll = dll.js diff --git a/examples/dll-user/README.md b/examples/dll-user/README.md index 7b752df98aa..9945d7d0b41 100644 --- a/examples/dll-user/README.md +++ b/examples/dll-user/README.md @@ -242,7 +242,7 @@ module.exports = (__webpack_require__(/*! dll-reference alpha_d61ee01b5c383d26e2 ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 7.14 KiB 0 [emitted] main Entrypoint main = output.js @@ -276,7 +276,7 @@ chunk {0} output.js (main) 541 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 1.33 KiB 0 [emitted] main Entrypoint main = output.js diff --git a/examples/dll/README.md b/examples/dll/README.md index 52db4911d0f..f05084f8a59 100644 --- a/examples/dll/README.md +++ b/examples/dll/README.md @@ -191,7 +191,7 @@ module.exports = "module"; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names MyDll.alpha.js 4.42 KiB 0 [emitted] alpha MyDll.beta.js 4.4 KiB 1 [emitted] beta @@ -229,7 +229,7 @@ chunk {1} MyDll.beta.js (beta) 80 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names MyDll.alpha.js 1.06 KiB 0 [emitted] alpha MyDll.beta.js 1.05 KiB 1 [emitted] beta diff --git a/examples/explicit-vendor-chunk/README.md b/examples/explicit-vendor-chunk/README.md index 2a50992c9b7..b947fb43845 100644 --- a/examples/explicit-vendor-chunk/README.md +++ b/examples/explicit-vendor-chunk/README.md @@ -309,7 +309,7 @@ module.exports = vendor_d9f5eab93a0e9010218f; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Child vendor: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names @@ -363,7 +363,7 @@ Child app: ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Child vendor: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names @@ -391,21 +391,21 @@ Child app: Entrypoint pageC = pageC.js chunk {0} pageA.js (pageA) 143 bytes [entry] [rendered] > ./pageA pageA - [0] external "vendor_eacfb43e8e821a56978d" 42 bytes {0} {1} [built] - delegated source dll-reference vendor_eacfb43e8e821a56978d [2] delegated ./vendor.js from dll-reference vendor_eacfb43e8e821a56978d - delegated source dll-reference vendor_eacfb43e8e821a56978d [4] delegated ./vendor2.js from dll-reference vendor_eacfb43e8e821a56978d + [0] external "vendor_303963d1ea8561847951" 42 bytes {0} {1} [built] + delegated source dll-reference vendor_303963d1ea8561847951 [2] delegated ./vendor.js from dll-reference vendor_303963d1ea8561847951 + delegated source dll-reference vendor_303963d1ea8561847951 [4] delegated ./vendor2.js from dll-reference vendor_303963d1ea8561847951 [1] ./pageA.js 59 bytes {0} [built] single entry ./pageA pageA - [2] delegated ./vendor.js from dll-reference vendor_eacfb43e8e821a56978d 42 bytes {0} [built] + [2] delegated ./vendor.js from dll-reference vendor_303963d1ea8561847951 42 bytes {0} [built] cjs require ./vendor [1] ./pageA.js 1:12-31 chunk {1} pageB.js (pageB) 144 bytes [entry] [rendered] > ./pageB pageB - [0] external "vendor_eacfb43e8e821a56978d" 42 bytes {0} {1} [built] - delegated source dll-reference vendor_eacfb43e8e821a56978d [2] delegated ./vendor.js from dll-reference vendor_eacfb43e8e821a56978d - delegated source dll-reference vendor_eacfb43e8e821a56978d [4] delegated ./vendor2.js from dll-reference vendor_eacfb43e8e821a56978d + [0] external "vendor_303963d1ea8561847951" 42 bytes {0} {1} [built] + delegated source dll-reference vendor_303963d1ea8561847951 [2] delegated ./vendor.js from dll-reference vendor_303963d1ea8561847951 + delegated source dll-reference vendor_303963d1ea8561847951 [4] delegated ./vendor2.js from dll-reference vendor_303963d1ea8561847951 [3] ./pageB.js 60 bytes {1} [built] single entry ./pageB pageB - [4] delegated ./vendor2.js from dll-reference vendor_eacfb43e8e821a56978d 42 bytes {1} [built] + [4] delegated ./vendor2.js from dll-reference vendor_303963d1ea8561847951 42 bytes {1} [built] cjs require ./vendor2 [3] ./pageB.js 1:12-32 chunk {2} pageC.js (pageC) 25 bytes [entry] [rendered] > ./pageC pageC diff --git a/examples/externals/README.md b/examples/externals/README.md index 7b3be60b03a..cdda7de154a 100644 --- a/examples/externals/README.md +++ b/examples/externals/README.md @@ -198,7 +198,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 5.13 KiB 0 [emitted] main Entrypoint main = output.js @@ -216,7 +216,7 @@ chunk {0} output.js (main) 194 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 1.4 KiB 0 [emitted] main Entrypoint main = output.js diff --git a/examples/extra-async-chunk-advanced/README.md b/examples/extra-async-chunk-advanced/README.md index 365c4ff0df1..939db63695a 100644 --- a/examples/extra-async-chunk-advanced/README.md +++ b/examples/extra-async-chunk-advanced/README.md @@ -50,7 +50,7 @@ module.exports = { /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -142,6 +142,8 @@ module.exports = { /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -151,7 +153,8 @@ module.exports = { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -279,7 +282,7 @@ Promise.all(/*! require.ensure */[__webpack_require__.e(1), __webpack_require__. ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 247 bytes 0 [emitted] 1.output.js 238 bytes 1 [emitted] @@ -288,7 +291,7 @@ Version: webpack 4.29.6 5.output.js 241 bytes 5 [emitted] 6.output.js 241 bytes 6 [emitted] 7.output.js 241 bytes 7 [emitted] - output.js 9.28 KiB 2 [emitted] main + output.js 9.5 KiB 2 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 21 bytes <{1}> <{2}> <{5}> ={1}= ={3}= ={4}= ={6}= ={7}= [rendered] split chunk (cache group: default) > [2] ./example.js 10:1-12:3 @@ -339,7 +342,7 @@ chunk {7} 7.output.js 21 bytes <{1}> <{5}> ={0}= [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 90 bytes 0 [emitted] 1.output.js 89 bytes 1 [emitted] @@ -348,7 +351,7 @@ Version: webpack 4.29.6 5.output.js 91 bytes 5 [emitted] 6.output.js 91 bytes 6 [emitted] 7.output.js 91 bytes 7 [emitted] - output.js 2.39 KiB 2 [emitted] main + output.js 2.46 KiB 2 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 21 bytes <{1}> <{2}> <{5}> ={1}= ={3}= ={4}= ={6}= ={7}= [rendered] split chunk (cache group: default) > [2] ./example.js 10:1-12:3 diff --git a/examples/extra-async-chunk/README.md b/examples/extra-async-chunk/README.md index e00dfc54662..ce2176397e1 100644 --- a/examples/extra-async-chunk/README.md +++ b/examples/extra-async-chunk/README.md @@ -61,7 +61,7 @@ require.ensure(["./a"], function(require) { /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -153,6 +153,8 @@ require.ensure(["./a"], function(require) { /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -162,7 +164,8 @@ require.ensure(["./a"], function(require) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -347,12 +350,12 @@ module.exports = "d"; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 405 bytes 0 [emitted] 2.output.js 241 bytes 2 [emitted] 3.output.js 241 bytes 3 [emitted] - output.js 8.54 KiB 1 [emitted] main + output.js 8.76 KiB 1 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 42 bytes <{1}> ={2}= ={3}= [rendered] split chunk (cache group: default) > ./a ./b ./c [2] ./example.js 2:0-30 @@ -381,12 +384,12 @@ chunk {3} 3.output.js 21 bytes <{1}> ={0}= [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 0.output.js 118 bytes 0 [emitted] 2.output.js 91 bytes 2 [emitted] 3.output.js 91 bytes 3 [emitted] - output.js 2.1 KiB 1 [emitted] main + output.js 2.18 KiB 1 [emitted] main Entrypoint main = output.js chunk {0} 0.output.js 42 bytes <{1}> ={2}= ={3}= [rendered] split chunk (cache group: default) > ./a ./b ./c [2] ./example.js 2:0-30 diff --git a/examples/harmony-interop/README.md b/examples/harmony-interop/README.md index 6ce8033b128..d15171dc694 100644 --- a/examples/harmony-interop/README.md +++ b/examples/harmony-interop/README.md @@ -274,7 +274,7 @@ var named = "named"; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 7.05 KiB 0 [emitted] main Entrypoint main = output.js @@ -306,7 +306,7 @@ chunk {0} output.js (main) 1.13 KiB [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 1.35 KiB 0 [emitted] main Entrypoint main = output.js diff --git a/examples/harmony-library/README.md b/examples/harmony-library/README.md index 9d00f25c621..1bc248a7ab0 100644 --- a/examples/harmony-library/README.md +++ b/examples/harmony-library/README.md @@ -152,7 +152,7 @@ function increment() { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names MyLibrary.umd.js 4.52 KiB 0 [emitted] main Entrypoint main = MyLibrary.umd.js @@ -167,7 +167,7 @@ chunk {0} MyLibrary.umd.js (main) 92 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names MyLibrary.umd.js 1.28 KiB 0 [emitted] main Entrypoint main = MyLibrary.umd.js diff --git a/examples/harmony-unused/README.md b/examples/harmony-unused/README.md index 69aa9acd167..258982012e6 100644 --- a/examples/harmony-unused/README.md +++ b/examples/harmony-unused/README.md @@ -255,7 +255,7 @@ function c() { console.log("c"); } ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 6.87 KiB 0 [emitted] main Entrypoint main = output.js @@ -287,7 +287,7 @@ chunk {0} output.js (main) 698 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 1.32 KiB 0 [emitted] main Entrypoint main = output.js diff --git a/examples/harmony/README.md b/examples/harmony/README.md index 0b604d2da78..1d67c0f0e81 100644 --- a/examples/harmony/README.md +++ b/examples/harmony/README.md @@ -37,7 +37,7 @@ export function increment(val) { /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -129,6 +129,8 @@ export function increment(val) { /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -138,7 +140,8 @@ export function increment(val) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -297,10 +300,10 @@ __webpack_require__.e(/*! import() */ 1).then(__webpack_require__.bind(null, /*! ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 478 bytes 1 [emitted] - output.js 9.48 KiB 0 [emitted] main + output.js 9.7 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 400 bytes >{1}< [entry] [rendered] > ./example.js main @@ -326,10 +329,10 @@ chunk {1} 1.output.js 24 bytes <{0}> [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 144 bytes 1 [emitted] - output.js 2.1 KiB 0 [emitted] main + output.js 2.18 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 400 bytes >{1}< [entry] [rendered] > ./example.js main diff --git a/examples/http2-aggressive-splitting/README.md b/examples/http2-aggressive-splitting/README.md index 2c426c27951..c2956ccc79d 100644 --- a/examples/http2-aggressive-splitting/README.md +++ b/examples/http2-aggressive-splitting/README.md @@ -47,21 +47,21 @@ module.exports = { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names -050bae6698d8aaba4919.js 6.91 KiB 1 [emitted] 0880c00cc5a4aa58c8f1.js 755 bytes 3 [emitted] -251da330b2eb8da40210.js 18 KiB 0 [emitted] main -f03d13da014f1d9733df.js 106 KiB 2 [emitted] -Entrypoint main = 251da330b2eb8da40210.js -chunk {0} 251da330b2eb8da40210.js (main) 8.96 KiB >{1}< >{2}< >{3}< [entry] [rendered] +3d11d709e1dd8377b73a.js 6.91 KiB 1 [emitted] +6528b722fc8c6f112840.js 106 KiB 2 [emitted] +9eb2d3f6ade09b3d55fe.js 18.2 KiB 0 [emitted] main +Entrypoint main = 9eb2d3f6ade09b3d55fe.js +chunk {0} 9eb2d3f6ade09b3d55fe.js (main) 8.96 KiB >{1}< >{2}< >{3}< [entry] [rendered] > ./example main [0] ./example.js 42 bytes {0} [built] + 3 hidden modules -chunk {1} 050bae6698d8aaba4919.js 6.41 KiB <{0}> ={2}= ={3}= [rendered] +chunk {1} 3d11d709e1dd8377b73a.js 6.41 KiB <{0}> ={2}= ={3}= [rendered] > react-dom [0] ./example.js 2:0-22 3 modules -chunk {2} f03d13da014f1d9733df.js 106 KiB <{0}> ={1}= ={3}= [rendered] split chunk (cache group: vendors) +chunk {2} 6528b722fc8c6f112840.js 106 KiB <{0}> ={1}= ={3}= [rendered] split chunk (cache group: vendors) > react-dom [0] ./example.js 2:0-22 1 module chunk {3} 0880c00cc5a4aa58c8f1.js 472 bytes <{0}> ={1}= ={2}= [rendered] [recorded] aggressive splitted @@ -73,24 +73,24 @@ chunk {3} 0880c00cc5a4aa58c8f1.js 472 bytes <{0}> ={1}= ={2}= [rendered] [rec ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names -3e7f320bdbeae27d9ceb.js 5.08 KiB 1 [emitted] -4bf06c4116a056b43cf1.js 103 KiB 3 [emitted] -e2f3160a2b31dabb3444.js 207 bytes 2 [emitted] -f0d9bbf43c76640c63b2.js 9.64 KiB 0 [emitted] main -Entrypoint main = f0d9bbf43c76640c63b2.js -chunk {0} f0d9bbf43c76640c63b2.js (main) 8.96 KiB >{1}< >{2}< >{3}< [entry] [rendered] +001ee3de6e1928c924e5.js 5.08 KiB 1 [emitted] +31cdf743753cc7c06844.js 207 bytes 2 [emitted] +c5d24deda21d05162ca8.js 104 KiB 3 [emitted] +e7b462126f5b73af7427.js 9.73 KiB 0 [emitted] main +Entrypoint main = e7b462126f5b73af7427.js +chunk {0} e7b462126f5b73af7427.js (main) 8.96 KiB >{1}< >{2}< >{3}< [entry] [rendered] > ./example main [2] ./example.js 42 bytes {0} [built] + 3 hidden modules -chunk {1} 3e7f320bdbeae27d9ceb.js 6.41 KiB <{0}> ={2}= ={3}= [rendered] +chunk {1} 001ee3de6e1928c924e5.js 6.41 KiB <{0}> ={2}= ={3}= [rendered] > react-dom [2] ./example.js 2:0-22 3 modules -chunk {2} e2f3160a2b31dabb3444.js 472 bytes <{0}> ={1}= ={3}= [rendered] [recorded] aggressive splitted +chunk {2} 31cdf743753cc7c06844.js 472 bytes <{0}> ={1}= ={3}= [rendered] [recorded] aggressive splitted > react-dom [2] ./example.js 2:0-22 [8] (webpack)/buildin/global.js 472 bytes {2} [built] -chunk {3} 4bf06c4116a056b43cf1.js 106 KiB <{0}> ={1}= ={2}= [rendered] split chunk (cache group: vendors) +chunk {3} c5d24deda21d05162ca8.js 106 KiB <{0}> ={1}= ={2}= [rendered] split chunk (cache group: vendors) > react-dom [2] ./example.js 2:0-22 1 module ``` @@ -145,7 +145,7 @@ chunk {3} 4bf06c4116a056b43cf1.js 106 KiB <{0}> ={1}= ={2}= [rendered] split "../../buildin/global.js", "../../node_modules/react-dom/cjs/react-dom.production.min.js" ], - "size": 108540, + "size": 108641, "hash": "0880c00cc5a4aa58c8f164d5b18e50e0", "id": 3 } diff --git a/examples/hybrid-routing/README.md b/examples/hybrid-routing/README.md index 9c8ac86ffc8..bb0f9b7e3d1 100644 --- a/examples/hybrid-routing/README.md +++ b/examples/hybrid-routing/README.md @@ -190,7 +190,7 @@ module.exports = webpackAsyncContext; /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -226,6 +226,7 @@ module.exports = webpackAsyncContext; /******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); /******/ } /******/ } +/******/ /******/ return result; /******/ } /******/ @@ -302,6 +303,8 @@ module.exports = webpackAsyncContext; /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -311,7 +314,8 @@ module.exports = webpackAsyncContext; /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -460,13 +464,13 @@ module.exports = function() { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names aPage.chunk.js 297 bytes 0 [emitted] aPage bPage.chunk.js 291 bytes 1 [emitted] bPage - pageA.bundle.js 9.42 KiB 3 [emitted] pageA + pageA.bundle.js 9.65 KiB 3 [emitted] pageA pageA~pageB.chunk.js 2.04 KiB 2 [emitted] pageA~pageB - pageB.bundle.js 9.42 KiB 4 [emitted] pageB + pageB.bundle.js 9.65 KiB 4 [emitted] pageB Entrypoint pageA = pageA~pageB.chunk.js aPage.chunk.js pageA.bundle.js Entrypoint pageB = pageA~pageB.chunk.js bPage.chunk.js pageB.bundle.js chunk {0} aPage.chunk.js (aPage) 59 bytes <{1}> <{2}> <{4}> ={2}= ={3}= >{1}< [initial] [rendered] reused as split chunk (cache group: default) @@ -513,13 +517,13 @@ chunk {4} pageB.bundle.js (pageB) 127 bytes ={1}= ={2}= >{0}< [entry] [render ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names aPage.chunk.js 122 bytes 0 [emitted] aPage bPage.chunk.js 123 bytes 1 [emitted] bPage - pageA.bundle.js 2.22 KiB 3 [emitted] pageA + pageA.bundle.js 2.3 KiB 3 [emitted] pageA pageA~pageB.chunk.js 559 bytes 2 [emitted] pageA~pageB - pageB.bundle.js 2.22 KiB 4 [emitted] pageB + pageB.bundle.js 2.3 KiB 4 [emitted] pageB Entrypoint pageA = pageA~pageB.chunk.js aPage.chunk.js pageA.bundle.js Entrypoint pageB = pageA~pageB.chunk.js bPage.chunk.js pageB.bundle.js chunk {0} aPage.chunk.js (aPage) 59 bytes <{1}> <{2}> <{4}> ={2}= ={3}= >{1}< [initial] [rendered] reused as split chunk (cache group: default) diff --git a/examples/i18n/README.md b/examples/i18n/README.md index 95371b1afe6..0bf3af505da 100644 --- a/examples/i18n/README.md +++ b/examples/i18n/README.md @@ -263,7 +263,7 @@ console.log("Missing Text"); ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Child en: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names @@ -291,7 +291,7 @@ Child de: ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Child en: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names diff --git a/examples/loader/README.md b/examples/loader/README.md index 97404460049..d0bfa024725 100644 --- a/examples/loader/README.md +++ b/examples/loader/README.md @@ -283,7 +283,7 @@ Prints in node.js (`enhanced-require example.js`) and in browser: ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 7.34 KiB 0 [emitted] main Entrypoint main = output.js @@ -303,7 +303,7 @@ chunk {0} output.js (main) 2.76 KiB [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 1.88 KiB 0 [emitted] main Entrypoint main = output.js diff --git a/examples/many-pages/README.md b/examples/many-pages/README.md index a98348042ec..a30ac4407d4 100644 --- a/examples/many-pages/README.md +++ b/examples/many-pages/README.md @@ -52,16 +52,16 @@ module.exports = { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names - pageA.js 1.55 KiB 4 [emitted] pageA + pageA.js 1.6 KiB 4 [emitted] pageA pageA~pageD~pageF.js 156 bytes 1 [emitted] pageA~pageD~pageF - pageB.js 1.65 KiB 5 [emitted] pageB - pageC.js 1.65 KiB 6 [emitted] pageC - pageD.js 1.55 KiB 7 [emitted] pageD - pageE.js 1.54 KiB 8 [emitted] pageE - pageF.js 1.55 KiB 9 [emitted] pageF - pageG.js 1.53 KiB 10 [emitted] pageG + pageB.js 1.69 KiB 5 [emitted] pageB + pageC.js 1.69 KiB 6 [emitted] pageC + pageD.js 1.59 KiB 7 [emitted] pageD + pageE.js 1.58 KiB 8 [emitted] pageE + pageF.js 1.59 KiB 9 [emitted] pageF + pageG.js 1.57 KiB 10 [emitted] pageG vendors~pageA.js 122 bytes 11 [emitted] vendors~pageA vendors~pageA~pageB~pageC.js 178 bytes 2 [emitted] vendors~pageA~pageB~pageC vendors~pageB.js 122 bytes 12 [emitted] vendors~pageB diff --git a/examples/mixed/README.md b/examples/mixed/README.md index 441477aefe6..bb383685ff5 100644 --- a/examples/mixed/README.md +++ b/examples/mixed/README.md @@ -71,7 +71,7 @@ require( /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -163,6 +163,8 @@ require( /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -172,7 +174,8 @@ require( /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -431,10 +434,10 @@ module.exports = function() { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 1.82 KiB 1 [emitted] - output.js 11 KiB 0 [emitted] main + output.js 11.2 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 1010 bytes >{1}< [entry] [rendered] > ./example.js main @@ -477,10 +480,10 @@ chunk {1} 1.output.js 433 bytes <{0}> [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 600 bytes 1 [emitted] - output.js 2.41 KiB 0 [emitted] main + output.js 2.49 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 1010 bytes >{1}< [entry] [rendered] > ./example.js main diff --git a/examples/multi-compiler/README.md b/examples/multi-compiler/README.md index 349e54f8f0b..6d3dd525371 100644 --- a/examples/multi-compiler/README.md +++ b/examples/multi-compiler/README.md @@ -278,7 +278,7 @@ console.log("Running " + "mobile" + " build"); ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Child mobile: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names @@ -305,7 +305,7 @@ Child desktop: ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Child mobile: Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names diff --git a/examples/multi-part-library/README.md b/examples/multi-part-library/README.md index 1573cdb566a..0b9784b1534 100644 --- a/examples/multi-part-library/README.md +++ b/examples/multi-part-library/README.md @@ -275,7 +275,7 @@ module.exports = "beta"; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names MyLibrary.alpha.js 4.12 KiB 0 [emitted] alpha MyLibrary.beta.js 4.12 KiB 1 [emitted] beta @@ -295,7 +295,7 @@ chunk {1} MyLibrary.beta.js (beta) 24 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names MyLibrary.alpha.js 1.19 KiB 0 [emitted] alpha MyLibrary.beta.js 1.19 KiB 1 [emitted] beta diff --git a/examples/multiple-entry-points/README.md b/examples/multiple-entry-points/README.md index 8d20fa6d89c..feb60dde775 100644 --- a/examples/multiple-entry-points/README.md +++ b/examples/multiple-entry-points/README.md @@ -118,7 +118,7 @@ module.exports = "Common"; /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -154,6 +154,7 @@ module.exports = "Common"; /******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); /******/ } /******/ } +/******/ /******/ return result; /******/ } /******/ @@ -230,6 +231,8 @@ module.exports = "Common"; /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -239,7 +242,8 @@ module.exports = "Common"; /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -365,7 +369,7 @@ __webpack_require__.e(/*! AMD require */ 1).then(function() { var __WEBPACK_AMD_ /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -401,6 +405,7 @@ __webpack_require__.e(/*! AMD require */ 1).then(function() { var __WEBPACK_AMD_ /******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); /******/ } /******/ } +/******/ /******/ return result; /******/ } /******/ @@ -477,6 +482,8 @@ __webpack_require__.e(/*! AMD require */ 1).then(function() { var __WEBPACK_AMD_ /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -486,7 +493,8 @@ __webpack_require__.e(/*! AMD require */ 1).then(function() { var __WEBPACK_AMD_ /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -620,12 +628,12 @@ module.exports = function(msg) { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.js 369 bytes 1 [emitted] commons.js 258 bytes 0 [emitted] commons - pageA.js 9.28 KiB 2 [emitted] pageA - pageB.js 9.24 KiB 3 [emitted] pageB + pageA.js 9.51 KiB 2 [emitted] pageA + pageB.js 9.47 KiB 3 [emitted] pageB Entrypoint pageA = commons.js pageA.js Entrypoint pageB = commons.js pageB.js chunk {0} commons.js (commons) 26 bytes ={2}= ={3}= >{1}< [initial] [rendered] split chunk (cache group: commons) (name: commons) @@ -656,12 +664,12 @@ chunk {3} pageB.js (pageB) 148 bytes ={0}= >{1}< [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.js 121 bytes 1 [emitted] commons.js 94 bytes 0 [emitted] commons - pageA.js 2.26 KiB 2 [emitted] pageA - pageB.js 2.23 KiB 3 [emitted] pageB + pageA.js 2.34 KiB 2 [emitted] pageA + pageB.js 2.31 KiB 3 [emitted] pageB Entrypoint pageA = commons.js pageA.js Entrypoint pageB = commons.js pageB.js chunk {0} commons.js (commons) 26 bytes ={2}= ={3}= >{1}< [initial] [rendered] split chunk (cache group: commons) (name: commons) diff --git a/examples/named-chunks/README.md b/examples/named-chunks/README.md index 6051f1f758c..5792b99f4f7 100644 --- a/examples/named-chunks/README.md +++ b/examples/named-chunks/README.md @@ -40,7 +40,7 @@ require.ensure(["b"], function(require) { /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -132,6 +132,8 @@ require.ensure(["b"], function(require) { /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -141,7 +143,8 @@ require.ensure(["b"], function(require) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -349,11 +352,11 @@ __webpack_require__.e(/*! require.ensure */ 2).then((function(require) { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 677 bytes 1 [emitted] my own chunk 2.output.js 463 bytes 2 [emitted] - output.js 9.07 KiB 0 [emitted] main + output.js 9.29 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 432 bytes >{1}< >{2}< [entry] [rendered] > ./example.js main @@ -374,11 +377,11 @@ chunk {2} 2.output.js 22 bytes <{0}> [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 112 bytes 1, 2 [emitted] my own chunk 2.output.js 92 bytes 2 [emitted] - output.js 2.19 KiB 0 [emitted] main + output.js 2.26 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 432 bytes >{1}< >{2}< [entry] [rendered] > ./example.js main diff --git a/examples/require.context/README.md b/examples/require.context/README.md index 70bfc639f72..59e329f1f25 100644 --- a/examples/require.context/README.md +++ b/examples/require.context/README.md @@ -215,7 +215,7 @@ module.exports = function() { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 5.39 KiB 0 [emitted] main Entrypoint main = output.js @@ -240,7 +240,7 @@ chunk {0} output.js (main) 603 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 1.53 KiB 0 [emitted] main Entrypoint main = output.js diff --git a/examples/require.resolve/README.md b/examples/require.resolve/README.md index 6ff799d6877..0cd323c1031 100644 --- a/examples/require.resolve/README.md +++ b/examples/require.resolve/README.md @@ -161,7 +161,7 @@ module.exports = Math.random(); ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 4.21 KiB 0 [emitted] main Entrypoint main = output.js @@ -179,7 +179,7 @@ chunk {0} output.js (main) 313 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 1.03 KiB 0 [emitted] main Entrypoint main = output.js diff --git a/examples/scope-hoisting/README.md b/examples/scope-hoisting/README.md index e7b6fe10742..0b84760cf23 100644 --- a/examples/scope-hoisting/README.md +++ b/examples/scope-hoisting/README.md @@ -126,7 +126,7 @@ module.exports = { /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -218,6 +218,8 @@ module.exports = { /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -227,7 +229,8 @@ module.exports = { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -460,10 +463,10 @@ Minimized ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 1.9 KiB 1 [emitted] - output.js 9.41 KiB 0 [emitted] main + output.js 9.63 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 372 bytes >{1}< [entry] [rendered] > ./example.js main @@ -499,10 +502,10 @@ chunk {1} 1.output.js 273 bytes <{0}> [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.output.js 369 bytes 1 [emitted] - output.js 2.17 KiB 0 [emitted] main + output.js 2.25 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 372 bytes >{1}< [entry] [rendered] > ./example.js main diff --git a/examples/side-effects/README.md b/examples/side-effects/README.md index b12020098d6..97b72cef150 100644 --- a/examples/side-effects/README.md +++ b/examples/side-effects/README.md @@ -278,7 +278,7 @@ const b = "b"; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 7.51 KiB 0 [emitted] main Entrypoint main = output.js @@ -294,7 +294,7 @@ chunk {0} output.js (main) 325 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names output.js 985 bytes 0 [emitted] main Entrypoint main = output.js diff --git a/examples/source-map/README.md b/examples/source-map/README.md index f26dfaec99f..f4ed0840bd5 100644 --- a/examples/source-map/README.md +++ b/examples/source-map/README.md @@ -252,12 +252,12 @@ eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\n ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Child Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names ./bundle-cheap-eval-source-map.js 1.39 KiB 1 [emitted] bundle - ./runtime~bundle-cheap-eval-source-map.js 6.04 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-cheap-eval-source-map.js 6.11 KiB 0 [emitted] runtime~bundle Entrypoint bundle = ./runtime~bundle-cheap-eval-source-map.js ./bundle-cheap-eval-source-map.js chunk {0} ./runtime~bundle-cheap-eval-source-map.js (runtime~bundle) 0 bytes ={1}= [entry] [rendered] > coffee-loader!./example.coffee bundle @@ -269,7 +269,7 @@ Child Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names ./bundle-cheap-module-eval-source-map.js 1.28 KiB 1 [emitted] bundle - ./runtime~bundle-cheap-module-eval-source-map.js 6.04 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-cheap-module-eval-source-map.js 6.11 KiB 0 [emitted] runtime~bundle Entrypoint bundle = ./runtime~bundle-cheap-module-eval-source-map.js ./bundle-cheap-module-eval-source-map.js chunk {0} ./runtime~bundle-cheap-module-eval-source-map.js (runtime~bundle) 0 bytes ={1}= [entry] [rendered] > coffee-loader!./example.coffee bundle @@ -282,8 +282,8 @@ Child Asset Size Chunks Chunk Names ./bundle-cheap-module-source-map.js 681 bytes 1 [emitted] bundle ./bundle-cheap-module-source-map.js.map 442 bytes 1 [emitted] bundle - ./runtime~bundle-cheap-module-source-map.js 6.11 KiB 0 [emitted] runtime~bundle - ./runtime~bundle-cheap-module-source-map.js.map 6 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-cheap-module-source-map.js 6.18 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-cheap-module-source-map.js.map 6.07 KiB 0 [emitted] runtime~bundle Entrypoint bundle = ./runtime~bundle-cheap-module-source-map.js ./runtime~bundle-cheap-module-source-map.js.map ./bundle-cheap-module-source-map.js ./bundle-cheap-module-source-map.js.map chunk {0} ./runtime~bundle-cheap-module-source-map.js, ./runtime~bundle-cheap-module-source-map.js.map (runtime~bundle) 0 bytes ={1}= [entry] [rendered] > coffee-loader!./example.coffee bundle @@ -296,8 +296,8 @@ Child Asset Size Chunks Chunk Names ./bundle-cheap-source-map.js 674 bytes 1 [emitted] bundle ./bundle-cheap-source-map.js.map 515 bytes 1 [emitted] bundle - ./runtime~bundle-cheap-source-map.js 6.1 KiB 0 [emitted] runtime~bundle - ./runtime~bundle-cheap-source-map.js.map 6 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-cheap-source-map.js 6.17 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-cheap-source-map.js.map 6.07 KiB 0 [emitted] runtime~bundle Entrypoint bundle = ./runtime~bundle-cheap-source-map.js ./runtime~bundle-cheap-source-map.js.map ./bundle-cheap-source-map.js ./bundle-cheap-source-map.js.map chunk {0} ./runtime~bundle-cheap-source-map.js, ./runtime~bundle-cheap-source-map.js.map (runtime~bundle) 0 bytes ={1}= [entry] [rendered] > coffee-loader!./example.coffee bundle @@ -309,7 +309,7 @@ Child Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names ./bundle-eval.js 730 bytes 1 [emitted] bundle - ./runtime~bundle-eval.js 6.04 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-eval.js 6.11 KiB 0 [emitted] runtime~bundle Entrypoint bundle = ./runtime~bundle-eval.js ./bundle-eval.js chunk {0} ./runtime~bundle-eval.js (runtime~bundle) 0 bytes ={1}= [entry] [rendered] > coffee-loader!./example.coffee bundle @@ -321,7 +321,7 @@ Child Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names ./bundle-eval-source-map.js 1.43 KiB 1 [emitted] bundle - ./runtime~bundle-eval-source-map.js 6.04 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-eval-source-map.js 6.11 KiB 0 [emitted] runtime~bundle Entrypoint bundle = ./runtime~bundle-eval-source-map.js ./bundle-eval-source-map.js chunk {0} ./runtime~bundle-eval-source-map.js (runtime~bundle) 0 bytes ={1}= [entry] [rendered] > coffee-loader!./example.coffee bundle @@ -334,8 +334,8 @@ Child Asset Size Chunks Chunk Names ./bundle-hidden-source-map.js 622 bytes 1 [emitted] bundle ./bundle-hidden-source-map.js.map 545 bytes 1 [emitted] bundle - ./runtime~bundle-hidden-source-map.js 6.04 KiB 0 [emitted] runtime~bundle - ./runtime~bundle-hidden-source-map.js.map 6.09 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-hidden-source-map.js 6.11 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-hidden-source-map.js.map 6.16 KiB 0 [emitted] runtime~bundle Entrypoint bundle = ./runtime~bundle-hidden-source-map.js ./runtime~bundle-hidden-source-map.js.map ./bundle-hidden-source-map.js ./bundle-hidden-source-map.js.map chunk {0} ./runtime~bundle-hidden-source-map.js, ./runtime~bundle-hidden-source-map.js.map (runtime~bundle) 0 bytes ={1}= [entry] [rendered] > coffee-loader!./example.coffee bundle @@ -347,7 +347,7 @@ Child Hash: 0a1b2c3d4e5f6a7b8c9d Asset Size Chunks Chunk Names ./bundle-inline-source-map.js 1.38 KiB 1 [emitted] bundle - ./runtime~bundle-inline-source-map.js 14.2 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-inline-source-map.js 14.4 KiB 0 [emitted] runtime~bundle Entrypoint bundle = ./runtime~bundle-inline-source-map.js ./bundle-inline-source-map.js chunk {0} ./runtime~bundle-inline-source-map.js (runtime~bundle) 0 bytes ={1}= [entry] [rendered] > coffee-loader!./example.coffee bundle @@ -360,7 +360,7 @@ Child Asset Size Chunks Chunk Names ./bundle-nosources-source-map.js 678 bytes 1 [emitted] bundle ./bundle-nosources-source-map.js.map 325 bytes 1 [emitted] bundle - ./runtime~bundle-nosources-source-map.js 6.1 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-nosources-source-map.js 6.18 KiB 0 [emitted] runtime~bundle ./runtime~bundle-nosources-source-map.js.map 981 bytes 0 [emitted] runtime~bundle Entrypoint bundle = ./runtime~bundle-nosources-source-map.js ./runtime~bundle-nosources-source-map.js.map ./bundle-nosources-source-map.js ./bundle-nosources-source-map.js.map chunk {0} ./runtime~bundle-nosources-source-map.js, ./runtime~bundle-nosources-source-map.js.map (runtime~bundle) 0 bytes ={1}= [entry] [rendered] @@ -374,8 +374,8 @@ Child Asset Size Chunks Chunk Names ./bundle-source-map.js 668 bytes 1 [emitted] bundle ./bundle-source-map.js.map 538 bytes 1 [emitted] bundle - ./runtime~bundle-source-map.js 6.09 KiB 0 [emitted] runtime~bundle - ./runtime~bundle-source-map.js.map 6.08 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-source-map.js 6.17 KiB 0 [emitted] runtime~bundle + ./runtime~bundle-source-map.js.map 6.15 KiB 0 [emitted] runtime~bundle Entrypoint bundle = ./runtime~bundle-source-map.js ./runtime~bundle-source-map.js.map ./bundle-source-map.js ./bundle-source-map.js.map chunk {0} ./runtime~bundle-source-map.js, ./runtime~bundle-source-map.js.map (runtime~bundle) 0 bytes ={1}= [entry] [rendered] > coffee-loader!./example.coffee bundle diff --git a/examples/two-explicit-vendor-chunks/README.md b/examples/two-explicit-vendor-chunks/README.md index 2b19f0677ce..68cd054a747 100644 --- a/examples/two-explicit-vendor-chunks/README.md +++ b/examples/two-explicit-vendor-chunks/README.md @@ -418,7 +418,7 @@ __webpack_require__(/*! ./vendor2 */ 3); ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names pageA.js 4.26 KiB 2 [emitted] pageA pageB.js 3.71 KiB 3 [emitted] pageB @@ -474,7 +474,7 @@ chunk {4} pageC.js (pageC) 25 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names pageA.js 1.02 KiB 0 [emitted] pageA pageB.js 954 bytes 1 [emitted] pageB diff --git a/examples/wasm-simple/README.md b/examples/wasm-simple/README.md index 73999c7def3..d22e76a657f 100644 --- a/examples/wasm-simple/README.md +++ b/examples/wasm-simple/README.md @@ -70,7 +70,7 @@ export function fibonacciJavascript(i) { /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; @@ -190,6 +190,8 @@ export function fibonacciJavascript(i) { /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ +/******/ // create error before stack unwound to get useful stacktrace later +/******/ var error = new Error(); /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; @@ -199,7 +201,8 @@ export function fibonacciJavascript(i) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); +/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'; +/******/ error.name = 'ChunkLoadError'; /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); @@ -504,14 +507,14 @@ wasmExports["__webpack_init__"]() ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 - Asset Size Chunks Chunk Names - 1.output.js 3.37 KiB 1 [emitted] - 2.output.js 636 bytes 2 [emitted] -3580ad47c1ba500584ea.wasm unknown size 1 [emitted] -baf012e37fe9b85e815a.wasm unknown size 1 [emitted] -c50d6212832abfc3ae1e.wasm unknown size 1, 2 [emitted] - output.js 11.2 KiB 0 [emitted] main +Version: webpack 4.39.0 + Asset Size Chunks Chunk Names + 1.output.js 3.37 KiB 1 [emitted] + 2.output.js 636 bytes 2 [emitted] +3580ad47c1ba500584ea.wasm 88 bytes 1 [emitted] +baf012e37fe9b85e815a.wasm 93 bytes 1 [emitted] +c50d6212832abfc3ae1e.wasm 67 bytes 1, 2 [emitted] + output.js 11.5 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 762 bytes >{1}< >{2}< [entry] [rendered] > ./example.js main @@ -548,14 +551,14 @@ chunk {2} 2.output.js, c50d6212832abfc3ae1e.wasm 41 bytes <{0}> [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 - Asset Size Chunks Chunk Names -0a12d714e570b7fd9d8b.wasm unknown size 1, 2 [emitted] - 1.output.js 681 bytes 1, 2 [emitted] - 2.output.js 184 bytes 2 [emitted] -a04390412f9500b1d7ae.wasm unknown size 1, 2 [emitted] -a36cec63b02caac8e61a.wasm unknown size 1, 2, 2 [emitted] - output.js 3.29 KiB 0 [emitted] main +Version: webpack 4.39.0 + Asset Size Chunks Chunk Names +0a12d714e570b7fd9d8b.wasm 70 bytes 1, 2 [emitted] + 1.output.js 681 bytes 1, 2 [emitted] + 2.output.js 184 bytes 2 [emitted] +a04390412f9500b1d7ae.wasm 65 bytes 1, 2 [emitted] +a36cec63b02caac8e61a.wasm 67 bytes 1, 2, 2 [emitted] + output.js 3.37 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 762 bytes >{1}< >{2}< [entry] [rendered] > ./example.js main diff --git a/examples/web-worker/README.md b/examples/web-worker/README.md index 90db59e7fd7..b16bcc3dbe5 100644 --- a/examples/web-worker/README.md +++ b/examples/web-worker/README.md @@ -200,7 +200,7 @@ module.exports = function() { /******/ promises.push(Promise.resolve().then(function() { /******/ // "1" is the signal for "already loaded" /******/ if(!installedChunks[chunkId]) { -/******/ importScripts("" + chunkId + ".hash.worker.js"); +/******/ importScripts(__webpack_require__.p + "" + chunkId + ".hash.worker.js"); /******/ } /******/ })); /******/ return Promise.all(promises); @@ -370,10 +370,10 @@ module.exports = function() { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.hash.worker.js 1.77 KiB [emitted] - hash.worker.js 4.98 KiB [emitted] + hash.worker.js 5 KiB [emitted] output.js 4.42 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 326 bytes [entry] [rendered] @@ -385,7 +385,7 @@ chunk {0} output.js (main) 326 bytes [entry] [rendered] Child worker: Asset Size Chunks Chunk Names 1.hash.worker.js 1.77 KiB 1 [emitted] - hash.worker.js 4.98 KiB 0 [emitted] main + hash.worker.js 5 KiB 0 [emitted] main Entrypoint main = hash.worker.js chunk {0} hash.worker.js (main) 162 bytes >{1}< [entry] [rendered] > !!./worker.js main @@ -410,10 +410,10 @@ Child worker: ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 4.29.6 +Version: webpack 4.39.0 Asset Size Chunks Chunk Names 1.hash.worker.js 588 bytes [emitted] - hash.worker.js 1.27 KiB [emitted] + hash.worker.js 1.28 KiB [emitted] output.js 1.06 KiB 0 [emitted] main Entrypoint main = output.js chunk {0} output.js (main) 326 bytes [entry] [rendered] @@ -425,7 +425,7 @@ chunk {0} output.js (main) 326 bytes [entry] [rendered] Child worker: Asset Size Chunks Chunk Names 1.hash.worker.js 588 bytes 1 [emitted] - hash.worker.js 1.27 KiB 0 [emitted] main + hash.worker.js 1.28 KiB 0 [emitted] main Entrypoint main = hash.worker.js chunk {0} hash.worker.js (main) 162 bytes >{1}< [entry] [rendered] > !!./worker.js main