diff --git a/examples/aggressive-merging/README.md b/examples/aggressive-merging/README.md index 6203cd202..79fed76b9 100644 --- a/examples/aggressive-merging/README.md +++ b/examples/aggressive-merging/README.md @@ -61,23 +61,23 @@ module.exports = { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size 394.chunk.js 526 bytes [emitted] 456.chunk.js 6.16 KiB [emitted] -pageA.bundle.js 7.8 KiB [emitted] [name: pageA] -pageB.bundle.js 7.8 KiB [emitted] [name: pageB] -pageC.bundle.js 7.8 KiB [emitted] [name: pageC] +pageA.bundle.js 7.94 KiB [emitted] [name: pageA] +pageB.bundle.js 7.94 KiB [emitted] [name: pageB] +pageC.bundle.js 7.94 KiB [emitted] [name: pageC] Entrypoint pageA = pageA.bundle.js Entrypoint pageB = pageB.bundle.js Entrypoint pageC = pageC.bundle.js -chunk pageB.bundle.js (pageB) 69 bytes (javascript) 4.13 KiB (runtime) [entry] [rendered] +chunk pageB.bundle.js (pageB) 69 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./pageB pageB ./pageB.js 69 bytes [built] [used exports unknown] entry ./pageB pageB + 4 hidden chunk modules -chunk pageC.bundle.js (pageC) 68 bytes (javascript) 4.13 KiB (runtime) [entry] [rendered] +chunk pageC.bundle.js (pageC) 68 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./pageC pageC ./pageC.js 68 bytes [built] [used exports unknown] @@ -93,7 +93,7 @@ chunk 394.chunk.js 42 bytes [rendered] [used exports unknown] 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.13 KiB (runtime) [entry] [rendered] +chunk pageA.bundle.js (pageA) 69 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./pageA pageA ./pageA.js 69 bytes [built] [used exports unknown] @@ -120,23 +120,23 @@ chunk 456.chunk.js 5.45 KiB [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size 394.chunk.js 108 bytes [emitted] 456.chunk.js 159 bytes [emitted] -pageA.bundle.js 1.46 KiB [emitted] [name: pageA] -pageB.bundle.js 1.46 KiB [emitted] [name: pageB] -pageC.bundle.js 1.47 KiB [emitted] [name: pageC] +pageA.bundle.js 1.47 KiB [emitted] [name: pageA] +pageB.bundle.js 1.47 KiB [emitted] [name: pageB] +pageC.bundle.js 1.49 KiB [emitted] [name: pageC] Entrypoint pageA = pageA.bundle.js Entrypoint pageB = pageB.bundle.js Entrypoint pageC = pageC.bundle.js -chunk pageB.bundle.js (pageB) 69 bytes (javascript) 4.13 KiB (runtime) [entry] [rendered] +chunk pageB.bundle.js (pageB) 69 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./pageB pageB ./pageB.js 69 bytes [built] [no exports used] entry ./pageB pageB + 4 hidden chunk modules -chunk pageC.bundle.js (pageC) 68 bytes (javascript) 4.13 KiB (runtime) [entry] [rendered] +chunk pageC.bundle.js (pageC) 68 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./pageC pageC ./pageC.js 68 bytes [built] [no exports used] @@ -150,7 +150,7 @@ chunk 394.chunk.js 42 bytes [rendered] ./b.js 21 bytes [built] 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.13 KiB (runtime) [entry] [rendered] +chunk pageA.bundle.js (pageA) 69 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./pageA pageA ./pageA.js 69 bytes [built] [no exports used] diff --git a/examples/asset-simple/README.md b/examples/asset-simple/README.md index e870db0de..987844ff2 100644 --- a/examples/asset-simple/README.md +++ b/examples/asset-simple/README.md @@ -69,7 +69,7 @@ module.exports = { !*** ./example.js ***! \********************/ /*! exports [not provided] [no usage info] */ -/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__, __webpack_require__.n, __webpack_require__.* */ +/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.r, __webpack_exports__, __webpack_require__.* */ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); @@ -174,17 +174,6 @@ module.exports = __webpack_require__.p + "images/1be7b55b29524343503e.svg"; /******/ } /******/ /************************************************************************/ -/******/ /* webpack/runtime/make namespace object */ -/******/ !function() { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ }(); -/******/ /******/ /* webpack/runtime/compat get default export */ /******/ !function() { /******/ // getDefaultExport function for compatibility with non-harmony modules @@ -197,11 +186,6 @@ module.exports = __webpack_require__.p + "images/1be7b55b29524343503e.svg"; /******/ }; /******/ }(); /******/ -/******/ /* webpack/runtime/publicPath */ -/******/ !function() { -/******/ __webpack_require__.p = "dist/"; -/******/ }(); -/******/ /******/ /* webpack/runtime/define property getters */ /******/ !function() { /******/ // define getter functions for harmony exports @@ -215,6 +199,22 @@ module.exports = __webpack_require__.p + "images/1be7b55b29524343503e.svg"; /******/ }; /******/ }(); /******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ !function() { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ }(); +/******/ +/******/ /* webpack/runtime/publicPath */ +/******/ !function() { +/******/ __webpack_require__.p = "dist/"; +/******/ }(); +/******/ /************************************************************************/ /******/ // startup /******/ // Load entry module @@ -230,7 +230,7 @@ module.exports = __webpack_require__.p + "images/1be7b55b29524343503e.svg"; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size images/1be7b55b29524343503e.svg 656 bytes [emitted] [immutable] [name: (main)] images/24e804317f239f7906e1.png 14.6 KiB [emitted] [immutable] [name: (main)] diff --git a/examples/chunkhash/README.md b/examples/chunkhash/README.md index 98bb05c30..c4957a82c 100644 --- a/examples/chunkhash/README.md +++ b/examples/chunkhash/README.md @@ -43,7 +43,7 @@ module.exports = { @@ -88,19 +88,6 @@ module.exports = { /******/ __webpack_require__.m = __webpack_modules__; /******/ /************************************************************************/ -/******/ /* webpack/runtime/ensure chunk */ -/******/ !function() { -/******/ __webpack_require__.f = {}; -/******/ // This file contains only the entry chunk. -/******/ // The chunk loading function for additional chunks -/******/ __webpack_require__.e = (chunkId) => { -/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => { -/******/ __webpack_require__.f[key](chunkId, promises); -/******/ return promises; -/******/ }, [])); -/******/ }; -/******/ }(); -/******/ /******/ /* webpack/runtime/create fake namespace object */ /******/ !function() { /******/ // create a fake namespace object @@ -114,12 +101,12 @@ module.exports = { /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') { -/******/ var def = {}; +/******/ var def = {}; +/******/ if(mode & 2 && typeof value == 'object' && value) { /******/ for(const key in value) def[key] = () => value[key]; -/******/ __webpack_require__.d(ns, def); /******/ } +/******/ def['default'] = () => value; +/******/ __webpack_require__.d(ns, def); /******/ return ns; /******/ }; /******/ }(); @@ -137,6 +124,28 @@ module.exports = { /******/ }; /******/ }(); /******/ +/******/ /* webpack/runtime/ensure chunk */ +/******/ !function() { +/******/ __webpack_require__.f = {}; +/******/ // This file contains only the entry chunk. +/******/ // The chunk loading function for additional chunks +/******/ __webpack_require__.e = (chunkId) => { +/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => { +/******/ __webpack_require__.f[key](chunkId, promises); +/******/ return promises; +/******/ }, [])); +/******/ }; +/******/ }(); +/******/ +/******/ /* webpack/runtime/get javascript chunk filename */ +/******/ !function() { +/******/ // This function allow to reference async chunks +/******/ __webpack_require__.u = (chunkId) => { +/******/ // return url for filenames based on template +/******/ return "" + chunkId + ".[chunkhash].js"; +/******/ }; +/******/ }(); +/******/ /******/ /* webpack/runtime/make namespace object */ /******/ !function() { /******/ // define __esModule on exports @@ -153,15 +162,6 @@ module.exports = { /******/ __webpack_require__.p = "dist/"; /******/ }(); /******/ -/******/ /* webpack/runtime/get javascript chunk filename */ -/******/ !function() { -/******/ // This function allow to reference async chunks -/******/ __webpack_require__.u = (chunkId) => { -/******/ // return url for filenames based on template -/******/ return "" + chunkId + ".[chunkhash].js"; -/******/ }; -/******/ }(); -/******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ !function() { /******/ @@ -197,8 +197,11 @@ module.exports = { /******/ // start chunk loading /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId); /******/ var loadingEnded = () => { -/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) return installedChunks[chunkId][1]; -/******/ if(installedChunks[chunkId] !== 0) installedChunks[chunkId] = undefined; +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId)) { +/******/ installedChunkData = installedChunks[chunkId]; +/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined; +/******/ if(installedChunkData) return installedChunkData[1]; +/******/ } /******/ }; /******/ var script = document.createElement('script'); /******/ var onScriptComplete; @@ -213,6 +216,7 @@ module.exports = { /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { +/******/ onScriptComplete = function() {}; /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); @@ -349,14 +353,14 @@ __webpack_require__.e(/*! import() */ 3).then(__webpack_require__.t.bind(__webpa ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size 2.[chunkhash].js 314 bytes [emitted] 3.[chunkhash].js 308 bytes [emitted] main.[chunkhash].js 676 bytes [emitted] [name: main] -runtime~main.[chunkhash].js 10.6 KiB [emitted] [name: runtime~main] +runtime~main.[chunkhash].js 10.7 KiB [emitted] [name: runtime~main] Entrypoint main = runtime~main.[chunkhash].js main.[chunkhash].js -chunk runtime~main.[chunkhash].js (runtime~main) 6.39 KiB [entry] [rendered] +chunk runtime~main.[chunkhash].js (runtime~main) 6.45 KiB [entry] [rendered] > ./example main 7 chunk modules chunk main.[chunkhash].js (main) 55 bytes [initial] [rendered] @@ -380,12 +384,12 @@ chunk 3.[chunkhash].js 28 bytes [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size 114.[chunkhash].js 73 bytes [emitted] 172.[chunkhash].js 73 bytes [emitted] main.[chunkhash].js 155 bytes [emitted] [name: main] -runtime~main.[chunkhash].js 2.26 KiB [emitted] [name: runtime~main] +runtime~main.[chunkhash].js 2.23 KiB [emitted] [name: runtime~main] Entrypoint main = runtime~main.[chunkhash].js main.[chunkhash].js chunk 114.[chunkhash].js 28 bytes [rendered] > ./async1 ./example.js 2:0-18 @@ -400,7 +404,7 @@ chunk main.[chunkhash].js (main) 55 bytes [initial] [rendered] ./example.js 55 bytes [built] [no exports used] entry ./example main -chunk runtime~main.[chunkhash].js (runtime~main) 6.39 KiB [entry] [rendered] +chunk runtime~main.[chunkhash].js (runtime~main) 6.45 KiB [entry] [rendered] > ./example main 7 chunk modules ``` diff --git a/examples/code-splitted-require.context-amd/README.md b/examples/code-splitted-require.context-amd/README.md index 850a7d850..b2156a2bd 100644 --- a/examples/code-splitted-require.context-amd/README.md +++ b/examples/code-splitted-require.context-amd/README.md @@ -63,11 +63,6 @@ getTemplate("b", function(b) { /******/ }; /******/ }(); /******/ -/******/ /* webpack/runtime/publicPath */ -/******/ !function() { -/******/ __webpack_require__.p = "dist/"; -/******/ }(); -/******/ /******/ /* webpack/runtime/get javascript chunk filename */ /******/ !function() { /******/ // This function allow to reference async chunks @@ -77,6 +72,11 @@ getTemplate("b", function(b) { /******/ }; /******/ }(); /******/ +/******/ /* webpack/runtime/publicPath */ +/******/ !function() { +/******/ __webpack_require__.p = "dist/"; +/******/ }(); +/******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ !function() { /******/ @@ -110,8 +110,11 @@ getTemplate("b", function(b) { /******/ // start chunk loading /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId); /******/ var loadingEnded = () => { -/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) return installedChunks[chunkId][1]; -/******/ if(installedChunks[chunkId] !== 0) installedChunks[chunkId] = undefined; +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId)) { +/******/ installedChunkData = installedChunks[chunkId]; +/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined; +/******/ if(installedChunkData) return installedChunkData[1]; +/******/ } /******/ }; /******/ var script = document.createElement('script'); /******/ var onScriptComplete; @@ -126,6 +129,7 @@ getTemplate("b", function(b) { /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { +/******/ onScriptComplete = function() {}; /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); @@ -312,12 +316,12 @@ module.exports = function() { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size 577.output.js 2.1 KiB [emitted] - output.js 7.94 KiB [emitted] [name: main] + output.js 8.07 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 251 bytes (javascript) 4.14 KiB (runtime) [entry] [rendered] +chunk output.js (main) 251 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 251 bytes [built] [used exports unknown] @@ -346,12 +350,12 @@ chunk 577.output.js 457 bytes [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size 577.output.js 646 bytes [emitted] - output.js 1.55 KiB [emitted] [name: main] + output.js 1.57 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 251 bytes (javascript) 4.14 KiB (runtime) [entry] [rendered] +chunk output.js (main) 251 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 251 bytes [built] [no exports used] diff --git a/examples/code-splitted-require.context/README.md b/examples/code-splitted-require.context/README.md index db93eb33d..c19c0fb66 100644 --- a/examples/code-splitted-require.context/README.md +++ b/examples/code-splitted-require.context/README.md @@ -63,11 +63,6 @@ getTemplate("b", function(b) { /******/ }; /******/ }(); /******/ -/******/ /* webpack/runtime/publicPath */ -/******/ !function() { -/******/ __webpack_require__.p = "dist/"; -/******/ }(); -/******/ /******/ /* webpack/runtime/get javascript chunk filename */ /******/ !function() { /******/ // This function allow to reference async chunks @@ -77,6 +72,11 @@ getTemplate("b", function(b) { /******/ }; /******/ }(); /******/ +/******/ /* webpack/runtime/publicPath */ +/******/ !function() { +/******/ __webpack_require__.p = "dist/"; +/******/ }(); +/******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ !function() { /******/ @@ -110,8 +110,11 @@ getTemplate("b", function(b) { /******/ // start chunk loading /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId); /******/ var loadingEnded = () => { -/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) return installedChunks[chunkId][1]; -/******/ if(installedChunks[chunkId] !== 0) installedChunks[chunkId] = undefined; +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId)) { +/******/ installedChunkData = installedChunks[chunkId]; +/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined; +/******/ if(installedChunkData) return installedChunkData[1]; +/******/ } /******/ }; /******/ var script = document.createElement('script'); /******/ var onScriptComplete; @@ -126,6 +129,7 @@ getTemplate("b", function(b) { /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { +/******/ onScriptComplete = function() {}; /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); @@ -312,12 +316,12 @@ module.exports = function() { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size 577.output.js 2.1 KiB [emitted] - output.js 7.85 KiB [emitted] [name: main] + output.js 7.99 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 266 bytes (javascript) 4.14 KiB (runtime) [entry] [rendered] +chunk output.js (main) 266 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 266 bytes [built] [used exports unknown] @@ -346,12 +350,12 @@ chunk 577.output.js 457 bytes [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size 577.output.js 646 bytes [emitted] - output.js 1.53 KiB [emitted] [name: main] + output.js 1.54 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 266 bytes (javascript) 4.14 KiB (runtime) [entry] [rendered] +chunk output.js (main) 266 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 266 bytes [built] [no exports used] diff --git a/examples/code-splitting-bundle-loader/README.md b/examples/code-splitting-bundle-loader/README.md index cb439183d..3c884af6d 100644 --- a/examples/code-splitting-bundle-loader/README.md +++ b/examples/code-splitting-bundle-loader/README.md @@ -27,7 +27,7 @@ module.exports = "It works"; !*** (webpack)/node_modules/bundle-loader!./file.js ***! \******************************************************/ /*! exports [maybe provided (runtime-defined)] [no usage info] */ -/*! runtime requirements: module, __webpack_require__.e, __webpack_require__, __webpack_require__.* */ +/*! runtime requirements: module, __webpack_require__, __webpack_require__.e, __webpack_require__.* */ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var cbs = [], @@ -91,11 +91,6 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) { /******/ }; /******/ }(); /******/ -/******/ /* webpack/runtime/publicPath */ -/******/ !function() { -/******/ __webpack_require__.p = "dist/"; -/******/ }(); -/******/ /******/ /* webpack/runtime/get javascript chunk filename */ /******/ !function() { /******/ // This function allow to reference async chunks @@ -105,6 +100,11 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) { /******/ }; /******/ }(); /******/ +/******/ /* webpack/runtime/publicPath */ +/******/ !function() { +/******/ __webpack_require__.p = "dist/"; +/******/ }(); +/******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ !function() { /******/ @@ -138,8 +138,11 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) { /******/ // start chunk loading /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId); /******/ var loadingEnded = () => { -/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) return installedChunks[chunkId][1]; -/******/ if(installedChunks[chunkId] !== 0) installedChunks[chunkId] = undefined; +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId)) { +/******/ installedChunkData = installedChunks[chunkId]; +/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined; +/******/ if(installedChunkData) return installedChunkData[1]; +/******/ } /******/ }; /******/ var script = document.createElement('script'); /******/ var onScriptComplete; @@ -154,6 +157,7 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) { /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { +/******/ onScriptComplete = function() {}; /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); @@ -270,12 +274,12 @@ module.exports = "It works"; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size 929.output.js 316 bytes [emitted] - output.js 8.42 KiB [emitted] [name: main] + output.js 8.56 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 375 bytes (javascript) 4.14 KiB (runtime) [entry] [rendered] +chunk output.js (main) 375 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./example.js main (webpack)/node_modules/bundle-loader!./file.js 281 bytes [built] [used exports unknown] @@ -295,12 +299,12 @@ chunk 929.output.js 28 bytes [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size 929.output.js 92 bytes [emitted] - output.js 1.58 KiB [emitted] [name: main] + output.js 1.6 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 375 bytes (javascript) 4.14 KiB (runtime) [entry] [rendered] +chunk output.js (main) 375 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./example.js main (webpack)/node_modules/bundle-loader!./file.js 281 bytes [built] cjs require bundle-loader!./file.js ./example.js 1:0-34 diff --git a/examples/code-splitting-harmony/README.md b/examples/code-splitting-harmony/README.md index 75d7fcf9c..95f3df33d 100644 --- a/examples/code-splitting-harmony/README.md +++ b/examples/code-splitting-harmony/README.md @@ -34,7 +34,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) { !*** ./example.js ***! \********************/ /*! exports [not provided] [no usage info] */ -/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__, __webpack_require__.n, __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"; @@ -147,17 +147,6 @@ module.exports = webpackAsyncContext; /******/ __webpack_require__.m = __webpack_modules__; /******/ /************************************************************************/ -/******/ /* webpack/runtime/make namespace object */ -/******/ !function() { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ }(); -/******/ /******/ /* webpack/runtime/compat get default export */ /******/ !function() { /******/ // getDefaultExport function for compatibility with non-harmony modules @@ -170,19 +159,6 @@ module.exports = webpackAsyncContext; /******/ }; /******/ }(); /******/ -/******/ /* webpack/runtime/ensure chunk */ -/******/ !function() { -/******/ __webpack_require__.f = {}; -/******/ // This file contains only the entry chunk. -/******/ // The chunk loading function for additional chunks -/******/ __webpack_require__.e = (chunkId) => { -/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => { -/******/ __webpack_require__.f[key](chunkId, promises); -/******/ return promises; -/******/ }, [])); -/******/ }; -/******/ }(); -/******/ /******/ /* webpack/runtime/create fake namespace object */ /******/ !function() { /******/ // create a fake namespace object @@ -196,12 +172,12 @@ module.exports = webpackAsyncContext; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') { -/******/ var def = {}; +/******/ var def = {}; +/******/ if(mode & 2 && typeof value == 'object' && value) { /******/ for(const key in value) def[key] = () => value[key]; -/******/ __webpack_require__.d(ns, def); /******/ } +/******/ def['default'] = () => value; +/******/ __webpack_require__.d(ns, def); /******/ return ns; /******/ }; /******/ }(); @@ -219,9 +195,17 @@ module.exports = webpackAsyncContext; /******/ }; /******/ }(); /******/ -/******/ /* webpack/runtime/publicPath */ +/******/ /* webpack/runtime/ensure chunk */ /******/ !function() { -/******/ __webpack_require__.p = "dist/"; +/******/ __webpack_require__.f = {}; +/******/ // This file contains only the entry chunk. +/******/ // The chunk loading function for additional chunks +/******/ __webpack_require__.e = (chunkId) => { +/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => { +/******/ __webpack_require__.f[key](chunkId, promises); +/******/ return promises; +/******/ }, [])); +/******/ }; /******/ }(); /******/ /******/ /* webpack/runtime/get javascript chunk filename */ @@ -233,6 +217,22 @@ module.exports = webpackAsyncContext; /******/ }; /******/ }(); /******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ !function() { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ }(); +/******/ +/******/ /* webpack/runtime/publicPath */ +/******/ !function() { +/******/ __webpack_require__.p = "dist/"; +/******/ }(); +/******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ !function() { /******/ @@ -266,8 +266,11 @@ module.exports = webpackAsyncContext; /******/ // start chunk loading /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId); /******/ var loadingEnded = () => { -/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) return installedChunks[chunkId][1]; -/******/ if(installedChunks[chunkId] !== 0) installedChunks[chunkId] = undefined; +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId)) { +/******/ installedChunkData = installedChunks[chunkId]; +/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined; +/******/ if(installedChunkData) return installedChunkData[1]; +/******/ } /******/ }; /******/ var script = document.createElement('script'); /******/ var onScriptComplete; @@ -282,6 +285,7 @@ module.exports = webpackAsyncContext; /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { +/******/ onScriptComplete = function() {}; /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); @@ -371,12 +375,12 @@ module.exports = webpackAsyncContext; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size 346.output.js 325 bytes [emitted] 644.output.js 317 bytes [emitted] 98.output.js 324 bytes [emitted] - output.js 12.2 KiB [emitted] [name: main] + output.js 12.3 KiB [emitted] [name: main] Entrypoint main = output.js chunk 98.output.js 13 bytes [rendered] > ./2 ./node_modules/c lazy ^\.\/.*$ namespace object ./2 @@ -385,7 +389,7 @@ chunk 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 output.js (main) 414 bytes (javascript) 5.71 KiB (runtime) [entry] [rendered] +chunk output.js (main) 414 bytes (javascript) 5.77 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 243 bytes [built] [no exports] @@ -416,12 +420,12 @@ chunk 644.output.js 11 bytes [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size 346.output.js 73 bytes [emitted] 644.output.js 73 bytes [emitted] 98.output.js 71 bytes [emitted] - output.js 2.65 KiB [emitted] [name: main] + output.js 2.62 KiB [emitted] [name: main] Entrypoint main = output.js chunk 98.output.js 13 bytes [rendered] > ./2 ./node_modules/c lazy ^\.\/.*$ namespace object ./2 @@ -429,7 +433,7 @@ chunk 98.output.js 13 bytes [rendered] ./node_modules/c/2.js 13 bytes [optional] [built] 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) 414 bytes (javascript) 5.71 KiB (runtime) [entry] [rendered] +chunk output.js (main) 414 bytes (javascript) 5.77 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 243 bytes [built] [no exports] diff --git a/examples/code-splitting-native-import-context-filter/README.md b/examples/code-splitting-native-import-context-filter/README.md index 119e1e065..1e5454326 100644 --- a/examples/code-splitting-native-import-context-filter/README.md +++ b/examples/code-splitting-native-import-context-filter/README.md @@ -136,6 +136,19 @@ module.exports = webpackAsyncContext; /******/ __webpack_require__.m = __webpack_modules__; /******/ /************************************************************************/ +/******/ /* webpack/runtime/define property getters */ +/******/ !function() { +/******/ // define getter functions for harmony exports +/******/ var hasOwnProperty = Object.prototype.hasOwnProperty; +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(hasOwnProperty.call(definition, key) && !hasOwnProperty.call(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ }(); +/******/ /******/ /* webpack/runtime/ensure chunk */ /******/ !function() { /******/ __webpack_require__.f = {}; @@ -149,6 +162,15 @@ module.exports = webpackAsyncContext; /******/ }; /******/ }(); /******/ +/******/ /* webpack/runtime/get javascript chunk filename */ +/******/ !function() { +/******/ // This function allow to reference async chunks +/******/ __webpack_require__.u = (chunkId) => { +/******/ // return url for filenames based on template +/******/ return "" + chunkId + ".output.js"; +/******/ }; +/******/ }(); +/******/ /******/ /* webpack/runtime/make namespace object */ /******/ !function() { /******/ // define __esModule on exports @@ -160,33 +182,11 @@ module.exports = webpackAsyncContext; /******/ }; /******/ }(); /******/ -/******/ /* webpack/runtime/define property getters */ -/******/ !function() { -/******/ // define getter functions for harmony exports -/******/ var hasOwnProperty = Object.prototype.hasOwnProperty; -/******/ __webpack_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(hasOwnProperty.call(definition, key) && !hasOwnProperty.call(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ }(); -/******/ /******/ /* webpack/runtime/publicPath */ /******/ !function() { /******/ __webpack_require__.p = "dist/"; /******/ }(); /******/ -/******/ /* webpack/runtime/get javascript chunk filename */ -/******/ !function() { -/******/ // This function allow to reference async chunks -/******/ __webpack_require__.u = (chunkId) => { -/******/ // return url for filenames based on template -/******/ return "" + chunkId + ".output.js"; -/******/ }; -/******/ }(); -/******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ !function() { /******/ @@ -220,8 +220,11 @@ module.exports = webpackAsyncContext; /******/ // start chunk loading /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId); /******/ var loadingEnded = () => { -/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) return installedChunks[chunkId][1]; -/******/ if(installedChunks[chunkId] !== 0) installedChunks[chunkId] = undefined; +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId)) { +/******/ installedChunkData = installedChunks[chunkId]; +/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined; +/******/ if(installedChunkData) return installedChunkData[1]; +/******/ } /******/ }; /******/ var script = document.createElement('script'); /******/ var onScriptComplete; @@ -236,6 +239,7 @@ module.exports = webpackAsyncContext; /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { +/******/ onScriptComplete = function() {}; /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); @@ -346,14 +350,14 @@ getTemplate("baz.noimport"); ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size 398.output.js 835 bytes [emitted] 544.output.js 835 bytes [emitted] 718.output.js 835 bytes [emitted] - output.js 10.1 KiB [emitted] [name: main] + output.js 10.2 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 597 bytes (javascript) 4.75 KiB (runtime) [entry] [rendered] +chunk output.js (main) 597 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 437 bytes [built] [used exports unknown] @@ -392,14 +396,14 @@ chunk 718.output.js 38 bytes [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size 398.output.js 134 bytes [emitted] 544.output.js 134 bytes [emitted] 718.output.js 134 bytes [emitted] - output.js 2.31 KiB [emitted] [name: main] + output.js 2.32 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 597 bytes (javascript) 4.75 KiB (runtime) [entry] [rendered] +chunk output.js (main) 597 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 437 bytes [built] [no exports used] diff --git a/examples/code-splitting-native-import-context/README.md b/examples/code-splitting-native-import-context/README.md index bdbc3a44c..c3d0362c3 100644 --- a/examples/code-splitting-native-import-context/README.md +++ b/examples/code-splitting-native-import-context/README.md @@ -125,6 +125,19 @@ module.exports = webpackAsyncContext; /******/ __webpack_require__.m = __webpack_modules__; /******/ /************************************************************************/ +/******/ /* webpack/runtime/define property getters */ +/******/ !function() { +/******/ // define getter functions for harmony exports +/******/ var hasOwnProperty = Object.prototype.hasOwnProperty; +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(hasOwnProperty.call(definition, key) && !hasOwnProperty.call(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ }(); +/******/ /******/ /* webpack/runtime/ensure chunk */ /******/ !function() { /******/ __webpack_require__.f = {}; @@ -138,6 +151,15 @@ module.exports = webpackAsyncContext; /******/ }; /******/ }(); /******/ +/******/ /* webpack/runtime/get javascript chunk filename */ +/******/ !function() { +/******/ // This function allow to reference async chunks +/******/ __webpack_require__.u = (chunkId) => { +/******/ // return url for filenames based on template +/******/ return "" + chunkId + ".output.js"; +/******/ }; +/******/ }(); +/******/ /******/ /* webpack/runtime/make namespace object */ /******/ !function() { /******/ // define __esModule on exports @@ -149,33 +171,11 @@ module.exports = webpackAsyncContext; /******/ }; /******/ }(); /******/ -/******/ /* webpack/runtime/define property getters */ -/******/ !function() { -/******/ // define getter functions for harmony exports -/******/ var hasOwnProperty = Object.prototype.hasOwnProperty; -/******/ __webpack_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(hasOwnProperty.call(definition, key) && !hasOwnProperty.call(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ }(); -/******/ /******/ /* webpack/runtime/publicPath */ /******/ !function() { /******/ __webpack_require__.p = "dist/"; /******/ }(); /******/ -/******/ /* webpack/runtime/get javascript chunk filename */ -/******/ !function() { -/******/ // This function allow to reference async chunks -/******/ __webpack_require__.u = (chunkId) => { -/******/ // return url for filenames based on template -/******/ return "" + chunkId + ".output.js"; -/******/ }; -/******/ }(); -/******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ !function() { /******/ @@ -209,8 +209,11 @@ module.exports = webpackAsyncContext; /******/ // start chunk loading /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId); /******/ var loadingEnded = () => { -/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) return installedChunks[chunkId][1]; -/******/ if(installedChunks[chunkId] !== 0) installedChunks[chunkId] = undefined; +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId)) { +/******/ installedChunkData = installedChunks[chunkId]; +/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined; +/******/ if(installedChunkData) return installedChunkData[1]; +/******/ } /******/ }; /******/ var script = document.createElement('script'); /******/ var onScriptComplete; @@ -225,6 +228,7 @@ module.exports = webpackAsyncContext; /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { +/******/ onScriptComplete = function() {}; /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); @@ -333,14 +337,14 @@ getTemplate("baz"); ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size 398.output.js 835 bytes [emitted] 544.output.js 835 bytes [emitted] 718.output.js 835 bytes [emitted] - output.js 9.88 KiB [emitted] [name: main] + output.js 10 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 441 bytes (javascript) 4.75 KiB (runtime) [entry] [rendered] +chunk output.js (main) 441 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 281 bytes [built] [used exports unknown] @@ -379,14 +383,14 @@ chunk 718.output.js 38 bytes [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size 398.output.js 134 bytes [emitted] 544.output.js 134 bytes [emitted] 718.output.js 134 bytes [emitted] - output.js 2.27 KiB [emitted] [name: main] + output.js 2.29 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 441 bytes (javascript) 4.75 KiB (runtime) [entry] [rendered] +chunk output.js (main) 441 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 281 bytes [built] [no exports used] diff --git a/examples/code-splitting-specify-chunk-name/README.md b/examples/code-splitting-specify-chunk-name/README.md index 89871e9b9..09c24f41f 100644 --- a/examples/code-splitting-specify-chunk-name/README.md +++ b/examples/code-splitting-specify-chunk-name/README.md @@ -117,6 +117,19 @@ module.exports = webpackAsyncContext; /******/ __webpack_require__.m = __webpack_modules__; /******/ /************************************************************************/ +/******/ /* webpack/runtime/define property getters */ +/******/ !function() { +/******/ // define getter functions for harmony exports +/******/ var hasOwnProperty = Object.prototype.hasOwnProperty; +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(hasOwnProperty.call(definition, key) && !hasOwnProperty.call(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ }(); +/******/ /******/ /* webpack/runtime/ensure chunk */ /******/ !function() { /******/ __webpack_require__.f = {}; @@ -130,6 +143,15 @@ module.exports = webpackAsyncContext; /******/ }; /******/ }(); /******/ +/******/ /* webpack/runtime/get javascript chunk filename */ +/******/ !function() { +/******/ // This function allow to reference async chunks +/******/ __webpack_require__.u = (chunkId) => { +/******/ // return url for filenames based on template +/******/ return "" + chunkId + ".output.js"; +/******/ }; +/******/ }(); +/******/ /******/ /* webpack/runtime/make namespace object */ /******/ !function() { /******/ // define __esModule on exports @@ -141,33 +163,11 @@ module.exports = webpackAsyncContext; /******/ }; /******/ }(); /******/ -/******/ /* webpack/runtime/define property getters */ -/******/ !function() { -/******/ // define getter functions for harmony exports -/******/ var hasOwnProperty = Object.prototype.hasOwnProperty; -/******/ __webpack_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(hasOwnProperty.call(definition, key) && !hasOwnProperty.call(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ }(); -/******/ /******/ /* webpack/runtime/publicPath */ /******/ !function() { /******/ __webpack_require__.p = "dist/"; /******/ }(); /******/ -/******/ /* webpack/runtime/get javascript chunk filename */ -/******/ !function() { -/******/ // This function allow to reference async chunks -/******/ __webpack_require__.u = (chunkId) => { -/******/ // return url for filenames based on template -/******/ return "" + chunkId + ".output.js"; -/******/ }; -/******/ }(); -/******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ !function() { /******/ @@ -201,8 +201,11 @@ module.exports = webpackAsyncContext; /******/ // start chunk loading /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId); /******/ var loadingEnded = () => { -/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) return installedChunks[chunkId][1]; -/******/ if(installedChunks[chunkId] !== 0) installedChunks[chunkId] = undefined; +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId)) { +/******/ installedChunkData = installedChunks[chunkId]; +/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined; +/******/ if(installedChunkData) return installedChunkData[1]; +/******/ } /******/ }; /******/ var script = document.createElement('script'); /******/ var onScriptComplete; @@ -217,6 +220,7 @@ module.exports = webpackAsyncContext; /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { +/******/ onScriptComplete = function() {}; /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); @@ -325,14 +329,14 @@ __webpack_require__(1)("./ba" + createContextVar).then(function(bar) { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size 548.output.js 835 bytes [emitted] [name: chunk-bar-baz2] 791.output.js 835 bytes [emitted] [name: chunk-bar-baz0] 930.output.js 835 bytes [emitted] [name: chunk-foo] - output.js 10.2 KiB [emitted] [name: main] + output.js 10.3 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 565 bytes (javascript) 4.75 KiB (runtime) [entry] [rendered] +chunk output.js (main) 565 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 405 bytes [built] [used exports unknown] @@ -371,14 +375,14 @@ chunk 930.output.js (chunk-foo) 38 bytes [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size 548.output.js 134 bytes [emitted] [name: chunk-bar-baz2] 791.output.js 134 bytes [emitted] [name: chunk-bar-baz0] 930.output.js 134 bytes [emitted] [name: chunk-foo] - output.js 2.3 KiB [emitted] [name: main] + output.js 2.31 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 565 bytes (javascript) 4.75 KiB (runtime) [entry] [rendered] +chunk output.js (main) 565 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 405 bytes [built] [no exports used] diff --git a/examples/code-splitting/README.md b/examples/code-splitting/README.md index 9eec13de3..fdd75238c 100644 --- a/examples/code-splitting/README.md +++ b/examples/code-splitting/README.md @@ -108,11 +108,6 @@ require.ensure(["c"], function(require) { /******/ }; /******/ }(); /******/ -/******/ /* webpack/runtime/publicPath */ -/******/ !function() { -/******/ __webpack_require__.p = "dist/"; -/******/ }(); -/******/ /******/ /* webpack/runtime/get javascript chunk filename */ /******/ !function() { /******/ // This function allow to reference async chunks @@ -122,6 +117,11 @@ require.ensure(["c"], function(require) { /******/ }; /******/ }(); /******/ +/******/ /* webpack/runtime/publicPath */ +/******/ !function() { +/******/ __webpack_require__.p = "dist/"; +/******/ }(); +/******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ !function() { /******/ @@ -155,8 +155,11 @@ require.ensure(["c"], function(require) { /******/ // start chunk loading /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId); /******/ var loadingEnded = () => { -/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) return installedChunks[chunkId][1]; -/******/ if(installedChunks[chunkId] !== 0) installedChunks[chunkId] = undefined; +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId)) { +/******/ installedChunkData = installedChunks[chunkId]; +/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined; +/******/ if(installedChunkData) return installedChunkData[1]; +/******/ } /******/ }; /******/ var script = document.createElement('script'); /******/ var onScriptComplete; @@ -171,6 +174,7 @@ require.ensure(["c"], function(require) { /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { +/******/ onScriptComplete = function() {}; /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); @@ -307,12 +311,12 @@ Minimized ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size 796.output.js 582 bytes [emitted] - output.js 8.32 KiB [emitted] [name: main] + output.js 8.45 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 161 bytes (javascript) 4.14 KiB (runtime) [entry] [rendered] +chunk output.js (main) 161 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 139 bytes [built] [used exports unknown] @@ -339,12 +343,12 @@ chunk 796.output.js 22 bytes [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size 796.output.js 84 bytes [emitted] - output.js 1.49 KiB [emitted] [name: main] + output.js 1.5 KiB [emitted] [name: main] Entrypoint main = output.js -chunk output.js (main) 161 bytes (javascript) 4.14 KiB (runtime) [entry] [rendered] +chunk output.js (main) 161 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 139 bytes [built] [no exports used] diff --git a/examples/coffee-script/README.md b/examples/coffee-script/README.md index 50130aba3..ae482c519 100644 --- a/examples/coffee-script/README.md +++ b/examples/coffee-script/README.md @@ -33,7 +33,7 @@ module.exports = 42 !*** ./cup1.coffee ***! \*********************/ /*! exports [maybe provided (runtime-defined)] [no usage info] */ -/*! runtime requirements: module, __webpack_require__ */ +/*! runtime requirements: __webpack_require__, module */ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { module.exports = { @@ -106,7 +106,7 @@ console.log(__webpack_require__(/*! ./cup1 */ 1)); ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size output.js 2.09 KiB [emitted] [name: main] Entrypoint main = output.js @@ -128,7 +128,7 @@ chunk output.js (main) 206 bytes [entry] [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-alpha.31 +Version: webpack 5.0.0-beta.6 Asset Size output.js 294 bytes [emitted] [name: main] Entrypoint main = output.js diff --git a/examples/common-chunk-grandchildren/README.md b/examples/common-chunk-grandchildren/README.md index 8c96ffa67..73f068cdd 100644 --- a/examples/common-chunk-grandchildren/README.md +++ b/examples/common-chunk-grandchildren/README.md @@ -152,11 +152,6 @@ module.exports = { /******/ }; /******/ }(); /******/ -/******/ /* webpack/runtime/publicPath */ -/******/ !function() { -/******/ __webpack_require__.p = "dist/"; -/******/ }(); -/******/ /******/ /* webpack/runtime/get javascript chunk filename */ /******/ !function() { /******/ // This function allow to reference async chunks @@ -166,6 +161,11 @@ module.exports = { /******/ }; /******/ }(); /******/ +/******/ /* webpack/runtime/publicPath */ +/******/ !function() { +/******/ __webpack_require__.p = "dist/"; +/******/ }(); +/******/ /******/ /* webpack/runtime/jsonp chunk loading */ /******/ !function() { /******/ @@ -199,8 +199,11 @@ module.exports = { /******/ // start chunk loading /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId); /******/ var loadingEnded = () => { -/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) return installedChunks[chunkId][1]; -/******/ if(installedChunks[chunkId] !== 0) installedChunks[chunkId] = undefined; +/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId)) { +/******/ installedChunkData = installedChunks[chunkId]; +/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined; +/******/ if(installedChunkData) return installedChunkData[1]; +/******/ } /******/ }; /******/ var script = document.createElement('script'); /******/ var onScriptComplete; @@ -215,6 +218,7 @@ module.exports = { /******/ // create error before stack unwound to get useful stacktrace later /******/ var error = new Error(); /******/ onScriptComplete = function (event) { +/******/ onScriptComplete = function() {}; /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); @@ -294,7 +298,7 @@ module.exports = { !*** ./example.js ***! \********************/ /*! exports [maybe provided (runtime-defined)] [no usage info] */ -/*! runtime requirements: __webpack_require__.e, __webpack_require__, __webpack_require__.* */ +/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.* */ var main = function() { console.log("Main class"); Promise.all(/*! require.ensure */[__webpack_require__.e(421), __webpack_require__.e(366)]).then((() => { @@ -348,7 +352,7 @@ module.exports = function() { !*** ./pageB.js ***! \******************/ /*! exports [maybe provided (runtime-defined)] [no usage info] */ -/*! runtime requirements: module, __webpack_require__.e, __webpack_require__, __webpack_require__.* */ +/*! runtime requirements: __webpack_require__, module, __webpack_require__.e, __webpack_require__.* */ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { module.exports = function() { @@ -420,20 +424,20 @@ module.exports = function() { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size 145.output.js 514 bytes [emitted] 366.output.js 520 bytes [emitted] 421.output.js 396 bytes [emitted] 588.output.js 698 bytes [emitted] - output.js 7.99 KiB [emitted] [name: main] + output.js 8.13 KiB [emitted] [name: main] Entrypoint main = output.js chunk 145.output.js 136 bytes [rendered] > ./pageB.js 3:1-6:3 ./pageC.js 136 bytes [built] [used exports unknown] cjs require ./pageC ./pageB.js 4:15-33 -chunk output.js (main) 220 bytes (javascript) 4.14 KiB (runtime) [entry] [rendered] +chunk output.js (main) 220 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 220 bytes [built] [used exports unknown] @@ -462,19 +466,19 @@ chunk 588.output.js 133 bytes [rendered] ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size 145.output.js 138 bytes [emitted] 366.output.js 138 bytes [emitted] 421.output.js 127 bytes [emitted] 588.output.js 202 bytes [emitted] - output.js 1.53 KiB [emitted] [name: main] + output.js 1.54 KiB [emitted] [name: main] Entrypoint main = output.js chunk 145.output.js 136 bytes [rendered] > ./pageB.js 3:1-6:3 ./pageC.js 136 bytes [built] cjs require ./pageC ./pageB.js 4:15-33 -chunk output.js (main) 220 bytes (javascript) 4.14 KiB (runtime) [entry] [rendered] +chunk output.js (main) 220 bytes (javascript) 4.23 KiB (runtime) [entry] [rendered] > ./example.js main ./example.js 220 bytes [built] [no exports used] diff --git a/examples/dll-app-and-vendor/0-vendor/README.md b/examples/dll-app-and-vendor/0-vendor/README.md index 362bdc06f..a99ad8a70 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_427d036e1fe0feadbdd9 = +var vendor_lib_02cb05c865a84081bc8b = /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ([ /* 0 */ @@ -61,7 +61,7 @@ module.exports = __webpack_require__; \*****************************************/ /*! export square [provided] [maybe used (runtime-defined)] [usage prevents renaming] */ /*! other exports [not provided] [maybe used (runtime-defined)] */ -/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */ +/*! runtime requirements: __webpack_exports__, __webpack_require__.d, __webpack_require__.r, __webpack_require__.* */ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; @@ -104,17 +104,6 @@ function square(n) { /******/ } /******/ /************************************************************************/ -/******/ /* webpack/runtime/make namespace object */ -/******/ !function() { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ }(); -/******/ /******/ /* webpack/runtime/define property getters */ /******/ !function() { /******/ // define getter functions for harmony exports @@ -128,6 +117,17 @@ function square(n) { /******/ }; /******/ }(); /******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ !function() { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ }(); +/******/ /************************************************************************/ /******/ // module exports must be returned from runtime so entry inlining is disabled /******/ // startup @@ -140,7 +140,7 @@ function square(n) { # dist/vendor-manifest.json ```javascript -{"name":"vendor_lib_427d036e1fe0feadbdd9","content":{"../node_modules/example-vendor.js":{"id":1,"buildMeta":{"exportsType":"namespace","async":false},"exports":["square"]}}} +{"name":"vendor_lib_02cb05c865a84081bc8b","content":{"../node_modules/example-vendor.js":{"id":1,"buildMeta":{"exportsType":"namespace","async":false},"exports":["square"]}}} ``` # Info @@ -149,7 +149,7 @@ function square(n) { ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size vendor.js 3.48 KiB [emitted] [name: main] Entrypoint main = vendor.js @@ -170,7 +170,7 @@ chunk vendor.js (main) 57 bytes (javascript) 632 bytes (runtime) [entry] [render ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size vendor.js 627 bytes [emitted] [name: main] Entrypoint main = vendor.js diff --git a/examples/dll-app-and-vendor/1-app/README.md b/examples/dll-app-and-vendor/1-app/README.md index 1bc6e9059..4fd324902 100644 --- a/examples/dll-app-and-vendor/1-app/README.md +++ b/examples/dll-app-and-vendor/1-app/README.md @@ -55,7 +55,7 @@ console.log(new square(7)); !*** ./example-app.js ***! \************************/ /*! exports [not provided] [no usage info] */ -/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__, __webpack_require__.* */ +/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, __webpack_require__.* */ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; @@ -70,26 +70,26 @@ console.log(new example_vendor__WEBPACK_IMPORTED_MODULE_0__.square(7)); /***/ }), /* 1 */ /*!******************************************************************************************************!*\ - !*** delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_427d036e1fe0feadbdd9 ***! + !*** delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_02cb05c865a84081bc8b ***! \******************************************************************************************************/ /*! export square [provided] [no usage info] [provision prevents renaming (no use info)] */ /*! other exports [not provided] [no usage info] */ /*! runtime requirements: module, __webpack_require__ */ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { -module.exports = (__webpack_require__(/*! dll-reference vendor_lib_427d036e1fe0feadbdd9 */ 2))(1); +module.exports = (__webpack_require__(/*! dll-reference vendor_lib_02cb05c865a84081bc8b */ 2))(1); /***/ }), /* 2 */ /*!**************************************************!*\ - !*** external "vendor_lib_427d036e1fe0feadbdd9" ***! + !*** external "vendor_lib_02cb05c865a84081bc8b" ***! \**************************************************/ /*! exports [maybe provided (runtime-defined)] [no usage info] */ /*! runtime requirements: module */ /***/ ((module) => { "use strict"; -module.exports = vendor_lib_427d036e1fe0feadbdd9; +module.exports = vendor_lib_02cb05c865a84081bc8b; /***/ }) /******/ ]); @@ -147,7 +147,7 @@ module.exports = vendor_lib_427d036e1fe0feadbdd9; ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size app.js 3.5 KiB [emitted] [name: main] Entrypoint main = app.js @@ -157,15 +157,15 @@ chunk app.js (main) 178 bytes (javascript) 274 bytes (runtime) [entry] [rendered [no exports] [used exports unknown] entry ./example-app main - delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_427d036e1fe0feadbdd9 42 bytes [built] + delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_02cb05c865a84081bc8b 42 bytes [built] [exports: square] [used exports unknown] harmony side effect evaluation example-vendor ./example-app.js 1:0-40 harmony import specifier example-vendor ./example-app.js 3:12-18 harmony import specifier example-vendor ./example-app.js 4:16-22 - external "vendor_lib_427d036e1fe0feadbdd9" 42 bytes [built] + external "vendor_lib_02cb05c865a84081bc8b" 42 bytes [built] [used exports unknown] - delegated source dll-reference vendor_lib_427d036e1fe0feadbdd9 delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_427d036e1fe0feadbdd9 + delegated source dll-reference vendor_lib_02cb05c865a84081bc8b delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_02cb05c865a84081bc8b + 1 hidden chunk module ``` @@ -173,7 +173,7 @@ chunk app.js (main) 178 bytes (javascript) 274 bytes (runtime) [entry] [rendered ``` Hash: 0a1b2c3d4e5f6a7b8c9d -Version: webpack 5.0.0-beta.1 +Version: webpack 5.0.0-beta.6 Asset Size app.js 340 bytes [emitted] [name: main] Entrypoint main = app.js @@ -183,14 +183,14 @@ chunk app.js (main) 178 bytes [entry] [rendered] [no exports] [no exports used] entry ./example-app main - delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_427d036e1fe0feadbdd9 42 bytes [built] + delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_02cb05c865a84081bc8b 42 bytes [built] [exports: square] [all exports used] harmony side effect evaluation example-vendor ./example-app.js 1:0-40 harmony import specifier example-vendor ./example-app.js 3:12-18 harmony import specifier example-vendor ./example-app.js 4:16-22 - external "vendor_lib_427d036e1fe0feadbdd9" 42 bytes [built] - delegated source dll-reference vendor_lib_427d036e1fe0feadbdd9 delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_427d036e1fe0feadbdd9 + external "vendor_lib_02cb05c865a84081bc8b" 42 bytes [built] + delegated source dll-reference vendor_lib_02cb05c865a84081bc8b delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_02cb05c865a84081bc8b ```