|
1 | 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing |
2 | 2 |
|
3 | | -exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should compile 1`] = ` |
| 3 | +exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should compile: bundle0.js 1`] = ` |
4 | 4 | "/******/ (() => { // webpackBootstrap |
5 | 5 | /******/ var __webpack_modules__ = ({ |
6 | 6 |
|
@@ -169,125 +169,7 @@ it(\\"should evaluate the deferred module on access\\", () => { |
169 | 169 | ;" |
170 | 170 | `; |
171 | 171 |
|
172 | | -exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should compile 2`] = ` |
173 | | -"/******/ (() => { // webpackBootstrap |
174 | | -/******/ var __webpack_modules__ = ({ |
175 | | -
|
176 | | -/***/ 896 |
177 | | -/*!*********************!*\\\\ |
178 | | - !*** ./pure-cjs.js ***! |
179 | | - \\\\*********************/ |
180 | | -(__unused_webpack_module, exports) { |
181 | | -
|
182 | | -exports.l = function (a, b) { |
183 | | - return a * b; |
184 | | -}; |
185 | | -
|
186 | | -
|
187 | | -/***/ } |
188 | | -
|
189 | | -/******/ }); |
190 | | -/************************************************************************/ |
191 | | -/******/ // The module cache |
192 | | -/******/ const __webpack_module_cache__ = {}; |
193 | | -/******/ |
194 | | -/******/ // The require function |
195 | | -/******/ function __webpack_require__(moduleId) { |
196 | | -/******/ // Check if module is in cache |
197 | | -/******/ const cachedModule = __webpack_module_cache__[moduleId]; |
198 | | -/******/ if (cachedModule !== undefined) { |
199 | | -/******/ if (cachedModule.error !== undefined) throw cachedModule.error; |
200 | | -/******/ return cachedModule.exports; |
201 | | -/******/ } |
202 | | -/******/ // Create a new module (and put it into the cache) |
203 | | -/******/ const module = __webpack_module_cache__[moduleId] = { |
204 | | -/******/ // no module.id needed |
205 | | -/******/ // no module.loaded needed |
206 | | -/******/ exports: {} |
207 | | -/******/ }; |
208 | | -/******/ |
209 | | -/******/ // Execute the module function |
210 | | -/******/ module.evaluating = true; |
211 | | -/******/ try { |
212 | | -/******/ if (!(moduleId in __webpack_modules__)) { |
213 | | -/******/ delete __webpack_module_cache__[moduleId]; |
214 | | -/******/ const e = new Error(\\"Cannot find module '\\" + moduleId + \\"'\\"); |
215 | | -/******/ e.code = 'MODULE_NOT_FOUND'; |
216 | | -/******/ throw e; |
217 | | -/******/ } |
218 | | -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); |
219 | | -/******/ module.evaluating = false; |
220 | | -/******/ } catch(e) { |
221 | | -/******/ module.evaluating = false; |
222 | | -/******/ module.error = e; |
223 | | -/******/ throw e; |
224 | | -/******/ } |
225 | | -/******/ |
226 | | -/******/ // Return the exports of the module |
227 | | -/******/ return module.exports; |
228 | | -/******/ } |
229 | | -/******/ |
230 | | -/************************************************************************/ |
231 | | -/******/ /* webpack/runtime/make optimized deferred namespace object */ |
232 | | -/******/ __webpack_require__.zO = function(moduleId, mode, asyncDeps, syncDeps) { |
233 | | -/******/ const r = this; |
234 | | -/******/ |
235 | | -/******/ const obj = { |
236 | | -/******/ get a() { |
237 | | -/******/ const cachedModule = __webpack_module_cache__[moduleId]; |
238 | | -/******/ if (cachedModule !== undefined && (cachedModule.evaluating || cachedModule.evaluatingAsync)) throw new TypeError(\\"Cannot access a deferred module namespace while the module is being evaluated\\"); |
239 | | -/******/ if (syncDeps) for (var i = 0; i < syncDeps.length; i++) { |
240 | | -/******/ const depModule = __webpack_module_cache__[syncDeps[i]]; |
241 | | -/******/ if (depModule !== undefined && (depModule.evaluating || depModule.evaluatingAsync)) throw new TypeError(\\"Cannot access a deferred module namespace while a dependency is being evaluated\\"); |
242 | | -/******/ } |
243 | | -/******/ let exports = r(moduleId); |
244 | | -/******/ |
245 | | -/******/ if(mode & 8 || (mode & 4 && exports.__esModule)) Object.defineProperty(this, \\"a\\", { value: exports }); |
246 | | -/******/ return exports; |
247 | | -/******/ } |
248 | | -/******/ }; |
249 | | -/******/ |
250 | | -/******/ return obj; |
251 | | -/******/ }; |
252 | | -/******/ |
253 | | -/************************************************************************/ |
254 | | -let __webpack_exports__ = {}; |
255 | | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. |
256 | | -(() => { |
257 | | -\\"use strict\\"; |
258 | | -/*!******************************!*\\\\ |
259 | | - !*** ./index.js + 2 modules ***! |
260 | | - \\\\******************************/ |
261 | | -
|
262 | | -// DEFERRED EXTERNAL MODULE: ./pure-cjs.js |
263 | | -var pure_cjs_deferred = /*#__PURE__*/__webpack_require__.zO(896, /* default-with-named */ 2); |
264 | | -;// ./side.js |
265 | | -function extra(a) { |
266 | | - return a + 1; |
267 | | -} |
268 | | -
|
269 | | -;// ./lib.js |
270 | | -
|
271 | | -
|
272 | | -
|
273 | | -function readLazy(a, b) { |
274 | | - return pure_cjs_deferred.a/* mul */.l(a, b) + extra(0); |
275 | | -} |
276 | | -
|
277 | | -;// ./index.js |
278 | | -
|
279 | | -
|
280 | | -it(\\"should evaluate the deferred module on access\\", () => { |
281 | | - expect(readLazy(6, 7)).toBe(43); |
282 | | -}); |
283 | | -
|
284 | | -})(); |
285 | | -
|
286 | | -/******/ })() |
287 | | -;" |
288 | | -`; |
289 | | - |
290 | | -exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should compile 3`] = ` |
| 172 | +exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should compile: bundle0.js 2`] = ` |
291 | 173 | "/******/ (() => { // webpackBootstrap |
292 | 174 | /******/ var __webpack_modules__ = ({ |
293 | 175 |
|
@@ -456,7 +338,7 @@ it(\\"should evaluate the deferred module on access\\", () => { |
456 | 338 | ;" |
457 | 339 | `; |
458 | 340 |
|
459 | | -exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should compile 4`] = ` |
| 341 | +exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should compile: bundle1.js 1`] = ` |
460 | 342 | "/******/ (() => { // webpackBootstrap |
461 | 343 | /******/ var __webpack_modules__ = ({ |
462 | 344 |
|
@@ -574,7 +456,7 @@ it(\\"should evaluate the deferred module on access\\", () => { |
574 | 456 | ;" |
575 | 457 | `; |
576 | 458 |
|
577 | | -exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should pre-compile to fill disk cache (1st) 1`] = ` |
| 459 | +exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should compile: bundle1.js 2`] = ` |
578 | 460 | "/******/ (() => { // webpackBootstrap |
579 | 461 | /******/ var __webpack_modules__ = ({ |
580 | 462 |
|
@@ -692,7 +574,7 @@ it(\\"should evaluate the deferred module on access\\", () => { |
692 | 574 | ;" |
693 | 575 | `; |
694 | 576 |
|
695 | | -exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should pre-compile to fill disk cache (1st) 2`] = ` |
| 577 | +exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should pre-compile to fill disk cache (1st): bundle0.js 1`] = ` |
696 | 578 | "/******/ (() => { // webpackBootstrap |
697 | 579 | /******/ var __webpack_modules__ = ({ |
698 | 580 |
|
@@ -861,7 +743,125 @@ it(\\"should evaluate the deferred module on access\\", () => { |
861 | 743 | ;" |
862 | 744 | `; |
863 | 745 |
|
864 | | -exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should pre-compile to fill disk cache (2nd) 1`] = ` |
| 746 | +exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should pre-compile to fill disk cache (1st): bundle1.js 1`] = ` |
| 747 | +"/******/ (() => { // webpackBootstrap |
| 748 | +/******/ var __webpack_modules__ = ({ |
| 749 | +
|
| 750 | +/***/ 896 |
| 751 | +/*!*********************!*\\\\ |
| 752 | + !*** ./pure-cjs.js ***! |
| 753 | + \\\\*********************/ |
| 754 | +(__unused_webpack_module, exports) { |
| 755 | +
|
| 756 | +exports.l = function (a, b) { |
| 757 | + return a * b; |
| 758 | +}; |
| 759 | +
|
| 760 | +
|
| 761 | +/***/ } |
| 762 | +
|
| 763 | +/******/ }); |
| 764 | +/************************************************************************/ |
| 765 | +/******/ // The module cache |
| 766 | +/******/ const __webpack_module_cache__ = {}; |
| 767 | +/******/ |
| 768 | +/******/ // The require function |
| 769 | +/******/ function __webpack_require__(moduleId) { |
| 770 | +/******/ // Check if module is in cache |
| 771 | +/******/ const cachedModule = __webpack_module_cache__[moduleId]; |
| 772 | +/******/ if (cachedModule !== undefined) { |
| 773 | +/******/ if (cachedModule.error !== undefined) throw cachedModule.error; |
| 774 | +/******/ return cachedModule.exports; |
| 775 | +/******/ } |
| 776 | +/******/ // Create a new module (and put it into the cache) |
| 777 | +/******/ const module = __webpack_module_cache__[moduleId] = { |
| 778 | +/******/ // no module.id needed |
| 779 | +/******/ // no module.loaded needed |
| 780 | +/******/ exports: {} |
| 781 | +/******/ }; |
| 782 | +/******/ |
| 783 | +/******/ // Execute the module function |
| 784 | +/******/ module.evaluating = true; |
| 785 | +/******/ try { |
| 786 | +/******/ if (!(moduleId in __webpack_modules__)) { |
| 787 | +/******/ delete __webpack_module_cache__[moduleId]; |
| 788 | +/******/ const e = new Error(\\"Cannot find module '\\" + moduleId + \\"'\\"); |
| 789 | +/******/ e.code = 'MODULE_NOT_FOUND'; |
| 790 | +/******/ throw e; |
| 791 | +/******/ } |
| 792 | +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); |
| 793 | +/******/ module.evaluating = false; |
| 794 | +/******/ } catch(e) { |
| 795 | +/******/ module.evaluating = false; |
| 796 | +/******/ module.error = e; |
| 797 | +/******/ throw e; |
| 798 | +/******/ } |
| 799 | +/******/ |
| 800 | +/******/ // Return the exports of the module |
| 801 | +/******/ return module.exports; |
| 802 | +/******/ } |
| 803 | +/******/ |
| 804 | +/************************************************************************/ |
| 805 | +/******/ /* webpack/runtime/make optimized deferred namespace object */ |
| 806 | +/******/ __webpack_require__.zO = function(moduleId, mode, asyncDeps, syncDeps) { |
| 807 | +/******/ const r = this; |
| 808 | +/******/ |
| 809 | +/******/ const obj = { |
| 810 | +/******/ get a() { |
| 811 | +/******/ const cachedModule = __webpack_module_cache__[moduleId]; |
| 812 | +/******/ if (cachedModule !== undefined && (cachedModule.evaluating || cachedModule.evaluatingAsync)) throw new TypeError(\\"Cannot access a deferred module namespace while the module is being evaluated\\"); |
| 813 | +/******/ if (syncDeps) for (var i = 0; i < syncDeps.length; i++) { |
| 814 | +/******/ const depModule = __webpack_module_cache__[syncDeps[i]]; |
| 815 | +/******/ if (depModule !== undefined && (depModule.evaluating || depModule.evaluatingAsync)) throw new TypeError(\\"Cannot access a deferred module namespace while a dependency is being evaluated\\"); |
| 816 | +/******/ } |
| 817 | +/******/ let exports = r(moduleId); |
| 818 | +/******/ |
| 819 | +/******/ if(mode & 8 || (mode & 4 && exports.__esModule)) Object.defineProperty(this, \\"a\\", { value: exports }); |
| 820 | +/******/ return exports; |
| 821 | +/******/ } |
| 822 | +/******/ }; |
| 823 | +/******/ |
| 824 | +/******/ return obj; |
| 825 | +/******/ }; |
| 826 | +/******/ |
| 827 | +/************************************************************************/ |
| 828 | +let __webpack_exports__ = {}; |
| 829 | +// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. |
| 830 | +(() => { |
| 831 | +\\"use strict\\"; |
| 832 | +/*!******************************!*\\\\ |
| 833 | + !*** ./index.js + 2 modules ***! |
| 834 | + \\\\******************************/ |
| 835 | +
|
| 836 | +// DEFERRED EXTERNAL MODULE: ./pure-cjs.js |
| 837 | +var pure_cjs_deferred = /*#__PURE__*/__webpack_require__.zO(896, /* default-with-named */ 2); |
| 838 | +;// ./side.js |
| 839 | +function extra(a) { |
| 840 | + return a + 1; |
| 841 | +} |
| 842 | +
|
| 843 | +;// ./lib.js |
| 844 | +
|
| 845 | +
|
| 846 | +
|
| 847 | +function readLazy(a, b) { |
| 848 | + return pure_cjs_deferred.a/* mul */.l(a, b) + extra(0); |
| 849 | +} |
| 850 | +
|
| 851 | +;// ./index.js |
| 852 | +
|
| 853 | +
|
| 854 | +it(\\"should evaluate the deferred module on access\\", () => { |
| 855 | + expect(readLazy(6, 7)).toBe(43); |
| 856 | +}); |
| 857 | +
|
| 858 | +})(); |
| 859 | +
|
| 860 | +/******/ })() |
| 861 | +;" |
| 862 | +`; |
| 863 | + |
| 864 | +exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should pre-compile to fill disk cache (2nd): bundle0.js 1`] = ` |
865 | 865 | "/******/ (() => { // webpackBootstrap |
866 | 866 | /******/ var __webpack_modules__ = ({ |
867 | 867 |
|
@@ -1030,7 +1030,7 @@ it(\\"should evaluate the deferred module on access\\", () => { |
1030 | 1030 | ;" |
1031 | 1031 | `; |
1032 | 1032 |
|
1033 | | -exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should pre-compile to fill disk cache (2nd) 2`] = ` |
| 1033 | +exports[`ConfigCacheTestCases side-effects pure-deferred-import pure-deferred-import should pre-compile to fill disk cache (2nd): bundle1.js 1`] = ` |
1034 | 1034 | "/******/ (() => { // webpackBootstrap |
1035 | 1035 | /******/ var __webpack_modules__ = ({ |
1036 | 1036 |
|
|
0 commit comments