Skip to content

Commit 16a841a

Browse files
gabrielcsapojantimon
authored andcommitted
[chore] rebuild examples
1 parent 3bb7c17 commit 16a841a

File tree

4 files changed

+116
-104
lines changed

4 files changed

+116
-104
lines changed

examples/chunk-optimization/dist/webpack-5/entryA.js

+57-51
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ document.body.appendChild(h1);
2222
/******/ // The require function
2323
/******/ function __webpack_require__(moduleId) {
2424
/******/ // Check if module is in cache
25-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
26-
/******/ if (cachedModule !== undefined) {
27-
/******/ return cachedModule.exports;
25+
/******/ if(__webpack_module_cache__[moduleId]) {
26+
/******/ return __webpack_module_cache__[moduleId].exports;
2827
/******/ }
2928
/******/ // Create a new module (and put it into the cache)
3029
/******/ var module = __webpack_module_cache__[moduleId] = {
@@ -43,38 +42,10 @@ document.body.appendChild(h1);
4342
/******/ // expose the modules object (__webpack_modules__)
4443
/******/ __webpack_require__.m = __webpack_modules__;
4544
/******/
45+
/******/ // the startup function
46+
/******/ // It's empty as some runtime module handles the default behavior
47+
/******/ __webpack_require__.x = x => {};
4648
/************************************************************************/
47-
/******/ /* webpack/runtime/chunk loaded */
48-
/******/ (() => {
49-
/******/ var deferred = [];
50-
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
51-
/******/ if(chunkIds) {
52-
/******/ priority = priority || 0;
53-
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
54-
/******/ deferred[i] = [chunkIds, fn, priority];
55-
/******/ return;
56-
/******/ }
57-
/******/ var notFulfilled = Infinity;
58-
/******/ for (var i = 0; i < deferred.length; i++) {
59-
/******/ var [chunkIds, fn, priority] = deferred[i];
60-
/******/ var fulfilled = true;
61-
/******/ for (var j = 0; j < chunkIds.length; j++) {
62-
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
63-
/******/ chunkIds.splice(j--, 1);
64-
/******/ } else {
65-
/******/ fulfilled = false;
66-
/******/ if(priority < notFulfilled) notFulfilled = priority;
67-
/******/ }
68-
/******/ }
69-
/******/ if(fulfilled) {
70-
/******/ deferred.splice(i--, 1)
71-
/******/ result = fn();
72-
/******/ }
73-
/******/ }
74-
/******/ return result;
75-
/******/ };
76-
/******/ })();
77-
/******/
7849
/******/ /* webpack/runtime/compat get default export */
7950
/******/ (() => {
8051
/******/ // getDefaultExport function for compatibility with non-harmony modules
@@ -121,11 +92,14 @@ document.body.appendChild(h1);
12192
/******/
12293
/******/ // object to store loaded and loading chunks
12394
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
124-
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
95+
/******/ // Promise = chunk loading, 0 = chunk loaded
12596
/******/ var installedChunks = {
12697
/******/ 938: 0
12798
/******/ };
12899
/******/
100+
/******/ var deferredModules = [
101+
/******/ [727,494,491,219,965]
102+
/******/ ];
129103
/******/ // no chunk on demand loading
130104
/******/
131105
/******/ // no prefetching
@@ -136,43 +110,75 @@ document.body.appendChild(h1);
136110
/******/
137111
/******/ // no HMR manifest
138112
/******/
139-
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
113+
/******/ var checkDeferredModules = x => {};
140114
/******/
141115
/******/ // install a JSONP callback for chunk loading
142116
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
143-
/******/ var [chunkIds, moreModules, runtime] = data;
117+
/******/ var [chunkIds, moreModules, runtime, executeModules] = data;
144118
/******/ // add "moreModules" to the modules object,
145119
/******/ // then flag all "chunkIds" as loaded and fire callback
146-
/******/ var moduleId, chunkId, i = 0;
120+
/******/ var moduleId, chunkId, i = 0, resolves = [];
121+
/******/ for(;i < chunkIds.length; i++) {
122+
/******/ chunkId = chunkIds[i];
123+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
124+
/******/ resolves.push(installedChunks[chunkId][0]);
125+
/******/ }
126+
/******/ installedChunks[chunkId] = 0;
127+
/******/ }
147128
/******/ for(moduleId in moreModules) {
148129
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
149130
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
150131
/******/ }
151132
/******/ }
152-
/******/ if(runtime) var result = runtime(__webpack_require__);
133+
/******/ if(runtime) runtime(__webpack_require__);
153134
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
154-
/******/ for(;i < chunkIds.length; i++) {
155-
/******/ chunkId = chunkIds[i];
156-
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
157-
/******/ installedChunks[chunkId][0]();
158-
/******/ }
159-
/******/ installedChunks[chunkIds[i]] = 0;
135+
/******/ while(resolves.length) {
136+
/******/ resolves.shift()();
160137
/******/ }
161-
/******/ return __webpack_require__.O(result);
138+
/******/
139+
/******/ // add entry modules from loaded chunk to deferred list
140+
/******/ if(executeModules) deferredModules.push.apply(deferredModules, executeModules);
141+
/******/
142+
/******/ // run deferred modules when all chunks ready
143+
/******/ return checkDeferredModules();
162144
/******/ }
163145
/******/
164146
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
165147
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
166148
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
149+
/******/
150+
/******/ function checkDeferredModulesImpl() {
151+
/******/ var result;
152+
/******/ for(var i = 0; i < deferredModules.length; i++) {
153+
/******/ var deferredModule = deferredModules[i];
154+
/******/ var fulfilled = true;
155+
/******/ for(var j = 1; j < deferredModule.length; j++) {
156+
/******/ var depId = deferredModule[j];
157+
/******/ if(installedChunks[depId] !== 0) fulfilled = false;
158+
/******/ }
159+
/******/ if(fulfilled) {
160+
/******/ deferredModules.splice(i--, 1);
161+
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
162+
/******/ }
163+
/******/ }
164+
/******/ if(deferredModules.length === 0) {
165+
/******/ __webpack_require__.x();
166+
/******/ __webpack_require__.x = x => {};
167+
/******/ }
168+
/******/ return result;
169+
/******/ }
170+
/******/ var startup = __webpack_require__.x;
171+
/******/ __webpack_require__.x = () => {
172+
/******/ // reset startup function so it can be called again when more startup code is added
173+
/******/ __webpack_require__.x = startup || (x => {});
174+
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
175+
/******/ };
167176
/******/ })();
168177
/******/
169178
/************************************************************************/
170179
/******/
171-
/******/ // startup
172-
/******/ // Load entry module and return exports
173-
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
174-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [494,491,219,965], () => (__webpack_require__(727)))
175-
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
180+
/******/ // run startup
181+
/******/ var __webpack_exports__ = __webpack_require__.x();
176182
/******/
177183
/******/ })()
178184
;

