diff --git a/examples/aggressive-merging/README.md b/examples/aggressive-merging/README.md index c6b5ff55f..1b3e91e47 100644 --- a/examples/aggressive-merging/README.md +++ b/examples/aggressive-merging/README.md @@ -60,24 +60,24 @@ module.exports = { ## Unoptimized ``` -asset pageA.bundle.js 8.76 KiB [emitted] (name: pageA) -asset pageB.bundle.js 8.76 KiB [emitted] (name: pageB) -asset pageC.bundle.js 8.76 KiB [emitted] (name: pageC) +asset pageA.bundle.js 8.91 KiB [emitted] (name: pageA) +asset pageB.bundle.js 8.91 KiB [emitted] (name: pageB) +asset pageC.bundle.js 8.91 KiB [emitted] (name: pageC) asset 456.chunk.js 6.28 KiB [emitted] asset 394.chunk.js 606 bytes [emitted] -chunk pageB.bundle.js (pageB) 69 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: pageB) pageB.bundle.js (pageB) 69 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./pageB pageB - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules ./pageB.js 69 bytes [built] [code generated] [used exports unknown] entry ./pageB pageB -chunk pageC.bundle.js (pageC) 68 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: pageC) pageC.bundle.js (pageC) 68 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./pageC pageC - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules ./pageC.js 68 bytes [built] [code generated] [used exports unknown] entry ./pageC pageC -chunk 394.chunk.js 42 bytes [rendered] +chunk (runtime: pageC) 394.chunk.js 42 bytes [rendered] > ./a ./pageC.js 1:0-3:2 ./a.js 21 bytes [built] [code generated] [used exports unknown] @@ -89,13 +89,13 @@ chunk 394.chunk.js 42 bytes [rendered] cjs self exports reference ./b.js 1:0-14 cjs require ./b ./pageB.js 2:8-22 cjs require ./b ./pageC.js 2:17-31 -chunk pageA.bundle.js (pageA) 69 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: pageA) pageA.bundle.js (pageA) 69 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./pageA pageA - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules ./pageA.js 69 bytes [built] [code generated] [used exports unknown] entry ./pageA pageA -chunk 456.chunk.js 5.45 KiB [rendered] +chunk (runtime: pageA, pageB) 456.chunk.js 5.45 KiB [rendered] > ./common ./pageA.js 1:0-3:2 > ./common ./pageB.js 1:0-3:2 ./a.js 21 bytes [built] [code generated] @@ -113,26 +113,26 @@ chunk 456.chunk.js 5.45 KiB [rendered] cjs self exports reference ./common.js 1:0-14 amd require ./common ./pageA.js 1:0-3:2 amd require ./common ./pageB.js 1:0-3:2 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset pageC.bundle.js 1.68 KiB [emitted] [minimized] (name: pageC) -asset pageA.bundle.js 1.67 KiB [emitted] [minimized] (name: pageA) -asset pageB.bundle.js 1.67 KiB [emitted] [minimized] (name: pageB) +asset pageC.bundle.js 1.73 KiB [emitted] [minimized] (name: pageC) +asset pageA.bundle.js 1.72 KiB [emitted] [minimized] (name: pageA) +asset pageB.bundle.js 1.72 KiB [emitted] [minimized] (name: pageB) asset 456.chunk.js 155 bytes [emitted] [minimized] asset 394.chunk.js 104 bytes [emitted] [minimized] -chunk (runtime: pageB) pageB.bundle.js (pageB) 69 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: pageB) pageB.bundle.js (pageB) 69 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./pageB pageB - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules ./pageB.js 69 bytes [built] [code generated] [no exports used] entry ./pageB pageB -chunk (runtime: pageC) pageC.bundle.js (pageC) 68 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: pageC) pageC.bundle.js (pageC) 68 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./pageC pageC - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules ./pageC.js 68 bytes [built] [code generated] [no exports used] entry ./pageC pageC @@ -148,9 +148,9 @@ chunk (runtime: pageC) 394.chunk.js 42 bytes [rendered] cjs self exports reference ./b.js 1:0-14 cjs require ./b ./pageB.js 2:8-22 cjs require ./b ./pageC.js 2:17-31 -chunk (runtime: pageA) pageA.bundle.js (pageA) 69 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: pageA) pageA.bundle.js (pageA) 69 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./pageA pageA - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules ./pageA.js 69 bytes [built] [code generated] [no exports used] entry ./pageA pageA @@ -172,5 +172,5 @@ chunk (runtime: pageA, pageB) 456.chunk.js 5.45 KiB [rendered] cjs self exports reference ./common.js 1:0-14 amd require ./common ./pageA.js 1:0-3:2 amd require ./common ./pageB.js 1:0-3:2 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/asset-advanced/README.md b/examples/asset-advanced/README.md index 1935f5b2d..73e519639 100644 --- a/examples/asset-advanced/README.md +++ b/examples/asset-advanced/README.md @@ -190,7 +190,7 @@ module.exports = "data:image/svg+xml,%3csvg xmlns='http://www.w3.or...3c/svg%3e" ``` asset output.js 3.86 KiB [emitted] (name: main) -chunk output.js (main) 1.54 KiB (javascript) 274 bytes (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 1.54 KiB (javascript) 274 bytes (runtime) [entry] [rendered] > ./example.js main dependent modules 915 bytes [dependent] 1 module runtime modules 274 bytes 1 module @@ -198,5 +198,5 @@ chunk output.js (main) 1.54 KiB (javascript) 274 bytes (runtime) [entry] [render [no exports] [used exports unknown] entry ./example.js main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/asset-simple/README.md b/examples/asset-simple/README.md index 9b097f5eb..0841a580c 100644 --- a/examples/asset-simple/README.md +++ b/examples/asset-simple/README.md @@ -209,9 +209,9 @@ module.exports = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDo...vc3ZnPgo=" ## webpack output ``` -asset images/89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] (auxiliary name: main) +asset images/89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: images/file.png] (auxiliary name: main) asset output.js 13 KiB [emitted] (name: main) -chunk output.js (main) 9.58 KiB (javascript) 14.6 KiB (asset) 306 bytes (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 9.58 KiB (javascript) 14.6 KiB (asset) 306 bytes (runtime) [entry] [rendered] > ./example.js main dependent modules 8.86 KiB (javascript) 14.6 KiB (asset) [dependent] 3 modules runtime modules 306 bytes 2 modules @@ -219,5 +219,5 @@ chunk output.js (main) 9.58 KiB (javascript) 14.6 KiB (asset) 306 bytes (runtime [no exports] [used exports unknown] entry ./example.js main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/build-common.js b/examples/build-common.js index 99425d5db..41d554c3b 100644 --- a/examples/build-common.js +++ b/examples/build-common.js @@ -12,11 +12,11 @@ const async = require("neo-async"); const extraArgs = ""; -const targetArgs = global.NO_TARGET_ARGS ? "" : "./example.js -o dist/output.js "; -const displayReasons = global.NO_REASONS ? "" : "--display-reasons --display-used-exports --display-provided-exports"; -const statsArgs = global.NO_STATS_OPTIONS ? "" : "--display-chunks --display-max-modules 99999 --display-origins"; +const targetArgs = global.NO_TARGET_ARGS ? "" : "--entry ./example.js --output-filename output.js"; +const displayReasons = global.NO_REASONS ? "" : "--stats-reasons --stats-used-exports --stats-provided-exports"; +const statsArgs = global.NO_STATS_OPTIONS ? "" : "--stats-chunks --stats-modules-space 99999 --stats-chunk-origins"; const publicPathArgs = global.NO_PUBLIC_PATH ? "" : '--output-public-path "dist/"'; -const commonArgs = `--no-color ${statsArgs} ${publicPathArgs} ${extraArgs} ${targetArgs}`; +const commonArgs = `--no-stats-colors ${statsArgs} ${publicPathArgs} ${extraArgs} ${targetArgs}`; let readme = fs.readFileSync(require("path").join(process.cwd(), "template.md"), "utf-8"); @@ -68,7 +68,7 @@ const doCompileAndReplace = (args, prefix, callback) => { async.series([ callback => doCompileAndReplace("--mode production --env production", "production", callback), callback => doCompileAndReplace("--mode development --env development --devtool none", "development", callback), - callback => doCompileAndReplace("--mode none --env none --output-pathinfo", "", callback) + callback => doCompileAndReplace("--mode none --env none --output-pathinfo verbose", "", callback) ], () => { readme = tc.replaceBase(readme); fs.writeFile("README.md", readme, "utf-8", function () { }); diff --git a/examples/buildAll.js b/examples/buildAll.js index fff5d9920..211495d7b 100644 --- a/examples/buildAll.js +++ b/examples/buildAll.js @@ -3,9 +3,13 @@ const cp = require("child_process"); const examples = require("./examples"); -const commands = examples.map(function(dirname) { - return "cd " + dirname + " && node build.js"; -}); +const commands = examples + .concat( + examples.filter(dirname => dirname.includes("persistent-caching")) + ) + .map(function(dirname) { + return "cd " + dirname + " && node build.js"; + }); let failed = 0; let i = 0; diff --git a/examples/chunkhash/README.md b/examples/chunkhash/README.md index cb69361c5..a18d19a83 100644 --- a/examples/chunkhash/README.md +++ b/examples/chunkhash/README.md @@ -43,7 +43,7 @@ module.exports = { @@ -89,23 +89,33 @@ module.exports = { /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = __webpack_modules__; /******/ +/******/ // the startup function +/******/ // It's empty as some runtime module handles the default behavior +/******/ __webpack_require__.x = x => {} /************************************************************************/ /******/ /* webpack/runtime/create fake namespace object */ /******/ (() => { +/******/ var getProto = Object.getPrototypeOf ? (obj) => Object.getPrototypeOf(obj) : (obj) => obj.__proto__; +/******/ var leafPrototypes; /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object +/******/ // mode & 16: return value when it's Promise-like /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = this(value); /******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ if(typeof value === 'object' && value) { +/******/ if((mode & 4) && value.__esModule) return value; +/******/ if((mode & 16) && typeof value.then === 'function') return value; +/******/ } /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ var def = {}; -/******/ if(mode & 2 && typeof value == 'object' && value) { -/******/ for(const key in value) def[key] = () => value[key]; +/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)]; +/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) { +/******/ Object.getOwnPropertyNames(current).forEach(key => def[key] = () => value[key]); /******/ } /******/ def['default'] = () => value; /******/ __webpack_require__.d(ns, def); @@ -277,43 +287,10 @@ module.exports = { /******/ /******/ // no HMR manifest /******/ -/******/ var checkDeferredModules = () => { -/******/ -/******/ }; -/******/ function checkDeferredModulesImpl() { -/******/ var result; -/******/ for(var i = 0; i < deferredModules.length; i++) { -/******/ var deferredModule = deferredModules[i]; -/******/ var fulfilled = true; -/******/ for(var j = 1; j < deferredModule.length; j++) { -/******/ var depId = deferredModule[j]; -/******/ if(installedChunks[depId] !== 0) fulfilled = false; -/******/ } -/******/ if(fulfilled) { -/******/ deferredModules.splice(i--, 1); -/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); -/******/ } -/******/ } -/******/ if(deferredModules.length === 0) { -/******/ __webpack_require__.x(); -/******/ __webpack_require__.x = () => { -/******/ -/******/ } -/******/ } -/******/ return result; -/******/ } -/******/ __webpack_require__.x = () => { -/******/ // reset startup function so it can be called again when more startup code is added -/******/ __webpack_require__.x = () => { -/******/ -/******/ } -/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice(); -/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]); -/******/ return (checkDeferredModules = checkDeferredModulesImpl)(); -/******/ }; +/******/ var checkDeferredModules = x => {}; /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime, executeModules] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -331,7 +308,7 @@ module.exports = { /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -344,8 +321,35 @@ module.exports = { /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ function checkDeferredModulesImpl() { +/******/ var result; +/******/ for(var i = 0; i < deferredModules.length; i++) { +/******/ var deferredModule = deferredModules[i]; +/******/ var fulfilled = true; +/******/ for(var j = 1; j < deferredModule.length; j++) { +/******/ var depId = deferredModule[j]; +/******/ if(installedChunks[depId] !== 0) fulfilled = false; +/******/ } +/******/ if(fulfilled) { +/******/ deferredModules.splice(i--, 1); +/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); +/******/ } +/******/ } +/******/ if(deferredModules.length === 0) { +/******/ __webpack_require__.x(); +/******/ __webpack_require__.x = x => {}; +/******/ } +/******/ return result; +/******/ } +/******/ var startup = __webpack_require__.x; +/******/ __webpack_require__.x = () => { +/******/ // reset startup function so it can be called again when more startup code is added +/******/ __webpack_require__.x = startup || (x => {}); +/******/ return (checkDeferredModules = checkDeferredModulesImpl)(); +/******/ }; /******/ })(); /******/ /************************************************************************/ @@ -373,8 +377,8 @@ module.exports = { /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { // some module -__webpack_require__.e(/*! import() */ 2).then(__webpack_require__.t.bind(__webpack_require__, /*! ./async1 */ 1, 7)); -__webpack_require__.e(/*! import() */ 3).then(__webpack_require__.t.bind(__webpack_require__, /*! ./async2 */ 2, 7)); +__webpack_require__.e(/*! import() */ 2).then(__webpack_require__.t.bind(__webpack_require__, /*! ./async1 */ 1, 23)); +__webpack_require__.e(/*! import() */ 3).then(__webpack_require__.t.bind(__webpack_require__, /*! ./async2 */ 2, 23)); /***/ }) @@ -387,40 +391,40 @@ __webpack_require__.e(/*! import() */ 3).then(__webpack_require__.t.bind(__webpa ## Unoptimized ``` -asset runtime~main.[chunkhash].js 11.9 KiB [emitted] (name: runtime~main) -asset main.[chunkhash].js 650 bytes [emitted] (name: main) +asset runtime~main.[chunkhash].js 12.5 KiB [emitted] (name: runtime~main) +asset main.[chunkhash].js 652 bytes [emitted] (name: main) asset 2.[chunkhash].js 285 bytes [emitted] asset 3.[chunkhash].js 279 bytes [emitted] -Entrypoint main 12.5 KiB = runtime~main.[chunkhash].js 11.9 KiB main.[chunkhash].js 650 bytes -chunk main.[chunkhash].js (main) 55 bytes [initial] [rendered] +Entrypoint main 13.1 KiB = runtime~main.[chunkhash].js 12.5 KiB main.[chunkhash].js 652 bytes +chunk (runtime: runtime~main) main.[chunkhash].js (main) 55 bytes [initial] [rendered] > ./example main ./example.js 55 bytes [built] [code generated] [used exports unknown] entry ./example main -chunk runtime~main.[chunkhash].js (runtime~main) 7.27 KiB [entry] [rendered] +chunk (runtime: runtime~main) runtime~main.[chunkhash].js (runtime~main) 7.7 KiB [entry] [rendered] > ./example main - runtime modules 7.27 KiB 9 modules -chunk 2.[chunkhash].js 28 bytes [rendered] + runtime modules 7.7 KiB 9 modules +chunk (runtime: runtime~main) 2.[chunkhash].js 28 bytes [rendered] > ./async1 ./example.js 2:0-18 ./async1.js 28 bytes [built] [code generated] [used exports unknown] import() ./async1 ./example.js 2:0-18 -chunk 3.[chunkhash].js 28 bytes [rendered] +chunk (runtime: runtime~main) 3.[chunkhash].js 28 bytes [rendered] > ./async2 ./example.js 3:0-18 ./async2.js 28 bytes [built] [code generated] [used exports unknown] import() ./async2 ./example.js 3:0-18 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset runtime~main.[chunkhash].js 2.42 KiB [emitted] [minimized] (name: runtime~main) -asset main.[chunkhash].js 153 bytes [emitted] [minimized] (name: main) +asset runtime~main.[chunkhash].js 2.63 KiB [emitted] [minimized] (name: runtime~main) +asset main.[chunkhash].js 155 bytes [emitted] [minimized] (name: main) asset 114.[chunkhash].js 69 bytes [emitted] [minimized] asset 172.[chunkhash].js 69 bytes [emitted] [minimized] -Entrypoint main 2.56 KiB = runtime~main.[chunkhash].js 2.42 KiB main.[chunkhash].js 153 bytes +Entrypoint main 2.78 KiB = runtime~main.[chunkhash].js 2.63 KiB main.[chunkhash].js 155 bytes chunk (runtime: runtime~main) 114.[chunkhash].js 28 bytes [rendered] > ./async1 ./example.js 2:0-18 ./async1.js 28 bytes [built] [code generated] @@ -436,8 +440,8 @@ chunk (runtime: runtime~main) main.[chunkhash].js (main) 55 bytes [initial] [ren ./example.js 55 bytes [built] [code generated] [no exports used] entry ./example main -chunk (runtime: runtime~main) runtime~main.[chunkhash].js (runtime~main) 7.27 KiB [entry] [rendered] +chunk (runtime: runtime~main) runtime~main.[chunkhash].js (runtime~main) 7.7 KiB [entry] [rendered] > ./example main - runtime modules 7.27 KiB 9 modules -webpack 5.0.0 compiled successfully + runtime modules 7.7 KiB 9 modules +webpack 5.11.1 compiled successfully ``` diff --git a/examples/cjs-tree-shaking/README.md b/examples/cjs-tree-shaking/README.md index a338d31a0..99aac42c7 100644 --- a/examples/cjs-tree-shaking/README.md +++ b/examples/cjs-tree-shaking/README.md @@ -191,16 +191,16 @@ chunk (runtime: main) output.js (main) 634 bytes [entry] [rendered] ./example.js 70 bytes [built] [code generated] [no exports used] entry ./example.js main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully asset without.js 2.91 KiB [emitted] (name: main) -chunk without.js (main) 634 bytes [entry] [rendered] +chunk (runtime: main) without.js (main) 634 bytes [entry] [rendered] > ./example.js main dependent modules 564 bytes [dependent] 2 modules ./example.js 70 bytes [built] [code generated] [used exports unknown] entry ./example.js main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode @@ -213,14 +213,14 @@ chunk (runtime: main) output.js (main) 634 bytes [entry] [rendered] ./example.js 70 bytes [built] [code generated] [no exports used] entry ./example.js main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully asset without.js 537 bytes [emitted] [minimized] (name: main) 1 related asset -chunk without.js (main) 634 bytes [entry] [rendered] +chunk (runtime: main) without.js (main) 634 bytes [entry] [rendered] > ./example.js main dependent modules 564 bytes [dependent] 2 modules ./example.js 70 bytes [built] [code generated] [used exports unknown] entry ./example.js main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/code-splitted-require.context-amd/README.md b/examples/code-splitted-require.context-amd/README.md index 13420a024..0645f2375 100644 --- a/examples/code-splitted-require.context-amd/README.md +++ b/examples/code-splitted-require.context-amd/README.md @@ -194,7 +194,7 @@ getTemplate("b", function(b) { /******/ // no deferred startup /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -212,7 +212,7 @@ getTemplate("b", function(b) { /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -220,8 +220,10 @@ getTemplate("b", function(b) { /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ // no deferred startup /******/ })(); /******/ /************************************************************************/ @@ -344,32 +346,32 @@ module.exports = function() { ## Unoptimized ``` -asset output.js 8.9 KiB [emitted] (name: main) +asset output.js 9.04 KiB [emitted] (name: main) asset 577.output.js 2.23 KiB [emitted] -chunk output.js (main) 251 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 251 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules ./example.js 251 bytes [built] [code generated] [used exports unknown] entry ./example.js main -chunk 577.output.js 457 bytes [rendered] +chunk (runtime: main) 577.output.js 457 bytes [rendered] > ./example.js 2:1-4:3 dependent modules 240 bytes [dependent] 3 modules ../require.context/templates/ sync ^\.\/.*$ 217 bytes [built] [code generated] [no exports] [used exports unknown] amd require context ./example.js 2:1-4:3 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset output.js 1.76 KiB [emitted] [minimized] (name: main) +asset output.js 1.82 KiB [emitted] [minimized] (name: main) asset 577.output.js 609 bytes [emitted] [minimized] -chunk (runtime: main) output.js (main) 251 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 251 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules ./example.js 251 bytes [built] [code generated] [no exports used] entry ./example.js main @@ -379,5 +381,5 @@ chunk (runtime: main) 577.output.js 457 bytes [rendered] ../require.context/templates/ sync ^\.\/.*$ 217 bytes [built] [code generated] [no exports] amd require context ./example.js 2:1-4:3 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/code-splitted-require.context/README.md b/examples/code-splitted-require.context/README.md index 2d236bc56..1073a2b08 100644 --- a/examples/code-splitted-require.context/README.md +++ b/examples/code-splitted-require.context/README.md @@ -194,7 +194,7 @@ getTemplate("b", function(b) { /******/ // no deferred startup /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -212,7 +212,7 @@ getTemplate("b", function(b) { /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -220,8 +220,10 @@ getTemplate("b", function(b) { /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ // no deferred startup /******/ })(); /******/ /************************************************************************/ @@ -344,32 +346,32 @@ module.exports = function() { ## Unoptimized ``` -asset output.js 8.81 KiB [emitted] (name: main) +asset output.js 8.96 KiB [emitted] (name: main) asset 577.output.js 2.23 KiB [emitted] -chunk output.js (main) 266 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 266 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules ./example.js 266 bytes [built] [code generated] [used exports unknown] entry ./example.js main -chunk 577.output.js 457 bytes [rendered] +chunk (runtime: main) 577.output.js 457 bytes [rendered] > ./example.js 2:1-4:3 dependent modules 240 bytes [dependent] 3 modules ../require.context/templates/ sync ^\.\/.*$ 217 bytes [built] [code generated] [no exports] [used exports unknown] cjs require context ./example.js 3:11-64 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset output.js 1.74 KiB [emitted] [minimized] (name: main) +asset output.js 1.79 KiB [emitted] [minimized] (name: main) asset 577.output.js 609 bytes [emitted] [minimized] -chunk (runtime: main) output.js (main) 266 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 266 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules ./example.js 266 bytes [built] [code generated] [no exports used] entry ./example.js main @@ -379,5 +381,5 @@ chunk (runtime: main) 577.output.js 457 bytes [rendered] ../require.context/templates/ sync ^\.\/.*$ 217 bytes [built] [code generated] [no exports] cjs require context ./example.js 3:11-64 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/code-splitting-bundle-loader/README.md b/examples/code-splitting-bundle-loader/README.md index 84a278dfc..25c3fe5ae 100644 --- a/examples/code-splitting-bundle-loader/README.md +++ b/examples/code-splitting-bundle-loader/README.md @@ -223,7 +223,7 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) { /******/ // no deferred startup /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -241,7 +241,7 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) { /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -249,8 +249,10 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) { /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ // no deferred startup /******/ })(); /******/ /************************************************************************/ @@ -301,32 +303,32 @@ module.exports = "It works"; ## Unoptimized ``` -asset output.js 9.44 KiB [emitted] (name: main) +asset output.js 9.58 KiB [emitted] (name: main) asset 929.output.js 354 bytes [emitted] -chunk output.js (main) 375 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 375 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules dependent modules 281 bytes [dependent] 1 module ./example.js 94 bytes [built] [code generated] [used exports unknown] entry ./example.js main -chunk 929.output.js 28 bytes [rendered] +chunk (runtime: main) 929.output.js 28 bytes [rendered] > ../../node_modules/bundle-loader/index.js!./file.js 7:0-14:2 ./file.js 28 bytes [built] [code generated] [used exports unknown] cjs self exports reference ./file.js 1:0-14 cjs require !!./file.js ../../node_modules/bundle-loader/index.js!./file.js 8:8-30 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset output.js 1.79 KiB [emitted] [minimized] (name: main) +asset output.js 1.84 KiB [emitted] [minimized] (name: main) asset 929.output.js 88 bytes [emitted] [minimized] -chunk (runtime: main) output.js (main) 375 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 375 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules dependent modules 281 bytes [dependent] 1 module ./example.js 94 bytes [built] [code generated] [no exports used] @@ -337,5 +339,5 @@ chunk (runtime: main) 929.output.js 28 bytes [rendered] [used exports unknown] cjs self exports reference ./file.js 1:0-14 cjs require !!./file.js ../../node_modules/bundle-loader/index.js!./file.js 8:8-30 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/code-splitting-depend-on-advanced/README.md b/examples/code-splitting-depend-on-advanced/README.md index f248d79d6..66766b04e 100644 --- a/examples/code-splitting-depend-on-advanced/README.md +++ b/examples/code-splitting-depend-on-advanced/README.md @@ -99,6 +99,9 @@ console.log(lodash, isomorphicFetch); /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = __webpack_modules__; /******/ +/******/ // the startup function +/******/ // It's empty as some runtime module handles the default behavior +/******/ __webpack_require__.x = x => {} /************************************************************************/ /******/ /* webpack/runtime/compat get default export */ /******/ (() => { @@ -276,43 +279,10 @@ console.log(lodash, isomorphicFetch); /******/ /******/ // no HMR manifest /******/ -/******/ var checkDeferredModules = () => { -/******/ -/******/ }; -/******/ function checkDeferredModulesImpl() { -/******/ var result; -/******/ for(var i = 0; i < deferredModules.length; i++) { -/******/ var deferredModule = deferredModules[i]; -/******/ var fulfilled = true; -/******/ for(var j = 1; j < deferredModule.length; j++) { -/******/ var depId = deferredModule[j]; -/******/ if(installedChunks[depId] !== 0) fulfilled = false; -/******/ } -/******/ if(fulfilled) { -/******/ deferredModules.splice(i--, 1); -/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); -/******/ } -/******/ } -/******/ if(deferredModules.length === 0) { -/******/ __webpack_require__.x(); -/******/ __webpack_require__.x = () => { -/******/ -/******/ } -/******/ } -/******/ return result; -/******/ } -/******/ __webpack_require__.x = () => { -/******/ // reset startup function so it can be called again when more startup code is added -/******/ __webpack_require__.x = () => { -/******/ -/******/ } -/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice(); -/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]); -/******/ return (checkDeferredModules = checkDeferredModulesImpl)(); -/******/ }; +/******/ var checkDeferredModules = x => {}; /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime, executeModules] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -330,7 +300,7 @@ console.log(lodash, isomorphicFetch); /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -343,8 +313,35 @@ console.log(lodash, isomorphicFetch); /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ function checkDeferredModulesImpl() { +/******/ var result; +/******/ for(var i = 0; i < deferredModules.length; i++) { +/******/ var deferredModule = deferredModules[i]; +/******/ var fulfilled = true; +/******/ for(var j = 1; j < deferredModule.length; j++) { +/******/ var depId = deferredModule[j]; +/******/ if(installedChunks[depId] !== 0) fulfilled = false; +/******/ } +/******/ if(fulfilled) { +/******/ deferredModules.splice(i--, 1); +/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); +/******/ } +/******/ } +/******/ if(deferredModules.length === 0) { +/******/ __webpack_require__.x(); +/******/ __webpack_require__.x = x => {}; +/******/ } +/******/ return result; +/******/ } +/******/ var startup = __webpack_require__.x; +/******/ __webpack_require__.x = () => { +/******/ // reset startup function so it can be called again when more startup code is added +/******/ __webpack_require__.x = startup || (x => {}); +/******/ return (checkDeferredModules = checkDeferredModulesImpl)(); +/******/ }; /******/ })(); /******/ /************************************************************************/ @@ -540,7 +537,7 @@ module.exports = 'prop-types'; ## Unoptimized ``` -asset runtime.js 11.3 KiB [emitted] (name: runtime) +asset runtime.js 11.4 KiB [emitted] (name: runtime) asset other-vendors.js 1.92 KiB [emitted] (name: other-vendors) asset page1.js 1.64 KiB [emitted] (name: page1) asset app.js 1.17 KiB [emitted] (name: app) @@ -548,34 +545,34 @@ asset lazy_js.js 1.11 KiB [emitted] asset react-vendors.js 1.1 KiB [emitted] (name: react-vendors) Entrypoint app 1.17 KiB = app.js Entrypoint page1 1.64 KiB = page1.js -Entrypoint react-vendors 12.4 KiB = runtime.js 11.3 KiB react-vendors.js 1.1 KiB -Entrypoint other-vendors 13.3 KiB = runtime.js 11.3 KiB other-vendors.js 1.92 KiB -chunk app.js (app) 116 bytes <{other-vendors}> <{runtime}> >{page1}< [initial] [rendered] +Entrypoint react-vendors 12.5 KiB = runtime.js 11.4 KiB react-vendors.js 1.1 KiB +Entrypoint other-vendors 13.3 KiB = runtime.js 11.4 KiB other-vendors.js 1.92 KiB +chunk (runtime: runtime) app.js (app) 116 bytes <{other-vendors}> <{runtime}> >{page1}< [initial] [rendered] > ./app.js app ./app.js 116 bytes [built] [code generated] [no exports] [used exports unknown] entry ./app.js app -chunk lazy_js.js 98 bytes <{page1}> [rendered] +chunk (runtime: runtime) lazy_js.js 98 bytes <{page1}> [rendered] > ./lazy ./page1.js 7:0-16 ./lazy.js 98 bytes [built] [code generated] [no exports] [used exports unknown] import() ./lazy ./page1.js 7:0-16 -chunk other-vendors.js (other-vendors) 210 bytes ={runtime}= >{app}< [initial] [rendered] +chunk (runtime: runtime) other-vendors.js (other-vendors) 210 bytes ={runtime}= >{app}< [initial] [rendered] > ./other-vendors other-vendors dependent modules 64 bytes [dependent] 2 modules ./other-vendors.js 146 bytes [built] [code generated] [no exports] [used exports unknown] entry ./other-vendors other-vendors -chunk page1.js (page1) 176 bytes <{app}> <{react-vendors}> <{runtime}> >{lazy_js}< [initial] [rendered] +chunk (runtime: runtime) page1.js (page1) 176 bytes <{app}> <{react-vendors}> <{runtime}> >{lazy_js}< [initial] [rendered] > ./page1.js page1 ./page1.js 176 bytes [built] [code generated] [no exports] [used exports unknown] entry ./page1.js page1 -chunk react-vendors.js (react-vendors) 87 bytes ={runtime}= >{page1}< [initial] [rendered] +chunk (runtime: runtime) react-vendors.js (react-vendors) 87 bytes ={runtime}= >{page1}< [initial] [rendered] > prop-types react-vendors > react react-vendors > react-dom react-vendors @@ -597,19 +594,19 @@ chunk react-vendors.js (react-vendors) 87 bytes ={runtime}= >{page1}< [initial] harmony side effect evaluation react ./page1.js 2:0-26 harmony import specifier react ./page1.js 5:29-34 entry react react-vendors -chunk runtime.js (runtime) 6.86 KiB ={other-vendors}= ={react-vendors}= >{app}< >{page1}< [entry] [rendered] +chunk (runtime: runtime) runtime.js (runtime) 6.85 KiB ={other-vendors}= ={react-vendors}= >{app}< >{page1}< [entry] [rendered] > ./other-vendors other-vendors > prop-types react-vendors > react react-vendors > react-dom react-vendors - runtime modules 6.86 KiB 9 modules -webpack 5.0.0 compiled successfully + runtime modules 6.85 KiB 9 modules +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset runtime.js 2.24 KiB [emitted] [minimized] (name: runtime) +asset runtime.js 2.26 KiB [emitted] [minimized] (name: runtime) asset page1.js 264 bytes [emitted] [minimized] (name: page1) asset other-vendors.js 243 bytes [emitted] [minimized] (name: other-vendors) asset react-vendors.js 208 bytes [emitted] [minimized] (name: react-vendors) @@ -617,8 +614,8 @@ asset app.js 184 bytes [emitted] [minimized] (name: app) asset lazy_js.js 159 bytes [emitted] [minimized] Entrypoint app 184 bytes = app.js Entrypoint page1 264 bytes = page1.js -Entrypoint react-vendors 2.45 KiB = runtime.js 2.24 KiB react-vendors.js 208 bytes -Entrypoint other-vendors 2.48 KiB = runtime.js 2.24 KiB other-vendors.js 243 bytes +Entrypoint react-vendors 2.46 KiB = runtime.js 2.26 KiB react-vendors.js 208 bytes +Entrypoint other-vendors 2.5 KiB = runtime.js 2.26 KiB other-vendors.js 243 bytes chunk (runtime: runtime) app.js (app) 116 bytes <{other-vendors}> <{runtime}> >{page1}< [initial] [rendered] > ./app.js app ./app.js 116 bytes [built] [code generated] @@ -665,11 +662,11 @@ chunk (runtime: runtime) react-vendors.js (react-vendors) 87 bytes ={runtime}= > harmony side effect evaluation react ./page1.js 2:0-26 harmony import specifier react ./page1.js 5:29-34 entry react react-vendors -chunk (runtime: runtime) runtime.js (runtime) 6.86 KiB ={other-vendors}= ={react-vendors}= >{app}< >{page1}< [entry] [rendered] +chunk (runtime: runtime) runtime.js (runtime) 6.85 KiB ={other-vendors}= ={react-vendors}= >{app}< >{page1}< [entry] [rendered] > ./other-vendors other-vendors > prop-types react-vendors > react react-vendors > react-dom react-vendors - runtime modules 6.86 KiB 9 modules -webpack 5.0.0 compiled successfully + runtime modules 6.85 KiB 9 modules +webpack 5.11.1 compiled successfully ``` diff --git a/examples/code-splitting-depend-on-simple/README.md b/examples/code-splitting-depend-on-simple/README.md index 11f6097b9..ce39033f2 100644 --- a/examples/code-splitting-depend-on-simple/README.md +++ b/examples/code-splitting-depend-on-simple/README.md @@ -140,6 +140,9 @@ module.exports = 'prop-types'; /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = __webpack_modules__; /******/ +/******/ // the startup function +/******/ // It's empty as some runtime module handles the default behavior +/******/ __webpack_require__.x = x => {} /************************************************************************/ /******/ /* webpack/runtime/compat get default export */ /******/ (() => { @@ -207,43 +210,10 @@ module.exports = 'prop-types'; /******/ /******/ // no HMR manifest /******/ -/******/ var checkDeferredModules = () => { -/******/ -/******/ }; -/******/ function checkDeferredModulesImpl() { -/******/ var result; -/******/ for(var i = 0; i < deferredModules.length; i++) { -/******/ var deferredModule = deferredModules[i]; -/******/ var fulfilled = true; -/******/ for(var j = 1; j < deferredModule.length; j++) { -/******/ var depId = deferredModule[j]; -/******/ if(installedChunks[depId] !== 0) fulfilled = false; -/******/ } -/******/ if(fulfilled) { -/******/ deferredModules.splice(i--, 1); -/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); -/******/ } -/******/ } -/******/ if(deferredModules.length === 0) { -/******/ __webpack_require__.x(); -/******/ __webpack_require__.x = () => { -/******/ -/******/ } -/******/ } -/******/ return result; -/******/ } -/******/ __webpack_require__.x = () => { -/******/ // reset startup function so it can be called again when more startup code is added -/******/ __webpack_require__.x = () => { -/******/ -/******/ } -/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice(); -/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]); -/******/ return (checkDeferredModules = checkDeferredModulesImpl)(); -/******/ }; +/******/ var checkDeferredModules = x => {}; /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime, executeModules] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -261,7 +231,7 @@ module.exports = 'prop-types'; /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -274,8 +244,35 @@ module.exports = 'prop-types'; /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ function checkDeferredModulesImpl() { +/******/ var result; +/******/ for(var i = 0; i < deferredModules.length; i++) { +/******/ var deferredModule = deferredModules[i]; +/******/ var fulfilled = true; +/******/ for(var j = 1; j < deferredModule.length; j++) { +/******/ var depId = deferredModule[j]; +/******/ if(installedChunks[depId] !== 0) fulfilled = false; +/******/ } +/******/ if(fulfilled) { +/******/ deferredModules.splice(i--, 1); +/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); +/******/ } +/******/ } +/******/ if(deferredModules.length === 0) { +/******/ __webpack_require__.x(); +/******/ __webpack_require__.x = x => {}; +/******/ } +/******/ return result; +/******/ } +/******/ var startup = __webpack_require__.x; +/******/ __webpack_require__.x = () => { +/******/ // reset startup function so it can be called again when more startup code is added +/******/ __webpack_require__.x = startup || (x => {}); +/******/ return (checkDeferredModules = checkDeferredModulesImpl)(); +/******/ }; /******/ })(); /******/ /************************************************************************/ @@ -295,15 +292,15 @@ module.exports = 'prop-types'; ## Unoptimized ``` -asset react-vendors.js 7.48 KiB [emitted] (name: react-vendors) +asset react-vendors.js 7.56 KiB [emitted] (name: react-vendors) asset app.js 1.43 KiB [emitted] (name: app) -chunk app.js (app) 139 bytes <{react-vendors}> [initial] [rendered] +chunk (runtime: react-vendors) app.js (app) 139 bytes <{react-vendors}> [initial] [rendered] > ./app.js app ./app.js 139 bytes [built] [code generated] [no exports] [used exports unknown] entry ./app.js app -chunk react-vendors.js (react-vendors) 87 bytes (javascript) 3.42 KiB (runtime) >{app}< [entry] [rendered] +chunk (runtime: react-vendors) react-vendors.js (react-vendors) 87 bytes (javascript) 3.42 KiB (runtime) >{app}< [entry] [rendered] > prop-types react-vendors > react react-vendors > react-dom react-vendors @@ -327,13 +324,13 @@ chunk react-vendors.js (react-vendors) 87 bytes (javascript) 3.42 KiB (runtime) harmony import specifier react ./app.js 5:12-17 cjs self exports reference ./node_modules/react.js 1:0-14 entry react react-vendors -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset react-vendors.js 1.04 KiB [emitted] [minimized] (name: react-vendors) +asset react-vendors.js 1.05 KiB [emitted] [minimized] (name: react-vendors) asset app.js 195 bytes [emitted] [minimized] (name: app) chunk (runtime: react-vendors) app.js (app) 139 bytes <{react-vendors}> [initial] [rendered] > ./app.js app @@ -341,11 +338,11 @@ chunk (runtime: react-vendors) app.js (app) 139 bytes <{react-vendors}> [initial [no exports] [no exports used] entry ./app.js app -chunk (runtime: react-vendors) react-vendors.js (react-vendors) 87 bytes (javascript) 3.16 KiB (runtime) >{app}< [entry] [rendered] +chunk (runtime: react-vendors) react-vendors.js (react-vendors) 87 bytes (javascript) 3.15 KiB (runtime) >{app}< [entry] [rendered] > prop-types react-vendors > react react-vendors > react-dom react-vendors - runtime modules 3.16 KiB 4 modules + runtime modules 3.15 KiB 4 modules cacheable modules 87 bytes ./node_modules/prop-types.js 31 bytes [built] [code generated] [used exports unknown] @@ -365,5 +362,5 @@ chunk (runtime: react-vendors) react-vendors.js (react-vendors) 87 bytes (javasc harmony import specifier react ./app.js 5:12-17 cjs self exports reference ./node_modules/react.js 1:0-14 entry react react-vendors -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/code-splitting-harmony/README.md b/examples/code-splitting-harmony/README.md index eb839c2b3..7ffefdb5c 100644 --- a/examples/code-splitting-harmony/README.md +++ b/examples/code-splitting-harmony/README.md @@ -35,19 +35,21 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) { \********************/ /*! namespace exports */ /*! exports [not provided] [no usage info] */ -/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, __webpack_require__.e, __webpack_require__.t, __webpack_require__.* */ +/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.r, __webpack_exports__, __webpack_require__.e, __webpack_require__.t, __webpack_require__.* */ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; __webpack_require__.r(__webpack_exports__); +/* harmony import */ var a__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! a */ 1); +/* harmony import */ var a__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(a__WEBPACK_IMPORTED_MODULE_0__); -__webpack_require__.e(/*! import() */ 644).then(__webpack_require__.t.bind(__webpack_require__, /*! b */ 2, 7)).then(function(b) { +__webpack_require__.e(/*! import() */ 644).then(__webpack_require__.t.bind(__webpack_require__, /*! b */ 3, 23)).then(function(b) { console.log("b loaded", b); }) function loadC(name) { - return __webpack_require__(1)("./" + name); + return __webpack_require__(2)("./" + name); } Promise.all([loadC("1"), loadC("2")]).then(function(arr) { @@ -57,6 +59,17 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) { /***/ }), /* 1 */ +/*!***************************!*\ + !*** ./node_modules/a.js ***! + \***************************/ +/*! unknown exports (runtime-defined) */ +/*! runtime requirements: */ +/***/ (() => { + +// module a + +/***/ }), +/* 2 */ /*!********************************************************!*\ !*** ./node_modules/c/ lazy ^\.\/.*$ namespace object ***! \********************************************************/ @@ -67,19 +80,19 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) { var map = { "./1": [ - 3, + 4, 346 ], "./1.js": [ - 3, + 4, 346 ], "./2": [ - 4, + 5, 98 ], "./2.js": [ - 4, + 5, 98 ] }; @@ -98,7 +111,7 @@ function webpackAsyncContext(req) { }); } webpackAsyncContext.keys = () => Object.keys(map); -webpackAsyncContext.id = 1; +webpackAsyncContext.id = 2; module.exports = webpackAsyncContext; /***/ }) @@ -136,22 +149,41 @@ module.exports = webpackAsyncContext; /******/ __webpack_require__.m = __webpack_modules__; /******/ /************************************************************************/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => module['default'] : +/******/ () => module; +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ /******/ /* webpack/runtime/create fake namespace object */ /******/ (() => { +/******/ var getProto = Object.getPrototypeOf ? (obj) => Object.getPrototypeOf(obj) : (obj) => obj.__proto__; +/******/ var leafPrototypes; /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object +/******/ // mode & 16: return value when it's Promise-like /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = this(value); /******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ if(typeof value === 'object' && value) { +/******/ if((mode & 4) && value.__esModule) return value; +/******/ if((mode & 16) && typeof value.then === 'function') return value; +/******/ } /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ var def = {}; -/******/ if(mode & 2 && typeof value == 'object' && value) { -/******/ for(const key in value) def[key] = () => value[key]; +/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)]; +/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) { +/******/ Object.getOwnPropertyNames(current).forEach(key => def[key] = () => value[key]); /******/ } /******/ def['default'] = () => value; /******/ __webpack_require__.d(ns, def); @@ -324,7 +356,7 @@ module.exports = webpackAsyncContext; /******/ // no deferred startup /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -342,7 +374,7 @@ module.exports = webpackAsyncContext; /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -350,8 +382,10 @@ module.exports = webpackAsyncContext; /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ // no deferred startup /******/ })(); /******/ /************************************************************************/ @@ -373,44 +407,44 @@ module.exports = webpackAsyncContext; ## Unoptimized ``` -asset output.js 12.2 KiB [emitted] (name: main) +asset output.js 13.7 KiB [emitted] (name: main) asset 346.output.js 296 bytes [emitted] asset 98.output.js 295 bytes [emitted] asset 644.output.js 288 bytes [emitted] -chunk 98.output.js 13 bytes [rendered] +chunk (runtime: main) 98.output.js 13 bytes [rendered] > ./2 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2 > ./2.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2.js ./node_modules/c/2.js 13 bytes [optional] [built] [code generated] [used exports unknown] context element ./2 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2 context element ./2.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2.js -chunk output.js (main) 403 bytes (javascript) 6.08 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 414 bytes (javascript) 6.9 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 6.08 KiB 9 modules - dependent modules 160 bytes [dependent] 1 module + runtime modules 6.9 KiB 10 modules + dependent modules 171 bytes [dependent] 2 modules ./example.js 243 bytes [built] [code generated] [no exports] [used exports unknown] entry ./example.js main -chunk 346.output.js 13 bytes [rendered] +chunk (runtime: main) 346.output.js 13 bytes [rendered] > ./1 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./1 > ./1.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./1.js ./node_modules/c/1.js 13 bytes [optional] [built] [code generated] [used exports unknown] context element ./1 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./1 context element ./1.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./1.js -chunk 644.output.js 11 bytes [rendered] +chunk (runtime: main) 644.output.js 11 bytes [rendered] > b ./example.js 3:0-11 ./node_modules/b.js 11 bytes [built] [code generated] [used exports unknown] import() b ./example.js 3:0-11 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset output.js 2.62 KiB [emitted] [minimized] (name: main) +asset output.js 2.88 KiB [emitted] [minimized] (name: main) asset 346.output.js 69 bytes [emitted] [minimized] asset 644.output.js 69 bytes [emitted] [minimized] asset 98.output.js 67 bytes [emitted] [minimized] @@ -421,9 +455,9 @@ chunk (runtime: main) 98.output.js 13 bytes [rendered] [used exports unknown] context element ./2 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2 context element ./2.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2.js -chunk (runtime: main) output.js (main) 403 bytes (javascript) 6.08 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 403 bytes (javascript) 6.64 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 6.08 KiB 9 modules + runtime modules 6.64 KiB 9 modules dependent modules 160 bytes [dependent] 1 module ./example.js 243 bytes [built] [code generated] [no exports] @@ -441,5 +475,5 @@ chunk (runtime: main) 644.output.js 11 bytes [rendered] ./node_modules/b.js 11 bytes [built] [code generated] [used exports unknown] import() b ./example.js 3:0-11 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/code-splitting-native-import-context-filter/README.md b/examples/code-splitting-native-import-context-filter/README.md index e89a01968..05287021f 100644 --- a/examples/code-splitting-native-import-context-filter/README.md +++ b/examples/code-splitting-native-import-context-filter/README.md @@ -302,7 +302,7 @@ module.exports = webpackAsyncContext; /******/ // no deferred startup /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -320,7 +320,7 @@ module.exports = webpackAsyncContext; /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -328,8 +328,10 @@ module.exports = webpackAsyncContext; /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ // no deferred startup /******/ })(); /******/ /************************************************************************/ @@ -373,18 +375,18 @@ getTemplate("baz.noimport"); ## Unoptimized ``` -asset output.js 10.9 KiB [emitted] (name: main) +asset output.js 11.1 KiB [emitted] (name: main) asset 398.output.js 856 bytes [emitted] asset 544.output.js 856 bytes [emitted] asset 718.output.js 856 bytes [emitted] -chunk output.js (main) 597 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 597 bytes (javascript) 5.54 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 5.42 KiB 8 modules + runtime modules 5.54 KiB 8 modules dependent modules 160 bytes [dependent] 1 module ./example.js 437 bytes [built] [code generated] [used exports unknown] entry ./example.js main -chunk 398.output.js 38 bytes [rendered] +chunk (runtime: main) 398.output.js 38 bytes [rendered] > ./bar ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar > ./bar.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js ./templates/bar.js 38 bytes [optional] [built] [code generated] @@ -392,7 +394,7 @@ chunk 398.output.js 38 bytes [rendered] [used exports unknown] context element ./bar ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar context element ./bar.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js -chunk 544.output.js 38 bytes [rendered] +chunk (runtime: main) 544.output.js 38 bytes [rendered] > ./baz ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz > ./baz.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js ./templates/baz.js 38 bytes [optional] [built] [code generated] @@ -400,7 +402,7 @@ chunk 544.output.js 38 bytes [rendered] [used exports unknown] context element ./baz ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz context element ./baz.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js -chunk 718.output.js 38 bytes [rendered] +chunk (runtime: main) 718.output.js 38 bytes [rendered] > ./foo ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo > ./foo.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js ./templates/foo.js 38 bytes [optional] [built] [code generated] @@ -408,19 +410,19 @@ chunk 718.output.js 38 bytes [rendered] [used exports unknown] context element ./foo ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo context element ./foo.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset output.js 2.41 KiB [emitted] [minimized] (name: main) +asset output.js 2.47 KiB [emitted] [minimized] (name: main) asset 398.output.js 130 bytes [emitted] [minimized] asset 544.output.js 130 bytes [emitted] [minimized] asset 718.output.js 130 bytes [emitted] [minimized] -chunk (runtime: main) output.js (main) 597 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 597 bytes (javascript) 5.54 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 5.42 KiB 8 modules + runtime modules 5.54 KiB 8 modules dependent modules 160 bytes [dependent] 1 module ./example.js 437 bytes [built] [code generated] [no exports used] @@ -446,5 +448,5 @@ chunk (runtime: main) 718.output.js 38 bytes [rendered] [exports: default] context element ./foo ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo context element ./foo.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/code-splitting-native-import-context/README.md b/examples/code-splitting-native-import-context/README.md index 18d768896..e530c9b9d 100644 --- a/examples/code-splitting-native-import-context/README.md +++ b/examples/code-splitting-native-import-context/README.md @@ -291,7 +291,7 @@ module.exports = webpackAsyncContext; /******/ // no deferred startup /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -309,7 +309,7 @@ module.exports = webpackAsyncContext; /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -317,8 +317,10 @@ module.exports = webpackAsyncContext; /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ // no deferred startup /******/ })(); /******/ /************************************************************************/ @@ -360,18 +362,18 @@ getTemplate("baz"); ## Unoptimized ``` -asset output.js 10.7 KiB [emitted] (name: main) +asset output.js 10.9 KiB [emitted] (name: main) asset 398.output.js 856 bytes [emitted] asset 544.output.js 856 bytes [emitted] asset 718.output.js 856 bytes [emitted] -chunk output.js (main) 441 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 441 bytes (javascript) 5.54 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 5.42 KiB 8 modules + runtime modules 5.54 KiB 8 modules dependent modules 160 bytes [dependent] 1 module ./example.js 281 bytes [built] [code generated] [used exports unknown] entry ./example.js main -chunk 398.output.js 38 bytes [rendered] +chunk (runtime: main) 398.output.js 38 bytes [rendered] > ./bar ./templates/ lazy ^\.\/.*$ namespace object ./bar > ./bar.js ./templates/ lazy ^\.\/.*$ namespace object ./bar.js ./templates/bar.js 38 bytes [optional] [built] [code generated] @@ -379,7 +381,7 @@ chunk 398.output.js 38 bytes [rendered] [used exports unknown] context element ./bar ./templates/ lazy ^\.\/.*$ namespace object ./bar context element ./bar.js ./templates/ lazy ^\.\/.*$ namespace object ./bar.js -chunk 544.output.js 38 bytes [rendered] +chunk (runtime: main) 544.output.js 38 bytes [rendered] > ./baz ./templates/ lazy ^\.\/.*$ namespace object ./baz > ./baz.js ./templates/ lazy ^\.\/.*$ namespace object ./baz.js ./templates/baz.js 38 bytes [optional] [built] [code generated] @@ -387,7 +389,7 @@ chunk 544.output.js 38 bytes [rendered] [used exports unknown] context element ./baz ./templates/ lazy ^\.\/.*$ namespace object ./baz context element ./baz.js ./templates/ lazy ^\.\/.*$ namespace object ./baz.js -chunk 718.output.js 38 bytes [rendered] +chunk (runtime: main) 718.output.js 38 bytes [rendered] > ./foo ./templates/ lazy ^\.\/.*$ namespace object ./foo > ./foo.js ./templates/ lazy ^\.\/.*$ namespace object ./foo.js ./templates/foo.js 38 bytes [optional] [built] [code generated] @@ -395,19 +397,19 @@ chunk 718.output.js 38 bytes [rendered] [used exports unknown] context element ./foo ./templates/ lazy ^\.\/.*$ namespace object ./foo context element ./foo.js ./templates/ lazy ^\.\/.*$ namespace object ./foo.js -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset output.js 2.37 KiB [emitted] [minimized] (name: main) +asset output.js 2.43 KiB [emitted] [minimized] (name: main) asset 398.output.js 130 bytes [emitted] [minimized] asset 544.output.js 130 bytes [emitted] [minimized] asset 718.output.js 130 bytes [emitted] [minimized] -chunk (runtime: main) output.js (main) 441 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 441 bytes (javascript) 5.54 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 5.42 KiB 8 modules + runtime modules 5.54 KiB 8 modules dependent modules 160 bytes [dependent] 1 module ./example.js 281 bytes [built] [code generated] [no exports used] @@ -433,5 +435,5 @@ chunk (runtime: main) 718.output.js 38 bytes [rendered] [exports: default] context element ./foo ./templates/ lazy ^\.\/.*$ namespace object ./foo context element ./foo.js ./templates/ lazy ^\.\/.*$ namespace object ./foo.js -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/code-splitting-specify-chunk-name/README.md b/examples/code-splitting-specify-chunk-name/README.md index 464dfa6ad..a14fb23cd 100644 --- a/examples/code-splitting-specify-chunk-name/README.md +++ b/examples/code-splitting-specify-chunk-name/README.md @@ -283,7 +283,7 @@ module.exports = webpackAsyncContext; /******/ // no deferred startup /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -301,7 +301,7 @@ module.exports = webpackAsyncContext; /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -309,8 +309,10 @@ module.exports = webpackAsyncContext; /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ // no deferred startup /******/ })(); /******/ /************************************************************************/ @@ -352,18 +354,18 @@ __webpack_require__(1)("./ba" + createContextVar).then(function(bar) { ## Unoptimized ``` -asset output.js 11.1 KiB [emitted] (name: main) +asset output.js 11.2 KiB [emitted] (name: main) asset 548.output.js 856 bytes [emitted] (name: chunk-bar-baz2) asset 791.output.js 856 bytes [emitted] (name: chunk-bar-baz0) asset 930.output.js 856 bytes [emitted] (name: chunk-foo) -chunk output.js (main) 565 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 565 bytes (javascript) 5.54 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 5.42 KiB 8 modules + runtime modules 5.54 KiB 8 modules dependent modules 160 bytes [dependent] 1 module ./example.js 405 bytes [built] [code generated] [used exports unknown] entry ./example.js main -chunk 548.output.js (chunk-bar-baz2) 38 bytes [rendered] +chunk (runtime: main) 548.output.js (chunk-bar-baz2) 38 bytes [rendered] > ./baz ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz > ./baz.js ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz.js ./templates/baz.js 38 bytes [optional] [built] [code generated] @@ -371,7 +373,7 @@ chunk 548.output.js (chunk-bar-baz2) 38 bytes [rendered] [used exports unknown] context element ./baz ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz context element ./baz.js ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz.js -chunk 791.output.js (chunk-bar-baz0) 38 bytes [rendered] +chunk (runtime: main) 791.output.js (chunk-bar-baz0) 38 bytes [rendered] > ./bar ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar > ./bar.js ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar.js ./templates/bar.js 38 bytes [optional] [built] [code generated] @@ -379,7 +381,7 @@ chunk 791.output.js (chunk-bar-baz0) 38 bytes [rendered] [used exports unknown] context element ./bar ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar context element ./bar.js ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar.js -chunk 930.output.js (chunk-foo) 38 bytes [rendered] +chunk (runtime: main) 930.output.js (chunk-foo) 38 bytes [rendered] > ./templates/foo ./example.js 1:0-62 > ./example.js 5:0-8:16 ./templates/foo.js 38 bytes [built] [code generated] @@ -387,19 +389,19 @@ chunk 930.output.js (chunk-foo) 38 bytes [rendered] [used exports unknown] import() ./templates/foo ./example.js 1:0-62 cjs require ./templates/foo ./example.js 6:11-37 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset output.js 2.39 KiB [emitted] [minimized] (name: main) +asset output.js 2.44 KiB [emitted] [minimized] (name: main) asset 548.output.js 130 bytes [emitted] [minimized] (name: chunk-bar-baz2) asset 791.output.js 130 bytes [emitted] [minimized] (name: chunk-bar-baz0) asset 930.output.js 130 bytes [emitted] [minimized] (name: chunk-foo) -chunk (runtime: main) output.js (main) 565 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 565 bytes (javascript) 5.54 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 5.42 KiB 8 modules + runtime modules 5.54 KiB 8 modules dependent modules 160 bytes [dependent] 1 module ./example.js 405 bytes [built] [code generated] [no exports used] @@ -425,5 +427,5 @@ chunk (runtime: main) 930.output.js (chunk-foo) 38 bytes [rendered] [exports: default] import() ./templates/foo ./example.js 1:0-62 cjs require ./templates/foo ./example.js 6:11-37 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/code-splitting/README.md b/examples/code-splitting/README.md index a1c055e20..d1391a937 100644 --- a/examples/code-splitting/README.md +++ b/examples/code-splitting/README.md @@ -238,7 +238,7 @@ require.ensure(["c"], function(require) { /******/ // no deferred startup /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -256,7 +256,7 @@ require.ensure(["c"], function(require) { /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -264,8 +264,10 @@ require.ensure(["c"], function(require) { /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ // no deferred startup /******/ })(); /******/ /************************************************************************/ @@ -335,16 +337,16 @@ Minimized ## Unoptimized ``` -asset output.js 9.23 KiB [emitted] (name: main) +asset output.js 9.37 KiB [emitted] (name: main) asset 796.output.js 528 bytes [emitted] -chunk output.js (main) 161 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 161 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules dependent modules 22 bytes [dependent] 2 modules ./example.js 139 bytes [built] [code generated] [used exports unknown] entry ./example.js main -chunk 796.output.js 22 bytes [rendered] +chunk (runtime: main) 796.output.js 22 bytes [rendered] > ./example.js 3:0-6:2 ./node_modules/c.js 11 bytes [built] [code generated] [used exports unknown] @@ -352,17 +354,17 @@ chunk 796.output.js 22 bytes [rendered] ./node_modules/d.js 11 bytes [built] [code generated] [used exports unknown] cjs require d ./example.js 5:12-24 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset output.js 1.68 KiB [emitted] [minimized] (name: main) +asset output.js 1.74 KiB [emitted] [minimized] (name: main) asset 796.output.js 80 bytes [emitted] [minimized] -chunk (runtime: main) output.js (main) 161 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 161 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules dependent modules 22 bytes [dependent] 2 modules ./example.js 139 bytes [built] [code generated] [no exports used] @@ -375,5 +377,5 @@ chunk (runtime: main) 796.output.js 22 bytes [rendered] ./node_modules/d.js 11 bytes [built] [code generated] [used exports unknown] cjs require d ./example.js 5:12-24 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/coffee-script/README.md b/examples/coffee-script/README.md index 4fa449db3..270fea3e5 100644 --- a/examples/coffee-script/README.md +++ b/examples/coffee-script/README.md @@ -116,13 +116,13 @@ console.log(__webpack_require__(/*! ./cup1 */ 1)); ``` asset output.js 2.09 KiB [emitted] (name: main) -chunk output.js (main) 206 bytes [entry] [rendered] +chunk (runtime: main) output.js (main) 206 bytes [entry] [rendered] > ./example.js main dependent modules 175 bytes [dependent] 2 modules ./example.js 31 bytes [built] [code generated] [used exports unknown] entry ./example.js main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode @@ -135,5 +135,5 @@ chunk (runtime: main) output.js (main) 206 bytes [entry] [rendered] ./example.js 31 bytes [built] [code generated] [no exports used] entry ./example.js main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/common-chunk-and-vendor-chunk/README.md b/examples/common-chunk-and-vendor-chunk/README.md index 5d84eb0ff..8434b1537 100644 --- a/examples/common-chunk-and-vendor-chunk/README.md +++ b/examples/common-chunk-and-vendor-chunk/README.md @@ -214,6 +214,9 @@ module.exports = "utility1"; /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = __webpack_modules__; /******/ +/******/ // the startup function +/******/ // It's empty as some runtime module handles the default behavior +/******/ __webpack_require__.x = x => {} /************************************************************************/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { @@ -244,43 +247,10 @@ module.exports = "utility1"; /******/ /******/ // no HMR manifest /******/ -/******/ var checkDeferredModules = () => { -/******/ -/******/ }; -/******/ function checkDeferredModulesImpl() { -/******/ var result; -/******/ for(var i = 0; i < deferredModules.length; i++) { -/******/ var deferredModule = deferredModules[i]; -/******/ var fulfilled = true; -/******/ for(var j = 1; j < deferredModule.length; j++) { -/******/ var depId = deferredModule[j]; -/******/ if(installedChunks[depId] !== 0) fulfilled = false; -/******/ } -/******/ if(fulfilled) { -/******/ deferredModules.splice(i--, 1); -/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); -/******/ } -/******/ } -/******/ if(deferredModules.length === 0) { -/******/ __webpack_require__.x(); -/******/ __webpack_require__.x = () => { -/******/ -/******/ } -/******/ } -/******/ return result; -/******/ } -/******/ __webpack_require__.x = () => { -/******/ // reset startup function so it can be called again when more startup code is added -/******/ __webpack_require__.x = () => { -/******/ -/******/ } -/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice(); -/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]); -/******/ return (checkDeferredModules = checkDeferredModulesImpl)(); -/******/ }; +/******/ var checkDeferredModules = x => {}; /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime, executeModules] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -298,7 +268,7 @@ module.exports = "utility1"; /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -311,8 +281,35 @@ module.exports = "utility1"; /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ function checkDeferredModulesImpl() { +/******/ var result; +/******/ for(var i = 0; i < deferredModules.length; i++) { +/******/ var deferredModule = deferredModules[i]; +/******/ var fulfilled = true; +/******/ for(var j = 1; j < deferredModule.length; j++) { +/******/ var depId = deferredModule[j]; +/******/ if(installedChunks[depId] !== 0) fulfilled = false; +/******/ } +/******/ if(fulfilled) { +/******/ deferredModules.splice(i--, 1); +/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); +/******/ } +/******/ } +/******/ if(deferredModules.length === 0) { +/******/ __webpack_require__.x(); +/******/ __webpack_require__.x = x => {}; +/******/ } +/******/ return result; +/******/ } +/******/ var startup = __webpack_require__.x; +/******/ __webpack_require__.x = () => { +/******/ // reset startup function so it can be called again when more startup code is added +/******/ __webpack_require__.x = startup || (x => {}); +/******/ return (checkDeferredModules = checkDeferredModulesImpl)(); +/******/ }; /******/ })(); /******/ /************************************************************************/ @@ -384,6 +381,9 @@ module.exports = "pageB"; /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = __webpack_modules__; /******/ +/******/ // the startup function +/******/ // It's empty as some runtime module handles the default behavior +/******/ __webpack_require__.x = x => {} /************************************************************************/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { @@ -414,43 +414,10 @@ module.exports = "pageB"; /******/ /******/ // no HMR manifest /******/ -/******/ var checkDeferredModules = () => { -/******/ -/******/ }; -/******/ function checkDeferredModulesImpl() { -/******/ var result; -/******/ for(var i = 0; i < deferredModules.length; i++) { -/******/ var deferredModule = deferredModules[i]; -/******/ var fulfilled = true; -/******/ for(var j = 1; j < deferredModule.length; j++) { -/******/ var depId = deferredModule[j]; -/******/ if(installedChunks[depId] !== 0) fulfilled = false; -/******/ } -/******/ if(fulfilled) { -/******/ deferredModules.splice(i--, 1); -/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); -/******/ } -/******/ } -/******/ if(deferredModules.length === 0) { -/******/ __webpack_require__.x(); -/******/ __webpack_require__.x = () => { -/******/ -/******/ } -/******/ } -/******/ return result; -/******/ } -/******/ __webpack_require__.x = () => { -/******/ // reset startup function so it can be called again when more startup code is added -/******/ __webpack_require__.x = () => { -/******/ -/******/ } -/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice(); -/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]); -/******/ return (checkDeferredModules = checkDeferredModulesImpl)(); -/******/ }; +/******/ var checkDeferredModules = x => {}; /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime, executeModules] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -468,7 +435,7 @@ module.exports = "pageB"; /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -481,8 +448,35 @@ module.exports = "pageB"; /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ function checkDeferredModulesImpl() { +/******/ var result; +/******/ for(var i = 0; i < deferredModules.length; i++) { +/******/ var deferredModule = deferredModules[i]; +/******/ var fulfilled = true; +/******/ for(var j = 1; j < deferredModule.length; j++) { +/******/ var depId = deferredModule[j]; +/******/ if(installedChunks[depId] !== 0) fulfilled = false; +/******/ } +/******/ if(fulfilled) { +/******/ deferredModules.splice(i--, 1); +/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); +/******/ } +/******/ } +/******/ if(deferredModules.length === 0) { +/******/ __webpack_require__.x(); +/******/ __webpack_require__.x = x => {}; +/******/ } +/******/ return result; +/******/ } +/******/ var startup = __webpack_require__.x; +/******/ __webpack_require__.x = () => { +/******/ // reset startup function so it can be called again when more startup code is added +/******/ __webpack_require__.x = startup || (x => {}); +/******/ return (checkDeferredModules = checkDeferredModulesImpl)(); +/******/ }; /******/ })(); /******/ /************************************************************************/ @@ -552,6 +546,9 @@ module.exports = "pageC"; /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = __webpack_modules__; /******/ +/******/ // the startup function +/******/ // It's empty as some runtime module handles the default behavior +/******/ __webpack_require__.x = x => {} /************************************************************************/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { @@ -582,43 +579,10 @@ module.exports = "pageC"; /******/ /******/ // no HMR manifest /******/ -/******/ var checkDeferredModules = () => { -/******/ -/******/ }; -/******/ function checkDeferredModulesImpl() { -/******/ var result; -/******/ for(var i = 0; i < deferredModules.length; i++) { -/******/ var deferredModule = deferredModules[i]; -/******/ var fulfilled = true; -/******/ for(var j = 1; j < deferredModule.length; j++) { -/******/ var depId = deferredModule[j]; -/******/ if(installedChunks[depId] !== 0) fulfilled = false; -/******/ } -/******/ if(fulfilled) { -/******/ deferredModules.splice(i--, 1); -/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); -/******/ } -/******/ } -/******/ if(deferredModules.length === 0) { -/******/ __webpack_require__.x(); -/******/ __webpack_require__.x = () => { -/******/ -/******/ } -/******/ } -/******/ return result; -/******/ } -/******/ __webpack_require__.x = () => { -/******/ // reset startup function so it can be called again when more startup code is added -/******/ __webpack_require__.x = () => { -/******/ -/******/ } -/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice(); -/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]); -/******/ return (checkDeferredModules = checkDeferredModulesImpl)(); -/******/ }; +/******/ var checkDeferredModules = x => {}; /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime, executeModules] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -636,7 +600,7 @@ module.exports = "pageC"; /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -649,8 +613,35 @@ module.exports = "pageC"; /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ function checkDeferredModulesImpl() { +/******/ var result; +/******/ for(var i = 0; i < deferredModules.length; i++) { +/******/ var deferredModule = deferredModules[i]; +/******/ var fulfilled = true; +/******/ for(var j = 1; j < deferredModule.length; j++) { +/******/ var depId = deferredModule[j]; +/******/ if(installedChunks[depId] !== 0) fulfilled = false; +/******/ } +/******/ if(fulfilled) { +/******/ deferredModules.splice(i--, 1); +/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); +/******/ } +/******/ } +/******/ if(deferredModules.length === 0) { +/******/ __webpack_require__.x(); +/******/ __webpack_require__.x = x => {}; +/******/ } +/******/ return result; +/******/ } +/******/ var startup = __webpack_require__.x; +/******/ __webpack_require__.x = () => { +/******/ // reset startup function so it can be called again when more startup code is added +/******/ __webpack_require__.x = startup || (x => {}); +/******/ return (checkDeferredModules = checkDeferredModulesImpl)(); +/******/ }; /******/ })(); /******/ /************************************************************************/ @@ -673,80 +664,13 @@ module.exports = "pageC"; assets by chunk 768 bytes (id hint: commons) asset commons-utility2_js.js 384 bytes [emitted] (id hint: commons) asset commons-utility3_js.js 384 bytes [emitted] (id hint: commons) -asset pageA.js 5.92 KiB [emitted] (name: pageA) -asset pageB.js 5.65 KiB [emitted] (name: pageB) -asset pageC.js 5.59 KiB [emitted] (name: pageC) +asset pageA.js 6 KiB [emitted] (name: pageA) +asset pageB.js 5.73 KiB [emitted] (name: pageB) +asset pageC.js 5.67 KiB [emitted] (name: pageC) asset vendor.js 737 bytes [emitted] (name: vendor) (id hint: vendor) -Entrypoint pageA 7.02 KiB = vendor.js 737 bytes commons-utility2_js.js 384 bytes pageA.js 5.92 KiB -Entrypoint pageB 7.12 KiB = vendor.js 737 bytes commons-utility2_js.js 384 bytes commons-utility3_js.js 384 bytes pageB.js 5.65 KiB -Entrypoint pageC 6.34 KiB = commons-utility2_js.js 384 bytes commons-utility3_js.js 384 bytes pageC.js 5.59 KiB -chunk commons-utility2_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons) - > ./pageA pageA - > ./pageB pageB - > ./pageC pageC - ./utility2.js 28 bytes [built] [code generated] - [used exports unknown] - cjs require ./utility2 ./pageA.js 3:15-36 - cjs require ./utility2 ./pageB.js 2:15-36 - cjs require ./utility2 ./pageC.js 1:15-36 - cjs self exports reference ./utility2.js 1:0-14 -chunk commons-utility3_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons) - > ./pageB pageB - > ./pageC pageC - ./utility3.js 28 bytes [built] [code generated] - [used exports unknown] - cjs require ./utility3 ./pageB.js 3:15-36 - cjs require ./utility3 ./pageC.js 2:15-36 - cjs self exports reference ./utility3.js 1:0-14 -chunk pageA.js (pageA) 165 bytes (javascript) 2.61 KiB (runtime) [entry] [rendered] - > ./pageA pageA - runtime modules 2.61 KiB 2 modules - dependent modules 28 bytes [dependent] 1 module - ./pageA.js 137 bytes [built] [code generated] - [used exports unknown] - cjs self exports reference ./pageA.js 5:0-14 - entry ./pageA pageA -chunk pageB.js (pageB) 137 bytes (javascript) 2.63 KiB (runtime) [entry] [rendered] - > ./pageB pageB - runtime modules 2.63 KiB 2 modules - ./pageB.js 137 bytes [built] [code generated] - [used exports unknown] - cjs self exports reference ./pageB.js 5:0-14 - entry ./pageB pageB -chunk pageC.js (pageC) 102 bytes (javascript) 2.62 KiB (runtime) [entry] [rendered] - > ./pageC pageC - runtime modules 2.62 KiB 2 modules - ./pageC.js 102 bytes [built] [code generated] - [used exports unknown] - cjs self exports reference ./pageC.js 4:0-14 - entry ./pageC pageC -chunk vendor.js (vendor) (id hint: vendor) 54 bytes [initial] [rendered] split chunk (cache group: vendor) (name: vendor) - > ./pageA pageA - > ./pageB pageB - ./node_modules/vendor1.js 27 bytes [built] [code generated] - [used exports unknown] - cjs self exports reference ./node_modules/vendor1.js 1:0-14 - cjs require vendor1 ./pageA.js 1:14-32 - ./node_modules/vendor2.js 27 bytes [built] [code generated] - [used exports unknown] - cjs self exports reference ./node_modules/vendor2.js 1:0-14 - cjs require vendor2 ./pageB.js 1:14-32 -webpack 5.0.0 compiled successfully -``` - -## Production mode - -``` -assets by chunk 212 bytes (id hint: commons) - asset commons-utility2_js.js 106 bytes [emitted] [minimized] (id hint: commons) - asset commons-utility3_js.js 106 bytes [emitted] [minimized] (id hint: commons) -asset pageA.js 900 bytes [emitted] [minimized] (name: pageA) -asset pageB.js 892 bytes [emitted] [minimized] (name: pageB) -asset pageC.js 876 bytes [emitted] [minimized] (name: pageC) -asset vendor.js 121 bytes [emitted] [minimized] (name: vendor) (id hint: vendor) -Entrypoint pageA 1.1 KiB = vendor.js 121 bytes commons-utility2_js.js 106 bytes pageA.js 900 bytes -Entrypoint pageB 1.2 KiB = vendor.js 121 bytes commons-utility2_js.js 106 bytes commons-utility3_js.js 106 bytes pageB.js 892 bytes -Entrypoint pageC 1.06 KiB = commons-utility2_js.js 106 bytes commons-utility3_js.js 106 bytes pageC.js 876 bytes +Entrypoint pageA 7.09 KiB = vendor.js 737 bytes commons-utility2_js.js 384 bytes pageA.js 6 KiB +Entrypoint pageB 7.2 KiB = vendor.js 737 bytes commons-utility2_js.js 384 bytes commons-utility3_js.js 384 bytes pageB.js 5.73 KiB +Entrypoint pageC 6.42 KiB = commons-utility2_js.js 384 bytes commons-utility3_js.js 384 bytes pageC.js 5.67 KiB chunk (runtime: pageA, pageB, pageC) commons-utility2_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons) > ./pageA pageA > ./pageB pageB @@ -765,9 +689,76 @@ chunk (runtime: pageB, pageC) commons-utility3_js.js (id hint: commons) 28 bytes cjs require ./utility3 ./pageB.js 3:15-36 cjs require ./utility3 ./pageC.js 2:15-36 cjs self exports reference ./utility3.js 1:0-14 -chunk (runtime: pageA) pageA.js (pageA) 165 bytes (javascript) 2.61 KiB (runtime) [entry] [rendered] +chunk (runtime: pageA) pageA.js (pageA) 165 bytes (javascript) 2.6 KiB (runtime) [entry] [rendered] > ./pageA pageA + runtime modules 2.6 KiB 2 modules + dependent modules 28 bytes [dependent] 1 module + ./pageA.js 137 bytes [built] [code generated] + [used exports unknown] + cjs self exports reference ./pageA.js 5:0-14 + entry ./pageA pageA +chunk (runtime: pageB) pageB.js (pageB) 137 bytes (javascript) 2.62 KiB (runtime) [entry] [rendered] + > ./pageB pageB + runtime modules 2.62 KiB 2 modules + ./pageB.js 137 bytes [built] [code generated] + [used exports unknown] + cjs self exports reference ./pageB.js 5:0-14 + entry ./pageB pageB +chunk (runtime: pageC) pageC.js (pageC) 102 bytes (javascript) 2.61 KiB (runtime) [entry] [rendered] + > ./pageC pageC runtime modules 2.61 KiB 2 modules + ./pageC.js 102 bytes [built] [code generated] + [used exports unknown] + cjs self exports reference ./pageC.js 4:0-14 + entry ./pageC pageC +chunk (runtime: pageA, pageB) vendor.js (vendor) (id hint: vendor) 54 bytes [initial] [rendered] split chunk (cache group: vendor) (name: vendor) + > ./pageA pageA + > ./pageB pageB + ./node_modules/vendor1.js 27 bytes [built] [code generated] + [used exports unknown] + cjs self exports reference ./node_modules/vendor1.js 1:0-14 + cjs require vendor1 ./pageA.js 1:14-32 + ./node_modules/vendor2.js 27 bytes [built] [code generated] + [used exports unknown] + cjs self exports reference ./node_modules/vendor2.js 1:0-14 + cjs require vendor2 ./pageB.js 1:14-32 +webpack 5.11.1 compiled successfully +``` + +## Production mode + +``` +assets by chunk 212 bytes (id hint: commons) + asset commons-utility2_js.js 106 bytes [emitted] [minimized] (id hint: commons) + asset commons-utility3_js.js 106 bytes [emitted] [minimized] (id hint: commons) +asset pageA.js 907 bytes [emitted] [minimized] (name: pageA) +asset pageB.js 899 bytes [emitted] [minimized] (name: pageB) +asset pageC.js 883 bytes [emitted] [minimized] (name: pageC) +asset vendor.js 121 bytes [emitted] [minimized] (name: vendor) (id hint: vendor) +Entrypoint pageA 1.11 KiB = vendor.js 121 bytes commons-utility2_js.js 106 bytes pageA.js 907 bytes +Entrypoint pageB 1.2 KiB = vendor.js 121 bytes commons-utility2_js.js 106 bytes commons-utility3_js.js 106 bytes pageB.js 899 bytes +Entrypoint pageC 1.07 KiB = commons-utility2_js.js 106 bytes commons-utility3_js.js 106 bytes pageC.js 883 bytes +chunk (runtime: pageA, pageB, pageC) commons-utility2_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons) + > ./pageA pageA + > ./pageB pageB + > ./pageC pageC + ./utility2.js 28 bytes [built] [code generated] + [used exports unknown] + cjs require ./utility2 ./pageA.js 3:15-36 + cjs require ./utility2 ./pageB.js 2:15-36 + cjs require ./utility2 ./pageC.js 1:15-36 + cjs self exports reference ./utility2.js 1:0-14 +chunk (runtime: pageB, pageC) commons-utility3_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons) + > ./pageB pageB + > ./pageC pageC + ./utility3.js 28 bytes [built] [code generated] + [used exports unknown] + cjs require ./utility3 ./pageB.js 3:15-36 + cjs require ./utility3 ./pageC.js 2:15-36 + cjs self exports reference ./utility3.js 1:0-14 +chunk (runtime: pageA) pageA.js (pageA) 165 bytes (javascript) 2.6 KiB (runtime) [entry] [rendered] + > ./pageA pageA + runtime modules 2.6 KiB 2 modules dependent modules 28 bytes [dependent] 1 module ./pageA.js 137 bytes [built] [code generated] [used exports unknown] @@ -798,5 +789,5 @@ chunk (runtime: pageA, pageB) vendor.js (vendor) (id hint: vendor) 54 bytes [ini [used exports unknown] cjs self exports reference ./node_modules/vendor2.js 1:0-14 cjs require vendor2 ./pageB.js 1:14-32 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/common-chunk-grandchildren/README.md b/examples/common-chunk-grandchildren/README.md index 11df729b2..b4491f7df 100644 --- a/examples/common-chunk-grandchildren/README.md +++ b/examples/common-chunk-grandchildren/README.md @@ -283,7 +283,7 @@ module.exports = { /******/ // no deferred startup /******/ /******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (data) => { +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { /******/ var [chunkIds, moreModules, runtime] = data; /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback @@ -301,7 +301,7 @@ module.exports = { /******/ } /******/ } /******/ if(runtime) runtime(__webpack_require__); -/******/ parentChunkLoadingFunction(data); +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } @@ -309,8 +309,10 @@ module.exports = { /******/ } /******/ /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ +/******/ // no deferred startup /******/ })(); /******/ /************************************************************************/ @@ -452,30 +454,30 @@ module.exports = function() { ## Unoptimized ``` -asset output.js 8.95 KiB [emitted] (name: main) +asset output.js 9.1 KiB [emitted] (name: main) asset 588.output.js 736 bytes [emitted] asset 366.output.js 558 bytes [emitted] asset 145.output.js 552 bytes [emitted] asset 421.output.js 434 bytes [emitted] -chunk 145.output.js 136 bytes [rendered] +chunk (runtime: main) 145.output.js 136 bytes [rendered] > ./pageB.js 3:1-6:3 ./pageC.js 136 bytes [built] [code generated] [used exports unknown] cjs require ./pageC ./pageB.js 4:15-33 cjs self exports reference ./pageC.js 3:0-14 -chunk output.js (main) 220 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 220 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules ./example.js 220 bytes [built] [code generated] [used exports unknown] entry ./example.js main -chunk 366.output.js 136 bytes [rendered] +chunk (runtime: main) 366.output.js 136 bytes [rendered] > ./example.js 3:1-6:3 ./pageA.js 136 bytes [built] [code generated] [used exports unknown] cjs require ./pageA ./example.js 4:15-33 cjs self exports reference ./pageA.js 3:0-14 -chunk 421.output.js 69 bytes [rendered] split chunk (cache group: default) +chunk (runtime: main) 421.output.js 69 bytes [rendered] split chunk (cache group: default) > ./example.js 3:1-6:3 > ./pageB.js 3:1-6:3 ./reusableComponent.js 69 bytes [built] [code generated] @@ -483,19 +485,19 @@ chunk 421.output.js 69 bytes [rendered] split chunk (cache group: default) cjs require ./reusableComponent ./pageA.js 1:24-54 cjs require ./reusableComponent ./pageC.js 1:24-54 cjs self exports reference ./reusableComponent.js 1:0-14 -chunk 588.output.js 133 bytes [rendered] +chunk (runtime: main) 588.output.js 133 bytes [rendered] > ./example.js 7:1-10:3 ./pageB.js 133 bytes [built] [code generated] [used exports unknown] cjs require ./pageB ./example.js 8:15-33 cjs self exports reference ./pageB.js 1:0-14 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode ``` -asset output.js 1.74 KiB [emitted] [minimized] (name: main) +asset output.js 1.79 KiB [emitted] [minimized] (name: main) asset 588.output.js 198 bytes [emitted] [minimized] asset 145.output.js 134 bytes [emitted] [minimized] asset 366.output.js 134 bytes [emitted] [minimized] @@ -506,9 +508,9 @@ chunk (runtime: main) 145.output.js 136 bytes [rendered] [used exports unknown] cjs require ./pageC ./pageB.js 4:15-33 cjs self exports reference ./pageC.js 3:0-14 -chunk (runtime: main) output.js (main) 220 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 220 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered] > ./example.js main - runtime modules 4.85 KiB 6 modules + runtime modules 4.97 KiB 6 modules ./example.js 220 bytes [built] [code generated] [no exports used] entry ./example.js main @@ -532,5 +534,5 @@ chunk (runtime: main) 588.output.js 133 bytes [rendered] [used exports unknown] cjs require ./pageB ./example.js 8:15-33 cjs self exports reference ./pageB.js 1:0-14 -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/commonjs/README.md b/examples/commonjs/README.md index 2f176d5b9..06efad94f 100644 --- a/examples/commonjs/README.md +++ b/examples/commonjs/README.md @@ -135,13 +135,13 @@ inc(a); // 2 ``` asset output.js 2.34 KiB [emitted] (name: main) -chunk output.js (main) 326 bytes [entry] [rendered] +chunk (runtime: main) output.js (main) 326 bytes [entry] [rendered] > ./example.js main dependent modules 254 bytes [dependent] 2 modules ./example.js 72 bytes [built] [code generated] [used exports unknown] entry ./example.js main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode @@ -154,5 +154,5 @@ chunk (runtime: main) output.js (main) 326 bytes [entry] [rendered] ./example.js 72 bytes [built] [code generated] [no exports used] entry ./example.js main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/custom-json-modules/README.md b/examples/custom-json-modules/README.md index 72df93cb0..113cb382c 100644 --- a/examples/custom-json-modules/README.md +++ b/examples/custom-json-modules/README.md @@ -249,7 +249,7 @@ module.exports = JSON.parse("{\"title\":\"JSON5 Example\",\"owner\":{\"name\":\" ``` asset output.js 5.98 KiB [emitted] (name: main) -chunk output.js (main) 919 bytes (javascript) 274 bytes (runtime) [entry] [rendered] +chunk (runtime: main) output.js (main) 919 bytes (javascript) 274 bytes (runtime) [entry] [rendered] > ./example.js main dependent modules 565 bytes [dependent] 3 modules runtime modules 274 bytes 1 module @@ -257,5 +257,5 @@ chunk output.js (main) 919 bytes (javascript) 274 bytes (runtime) [entry] [rende [no exports] [used exports unknown] entry ./example.js main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/dll-app-and-vendor/0-vendor/README.md b/examples/dll-app-and-vendor/0-vendor/README.md index 69794dc8c..1e2b1100f 100644 --- a/examples/dll-app-and-vendor/0-vendor/README.md +++ b/examples/dll-app-and-vendor/0-vendor/README.md @@ -41,7 +41,7 @@ export function square(n) { # dist/vendor.js ```javascript -var vendor_lib_ebb1a24c629010ce31fa;vendor_lib_ebb1a24c629010ce31fa = +var vendor_lib_d696c7b4f72a4a70f39b;vendor_lib_d696c7b4f72a4a70f39b = /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ([ /* 0 */ @@ -152,7 +152,7 @@ function square(n) { # dist/vendor-manifest.json ```javascript -{"name":"vendor_lib_ebb1a24c629010ce31fa","content":{"../node_modules/example-vendor.js":{"id":1,"buildMeta":{"exportsType":"namespace","sideEffectFree":true},"exports":["square"]}}} +{"name":"vendor_lib_d696c7b4f72a4a70f39b","content":{"../node_modules/example-vendor.js":{"id":1,"buildMeta":{"exportsType":"namespace"},"exports":["square"]}}} ``` # Info @@ -161,7 +161,7 @@ function square(n) { ``` asset vendor.js 3.56 KiB [emitted] (name: main) -chunk vendor.js (main) 57 bytes (javascript) 668 bytes (runtime) [entry] [rendered] +chunk (runtime: main) vendor.js (main) 57 bytes (javascript) 668 bytes (runtime) [entry] [rendered] > main runtime modules 668 bytes 3 modules dependent modules 45 bytes [dependent] 1 module @@ -169,7 +169,7 @@ chunk vendor.js (main) 57 bytes (javascript) 668 bytes (runtime) [entry] [render [used exports unknown] dll entry used as library export -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode @@ -183,5 +183,5 @@ chunk (runtime: main) vendor.js (main) 57 bytes (javascript) 668 bytes (runtime) dll main 12 bytes [built] [code generated] dll entry used as library export -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` diff --git a/examples/dll-app-and-vendor/1-app/README.md b/examples/dll-app-and-vendor/1-app/README.md index 1705c2d29..83238a341 100644 --- a/examples/dll-app-and-vendor/1-app/README.md +++ b/examples/dll-app-and-vendor/1-app/README.md @@ -71,7 +71,7 @@ console.log(new example_vendor__WEBPACK_IMPORTED_MODULE_0__.square(7)); /***/ }), /* 1 */ /*!******************************************************************************************************!*\ - !*** delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_ebb1a24c629010ce31fa ***! + !*** delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_d696c7b4f72a4a70f39b ***! \******************************************************************************************************/ /*! namespace exports */ /*! export square [provided] [no usage info] [provision prevents renaming (no use info)] */ @@ -79,12 +79,12 @@ console.log(new example_vendor__WEBPACK_IMPORTED_MODULE_0__.square(7)); /*! runtime requirements: module, __webpack_require__ */ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -module.exports = (__webpack_require__(/*! dll-reference vendor_lib_ebb1a24c629010ce31fa */ 2))(1); +module.exports = (__webpack_require__(/*! dll-reference vendor_lib_d696c7b4f72a4a70f39b */ 2))(1); /***/ }), /* 2 */ /*!**************************************************!*\ - !*** external "vendor_lib_ebb1a24c629010ce31fa" ***! + !*** external "vendor_lib_d696c7b4f72a4a70f39b" ***! \**************************************************/ /*! dynamic exports */ /*! exports [maybe provided (runtime-defined)] [no usage info] */ @@ -92,7 +92,7 @@ module.exports = (__webpack_require__(/*! dll-reference vendor_lib_ebb1a24c62901 /***/ ((module) => { "use strict"; -module.exports = vendor_lib_ebb1a24c629010ce31fa; +module.exports = vendor_lib_d696c7b4f72a4a70f39b; /***/ }) /******/ ]); @@ -157,7 +157,7 @@ module.exports = vendor_lib_ebb1a24c629010ce31fa; ``` asset app.js 3.52 KiB [emitted] (name: main) -chunk app.js (main) 178 bytes (javascript) 274 bytes (runtime) [entry] [rendered] +chunk (runtime: main) app.js (main) 178 bytes (javascript) 274 bytes (runtime) [entry] [rendered] > ./example-app main dependent modules 84 bytes [dependent] 2 modules runtime modules 274 bytes 1 module @@ -165,7 +165,7 @@ chunk app.js (main) 178 bytes (javascript) 274 bytes (runtime) [entry] [rendered [no exports] [used exports unknown] entry ./example-app main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ``` ## Production mode @@ -179,7 +179,7 @@ chunk (runtime: main) app.js (main) 178 bytes [entry] [rendered] [no exports] [no exports used] entry ./example-app main -webpack 5.0.0 compiled successfully +webpack 5.11.1 compiled successfully ```