examples/chunk-optimization/dist/webpack-5/entryB.js

+57-51
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ document.body.appendChild(h1);
2121
/******/ // The require function
2222
/******/ function __webpack_require__(moduleId) {
2323
/******/ // Check if module is in cache
24-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
25-
/******/ if (cachedModule !== undefined) {
26-
/******/ return cachedModule.exports;
24+
/******/ if(__webpack_module_cache__[moduleId]) {
25+
/******/ return __webpack_module_cache__[moduleId].exports;
2726
/******/ }
2827
/******/ // Create a new module (and put it into the cache)
2928
/******/ var module = __webpack_module_cache__[moduleId] = {
@@ -42,38 +41,10 @@ document.body.appendChild(h1);
4241
/******/ // expose the modules object (__webpack_modules__)
4342
/******/ __webpack_require__.m = __webpack_modules__;
4443
/******/
44+
/******/ // the startup function
45+
/******/ // It's empty as some runtime module handles the default behavior
46+
/******/ __webpack_require__.x = x => {};
4547
/************************************************************************/
46-
/******/ /* webpack/runtime/chunk loaded */
47-
/******/ (() => {
48-
/******/ var deferred = [];
49-
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
50-
/******/ if(chunkIds) {
51-
/******/ priority = priority || 0;
52-
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
53-
/******/ deferred[i] = [chunkIds, fn, priority];
54-
/******/ return;
55-
/******/ }
56-
/******/ var notFulfilled = Infinity;
57-
/******/ for (var i = 0; i < deferred.length; i++) {
58-
/******/ var [chunkIds, fn, priority] = deferred[i];
59-
/******/ var fulfilled = true;
60-
/******/ for (var j = 0; j < chunkIds.length; j++) {
61-
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
62-
/******/ chunkIds.splice(j--, 1);
63-
/******/ } else {
64-
/******/ fulfilled = false;
65-
/******/ if(priority < notFulfilled) notFulfilled = priority;
66-
/******/ }
67-
/******/ }
68-
/******/ if(fulfilled) {
69-
/******/ deferred.splice(i--, 1)
70-
/******/ result = fn();
71-
/******/ }
72-
/******/ }
73-
/******/ return result;
74-
/******/ };
75-
/******/ })();
76-
/******/
7748
/******/ /* webpack/runtime/compat get default export */
7849
/******/ (() => {
7950
/******/ // getDefaultExport function for compatibility with non-harmony modules
@@ -120,11 +91,14 @@ document.body.appendChild(h1);
12091
/******/
12192
/******/ // object to store loaded and loading chunks
12293
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
123-
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
94+
/******/ // Promise = chunk loading, 0 = chunk loaded
12495
/******/ var installedChunks = {
12596
/******/ 513: 0
12697
/******/ };
12798
/******/
99+
/******/ var deferredModules = [
100+
/******/ [282,494,219,965]
101+
/******/ ];
128102
/******/ // no chunk on demand loading
129103
/******/
130104
/******/ // no prefetching
@@ -135,43 +109,75 @@ document.body.appendChild(h1);
135109
/******/
136110
/******/ // no HMR manifest
137111
/******/
138-
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
112+
/******/ var checkDeferredModules = x => {};
139113
/******/
140114
/******/ // install a JSONP callback for chunk loading
141115
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
142-
/******/ var [chunkIds, moreModules, runtime] = data;
116+
/******/ var [chunkIds, moreModules, runtime, executeModules] = data;
143117
/******/ // add "moreModules" to the modules object,
144118
/******/ // then flag all "chunkIds" as loaded and fire callback
145-
/******/ var moduleId, chunkId, i = 0;
119+
/******/ var moduleId, chunkId, i = 0, resolves = [];
120+
/******/ for(;i < chunkIds.length; i++) {
121+
/******/ chunkId = chunkIds[i];
122+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
123+
/******/ resolves.push(installedChunks[chunkId][0]);
124+
/******/ }
125+
/******/ installedChunks[chunkId] = 0;
126+
/******/ }
146127
/******/ for(moduleId in moreModules) {
147128
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
148129
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
149130
/******/ }
150131
/******/ }
151-
/******/ if(runtime) var result = runtime(__webpack_require__);
132+
/******/ if(runtime) runtime(__webpack_require__);
152133
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
153-
/******/ for(;i < chunkIds.length; i++) {
154-
/******/ chunkId = chunkIds[i];
155-
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
156-
/******/ installedChunks[chunkId][0]();
157-
/******/ }
158-
/******/ installedChunks[chunkIds[i]] = 0;
134+
/******/ while(resolves.length) {
135+
/******/ resolves.shift()();
159136
/******/ }
160-
/******/ return __webpack_require__.O(result);
137+
/******/
138+
/******/ // add entry modules from loaded chunk to deferred list
139+
/******/ if(executeModules) deferredModules.push.apply(deferredModules, executeModules);
140+
/******/
141+
/******/ // run deferred modules when all chunks ready
142+
/******/ return checkDeferredModules();
161143
/******/ }
162144
/******/
163145
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
164146
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
165147
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
148+
/******/
149+
/******/ function checkDeferredModulesImpl() {
150+
/******/ var result;
151+
/******/ for(var i = 0; i < deferredModules.length; i++) {
152+
/******/ var deferredModule = deferredModules[i];
153+
/******/ var fulfilled = true;
154+
/******/ for(var j = 1; j < deferredModule.length; j++) {
155+
/******/ var depId = deferredModule[j];
156+
/******/ if(installedChunks[depId] !== 0) fulfilled = false;
157+
/******/ }
158+
/******/ if(fulfilled) {
159+
/******/ deferredModules.splice(i--, 1);
160+
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
161+
/******/ }
162+
/******/ }
163+
/******/ if(deferredModules.length === 0) {
164+
/******/ __webpack_require__.x();
165+
/******/ __webpack_require__.x = x => {};
166+
/******/ }
167+
/******/ return result;
168+
/******/ }
169+
/******/ var startup = __webpack_require__.x;
170+
/******/ __webpack_require__.x = () => {
171+
/******/ // reset startup function so it can be called again when more startup code is added
172+
/******/ __webpack_require__.x = startup || (x => {});
173+
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
174+
/******/ };
166175
/******/ })();
167176
/******/
168177
/************************************************************************/
169178
/******/
170-
/******/ // startup
171-
/******/ // Load entry module and return exports
172-
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
173-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [494,219,965], () => (__webpack_require__(282)))
174-
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
179+
/******/ // run startup
180+
/******/ var __webpack_exports__ = __webpack_require__.x();
175181
/******/
176182
/******/ })()
177183
;
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<head><script defer="defer" src="bundle.js"></script><link href="styles.css" rel="stylesheet"></head>Hello World from backend2021-06-22T13:06:30.743Z<h2>Partial</h2><img src="55b19870aff2e53d1fb1.png">
1+
<head><script defer="defer" src="bundle.js"></script><link href="styles.css" rel="stylesheet"></head>Hello World from backend2021-10-09T14:25:52.580Z<h2>Partial</h2><img src="55b19870aff2e53d1fb1.png">
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html><head><title>pug demo</title><link rel="icon" href="favicon.ico"><script defer="defer" src="bundle.js"></script><link href="styles.css" rel="stylesheet"></head><body><div id="main"><div class="time"><b>Current time</b><p>1998-12-31T23:00:00.000Z</p></div><img src="#{require('./logo.png')}"></div></body></html>
1+
<!doctype html><html><head><title>pug demo</title><link rel="icon" href="favicon.ico"><script defer="defer" src="bundle.js"></script><link href="styles.css" rel="stylesheet"></head><body><div id="main"><div class="time"><b>Current time</b><p>1999-01-01T05:00:00.000Z</p></div><img src="#{require('./logo.png')}"></div></body></html>

0 commit comments

Comments
 (0)