commit
8295202bc8
|
@ -60,117 +60,117 @@ module.exports = {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
394.chunk.js 638 bytes [emitted]
|
||||
456.chunk.js 6.32 KiB [emitted]
|
||||
pageA.bundle.js 7.91 KiB [emitted] [name: pageA]
|
||||
pageB.bundle.js 7.91 KiB [emitted] [name: pageB]
|
||||
pageC.bundle.js 7.91 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.19 KiB (runtime) [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
./pageB.js 69 bytes [built]
|
||||
[no exports used]
|
||||
entry ./pageB pageB
|
||||
+ 5 hidden chunk modules
|
||||
chunk pageC.bundle.js (pageC) 68 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
./pageC.js 68 bytes [built]
|
||||
[no exports used]
|
||||
entry ./pageC pageC
|
||||
+ 5 hidden chunk modules
|
||||
asset pageA.bundle.js 8.76 KiB [emitted] (name: pageA)
|
||||
asset pageB.bundle.js 8.76 KiB [emitted] (name: pageB)
|
||||
asset pageC.bundle.js 8.76 KiB [emitted] (name: pageC)
|
||||
asset 456.chunk.js 6.28 KiB [emitted]
|
||||
asset 394.chunk.js 606 bytes [emitted]
|
||||
chunk pageB.bundle.js (pageB) 69 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./pageB.js 69 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./pageB pageB
|
||||
chunk pageC.bundle.js (pageC) 68 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./pageC.js 68 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./pageC pageC
|
||||
chunk 394.chunk.js 42 bytes [rendered]
|
||||
> ./a ./pageC.js 1:0-3:2
|
||||
./a.js 21 bytes [built]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
cjs require ./a ./pageA.js 2:8-22
|
||||
amd require ./a ./pageC.js 1:0-3:2
|
||||
./b.js 21 bytes [built]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
cjs require ./b ./pageB.js 2:8-22
|
||||
cjs require ./b ./pageC.js 2:17-31
|
||||
chunk pageA.bundle.js (pageA) 69 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
./pageA.js 69 bytes [built]
|
||||
[no exports used]
|
||||
entry ./pageA pageA
|
||||
+ 5 hidden chunk modules
|
||||
> ./a ./pageC.js 1:0-3:2
|
||||
./a.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
cjs require ./a ./pageA.js 2:8-22
|
||||
amd require ./a ./pageC.js 1:0-3:2
|
||||
./b.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
cjs require ./b ./pageB.js 2:8-22
|
||||
cjs require ./b ./pageC.js 2:17-31
|
||||
chunk pageA.bundle.js (pageA) 69 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./pageA.js 69 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./pageA pageA
|
||||
chunk 456.chunk.js 5.45 KiB [rendered]
|
||||
> ./common ./pageA.js 1:0-3:2
|
||||
> ./common ./pageB.js 1:0-3:2
|
||||
./a.js 21 bytes [built]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
cjs require ./a ./pageA.js 2:8-22
|
||||
amd require ./a ./pageC.js 1:0-3:2
|
||||
./b.js 21 bytes [built]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
cjs require ./b ./pageB.js 2:8-22
|
||||
cjs require ./b ./pageC.js 2:17-31
|
||||
./common.js 5.41 KiB [built]
|
||||
cjs self exports reference ./common.js 1:0-14
|
||||
amd require ./common ./pageA.js 1:0-3:2
|
||||
amd require ./common ./pageB.js 1:0-3:2
|
||||
> ./common ./pageA.js 1:0-3:2
|
||||
> ./common ./pageB.js 1:0-3:2
|
||||
./a.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
cjs require ./a ./pageA.js 2:8-22
|
||||
amd require ./a ./pageC.js 1:0-3:2
|
||||
./b.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
cjs require ./b ./pageB.js 2:8-22
|
||||
cjs require ./b ./pageC.js 2:17-31
|
||||
./common.js 5.41 KiB [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./common.js 1:0-14
|
||||
amd require ./common ./pageA.js 1:0-3:2
|
||||
amd require ./common ./pageB.js 1:0-3:2
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
394.chunk.js 108 bytes [emitted]
|
||||
456.chunk.js 159 bytes [emitted]
|
||||
pageA.bundle.js 1.36 KiB [emitted] [name: pageA]
|
||||
pageB.bundle.js 1.36 KiB [emitted] [name: pageB]
|
||||
pageC.bundle.js 1.37 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.19 KiB (runtime) [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
./pageB.js 69 bytes [built]
|
||||
[no exports used]
|
||||
entry ./pageB pageB
|
||||
+ 5 hidden chunk modules
|
||||
chunk pageC.bundle.js (pageC) 68 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
./pageC.js 68 bytes [built]
|
||||
[no exports used]
|
||||
entry ./pageC pageC
|
||||
+ 5 hidden chunk modules
|
||||
chunk 394.chunk.js 42 bytes [rendered]
|
||||
> ./a ./pageC.js 1:0-3:2
|
||||
./a.js 21 bytes [built]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
cjs require ./a ./pageA.js 2:8-22
|
||||
amd require ./a ./pageC.js 1:0-3:2
|
||||
./b.js 21 bytes [built]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
cjs require ./b ./pageB.js 2:8-22
|
||||
cjs require ./b ./pageC.js 2:17-31
|
||||
chunk pageA.bundle.js (pageA) 69 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
./pageA.js 69 bytes [built]
|
||||
[no exports used]
|
||||
entry ./pageA pageA
|
||||
+ 5 hidden chunk modules
|
||||
chunk 456.chunk.js 5.45 KiB [rendered]
|
||||
> ./common ./pageA.js 1:0-3:2
|
||||
> ./common ./pageB.js 1:0-3:2
|
||||
./a.js 21 bytes [built]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
cjs require ./a ./pageA.js 2:8-22
|
||||
amd require ./a ./pageC.js 1:0-3:2
|
||||
./b.js 21 bytes [built]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
cjs require ./b ./pageB.js 2:8-22
|
||||
cjs require ./b ./pageC.js 2:17-31
|
||||
./common.js 5.41 KiB [built]
|
||||
cjs self exports reference ./common.js 1:0-14
|
||||
amd require ./common ./pageA.js 1:0-3:2
|
||||
amd require ./common ./pageB.js 1:0-3:2
|
||||
asset pageC.bundle.js 1.68 KiB [emitted] [minimized] (name: pageC)
|
||||
asset pageA.bundle.js 1.67 KiB [emitted] [minimized] (name: pageA)
|
||||
asset pageB.bundle.js 1.67 KiB [emitted] [minimized] (name: pageB)
|
||||
asset 456.chunk.js 155 bytes [emitted] [minimized]
|
||||
asset 394.chunk.js 104 bytes [emitted] [minimized]
|
||||
chunk (runtime: pageB) pageB.bundle.js (pageB) 69 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./pageB.js 69 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./pageB pageB
|
||||
chunk (runtime: pageC) pageC.bundle.js (pageC) 68 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./pageC.js 68 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./pageC pageC
|
||||
chunk (runtime: pageC) 394.chunk.js 42 bytes [rendered]
|
||||
> ./a ./pageC.js 1:0-3:2
|
||||
./a.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
cjs require ./a ./pageA.js 2:8-22
|
||||
amd require ./a ./pageC.js 1:0-3:2
|
||||
./b.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
cjs require ./b ./pageB.js 2:8-22
|
||||
cjs require ./b ./pageC.js 2:17-31
|
||||
chunk (runtime: pageA) pageA.bundle.js (pageA) 69 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./pageA.js 69 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./pageA pageA
|
||||
chunk (runtime: pageA, pageB) 456.chunk.js 5.45 KiB [rendered]
|
||||
> ./common ./pageA.js 1:0-3:2
|
||||
> ./common ./pageB.js 1:0-3:2
|
||||
./a.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
cjs require ./a ./pageA.js 2:8-22
|
||||
amd require ./a ./pageC.js 1:0-3:2
|
||||
./b.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
cjs require ./b ./pageB.js 2:8-22
|
||||
cjs require ./b ./pageC.js 2:17-31
|
||||
./common.js 5.41 KiB [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./common.js 1:0-14
|
||||
amd require ./common ./pageA.js 1:0-3:2
|
||||
amd require ./common ./pageB.js 1:0-3:2
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -74,65 +74,16 @@ module.exports = {
|
|||
/******/ (() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!*************************!*\
|
||||
!*** ./images/file.svg ***!
|
||||
\*************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "data:image/svg+xml,%3csvg xmlns='http://www.w3.or...3c/svg%3e";
|
||||
|
||||
/***/ })
|
||||
/******/ ]);
|
||||
```
|
||||
|
||||
<details><summary><code>/* webpack runtime code */</code></summary>
|
||||
|
||||
```js
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {}; // The require function
|
||||
/******/
|
||||
/******/ /******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if (__webpack_module_cache__[moduleId]) {
|
||||
/******/ return __webpack_module_cache__[moduleId].exports;
|
||||
/******/
|
||||
} // Create a new module (and put it into the cache)
|
||||
/******/ /******/ var module = (__webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/
|
||||
}); // Execute the module function
|
||||
/******/
|
||||
/******/ /******/ __webpack_modules__[moduleId](
|
||||
module,
|
||||
module.exports,
|
||||
__webpack_require__
|
||||
); // Return the exports of the module
|
||||
/******/
|
||||
/******/ /******/ return module.exports;
|
||||
/******/
|
||||
}
|
||||
/******/
|
||||
/************************************************************************/
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
```js
|
||||
(() => {
|
||||
/* 0 */
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _images_file_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./images/file.svg */ 1);
|
||||
|
||||
|
||||
|
@ -163,8 +114,72 @@ function createImageElement(title, src) {
|
|||
createImageElement(src.split(".").pop(), src);
|
||||
});
|
||||
|
||||
})();
|
||||
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/*!*************************!*\
|
||||
!*** ./images/file.svg ***!
|
||||
\*************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "data:image/svg+xml,%3csvg xmlns='http://www.w3.or...3c/svg%3e";
|
||||
|
||||
/***/ })
|
||||
/******/ ]);
|
||||
```
|
||||
|
||||
<details><summary><code>/* webpack runtime code */</code></summary>
|
||||
|
||||
``` js
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if(__webpack_module_cache__[moduleId]) {
|
||||
/******/ return __webpack_module_cache__[moduleId].exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // 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 });
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
``` js
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ __webpack_require__(0);
|
||||
/******/ // This entry module used 'exports' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -174,19 +189,14 @@ function createImageElement(title, src) {
|
|||
## webpack output
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 3.02 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 1.54 KiB [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 658 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./images/file.svg 915 bytes [built]
|
||||
[no exports]
|
||||
harmony side effect evaluation ./images/file.svg ./example.js 1:0-36
|
||||
harmony import specifier ./images/file.svg ./example.js 26:1-4
|
||||
asset output.js 3.86 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 1.54 KiB (javascript) 274 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 915 bytes [dependent] 1 module
|
||||
runtime modules 274 bytes 1 module
|
||||
./example.js 658 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -61,95 +61,16 @@ module.exports = {
|
|||
/******/ (() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!*************************!*\
|
||||
!*** ./images/file.png ***!
|
||||
\*************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__.p, __webpack_require__.* */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = __webpack_require__.p + "images/11744e207f673e90d075.png";
|
||||
|
||||
/***/ }),
|
||||
/* 2 */
|
||||
/*!*************************!*\
|
||||
!*** ./images/file.jpg ***!
|
||||
\*************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAA...4CD/9M//Z";
|
||||
|
||||
/***/ }),
|
||||
/* 3 */
|
||||
/*!*************************!*\
|
||||
!*** ./images/file.svg ***!
|
||||
\*************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDo...vc3ZnPgo=";
|
||||
|
||||
/***/ })
|
||||
/******/ ]);
|
||||
```
|
||||
|
||||
<details><summary><code>/* webpack runtime code */</code></summary>
|
||||
|
||||
```js
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {}; // The require function
|
||||
/******/
|
||||
/******/ /******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if (__webpack_module_cache__[moduleId]) {
|
||||
/******/ return __webpack_module_cache__[moduleId].exports;
|
||||
/******/
|
||||
} // Create a new module (and put it into the cache)
|
||||
/******/ /******/ var module = (__webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/
|
||||
}); // Execute the module function
|
||||
/******/
|
||||
/******/ /******/ __webpack_modules__[moduleId](
|
||||
module,
|
||||
module.exports,
|
||||
__webpack_require__
|
||||
); // Return the exports of the module
|
||||
/******/
|
||||
/******/ /******/ return module.exports;
|
||||
/******/
|
||||
} /* webpack/runtime/publicPath */
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /******/ (() => {
|
||||
/******/ __webpack_require__.p = "dist/";
|
||||
/******/
|
||||
})();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
```js
|
||||
(() => {
|
||||
/* 0 */
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _images_file_png__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./images/file.png */ 1);
|
||||
/* harmony import */ var _images_file_jpg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./images/file.jpg */ 2);
|
||||
/* harmony import */ var _images_file_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./images/file.svg */ 3);
|
||||
|
@ -184,8 +105,101 @@ function createImageElement(title, src) {
|
|||
createImageElement(src.split(".").pop(), src);
|
||||
});
|
||||
|
||||
})();
|
||||
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/*!*************************!*\
|
||||
!*** ./images/file.png ***!
|
||||
\*************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module, __webpack_require__.p, __webpack_require__.* */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = __webpack_require__.p + "images/89a353e9c515885abd8e.png";
|
||||
|
||||
/***/ }),
|
||||
/* 2 */
|
||||
/*!*************************!*\
|
||||
!*** ./images/file.jpg ***!
|
||||
\*************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAA...4CD/9M//Z";
|
||||
|
||||
/***/ }),
|
||||
/* 3 */
|
||||
/*!*************************!*\
|
||||
!*** ./images/file.svg ***!
|
||||
\*************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDo...vc3ZnPgo=";
|
||||
|
||||
/***/ })
|
||||
/******/ ]);
|
||||
```
|
||||
|
||||
<details><summary><code>/* webpack runtime code */</code></summary>
|
||||
|
||||
``` js
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if(__webpack_module_cache__[moduleId]) {
|
||||
/******/ return __webpack_module_cache__[moduleId].exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // 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 */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.p = "dist/";
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
``` js
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ __webpack_require__(0);
|
||||
/******/ // This entry module used 'exports' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -195,29 +209,15 @@ function createImageElement(title, src) {
|
|||
## webpack output
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
images/11744e207f673e90d075.png 14.6 KiB [emitted] [immutable] [name: (main)]
|
||||
output.js 12.3 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js (images/11744e207f673e90d075.png)
|
||||
chunk output.js (main) 9.58 KiB (javascript) 14.6 KiB (asset) 32 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 742 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./images/file.jpg 7.92 KiB [built]
|
||||
[no exports]
|
||||
harmony side effect evaluation ./images/file.jpg ./example.js 2:0-36
|
||||
harmony import specifier ./images/file.jpg ./example.js 28:6-9
|
||||
./images/file.png 42 bytes (javascript) 14.6 KiB (asset) [built]
|
||||
[no exports]
|
||||
harmony side effect evaluation ./images/file.png ./example.js 1:0-36
|
||||
harmony import specifier ./images/file.png ./example.js 28:1-4
|
||||
./images/file.svg 915 bytes [built]
|
||||
[no exports]
|
||||
harmony side effect evaluation ./images/file.svg ./example.js 3:0-36
|
||||
harmony import specifier ./images/file.svg ./example.js 28:11-14
|
||||
+ 1 hidden chunk module
|
||||
asset images/89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] (auxiliary name: main)
|
||||
asset output.js 13 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 9.58 KiB (javascript) 14.6 KiB (asset) 306 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 8.86 KiB (javascript) 14.6 KiB (asset) [dependent] 3 modules
|
||||
runtime modules 306 bytes 2 modules
|
||||
./example.js 742 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -43,7 +43,7 @@ module.exports = {
|
|||
<body>
|
||||
<!-- inlined minimized file "runtime~main.[chunkhash].js" -->
|
||||
<script>
|
||||
(()=>{"use strict";var e={},r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{}};return e[o](n,n.exports,t),n.exports}t.m=e,t.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);t.r(o);var n={};if(2&r&&"object"==typeof e&&e)for(const r in e)n[r]=()=>e[r];return n.default=()=>e,t.d(o,n),o},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,o)=>(t.f[o](e,r),r),[])),t.u=e=>e+".[chunkhash].js",t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.p="dist/",(()=>{var e={303:0},r=[];t.f.j=(r,o)=>{var n=t.o(e,r)?e[r]:void 0;if(0!==n)if(n)o.push(n[2]);else{var a=new Promise((t,o)=>{n=e[r]=[t,o]});o.push(n[2]=a);var i,u=t.p+t.u(r),s=document.createElement("script");s.charset="utf-8",s.timeout=120,t.nc&&s.setAttribute("nonce",t.nc),s.src=u;var f=new Error;i=o=>{i=()=>{},s.onerror=s.onload=null,clearTimeout(l);var a=(()=>{if(t.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n))return n[1]})();if(a){var u=o&&("load"===o.type?"missing":o.type),p=o&&o.target&&o.target.src;f.message="Loading chunk "+r+" failed.\n("+u+": "+p+")",f.name="ChunkLoadError",f.type=u,f.request=p,a(f)}};var l=setTimeout(()=>{i({type:"timeout",target:s})},12e4);s.onerror=s.onload=i,document.head.appendChild(s)}};var o=()=>{};function n(){for(var o,n=0;n<r.length;n++){for(var a=r[n],i=!0,u=1;u<a.length;u++){var s=a[u];0!==e[s]&&(i=!1)}i&&(r.splice(n--,1),o=t(t.s=a[0]))}return 0===r.length&&(t.x(),t.x=()=>{}),o}function a(n){for(var a,i,u=n[0],f=n[1],l=n[2],p=n[3],c=0,d=[];c<u.length;c++)i=u[c],t.o(e,i)&&e[i]&&d.push(e[i][0]),e[i]=0;for(a in f)t.o(f,a)&&(t.m[a]=f[a]);for(p&&p(t),s&&s(n);d.length;)d.shift()();return l&&r.push.apply(r,l),o()}t.x=()=>{t.x=()=>{},i=i.slice();for(var e=0;e<i.length;e++)a(i[e]);return(o=n)()};var i=window.webpackJsonp=window.webpackJsonp||[],u=i.push.bind(i);i.push=a;var s=u})(),t.x()})();
|
||||
(()=>{"use strict";var e,r={},t={};function o(e){if(t[e])return t[e].exports;var n=t[e]={exports:{}};return r[e](n,n.exports,o),n.exports}o.m=r,o.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);o.r(t);var n={};if(2&r&&"object"==typeof e&&e)for(const r in e)n[r]=()=>e[r];return n.default=()=>e,o.d(t,n),t},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+".[chunkhash].js",o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n)=>{if(e[r])e[r].push(t);else{var a,i;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var s=u[l];if(s.getAttribute("src")==r){a=s;break}}a||(i=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.src=r),e[r]=[t];var f=(t,o)=>{a.onerror=a.onload=null,clearTimeout(c);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach(e=>e(o)),t)return t(o)},c=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),i&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="dist/",(()=>{var e={303:0},r=[];o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>{n=e[r]=[t,o]});t.push(n[2]=a);var i=o.p+o.u(r),u=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;u.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,n[1](u)}},"chunk-"+r)}};var t=()=>{};function n(){for(var t,n=0;n<r.length;n++){for(var a=r[n],i=!0,u=1;u<a.length;u++){var l=a[u];0!==e[l]&&(i=!1)}i&&(r.splice(n--,1),t=o(o.s=a[0]))}return 0===r.length&&(o.x(),o.x=()=>{}),t}o.x=()=>{o.x=()=>{},i=i.slice();for(var e=0;e<i.length;e++)a(i[e]);return(t=n)()};var a=n=>{for(var a,i,[l,s,f,c]=n,d=0,p=[];d<l.length;d++)i=l[d],o.o(e,i)&&e[i]&&p.push(e[i][0]),e[i]=0;for(a in s)o.o(s,a)&&(o.m[a]=s[a]);for(f&&f(o),u(n);p.length;)p.shift()();return c&&r.push.apply(r,c),t()},i=self.webpackChunk=self.webpackChunk||[],u=i.push.bind(i);i.push=a})(),o.x()})();
|
||||
</script>
|
||||
|
||||
<script src="dist/main.[chunkhash].js"></script>
|
||||
|
@ -152,6 +152,52 @@ module.exports = {
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
|
@ -170,11 +216,13 @@ module.exports = {
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
/******/ var installedChunks = {
|
||||
/******/ 0: 0
|
||||
/******/ 1: 0
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ var deferredModules = [
|
||||
|
@ -198,49 +246,24 @@ module.exports = {
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -284,17 +307,14 @@ module.exports = {
|
|||
/******/ __webpack_require__.x = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice();
|
||||
/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]);
|
||||
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime, executeModules] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -311,7 +331,7 @@ module.exports = {
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
|
@ -321,12 +341,11 @@ module.exports = {
|
|||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -344,13 +363,12 @@ module.exports = {
|
|||
# dist/main.[chunkhash].js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[0],[
|
||||
/* 0 */
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__.e, __webpack_require__.t, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -360,7 +378,8 @@ __webpack_require__.e(/*! import() */ 3).then(__webpack_require__.t.bind(__webpa
|
|||
|
||||
|
||||
/***/ })
|
||||
],[[0,0]]]);
|
||||
],
|
||||
0,[[0,1]]]);
|
||||
```
|
||||
|
||||
# Info
|
||||
|
@ -368,57 +387,57 @@ __webpack_require__.e(/*! import() */ 3).then(__webpack_require__.t.bind(__webpa
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
2.[chunkhash].js 370 bytes [emitted]
|
||||
3.[chunkhash].js 364 bytes [emitted]
|
||||
main.[chunkhash].js 710 bytes [emitted] [name: main]
|
||||
runtime~main.[chunkhash].js 10.9 KiB [emitted] [name: runtime~main]
|
||||
Entrypoint main = runtime~main.[chunkhash].js main.[chunkhash].js
|
||||
chunk runtime~main.[chunkhash].js (runtime~main) 6.59 KiB [entry] [rendered]
|
||||
> ./example main
|
||||
8 chunk modules
|
||||
asset runtime~main.[chunkhash].js 11.9 KiB [emitted] (name: runtime~main)
|
||||
asset main.[chunkhash].js 650 bytes [emitted] (name: main)
|
||||
asset 2.[chunkhash].js 285 bytes [emitted]
|
||||
asset 3.[chunkhash].js 279 bytes [emitted]
|
||||
Entrypoint main 12.5 KiB = runtime~main.[chunkhash].js 11.9 KiB main.[chunkhash].js 650 bytes
|
||||
chunk main.[chunkhash].js (main) 55 bytes [initial] [rendered]
|
||||
> ./example main
|
||||
./example.js 55 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example main
|
||||
> ./example main
|
||||
./example.js 55 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example main
|
||||
chunk runtime~main.[chunkhash].js (runtime~main) 7.27 KiB [entry] [rendered]
|
||||
> ./example main
|
||||
runtime modules 7.27 KiB 9 modules
|
||||
chunk 2.[chunkhash].js 28 bytes [rendered]
|
||||
> ./async1 ./example.js 2:0-18
|
||||
./async1.js 28 bytes [built]
|
||||
import() ./async1 ./example.js 2:0-18
|
||||
> ./async1 ./example.js 2:0-18
|
||||
./async1.js 28 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
import() ./async1 ./example.js 2:0-18
|
||||
chunk 3.[chunkhash].js 28 bytes [rendered]
|
||||
> ./async2 ./example.js 3:0-18
|
||||
./async2.js 28 bytes [built]
|
||||
import() ./async2 ./example.js 3:0-18
|
||||
> ./async2 ./example.js 3:0-18
|
||||
./async2.js 28 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
import() ./async2 ./example.js 3:0-18
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
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.11 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
|
||||
./async1.js 28 bytes [built]
|
||||
import() ./async1 ./example.js 2:0-18
|
||||
chunk 172.[chunkhash].js 28 bytes [rendered]
|
||||
> ./async2 ./example.js 3:0-18
|
||||
./async2.js 28 bytes [built]
|
||||
import() ./async2 ./example.js 3:0-18
|
||||
chunk main.[chunkhash].js (main) 55 bytes [initial] [rendered]
|
||||
> ./example main
|
||||
./example.js 55 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example main
|
||||
chunk runtime~main.[chunkhash].js (runtime~main) 6.6 KiB [entry] [rendered]
|
||||
> ./example main
|
||||
8 chunk modules
|
||||
asset runtime~main.[chunkhash].js 2.42 KiB [emitted] [minimized] (name: runtime~main)
|
||||
asset main.[chunkhash].js 153 bytes [emitted] [minimized] (name: main)
|
||||
asset 114.[chunkhash].js 69 bytes [emitted] [minimized]
|
||||
asset 172.[chunkhash].js 69 bytes [emitted] [minimized]
|
||||
Entrypoint main 2.56 KiB = runtime~main.[chunkhash].js 2.42 KiB main.[chunkhash].js 153 bytes
|
||||
chunk (runtime: runtime~main) 114.[chunkhash].js 28 bytes [rendered]
|
||||
> ./async1 ./example.js 2:0-18
|
||||
./async1.js 28 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
import() ./async1 ./example.js 2:0-18
|
||||
chunk (runtime: runtime~main) 172.[chunkhash].js 28 bytes [rendered]
|
||||
> ./async2 ./example.js 3:0-18
|
||||
./async2.js 28 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
import() ./async2 ./example.js 3:0-18
|
||||
chunk (runtime: runtime~main) main.[chunkhash].js (main) 55 bytes [initial] [rendered]
|
||||
> ./example main
|
||||
./example.js 55 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example main
|
||||
chunk (runtime: runtime~main) runtime~main.[chunkhash].js (runtime~main) 7.27 KiB [entry] [rendered]
|
||||
> ./example main
|
||||
runtime modules 7.27 KiB 9 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -59,9 +59,8 @@ exports.multiply = function multiply() {
|
|||
\**********************/
|
||||
/*! default exports */
|
||||
/*! export decrement [provided] [unused] [renamed to Mj] */
|
||||
/*! export increment [provided] [used] [renamed to nP] */
|
||||
/*! export increment [provided] [used in main] [renamed to nP] */
|
||||
/*! export incrementBy2 [provided] [unused] [renamed to pN] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_exports__ */
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
@ -84,9 +83,8 @@ __webpack_unused_export__ = function decrement(val) {
|
|||
!*** ./math.js ***!
|
||||
\*****************/
|
||||
/*! default exports */
|
||||
/*! export add [provided] [used] [renamed to I] */
|
||||
/*! export add [provided] [used in main] [renamed to I] */
|
||||
/*! export multiply [provided] [unused] [renamed to J] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_exports__ */
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
|
@ -156,7 +154,6 @@ __webpack_unused_export__ = function multiply() {
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
const inc = __webpack_require__(/*! ./increment */ 1)/* .increment */ .nP;
|
||||
var a = 1;
|
||||
|
@ -172,14 +169,14 @@ inc(a); // 2
|
|||
|
||||
```javascript
|
||||
/*! For license information please see output.js.LICENSE.txt */
|
||||
(()=>{var r=[,(r,n,t)=>{const e=t(2).I;n.nP=function(r){return e(r,1)}},(r,n)=>{n.I=function(){for(var r=0,n=0,t=arguments,e=t.length;n<e;)r+=t[n++];return r}}],n={};function t(e){if(n[e])return n[e].exports;var o=n[e]={exports:{}};return r[e](o,o.exports,t),o.exports}(0,t(1).nP)(1)})();
|
||||
(()=>{var r=[,(r,n,t)=>{const e=t(2).I;n.nP=function(r){return e(r,1)}},(r,n)=>{n.I=function(){for(var r=0,n=0,t=arguments,e=t.length;n<e;)r+=t[n++];return r}}],n={};(0,function t(e){if(n[e])return n[e].exports;var o=n[e]={exports:{}};return r[e](o,o.exports,t),o.exports}(1).nP)(1)})();
|
||||
```
|
||||
|
||||
# dist/without.js (same without tree shaking)
|
||||
|
||||
```javascript
|
||||
/*! For license information please see without.js.LICENSE.txt */
|
||||
(()=>{var n=[,(n,r,t)=>{const e=t(2).add;r.increment=function(n){return e(n,1)},r.incrementBy2=function(n){return e(n,2)},r.decrement=function(n){return e(n,1)}},(n,r)=>{r.add=function(){for(var n=0,r=0,t=arguments,e=t.length;r<e;)n+=t[r++];return n},r.multiply=function(){for(var n=0,r=arguments,t=r.length;n<t;)sum*=r[n++];return sum}}],r={};function t(e){if(r[e])return r[e].exports;var u=r[e]={exports:{}};return n[e](u,u.exports,t),u.exports}(0,t(1).increment)(1)})();
|
||||
(()=>{var n=[,(n,r,t)=>{const e=t(2).add;r.increment=function(n){return e(n,1)},r.incrementBy2=function(n){return e(n,2)},r.decrement=function(n){return e(n,1)}},(n,r)=>{r.add=function(){for(var n=0,r=0,t=arguments,e=t.length;r<e;)n+=t[r++];return n},r.multiply=function(){for(var n=0,r=arguments,t=r.length;n<t;)sum*=r[n++];return sum}}],r={};(0,function t(e){if(r[e])return r[e].exports;var u=r[e]={exports:{}};return n[e](u,u.exports,t),u.exports}(1).increment)(1)})();
|
||||
```
|
||||
|
||||
# Info
|
||||
|
@ -187,87 +184,43 @@ inc(a); // 2
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
output.js 2.89 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 634 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 70 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./increment.js 251 bytes [built]
|
||||
[exports: decrement, increment, incrementBy2]
|
||||
[only some exports used: increment]
|
||||
cjs full require ./increment ./example.js 1:12-44
|
||||
./math.js 313 bytes [built]
|
||||
[exports: add, multiply]
|
||||
[only some exports used: add]
|
||||
cjs full require ./math ./increment.js 1:12-33
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
without.js 2.97 KiB [emitted] [name: main]
|
||||
Entrypoint main = without.js
|
||||
chunk without.js (main) 634 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 70 bytes [built]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
./increment.js 251 bytes [built]
|
||||
[exports: decrement, increment, incrementBy2]
|
||||
[used exports unknown]
|
||||
cjs full require ./increment ./example.js 1:12-44
|
||||
./math.js 313 bytes [built]
|
||||
[exports: add, multiply]
|
||||
[used exports unknown]
|
||||
cjs full require ./math ./increment.js 1:12-33
|
||||
asset output.js 2.76 KiB [emitted] (name: main)
|
||||
chunk (runtime: main) output.js (main) 634 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 564 bytes [dependent] 2 modules
|
||||
./example.js 70 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset without.js 2.91 KiB [emitted] (name: main)
|
||||
chunk without.js (main) 634 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 564 bytes [dependent] 2 modules
|
||||
./example.js 70 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
output.js 352 bytes [emitted] [name: main]
|
||||
output.js.LICENSE.txt 745 bytes [emitted]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 634 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 70 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./increment.js 251 bytes [built]
|
||||
[exports: decrement, increment, incrementBy2]
|
||||
[only some exports used: increment]
|
||||
cjs full require ./increment ./example.js 1:12-44
|
||||
./math.js 313 bytes [built]
|
||||
[exports: add, multiply]
|
||||
[only some exports used: add]
|
||||
cjs full require ./math ./increment.js 1:12-33
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
without.js 538 bytes [emitted] [name: main]
|
||||
without.js.LICENSE.txt 908 bytes [emitted]
|
||||
Entrypoint main = without.js
|
||||
chunk without.js (main) 634 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 70 bytes [built]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
./increment.js 251 bytes [built]
|
||||
[exports: decrement, increment, incrementBy2]
|
||||
[used exports unknown]
|
||||
cjs full require ./increment ./example.js 1:12-44
|
||||
./math.js 313 bytes [built]
|
||||
[exports: add, multiply]
|
||||
[used exports unknown]
|
||||
cjs full require ./math ./increment.js 1:12-33
|
||||
asset output.js 351 bytes [emitted] [minimized] (name: main) 1 related asset
|
||||
chunk (runtime: main) output.js (main) 634 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 564 bytes [dependent] 2 modules
|
||||
./example.js 70 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset without.js 537 bytes [emitted] [minimized] (name: main) 1 related asset
|
||||
chunk without.js (main) 634 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 564 bytes [dependent] 2 modules
|
||||
./example.js 70 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -79,6 +79,52 @@ getTemplate("b", function(b) {
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/publicPath */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.p = "dist/";
|
||||
|
@ -86,6 +132,8 @@ getTemplate("b", function(b) {
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -112,49 +160,24 @@ getTemplate("b", function(b) {
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -171,11 +194,8 @@ getTemplate("b", function(b) {
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -192,17 +212,16 @@ getTemplate("b", function(b) {
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -215,7 +234,6 @@ getTemplate("b", function(b) {
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__.e, __webpack_require__.oe, __webpack_require__, __webpack_require__.* */
|
||||
function getTemplate(templateName, callback) {
|
||||
__webpack_require__.e(/*! AMD require */ 577).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(1)("./"+templateName)]; (function(tmpl) {
|
||||
|
@ -235,14 +253,14 @@ getTemplate("b", function(b) {
|
|||
# dist/577.output.js
|
||||
|
||||
``` javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[577],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[577],[
|
||||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!**************************************************!*\
|
||||
!*** ../require.context/templates sync ^\.\/.*$ ***!
|
||||
\**************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*!***************************************************!*\
|
||||
!*** ../require.context/templates/ sync ^\.\/.*$ ***!
|
||||
\***************************************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module, __webpack_require__.o, __webpack_require__ */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -281,8 +299,8 @@ webpackContext.id = 1;
|
|||
!*** ../require.context/templates/a.js ***!
|
||||
\*****************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -295,8 +313,8 @@ module.exports = function() {
|
|||
!*** ../require.context/templates/b.js ***!
|
||||
\*****************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -309,8 +327,8 @@ module.exports = function() {
|
|||
!*** ../require.context/templates/c.js ***!
|
||||
\*****************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -326,65 +344,40 @@ module.exports = function() {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
577.output.js 2.33 KiB [emitted]
|
||||
output.js 8.05 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 251 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 251 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 5 hidden chunk modules
|
||||
asset output.js 8.9 KiB [emitted] (name: main)
|
||||
asset 577.output.js 2.23 KiB [emitted]
|
||||
chunk output.js (main) 251 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./example.js 251 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 577.output.js 457 bytes [rendered]
|
||||
> ./example.js 2:1-4:3
|
||||
../require.context/templates sync ^\.\/.*$ 217 bytes [built]
|
||||
amd require context ../require.context/templates ./example.js 2:1-4:3
|
||||
../require.context/templates/a.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/a.js 1:0-14
|
||||
context element ./a ../require.context/templates sync ^\.\/.*$ ./a
|
||||
context element ./a.js ../require.context/templates sync ^\.\/.*$ ./a.js
|
||||
../require.context/templates/b.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/b.js 1:0-14
|
||||
context element ./b ../require.context/templates sync ^\.\/.*$ ./b
|
||||
context element ./b.js ../require.context/templates sync ^\.\/.*$ ./b.js
|
||||
../require.context/templates/c.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/c.js 1:0-14
|
||||
context element ./c ../require.context/templates sync ^\.\/.*$ ./c
|
||||
context element ./c.js ../require.context/templates sync ^\.\/.*$ ./c.js
|
||||
> ./example.js 2:1-4:3
|
||||
dependent modules 240 bytes [dependent] 3 modules
|
||||
../require.context/templates/ sync ^\.\/.*$ 217 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
amd require context ./example.js 2:1-4:3
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
577.output.js 613 bytes [emitted]
|
||||
output.js 1.45 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 251 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 251 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 5 hidden chunk modules
|
||||
chunk 577.output.js 457 bytes [rendered]
|
||||
> ./example.js 2:1-4:3
|
||||
../require.context/templates sync ^\.\/.*$ 217 bytes [built]
|
||||
amd require context ../require.context/templates ./example.js 2:1-4:3
|
||||
../require.context/templates/a.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/a.js 1:0-14
|
||||
context element ./a ../require.context/templates sync ^\.\/.*$ ./a
|
||||
context element ./a.js ../require.context/templates sync ^\.\/.*$ ./a.js
|
||||
../require.context/templates/b.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/b.js 1:0-14
|
||||
context element ./b ../require.context/templates sync ^\.\/.*$ ./b
|
||||
context element ./b.js ../require.context/templates sync ^\.\/.*$ ./b.js
|
||||
../require.context/templates/c.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/c.js 1:0-14
|
||||
context element ./c ../require.context/templates sync ^\.\/.*$ ./c
|
||||
context element ./c.js ../require.context/templates sync ^\.\/.*$ ./c.js
|
||||
asset output.js 1.76 KiB [emitted] [minimized] (name: main)
|
||||
asset 577.output.js 609 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) output.js (main) 251 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./example.js 251 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 577.output.js 457 bytes [rendered]
|
||||
> ./example.js 2:1-4:3
|
||||
dependent modules 240 bytes [dependent] 3 modules
|
||||
../require.context/templates/ sync ^\.\/.*$ 217 bytes [built] [code generated]
|
||||
[no exports]
|
||||
amd require context ./example.js 2:1-4:3
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -79,6 +79,52 @@ getTemplate("b", function(b) {
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/publicPath */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.p = "dist/";
|
||||
|
@ -86,6 +132,8 @@ getTemplate("b", function(b) {
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -112,49 +160,24 @@ getTemplate("b", function(b) {
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -171,11 +194,8 @@ getTemplate("b", function(b) {
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -192,17 +212,16 @@ getTemplate("b", function(b) {
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -215,7 +234,6 @@ getTemplate("b", function(b) {
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__.e, __webpack_require__, __webpack_require__.* */
|
||||
function getTemplate(templateName, callback) {
|
||||
__webpack_require__.e(/*! require.ensure */ 577).then((function(require) {
|
||||
|
@ -235,14 +253,14 @@ getTemplate("b", function(b) {
|
|||
# dist/577.output.js
|
||||
|
||||
``` javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[577],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[577],[
|
||||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!**************************************************!*\
|
||||
!*** ../require.context/templates sync ^\.\/.*$ ***!
|
||||
\**************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*!***************************************************!*\
|
||||
!*** ../require.context/templates/ sync ^\.\/.*$ ***!
|
||||
\***************************************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module, __webpack_require__.o, __webpack_require__ */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -281,8 +299,8 @@ webpackContext.id = 1;
|
|||
!*** ../require.context/templates/a.js ***!
|
||||
\*****************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -295,8 +313,8 @@ module.exports = function() {
|
|||
!*** ../require.context/templates/b.js ***!
|
||||
\*****************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -309,8 +327,8 @@ module.exports = function() {
|
|||
!*** ../require.context/templates/c.js ***!
|
||||
\*****************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -326,65 +344,40 @@ module.exports = function() {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
577.output.js 2.33 KiB [emitted]
|
||||
output.js 7.96 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 266 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 266 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 5 hidden chunk modules
|
||||
asset output.js 8.81 KiB [emitted] (name: main)
|
||||
asset 577.output.js 2.23 KiB [emitted]
|
||||
chunk output.js (main) 266 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./example.js 266 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 577.output.js 457 bytes [rendered]
|
||||
> ./example.js 2:1-4:3
|
||||
../require.context/templates sync ^\.\/.*$ 217 bytes [built]
|
||||
cjs require context ../require.context/templates ./example.js 3:11-64
|
||||
../require.context/templates/a.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/a.js 1:0-14
|
||||
context element ./a ../require.context/templates sync ^\.\/.*$ ./a
|
||||
context element ./a.js ../require.context/templates sync ^\.\/.*$ ./a.js
|
||||
../require.context/templates/b.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/b.js 1:0-14
|
||||
context element ./b ../require.context/templates sync ^\.\/.*$ ./b
|
||||
context element ./b.js ../require.context/templates sync ^\.\/.*$ ./b.js
|
||||
../require.context/templates/c.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/c.js 1:0-14
|
||||
context element ./c ../require.context/templates sync ^\.\/.*$ ./c
|
||||
context element ./c.js ../require.context/templates sync ^\.\/.*$ ./c.js
|
||||
> ./example.js 2:1-4:3
|
||||
dependent modules 240 bytes [dependent] 3 modules
|
||||
../require.context/templates/ sync ^\.\/.*$ 217 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
cjs require context ./example.js 3:11-64
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
577.output.js 613 bytes [emitted]
|
||||
output.js 1.42 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 266 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 266 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 5 hidden chunk modules
|
||||
chunk 577.output.js 457 bytes [rendered]
|
||||
> ./example.js 2:1-4:3
|
||||
../require.context/templates sync ^\.\/.*$ 217 bytes [built]
|
||||
cjs require context ../require.context/templates ./example.js 3:11-64
|
||||
../require.context/templates/a.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/a.js 1:0-14
|
||||
context element ./a ../require.context/templates sync ^\.\/.*$ ./a
|
||||
context element ./a.js ../require.context/templates sync ^\.\/.*$ ./a.js
|
||||
../require.context/templates/b.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/b.js 1:0-14
|
||||
context element ./b ../require.context/templates sync ^\.\/.*$ ./b
|
||||
context element ./b.js ../require.context/templates sync ^\.\/.*$ ./b.js
|
||||
../require.context/templates/c.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/c.js 1:0-14
|
||||
context element ./c ../require.context/templates sync ^\.\/.*$ ./c
|
||||
context element ./c.js ../require.context/templates sync ^\.\/.*$ ./c.js
|
||||
asset output.js 1.74 KiB [emitted] [minimized] (name: main)
|
||||
asset 577.output.js 609 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) output.js (main) 266 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./example.js 266 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 577.output.js 457 bytes [rendered]
|
||||
> ./example.js 2:1-4:3
|
||||
dependent modules 240 bytes [dependent] 3 modules
|
||||
../require.context/templates/ sync ^\.\/.*$ 217 bytes [built] [code generated]
|
||||
[no exports]
|
||||
cjs require context ./example.js 3:11-64
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -27,8 +27,8 @@ module.exports = "It works";
|
|||
!*** ../../node_modules/bundle-loader/index.js!./file.js ***!
|
||||
\***********************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__, __webpack_require__.e, __webpack_require__.* */
|
||||
/*! CommonJS bailout: module.exports is used directly at 3:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
var cbs = [],
|
||||
|
@ -108,6 +108,52 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) {
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/publicPath */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.p = "dist/";
|
||||
|
@ -115,6 +161,8 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) {
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -141,49 +189,24 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) {
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -200,11 +223,8 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) {
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -221,17 +241,16 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) {
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -245,7 +264,6 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) {
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
__webpack_require__(/*! bundle-loader!./file.js */ 1)(function(fileJsExports) {
|
||||
console.log(fileJsExports);
|
||||
|
@ -260,15 +278,15 @@ __webpack_require__(/*! bundle-loader!./file.js */ 1)(function(fileJsExports) {
|
|||
# dist/929.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[929],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[929],{
|
||||
|
||||
/***/ 2:
|
||||
/*!*****************!*\
|
||||
!*** ./file.js ***!
|
||||
\*****************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "It works";
|
||||
|
@ -283,49 +301,41 @@ module.exports = "It works";
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
929.output.js 372 bytes [emitted]
|
||||
output.js 8.6 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 375 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
../../node_modules/bundle-loader/index.js!./file.js 281 bytes [built]
|
||||
cjs require bundle-loader!./file.js ./example.js 1:0-34
|
||||
cjs self exports reference ../../node_modules/bundle-loader/index.js!./file.js 3:0-14
|
||||
./example.js 94 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 5 hidden chunk modules
|
||||
asset output.js 9.44 KiB [emitted] (name: main)
|
||||
asset 929.output.js 354 bytes [emitted]
|
||||
chunk output.js (main) 375 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
dependent modules 281 bytes [dependent] 1 module
|
||||
./example.js 94 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 929.output.js 28 bytes [rendered]
|
||||
> ../../node_modules/bundle-loader/index.js!./file.js 7:0-14:2
|
||||
./file.js 28 bytes [built]
|
||||
cjs self exports reference ./file.js 1:0-14
|
||||
cjs require !!./file.js ../../node_modules/bundle-loader/index.js!./file.js 8:8-30
|
||||
> ../../node_modules/bundle-loader/index.js!./file.js 7:0-14:2
|
||||
./file.js 28 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./file.js 1:0-14
|
||||
cjs require !!./file.js ../../node_modules/bundle-loader/index.js!./file.js 8:8-30
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
929.output.js 92 bytes [emitted]
|
||||
output.js 1.48 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 375 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
../../node_modules/bundle-loader/index.js!./file.js 281 bytes [built]
|
||||
cjs require bundle-loader!./file.js ./example.js 1:0-34
|
||||
cjs self exports reference ../../node_modules/bundle-loader/index.js!./file.js 3:0-14
|
||||
./example.js 94 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 5 hidden chunk modules
|
||||
chunk 929.output.js 28 bytes [rendered]
|
||||
> ../../node_modules/bundle-loader/index.js!./file.js 7:0-14:2
|
||||
./file.js 28 bytes [built]
|
||||
cjs self exports reference ./file.js 1:0-14
|
||||
cjs require !!./file.js ../../node_modules/bundle-loader/index.js!./file.js 8:8-30
|
||||
asset output.js 1.79 KiB [emitted] [minimized] (name: main)
|
||||
asset 929.output.js 88 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) output.js (main) 375 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
dependent modules 281 bytes [dependent] 1 module
|
||||
./example.js 94 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 929.output.js 28 bytes [rendered]
|
||||
> ../../node_modules/bundle-loader/index.js!./file.js 7:0-14:2
|
||||
./file.js 28 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./file.js 1:0-14
|
||||
cjs require !!./file.js ../../node_modules/bundle-loader/index.js!./file.js 8:8-30
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -151,6 +151,52 @@ console.log(lodash, isomorphicFetch);
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
|
@ -169,6 +215,8 @@ console.log(lodash, isomorphicFetch);
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -197,49 +245,24 @@ console.log(lodash, isomorphicFetch);
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -283,17 +306,14 @@ console.log(lodash, isomorphicFetch);
|
|||
/******/ __webpack_require__.x = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice();
|
||||
/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]);
|
||||
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime, executeModules] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -310,7 +330,7 @@ console.log(lodash, isomorphicFetch);
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
|
@ -320,12 +340,11 @@ console.log(lodash, isomorphicFetch);
|
|||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -343,18 +362,19 @@ console.log(lodash, isomorphicFetch);
|
|||
# dist/app.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app"],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([["app"],{
|
||||
|
||||
/***/ 7:
|
||||
/*!****************!*\
|
||||
!*** ./app.js ***!
|
||||
\****************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.r, __webpack_exports__, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var isomorphic_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! isomorphic-fetch */ 5);
|
||||
/* harmony import */ var isomorphic_fetch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(isomorphic_fetch__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ 4);
|
||||
|
@ -367,24 +387,26 @@ console.log((isomorphic_fetch__WEBPACK_IMPORTED_MODULE_0___default()), (lodash__
|
|||
|
||||
/***/ })
|
||||
|
||||
},[[7,"runtime","other-vendors"]]]);
|
||||
},
|
||||
0,[[7,"runtime","other-vendors"]]]);
|
||||
```
|
||||
|
||||
# dist/page1.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["page1"],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([["page1"],{
|
||||
|
||||
/***/ 6:
|
||||
/*!******************!*\
|
||||
!*** ./page1.js ***!
|
||||
\******************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.e, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.r, __webpack_exports__, __webpack_require__.e, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var isomorphic_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! isomorphic-fetch */ 5);
|
||||
/* harmony import */ var isomorphic_fetch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(isomorphic_fetch__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 0);
|
||||
|
@ -402,13 +424,14 @@ __webpack_require__.e(/*! import() */ "lazy_js").then(__webpack_require__.bind(_
|
|||
|
||||
/***/ })
|
||||
|
||||
},[[6,"app","runtime","react-vendors","other-vendors"]]]);
|
||||
},
|
||||
0,[[6,"app","runtime","react-vendors","other-vendors"]]]);
|
||||
```
|
||||
|
||||
# dist/other-vendors.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["other-vendors"],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([["other-vendors"],[
|
||||
/* 0 */,
|
||||
/* 1 */,
|
||||
/* 2 */,
|
||||
|
@ -417,11 +440,12 @@ __webpack_require__.e(/*! import() */ "lazy_js").then(__webpack_require__.bind(_
|
|||
!*** ./other-vendors.js ***!
|
||||
\**************************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.r, __webpack_exports__, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 4);
|
||||
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var isomorphic_fetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! isomorphic-fetch */ 5);
|
||||
|
@ -439,8 +463,8 @@ console.log((lodash__WEBPACK_IMPORTED_MODULE_0___default()), (isomorphic_fetch__
|
|||
!*** ./node_modules/lodash.js ***!
|
||||
\********************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = 'lodash';
|
||||
|
@ -452,28 +476,29 @@ module.exports = 'lodash';
|
|||
!*** ./node_modules/isomorphic-fetch.js ***!
|
||||
\******************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "isomorphic-fetch";
|
||||
|
||||
|
||||
/***/ })
|
||||
],[[3,"runtime"]]]);
|
||||
],
|
||||
0,[[3,"runtime"]]]);
|
||||
```
|
||||
|
||||
# dist/react-vendors.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["react-vendors"],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([["react-vendors"],[
|
||||
/* 0 */
|
||||
/*!*******************************!*\
|
||||
!*** ./node_modules/react.js ***!
|
||||
\*******************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = 'react';
|
||||
|
@ -485,8 +510,8 @@ module.exports = 'react';
|
|||
!*** ./node_modules/react-dom.js ***!
|
||||
\***********************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = 'react-dom';
|
||||
|
@ -498,15 +523,16 @@ module.exports = 'react-dom';
|
|||
!*** ./node_modules/prop-types.js ***!
|
||||
\************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = 'prop-types';
|
||||
|
||||
|
||||
/***/ })
|
||||
],[[0,"runtime"],[1,"runtime"],[2,"runtime"]]]);
|
||||
],
|
||||
0,[[0,"runtime"],[1,"runtime"],[2,"runtime"]]]);
|
||||
```
|
||||
|
||||
# Info
|
||||
|
@ -514,163 +540,136 @@ module.exports = 'prop-types';
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
app.js 1.09 KiB [emitted] [name: app]
|
||||
lazy_js.js 1.13 KiB [emitted]
|
||||
other-vendors.js 1.87 KiB [emitted] [name: other-vendors]
|
||||
page1.js 1.56 KiB [emitted] [name: page1]
|
||||
react-vendors.js 1.15 KiB [emitted] [name: react-vendors]
|
||||
runtime.js 10.4 KiB [emitted] [name: runtime]
|
||||
Entrypoint app = app.js
|
||||
Entrypoint page1 = page1.js
|
||||
Entrypoint react-vendors = runtime.js react-vendors.js
|
||||
Entrypoint other-vendors = runtime.js other-vendors.js
|
||||
asset runtime.js 11.3 KiB [emitted] (name: runtime)
|
||||
asset other-vendors.js 1.92 KiB [emitted] (name: other-vendors)
|
||||
asset page1.js 1.64 KiB [emitted] (name: page1)
|
||||
asset app.js 1.17 KiB [emitted] (name: app)
|
||||
asset lazy_js.js 1.11 KiB [emitted]
|
||||
asset react-vendors.js 1.1 KiB [emitted] (name: react-vendors)
|
||||
Entrypoint app 1.17 KiB = app.js
|
||||
Entrypoint page1 1.64 KiB = page1.js
|
||||
Entrypoint react-vendors 12.4 KiB = runtime.js 11.3 KiB react-vendors.js 1.1 KiB
|
||||
Entrypoint other-vendors 13.3 KiB = runtime.js 11.3 KiB other-vendors.js 1.92 KiB
|
||||
chunk app.js (app) 116 bytes <{other-vendors}> <{runtime}> >{page1}< [initial] [rendered]
|
||||
> ./app.js app
|
||||
./app.js 116 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./app.js app
|
||||
> ./app.js app
|
||||
./app.js 116 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./app.js app
|
||||
chunk lazy_js.js 98 bytes <{page1}> [rendered]
|
||||
> ./lazy ./page1.js 7:0-16
|
||||
./lazy.js 98 bytes [built]
|
||||
[no exports]
|
||||
import() ./lazy ./page1.js 7:0-16
|
||||
> ./lazy ./page1.js 7:0-16
|
||||
./lazy.js 98 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
import() ./lazy ./page1.js 7:0-16
|
||||
chunk other-vendors.js (other-vendors) 210 bytes ={runtime}= >{app}< [initial] [rendered]
|
||||
> ./other-vendors other-vendors
|
||||
./node_modules/isomorphic-fetch.js 37 bytes [built]
|
||||
harmony side effect evaluation isomorphic-fetch ./app.js 1:0-47
|
||||
harmony import specifier isomorphic-fetch ./app.js 4:12-27
|
||||
cjs self exports reference ./node_modules/isomorphic-fetch.js 1:0-14
|
||||
harmony side effect evaluation isomorphic-fetch ./other-vendors.js 2:0-47
|
||||
harmony import specifier isomorphic-fetch ./other-vendors.js 5:20-35
|
||||
harmony side effect evaluation isomorphic-fetch ./page1.js 1:0-47
|
||||
harmony import specifier isomorphic-fetch ./page1.js 5:12-27
|
||||
./node_modules/lodash.js 27 bytes [built]
|
||||
harmony side effect evaluation lodash ./app.js 2:0-28
|
||||
harmony import specifier lodash ./app.js 4:29-35
|
||||
harmony side effect evaluation lodash ./lazy.js 1:0-28
|
||||
harmony import specifier lodash ./lazy.js 4:12-18
|
||||
cjs self exports reference ./node_modules/lodash.js 1:0-14
|
||||
harmony side effect evaluation lodash ./other-vendors.js 1:0-28
|
||||
harmony import specifier lodash ./other-vendors.js 5:12-18
|
||||
./other-vendors.js 146 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./other-vendors other-vendors
|
||||
> ./other-vendors other-vendors
|
||||
dependent modules 64 bytes [dependent] 2 modules
|
||||
./other-vendors.js 146 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./other-vendors other-vendors
|
||||
chunk page1.js (page1) 176 bytes <{app}> <{react-vendors}> <{runtime}> >{lazy_js}< [initial] [rendered]
|
||||
> ./page1.js page1
|
||||
./page1.js 176 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./page1.js page1
|
||||
> ./page1.js page1
|
||||
./page1.js 176 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./page1.js page1
|
||||
chunk react-vendors.js (react-vendors) 87 bytes ={runtime}= >{page1}< [initial] [rendered]
|
||||
> prop-types react-vendors
|
||||
> react react-vendors
|
||||
> react-dom react-vendors
|
||||
./node_modules/prop-types.js 31 bytes [built]
|
||||
harmony side effect evaluation prop-types ./lazy.js 2:0-35
|
||||
harmony import specifier prop-types ./lazy.js 4:20-29
|
||||
cjs self exports reference ./node_modules/prop-types.js 1:0-14
|
||||
entry prop-types react-vendors
|
||||
./node_modules/react-dom.js 30 bytes [built]
|
||||
cjs self exports reference ./node_modules/react-dom.js 1:0-14
|
||||
harmony side effect evaluation react-dom ./page1.js 3:0-33
|
||||
harmony import specifier react-dom ./page1.js 5:36-44
|
||||
entry react-dom react-vendors
|
||||
./node_modules/react.js 26 bytes [built]
|
||||
cjs self exports reference ./node_modules/react.js 1:0-14
|
||||
harmony side effect evaluation react ./page1.js 2:0-26
|
||||
harmony import specifier react ./page1.js 5:29-34
|
||||
entry react react-vendors
|
||||
chunk runtime.js (runtime) 6.18 KiB ={other-vendors}= ={react-vendors}= >{app}< >{page1}< [entry] [rendered]
|
||||
> ./other-vendors other-vendors
|
||||
> prop-types react-vendors
|
||||
> react react-vendors
|
||||
> react-dom react-vendors
|
||||
8 chunk modules
|
||||
> prop-types react-vendors
|
||||
> react react-vendors
|
||||
> react-dom react-vendors
|
||||
./node_modules/prop-types.js 31 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation prop-types ./lazy.js 2:0-35
|
||||
harmony import specifier prop-types ./lazy.js 4:20-29
|
||||
cjs self exports reference ./node_modules/prop-types.js 1:0-14
|
||||
entry prop-types react-vendors
|
||||
./node_modules/react-dom.js 30 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./node_modules/react-dom.js 1:0-14
|
||||
harmony side effect evaluation react-dom ./page1.js 3:0-33
|
||||
harmony import specifier react-dom ./page1.js 5:36-44
|
||||
entry react-dom react-vendors
|
||||
./node_modules/react.js 26 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./node_modules/react.js 1:0-14
|
||||
harmony side effect evaluation react ./page1.js 2:0-26
|
||||
harmony import specifier react ./page1.js 5:29-34
|
||||
entry react react-vendors
|
||||
chunk runtime.js (runtime) 6.86 KiB ={other-vendors}= ={react-vendors}= >{app}< >{page1}< [entry] [rendered]
|
||||
> ./other-vendors other-vendors
|
||||
> prop-types react-vendors
|
||||
> react react-vendors
|
||||
> react-dom react-vendors
|
||||
runtime modules 6.86 KiB 9 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
app.js 186 bytes [emitted] [name: app]
|
||||
lazy_js.js 163 bytes [emitted]
|
||||
other-vendors.js 245 bytes [emitted] [name: other-vendors]
|
||||
page1.js 266 bytes [emitted] [name: page1]
|
||||
react-vendors.js 210 bytes [emitted] [name: react-vendors]
|
||||
runtime.js 1.94 KiB [emitted] [name: runtime]
|
||||
Entrypoint app = app.js
|
||||
Entrypoint page1 = page1.js
|
||||
Entrypoint react-vendors = runtime.js react-vendors.js
|
||||
Entrypoint other-vendors = runtime.js other-vendors.js
|
||||
chunk app.js (app) 116 bytes <{other-vendors}> <{runtime}> >{page1}< [initial] [rendered]
|
||||
> ./app.js app
|
||||
./app.js 116 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./app.js app
|
||||
chunk lazy_js.js 98 bytes <{page1}> [rendered]
|
||||
> ./lazy ./page1.js 7:0-16
|
||||
./lazy.js 98 bytes [built]
|
||||
[no exports]
|
||||
import() ./lazy ./page1.js 7:0-16
|
||||
chunk other-vendors.js (other-vendors) 210 bytes ={runtime}= >{app}< [initial] [rendered]
|
||||
> ./other-vendors other-vendors
|
||||
./node_modules/isomorphic-fetch.js 37 bytes [built]
|
||||
harmony side effect evaluation isomorphic-fetch ./app.js 1:0-47
|
||||
harmony import specifier isomorphic-fetch ./app.js 4:12-27
|
||||
cjs self exports reference ./node_modules/isomorphic-fetch.js 1:0-14
|
||||
harmony side effect evaluation isomorphic-fetch ./other-vendors.js 2:0-47
|
||||
harmony import specifier isomorphic-fetch ./other-vendors.js 5:20-35
|
||||
harmony side effect evaluation isomorphic-fetch ./page1.js 1:0-47
|
||||
harmony import specifier isomorphic-fetch ./page1.js 5:12-27
|
||||
./node_modules/lodash.js 27 bytes [built]
|
||||
harmony side effect evaluation lodash ./app.js 2:0-28
|
||||
harmony import specifier lodash ./app.js 4:29-35
|
||||
harmony side effect evaluation lodash ./lazy.js 1:0-28
|
||||
harmony import specifier lodash ./lazy.js 4:12-18
|
||||
cjs self exports reference ./node_modules/lodash.js 1:0-14
|
||||
harmony side effect evaluation lodash ./other-vendors.js 1:0-28
|
||||
harmony import specifier lodash ./other-vendors.js 5:12-18
|
||||
./other-vendors.js 146 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./other-vendors other-vendors
|
||||
chunk page1.js (page1) 176 bytes <{app}> <{react-vendors}> <{runtime}> >{lazy_js}< [initial] [rendered]
|
||||
> ./page1.js page1
|
||||
./page1.js 176 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./page1.js page1
|
||||
chunk react-vendors.js (react-vendors) 87 bytes ={runtime}= >{page1}< [initial] [rendered]
|
||||
> prop-types react-vendors
|
||||
> react react-vendors
|
||||
> react-dom react-vendors
|
||||
./node_modules/prop-types.js 31 bytes [built]
|
||||
harmony side effect evaluation prop-types ./lazy.js 2:0-35
|
||||
harmony import specifier prop-types ./lazy.js 4:20-29
|
||||
cjs self exports reference ./node_modules/prop-types.js 1:0-14
|
||||
entry prop-types react-vendors
|
||||
./node_modules/react-dom.js 30 bytes [built]
|
||||
cjs self exports reference ./node_modules/react-dom.js 1:0-14
|
||||
harmony side effect evaluation react-dom ./page1.js 3:0-33
|
||||
harmony import specifier react-dom ./page1.js 5:36-44
|
||||
entry react-dom react-vendors
|
||||
./node_modules/react.js 26 bytes [built]
|
||||
cjs self exports reference ./node_modules/react.js 1:0-14
|
||||
harmony side effect evaluation react ./page1.js 2:0-26
|
||||
harmony import specifier react ./page1.js 5:29-34
|
||||
entry react react-vendors
|
||||
chunk runtime.js (runtime) 6.18 KiB ={other-vendors}= ={react-vendors}= >{app}< >{page1}< [entry] [rendered]
|
||||
> ./other-vendors other-vendors
|
||||
> prop-types react-vendors
|
||||
> react react-vendors
|
||||
> react-dom react-vendors
|
||||
8 chunk modules
|
||||
asset runtime.js 2.24 KiB [emitted] [minimized] (name: runtime)
|
||||
asset page1.js 264 bytes [emitted] [minimized] (name: page1)
|
||||
asset other-vendors.js 243 bytes [emitted] [minimized] (name: other-vendors)
|
||||
asset react-vendors.js 208 bytes [emitted] [minimized] (name: react-vendors)
|
||||
asset app.js 184 bytes [emitted] [minimized] (name: app)
|
||||
asset lazy_js.js 159 bytes [emitted] [minimized]
|
||||
Entrypoint app 184 bytes = app.js
|
||||
Entrypoint page1 264 bytes = page1.js
|
||||
Entrypoint react-vendors 2.45 KiB = runtime.js 2.24 KiB react-vendors.js 208 bytes
|
||||
Entrypoint other-vendors 2.48 KiB = runtime.js 2.24 KiB other-vendors.js 243 bytes
|
||||
chunk (runtime: runtime) app.js (app) 116 bytes <{other-vendors}> <{runtime}> >{page1}< [initial] [rendered]
|
||||
> ./app.js app
|
||||
./app.js 116 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./app.js app
|
||||
chunk (runtime: runtime) lazy_js.js 98 bytes <{page1}> [rendered]
|
||||
> ./lazy ./page1.js 7:0-16
|
||||
./lazy.js 98 bytes [built] [code generated]
|
||||
[no exports]
|
||||
import() ./lazy ./page1.js 7:0-16
|
||||
chunk (runtime: runtime) other-vendors.js (other-vendors) 210 bytes ={runtime}= >{app}< [initial] [rendered]
|
||||
> ./other-vendors other-vendors
|
||||
dependent modules 64 bytes [dependent] 2 modules
|
||||
./other-vendors.js 146 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./other-vendors other-vendors
|
||||
chunk (runtime: runtime) page1.js (page1) 176 bytes <{app}> <{react-vendors}> <{runtime}> >{lazy_js}< [initial] [rendered]
|
||||
> ./page1.js page1
|
||||
./page1.js 176 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./page1.js page1
|
||||
chunk (runtime: runtime) react-vendors.js (react-vendors) 87 bytes ={runtime}= >{page1}< [initial] [rendered]
|
||||
> prop-types react-vendors
|
||||
> react react-vendors
|
||||
> react-dom react-vendors
|
||||
./node_modules/prop-types.js 31 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation prop-types ./lazy.js 2:0-35
|
||||
harmony import specifier prop-types ./lazy.js 4:20-29
|
||||
cjs self exports reference ./node_modules/prop-types.js 1:0-14
|
||||
entry prop-types react-vendors
|
||||
./node_modules/react-dom.js 30 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./node_modules/react-dom.js 1:0-14
|
||||
harmony side effect evaluation react-dom ./page1.js 3:0-33
|
||||
harmony import specifier react-dom ./page1.js 5:36-44
|
||||
entry react-dom react-vendors
|
||||
./node_modules/react.js 26 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./node_modules/react.js 1:0-14
|
||||
harmony side effect evaluation react ./page1.js 2:0-26
|
||||
harmony import specifier react ./page1.js 5:29-34
|
||||
entry react react-vendors
|
||||
chunk (runtime: runtime) runtime.js (runtime) 6.86 KiB ={other-vendors}= ={react-vendors}= >{app}< >{page1}< [entry] [rendered]
|
||||
> ./other-vendors other-vendors
|
||||
> prop-types react-vendors
|
||||
> react react-vendors
|
||||
> react-dom react-vendors
|
||||
runtime modules 6.86 KiB 9 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -31,18 +31,19 @@ console.log(react, reactDOM, propTypes);
|
|||
# dist/app.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app"],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([["app"],{
|
||||
|
||||
/***/ 3:
|
||||
/*!****************!*\
|
||||
!*** ./app.js ***!
|
||||
\****************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.r, __webpack_exports__, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 0);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ 1);
|
||||
|
@ -58,7 +59,8 @@ console.log((react__WEBPACK_IMPORTED_MODULE_0___default()), (react_dom__WEBPACK_
|
|||
|
||||
/***/ })
|
||||
|
||||
},[[3,"react-vendors"]]]);
|
||||
},
|
||||
0,[[3,"react-vendors"]]]);
|
||||
```
|
||||
|
||||
# dist/react-vendors.js
|
||||
|
@ -71,8 +73,8 @@ console.log((react__WEBPACK_IMPORTED_MODULE_0___default()), (react_dom__WEBPACK_
|
|||
!*** ./node_modules/react.js ***!
|
||||
\*******************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = 'react';
|
||||
|
@ -84,8 +86,8 @@ module.exports = 'react';
|
|||
!*** ./node_modules/react-dom.js ***!
|
||||
\***********************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = 'react-dom';
|
||||
|
@ -97,8 +99,8 @@ module.exports = 'react-dom';
|
|||
!*** ./node_modules/prop-types.js ***!
|
||||
\************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = 'prop-types';
|
||||
|
@ -168,8 +170,21 @@ module.exports = 'prop-types';
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // 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/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -222,17 +237,14 @@ module.exports = 'prop-types';
|
|||
/******/ __webpack_require__.x = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice();
|
||||
/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]);
|
||||
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime, executeModules] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -249,7 +261,7 @@ module.exports = 'prop-types';
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
|
@ -259,12 +271,11 @@ module.exports = 'prop-types';
|
|||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -284,75 +295,75 @@ module.exports = 'prop-types';
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
app.js 1.35 KiB [emitted] [name: app]
|
||||
react-vendors.js 7.12 KiB [emitted] [name: react-vendors]
|
||||
Entrypoint app = app.js
|
||||
Entrypoint react-vendors = react-vendors.js
|
||||
asset react-vendors.js 7.48 KiB [emitted] (name: react-vendors)
|
||||
asset app.js 1.43 KiB [emitted] (name: app)
|
||||
chunk app.js (app) 139 bytes <{react-vendors}> [initial] [rendered]
|
||||
> ./app.js app
|
||||
./app.js 139 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./app.js app
|
||||
chunk react-vendors.js (react-vendors) 87 bytes (javascript) 3.17 KiB (runtime) >{app}< [entry] [rendered]
|
||||
> prop-types react-vendors
|
||||
> react react-vendors
|
||||
> react-dom react-vendors
|
||||
./node_modules/prop-types.js 31 bytes [built]
|
||||
harmony side effect evaluation prop-types ./app.js 3:0-35
|
||||
harmony import specifier prop-types ./app.js 5:29-38
|
||||
cjs self exports reference ./node_modules/prop-types.js 1:0-14
|
||||
entry prop-types react-vendors
|
||||
./node_modules/react-dom.js 30 bytes [built]
|
||||
harmony side effect evaluation react-dom ./app.js 2:0-33
|
||||
harmony import specifier react-dom ./app.js 5:19-27
|
||||
cjs self exports reference ./node_modules/react-dom.js 1:0-14
|
||||
entry react-dom react-vendors
|
||||
./node_modules/react.js 26 bytes [built]
|
||||
harmony side effect evaluation react ./app.js 1:0-26
|
||||
harmony import specifier react ./app.js 5:12-17
|
||||
cjs self exports reference ./node_modules/react.js 1:0-14
|
||||
entry react react-vendors
|
||||
+ 4 hidden chunk modules
|
||||
> ./app.js app
|
||||
./app.js 139 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./app.js app
|
||||
chunk react-vendors.js (react-vendors) 87 bytes (javascript) 3.42 KiB (runtime) >{app}< [entry] [rendered]
|
||||
> prop-types react-vendors
|
||||
> react react-vendors
|
||||
> react-dom react-vendors
|
||||
runtime modules 3.42 KiB 5 modules
|
||||
cacheable modules 87 bytes
|
||||
./node_modules/prop-types.js 31 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation prop-types ./app.js 3:0-35
|
||||
harmony import specifier prop-types ./app.js 5:29-38
|
||||
cjs self exports reference ./node_modules/prop-types.js 1:0-14
|
||||
entry prop-types react-vendors
|
||||
./node_modules/react-dom.js 30 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation react-dom ./app.js 2:0-33
|
||||
harmony import specifier react-dom ./app.js 5:19-27
|
||||
cjs self exports reference ./node_modules/react-dom.js 1:0-14
|
||||
entry react-dom react-vendors
|
||||
./node_modules/react.js 26 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation react ./app.js 1:0-26
|
||||
harmony import specifier react ./app.js 5:12-17
|
||||
cjs self exports reference ./node_modules/react.js 1:0-14
|
||||
entry react react-vendors
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
app.js 197 bytes [emitted] [name: app]
|
||||
react-vendors.js 1.08 KiB [emitted] [name: react-vendors]
|
||||
Entrypoint app = app.js
|
||||
Entrypoint react-vendors = react-vendors.js
|
||||
chunk app.js (app) 139 bytes <{react-vendors}> [initial] [rendered]
|
||||
> ./app.js app
|
||||
./app.js 139 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./app.js app
|
||||
chunk react-vendors.js (react-vendors) 87 bytes (javascript) 3.18 KiB (runtime) >{app}< [entry] [rendered]
|
||||
> prop-types react-vendors
|
||||
> react react-vendors
|
||||
> react-dom react-vendors
|
||||
./node_modules/prop-types.js 31 bytes [built]
|
||||
harmony side effect evaluation prop-types ./app.js 3:0-35
|
||||
harmony import specifier prop-types ./app.js 5:29-38
|
||||
cjs self exports reference ./node_modules/prop-types.js 1:0-14
|
||||
entry prop-types react-vendors
|
||||
./node_modules/react-dom.js 30 bytes [built]
|
||||
harmony side effect evaluation react-dom ./app.js 2:0-33
|
||||
harmony import specifier react-dom ./app.js 5:19-27
|
||||
cjs self exports reference ./node_modules/react-dom.js 1:0-14
|
||||
entry react-dom react-vendors
|
||||
./node_modules/react.js 26 bytes [built]
|
||||
harmony side effect evaluation react ./app.js 1:0-26
|
||||
harmony import specifier react ./app.js 5:12-17
|
||||
cjs self exports reference ./node_modules/react.js 1:0-14
|
||||
entry react react-vendors
|
||||
+ 4 hidden chunk modules
|
||||
asset react-vendors.js 1.04 KiB [emitted] [minimized] (name: react-vendors)
|
||||
asset app.js 195 bytes [emitted] [minimized] (name: app)
|
||||
chunk (runtime: react-vendors) app.js (app) 139 bytes <{react-vendors}> [initial] [rendered]
|
||||
> ./app.js app
|
||||
./app.js 139 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./app.js app
|
||||
chunk (runtime: react-vendors) react-vendors.js (react-vendors) 87 bytes (javascript) 3.16 KiB (runtime) >{app}< [entry] [rendered]
|
||||
> prop-types react-vendors
|
||||
> react react-vendors
|
||||
> react-dom react-vendors
|
||||
runtime modules 3.16 KiB 4 modules
|
||||
cacheable modules 87 bytes
|
||||
./node_modules/prop-types.js 31 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation prop-types ./app.js 3:0-35
|
||||
harmony import specifier prop-types ./app.js 5:29-38
|
||||
cjs self exports reference ./node_modules/prop-types.js 1:0-14
|
||||
entry prop-types react-vendors
|
||||
./node_modules/react-dom.js 30 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation react-dom ./app.js 2:0-33
|
||||
harmony import specifier react-dom ./app.js 5:19-27
|
||||
cjs self exports reference ./node_modules/react-dom.js 1:0-14
|
||||
entry react-dom react-vendors
|
||||
./node_modules/react.js 26 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation react ./app.js 1:0-26
|
||||
harmony import specifier react ./app.js 5:12-17
|
||||
cjs self exports reference ./node_modules/react.js 1:0-14
|
||||
entry react react-vendors
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -29,13 +29,40 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
|
|||
```javascript
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 0 */
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.r, __webpack_exports__, __webpack_require__.e, __webpack_require__.t, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var a__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! a */ 1);
|
||||
/* harmony import */ var a__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(a__WEBPACK_IMPORTED_MODULE_0__);
|
||||
|
||||
|
||||
__webpack_require__.e(/*! import() */ 644).then(__webpack_require__.t.bind(__webpack_require__, /*! b */ 3, 7)).then(function(b) {
|
||||
console.log("b loaded", b);
|
||||
})
|
||||
|
||||
function loadC(name) {
|
||||
return __webpack_require__(2)("./" + name);
|
||||
}
|
||||
|
||||
Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
|
||||
console.log("c/1 and c/2 loaded", arr);
|
||||
});
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/*!***************************!*\
|
||||
!*** ./node_modules/a.js ***!
|
||||
\***************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -43,11 +70,11 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
|
|||
|
||||
/***/ }),
|
||||
/* 2 */
|
||||
/*!*******************************************************!*\
|
||||
!*** ./node_modules/c lazy ^\.\/.*$ namespace object ***!
|
||||
\*******************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*!********************************************************!*\
|
||||
!*** ./node_modules/c/ lazy ^\.\/.*$ namespace object ***!
|
||||
\********************************************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module, __webpack_require__.o, __webpack_require__, __webpack_require__.e, __webpack_require__.t, __webpack_require__.* */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -196,6 +223,52 @@ module.exports = webpackAsyncContext;
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
|
@ -214,6 +287,8 @@ module.exports = webpackAsyncContext;
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -240,49 +315,24 @@ module.exports = webpackAsyncContext;
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -299,11 +349,8 @@ module.exports = webpackAsyncContext;
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -320,17 +367,16 @@ module.exports = webpackAsyncContext;
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -339,32 +385,10 @@ module.exports = webpackAsyncContext;
|
|||
</details>
|
||||
|
||||
``` js
|
||||
(() => {
|
||||
"use strict";
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.e, __webpack_require__.t, __webpack_require__.* */
|
||||
/* harmony import */ var a__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! a */ 1);
|
||||
/* harmony import */ var a__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(a__WEBPACK_IMPORTED_MODULE_0__);
|
||||
|
||||
|
||||
__webpack_require__.e(/*! import() */ 644).then(__webpack_require__.t.bind(__webpack_require__, /*! b */ 3, 7)).then(function(b) {
|
||||
console.log("b loaded", b);
|
||||
})
|
||||
|
||||
function loadC(name) {
|
||||
return __webpack_require__(2)("./" + name);
|
||||
}
|
||||
|
||||
Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
|
||||
console.log("c/1 and c/2 loaded", arr);
|
||||
});
|
||||
|
||||
})();
|
||||
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ __webpack_require__(0);
|
||||
/******/ // This entry module used 'exports' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -374,81 +398,73 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
346.output.js 381 bytes [emitted]
|
||||
644.output.js 373 bytes [emitted]
|
||||
98.output.js 380 bytes [emitted]
|
||||
output.js 12 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
asset output.js 13.1 KiB [emitted] (name: main)
|
||||
asset 346.output.js 296 bytes [emitted]
|
||||
asset 98.output.js 295 bytes [emitted]
|
||||
asset 644.output.js 288 bytes [emitted]
|
||||
chunk 98.output.js 13 bytes [rendered]
|
||||
> ./2 ./node_modules/c lazy ^\.\/.*$ namespace object ./2
|
||||
> ./2.js ./node_modules/c lazy ^\.\/.*$ namespace object ./2.js
|
||||
./node_modules/c/2.js 13 bytes [optional] [built]
|
||||
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.68 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 243 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./node_modules/a.js 11 bytes [built]
|
||||
[no exports used]
|
||||
harmony side effect evaluation a ./example.js 1:0-18
|
||||
./node_modules/c lazy ^\.\/.*$ namespace object 160 bytes [built]
|
||||
import() context lazy c ./example.js 8:8-27
|
||||
+ 9 hidden chunk modules
|
||||
> ./2 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2
|
||||
> ./2.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2.js
|
||||
./node_modules/c/2.js 13 bytes [optional] [built] [code generated]
|
||||
[used exports unknown]
|
||||
context element ./2 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2
|
||||
context element ./2.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2.js
|
||||
chunk output.js (main) 414 bytes (javascript) 6.34 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 6.34 KiB 10 modules
|
||||
dependent modules 171 bytes [dependent] 2 modules
|
||||
./example.js 243 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 346.output.js 13 bytes [rendered]
|
||||
> ./1 ./node_modules/c lazy ^\.\/.*$ namespace object ./1
|
||||
> ./1.js ./node_modules/c lazy ^\.\/.*$ namespace object ./1.js
|
||||
./node_modules/c/1.js 13 bytes [optional] [built]
|
||||
context element ./1 ./node_modules/c lazy ^\.\/.*$ namespace object ./1
|
||||
context element ./1.js ./node_modules/c lazy ^\.\/.*$ namespace object ./1.js
|
||||
> ./1 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./1
|
||||
> ./1.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./1.js
|
||||
./node_modules/c/1.js 13 bytes [optional] [built] [code generated]
|
||||
[used exports unknown]
|
||||
context element ./1 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./1
|
||||
context element ./1.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./1.js
|
||||
chunk 644.output.js 11 bytes [rendered]
|
||||
> b ./example.js 3:0-11
|
||||
./node_modules/b.js 11 bytes [built]
|
||||
import() b ./example.js 3:0-11
|
||||
> b ./example.js 3:0-11
|
||||
./node_modules/b.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
import() b ./example.js 3:0-11
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
346.output.js 73 bytes [emitted]
|
||||
644.output.js 73 bytes [emitted]
|
||||
98.output.js 71 bytes [emitted]
|
||||
output.js 2.4 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk 98.output.js 13 bytes [rendered]
|
||||
> ./2 ./node_modules/c lazy ^\.\/.*$ namespace object ./2
|
||||
> ./2.js ./node_modules/c lazy ^\.\/.*$ namespace object ./2.js
|
||||
./node_modules/c/2.js 13 bytes [optional] [built]
|
||||
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.68 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 243 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./node_modules/a.js 11 bytes [built]
|
||||
[no exports used]
|
||||
harmony side effect evaluation a ./example.js 1:0-18
|
||||
./node_modules/c lazy ^\.\/.*$ namespace object 160 bytes [built]
|
||||
import() context lazy c ./example.js 8:8-27
|
||||
+ 9 hidden chunk modules
|
||||
chunk 346.output.js 13 bytes [rendered]
|
||||
> ./1 ./node_modules/c lazy ^\.\/.*$ namespace object ./1
|
||||
> ./1.js ./node_modules/c lazy ^\.\/.*$ namespace object ./1.js
|
||||
./node_modules/c/1.js 13 bytes [optional] [built]
|
||||
context element ./1 ./node_modules/c lazy ^\.\/.*$ namespace object ./1
|
||||
context element ./1.js ./node_modules/c lazy ^\.\/.*$ namespace object ./1.js
|
||||
chunk 644.output.js 11 bytes [rendered]
|
||||
> b ./example.js 3:0-11
|
||||
./node_modules/b.js 11 bytes [built]
|
||||
import() b ./example.js 3:0-11
|
||||
asset output.js 2.71 KiB [emitted] [minimized] (name: main)
|
||||
asset 346.output.js 69 bytes [emitted] [minimized]
|
||||
asset 644.output.js 69 bytes [emitted] [minimized]
|
||||
asset 98.output.js 67 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) 98.output.js 13 bytes [rendered]
|
||||
> ./2 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2
|
||||
> ./2.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2.js
|
||||
./node_modules/c/2.js 13 bytes [optional] [built] [code generated]
|
||||
[used exports unknown]
|
||||
context element ./2 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2
|
||||
context element ./2.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./2.js
|
||||
chunk (runtime: main) output.js (main) 414 bytes (javascript) 6.34 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 6.34 KiB 10 modules
|
||||
dependent modules 171 bytes [dependent] 2 modules
|
||||
./example.js 243 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 346.output.js 13 bytes [rendered]
|
||||
> ./1 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./1
|
||||
> ./1.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./1.js
|
||||
./node_modules/c/1.js 13 bytes [optional] [built] [code generated]
|
||||
[used exports unknown]
|
||||
context element ./1 ./node_modules/c/ lazy ^\.\/.*$ namespace object ./1
|
||||
context element ./1.js ./node_modules/c/ lazy ^\.\/.*$ namespace object ./1.js
|
||||
chunk (runtime: main) 644.output.js 11 bytes [rendered]
|
||||
> b ./example.js 3:0-11
|
||||
./node_modules/b.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
import() b ./example.js 3:0-11
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -50,11 +50,11 @@ export default foo;
|
|||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!******************************************************************************************!*\
|
||||
!*** ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ***!
|
||||
\******************************************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*!*******************************************************************************************!*\
|
||||
!*** ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ***!
|
||||
\*******************************************************************************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module, __webpack_require__.o, __webpack_require__, __webpack_require__.e, __webpack_require__.* */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -176,6 +176,52 @@ module.exports = webpackAsyncContext;
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
|
@ -194,6 +240,8 @@ module.exports = webpackAsyncContext;
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -220,49 +268,24 @@ module.exports = webpackAsyncContext;
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -279,11 +302,8 @@ module.exports = webpackAsyncContext;
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -300,17 +320,16 @@ module.exports = webpackAsyncContext;
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -324,7 +343,6 @@ module.exports = webpackAsyncContext;
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
async function getTemplate(templateName) {
|
||||
try {
|
||||
|
@ -355,83 +373,78 @@ getTemplate("baz.noimport");
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
398.output.js 877 bytes [emitted]
|
||||
544.output.js 877 bytes [emitted]
|
||||
718.output.js 877 bytes [emitted]
|
||||
output.js 10.1 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 597 bytes (javascript) 4.76 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 437 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object 160 bytes [optional] [built]
|
||||
import() context lazy ./templates ./example.js 3:23-7:3
|
||||
+ 7 hidden chunk modules
|
||||
asset output.js 10.9 KiB [emitted] (name: main)
|
||||
asset 398.output.js 856 bytes [emitted]
|
||||
asset 544.output.js 856 bytes [emitted]
|
||||
asset 718.output.js 856 bytes [emitted]
|
||||
chunk output.js (main) 597 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.42 KiB 8 modules
|
||||
dependent modules 160 bytes [dependent] 1 module
|
||||
./example.js 437 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 398.output.js 38 bytes [rendered]
|
||||
> ./bar ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
|
||||
> ./bar.js ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js
|
||||
./templates/bar.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./bar ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
|
||||
context element ./bar.js ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js
|
||||
> ./bar ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
|
||||
> ./bar.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js
|
||||
./templates/bar.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
[used exports unknown]
|
||||
context element ./bar ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
|
||||
context element ./bar.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js
|
||||
chunk 544.output.js 38 bytes [rendered]
|
||||
> ./baz ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz
|
||||
> ./baz.js ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js
|
||||
./templates/baz.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./baz ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz
|
||||
context element ./baz.js ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js
|
||||
> ./baz ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz
|
||||
> ./baz.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js
|
||||
./templates/baz.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
[used exports unknown]
|
||||
context element ./baz ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz
|
||||
context element ./baz.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js
|
||||
chunk 718.output.js 38 bytes [rendered]
|
||||
> ./foo ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
|
||||
> ./foo.js ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
|
||||
./templates/foo.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./foo ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
|
||||
context element ./foo.js ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
|
||||
> ./foo ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
|
||||
> ./foo.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
|
||||
./templates/foo.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
[used exports unknown]
|
||||
context element ./foo ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
|
||||
context element ./foo.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
398.output.js 134 bytes [emitted]
|
||||
544.output.js 134 bytes [emitted]
|
||||
718.output.js 134 bytes [emitted]
|
||||
output.js 2.1 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 597 bytes (javascript) 4.76 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 437 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object 160 bytes [optional] [built]
|
||||
import() context lazy ./templates ./example.js 3:23-7:3
|
||||
+ 7 hidden chunk modules
|
||||
chunk 398.output.js 38 bytes [rendered]
|
||||
> ./bar ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
|
||||
> ./bar.js ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js
|
||||
./templates/bar.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./bar ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
|
||||
context element ./bar.js ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js
|
||||
chunk 544.output.js 38 bytes [rendered]
|
||||
> ./baz ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz
|
||||
> ./baz.js ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js
|
||||
./templates/baz.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./baz ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz
|
||||
context element ./baz.js ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js
|
||||
chunk 718.output.js 38 bytes [rendered]
|
||||
> ./foo ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
|
||||
> ./foo.js ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
|
||||
./templates/foo.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./foo ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
|
||||
context element ./foo.js ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
|
||||
asset output.js 2.41 KiB [emitted] [minimized] (name: main)
|
||||
asset 398.output.js 130 bytes [emitted] [minimized]
|
||||
asset 544.output.js 130 bytes [emitted] [minimized]
|
||||
asset 718.output.js 130 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) output.js (main) 597 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.42 KiB 8 modules
|
||||
dependent modules 160 bytes [dependent] 1 module
|
||||
./example.js 437 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 398.output.js 38 bytes [rendered]
|
||||
> ./bar ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
|
||||
> ./bar.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js
|
||||
./templates/bar.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
context element ./bar ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
|
||||
context element ./bar.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar.js
|
||||
chunk (runtime: main) 544.output.js 38 bytes [rendered]
|
||||
> ./baz ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz
|
||||
> ./baz.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js
|
||||
./templates/baz.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
context element ./baz ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz
|
||||
context element ./baz.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./baz.js
|
||||
chunk (runtime: main) 718.output.js 38 bytes [rendered]
|
||||
> ./foo ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
|
||||
> ./foo.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
|
||||
./templates/foo.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
context element ./foo ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo
|
||||
context element ./foo.js ./templates/ lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./foo.js
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -39,11 +39,11 @@ export default foo;
|
|||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!**************************************************!*\
|
||||
!*** ./templates lazy ^\.\/.*$ namespace object ***!
|
||||
\**************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*!***************************************************!*\
|
||||
!*** ./templates/ lazy ^\.\/.*$ namespace object ***!
|
||||
\***************************************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module, __webpack_require__.o, __webpack_require__, __webpack_require__.e, __webpack_require__.* */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -165,6 +165,52 @@ module.exports = webpackAsyncContext;
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
|
@ -183,6 +229,8 @@ module.exports = webpackAsyncContext;
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -209,49 +257,24 @@ module.exports = webpackAsyncContext;
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -268,11 +291,8 @@ module.exports = webpackAsyncContext;
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -289,17 +309,16 @@ module.exports = webpackAsyncContext;
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -313,7 +332,6 @@ module.exports = webpackAsyncContext;
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
async function getTemplate(templateName) {
|
||||
try {
|
||||
|
@ -342,83 +360,78 @@ getTemplate("baz");
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
398.output.js 877 bytes [emitted]
|
||||
544.output.js 877 bytes [emitted]
|
||||
718.output.js 877 bytes [emitted]
|
||||
output.js 9.95 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 441 bytes (javascript) 4.76 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 281 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./templates lazy ^\.\/.*$ namespace object 160 bytes [optional] [built]
|
||||
import() context lazy ./templates ./example.js 3:23-60
|
||||
+ 7 hidden chunk modules
|
||||
asset output.js 10.7 KiB [emitted] (name: main)
|
||||
asset 398.output.js 856 bytes [emitted]
|
||||
asset 544.output.js 856 bytes [emitted]
|
||||
asset 718.output.js 856 bytes [emitted]
|
||||
chunk output.js (main) 441 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.42 KiB 8 modules
|
||||
dependent modules 160 bytes [dependent] 1 module
|
||||
./example.js 281 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 398.output.js 38 bytes [rendered]
|
||||
> ./bar ./templates lazy ^\.\/.*$ namespace object ./bar
|
||||
> ./bar.js ./templates lazy ^\.\/.*$ namespace object ./bar.js
|
||||
./templates/bar.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./bar ./templates lazy ^\.\/.*$ namespace object ./bar
|
||||
context element ./bar.js ./templates lazy ^\.\/.*$ namespace object ./bar.js
|
||||
> ./bar ./templates/ lazy ^\.\/.*$ namespace object ./bar
|
||||
> ./bar.js ./templates/ lazy ^\.\/.*$ namespace object ./bar.js
|
||||
./templates/bar.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
[used exports unknown]
|
||||
context element ./bar ./templates/ lazy ^\.\/.*$ namespace object ./bar
|
||||
context element ./bar.js ./templates/ lazy ^\.\/.*$ namespace object ./bar.js
|
||||
chunk 544.output.js 38 bytes [rendered]
|
||||
> ./baz ./templates lazy ^\.\/.*$ namespace object ./baz
|
||||
> ./baz.js ./templates lazy ^\.\/.*$ namespace object ./baz.js
|
||||
./templates/baz.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./baz ./templates lazy ^\.\/.*$ namespace object ./baz
|
||||
context element ./baz.js ./templates lazy ^\.\/.*$ namespace object ./baz.js
|
||||
> ./baz ./templates/ lazy ^\.\/.*$ namespace object ./baz
|
||||
> ./baz.js ./templates/ lazy ^\.\/.*$ namespace object ./baz.js
|
||||
./templates/baz.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
[used exports unknown]
|
||||
context element ./baz ./templates/ lazy ^\.\/.*$ namespace object ./baz
|
||||
context element ./baz.js ./templates/ lazy ^\.\/.*$ namespace object ./baz.js
|
||||
chunk 718.output.js 38 bytes [rendered]
|
||||
> ./foo ./templates lazy ^\.\/.*$ namespace object ./foo
|
||||
> ./foo.js ./templates lazy ^\.\/.*$ namespace object ./foo.js
|
||||
./templates/foo.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./foo ./templates lazy ^\.\/.*$ namespace object ./foo
|
||||
context element ./foo.js ./templates lazy ^\.\/.*$ namespace object ./foo.js
|
||||
> ./foo ./templates/ lazy ^\.\/.*$ namespace object ./foo
|
||||
> ./foo.js ./templates/ lazy ^\.\/.*$ namespace object ./foo.js
|
||||
./templates/foo.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
[used exports unknown]
|
||||
context element ./foo ./templates/ lazy ^\.\/.*$ namespace object ./foo
|
||||
context element ./foo.js ./templates/ lazy ^\.\/.*$ namespace object ./foo.js
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
398.output.js 134 bytes [emitted]
|
||||
544.output.js 134 bytes [emitted]
|
||||
718.output.js 134 bytes [emitted]
|
||||
output.js 2.06 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 441 bytes (javascript) 4.76 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 281 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./templates lazy ^\.\/.*$ namespace object 160 bytes [optional] [built]
|
||||
import() context lazy ./templates ./example.js 3:23-60
|
||||
+ 7 hidden chunk modules
|
||||
chunk 398.output.js 38 bytes [rendered]
|
||||
> ./bar ./templates lazy ^\.\/.*$ namespace object ./bar
|
||||
> ./bar.js ./templates lazy ^\.\/.*$ namespace object ./bar.js
|
||||
./templates/bar.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./bar ./templates lazy ^\.\/.*$ namespace object ./bar
|
||||
context element ./bar.js ./templates lazy ^\.\/.*$ namespace object ./bar.js
|
||||
chunk 544.output.js 38 bytes [rendered]
|
||||
> ./baz ./templates lazy ^\.\/.*$ namespace object ./baz
|
||||
> ./baz.js ./templates lazy ^\.\/.*$ namespace object ./baz.js
|
||||
./templates/baz.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./baz ./templates lazy ^\.\/.*$ namespace object ./baz
|
||||
context element ./baz.js ./templates lazy ^\.\/.*$ namespace object ./baz.js
|
||||
chunk 718.output.js 38 bytes [rendered]
|
||||
> ./foo ./templates lazy ^\.\/.*$ namespace object ./foo
|
||||
> ./foo.js ./templates lazy ^\.\/.*$ namespace object ./foo.js
|
||||
./templates/foo.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./foo ./templates lazy ^\.\/.*$ namespace object ./foo
|
||||
context element ./foo.js ./templates lazy ^\.\/.*$ namespace object ./foo.js
|
||||
asset output.js 2.37 KiB [emitted] [minimized] (name: main)
|
||||
asset 398.output.js 130 bytes [emitted] [minimized]
|
||||
asset 544.output.js 130 bytes [emitted] [minimized]
|
||||
asset 718.output.js 130 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) output.js (main) 441 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.42 KiB 8 modules
|
||||
dependent modules 160 bytes [dependent] 1 module
|
||||
./example.js 281 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 398.output.js 38 bytes [rendered]
|
||||
> ./bar ./templates/ lazy ^\.\/.*$ namespace object ./bar
|
||||
> ./bar.js ./templates/ lazy ^\.\/.*$ namespace object ./bar.js
|
||||
./templates/bar.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
context element ./bar ./templates/ lazy ^\.\/.*$ namespace object ./bar
|
||||
context element ./bar.js ./templates/ lazy ^\.\/.*$ namespace object ./bar.js
|
||||
chunk (runtime: main) 544.output.js 38 bytes [rendered]
|
||||
> ./baz ./templates/ lazy ^\.\/.*$ namespace object ./baz
|
||||
> ./baz.js ./templates/ lazy ^\.\/.*$ namespace object ./baz.js
|
||||
./templates/baz.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
context element ./baz ./templates/ lazy ^\.\/.*$ namespace object ./baz
|
||||
context element ./baz.js ./templates/ lazy ^\.\/.*$ namespace object ./baz.js
|
||||
chunk (runtime: main) 718.output.js 38 bytes [rendered]
|
||||
> ./foo ./templates/ lazy ^\.\/.*$ namespace object ./foo
|
||||
> ./foo.js ./templates/ lazy ^\.\/.*$ namespace object ./foo.js
|
||||
./templates/foo.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
context element ./foo ./templates/ lazy ^\.\/.*$ namespace object ./foo
|
||||
context element ./foo.js ./templates/ lazy ^\.\/.*$ namespace object ./foo.js
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -39,11 +39,11 @@ export default foo;
|
|||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ***!
|
||||
\*****************************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*!******************************************************************************!*\
|
||||
!*** ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ***!
|
||||
\******************************************************************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module, __webpack_require__.o, __webpack_require__, __webpack_require__.e, __webpack_require__.* */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -157,6 +157,52 @@ module.exports = webpackAsyncContext;
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
|
@ -175,6 +221,8 @@ module.exports = webpackAsyncContext;
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -201,49 +249,24 @@ module.exports = webpackAsyncContext;
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -260,11 +283,8 @@ module.exports = webpackAsyncContext;
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -281,17 +301,16 @@ module.exports = webpackAsyncContext;
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -305,7 +324,6 @@ module.exports = webpackAsyncContext;
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.* */
|
||||
__webpack_require__.e(/*! import() | chunk-foo */ 930).then(__webpack_require__.bind(__webpack_require__, /*! ./templates/foo */ 2)).then(function(foo) {
|
||||
console.log('foo:', foo);
|
||||
|
@ -334,83 +352,78 @@ __webpack_require__(1)("./ba" + createContextVar).then(function(bar) {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
548.output.js 877 bytes [emitted] [name: chunk-bar-baz2]
|
||||
791.output.js 877 bytes [emitted] [name: chunk-bar-baz0]
|
||||
930.output.js 877 bytes [emitted] [name: chunk-foo]
|
||||
output.js 10.3 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 565 bytes (javascript) 4.76 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 405 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object 160 bytes [built]
|
||||
import() context lazy ./templates ./example.js 11:0-84
|
||||
+ 7 hidden chunk modules
|
||||
asset output.js 11.1 KiB [emitted] (name: main)
|
||||
asset 548.output.js 856 bytes [emitted] (name: chunk-bar-baz2)
|
||||
asset 791.output.js 856 bytes [emitted] (name: chunk-bar-baz0)
|
||||
asset 930.output.js 856 bytes [emitted] (name: chunk-foo)
|
||||
chunk output.js (main) 565 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.42 KiB 8 modules
|
||||
dependent modules 160 bytes [dependent] 1 module
|
||||
./example.js 405 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 548.output.js (chunk-bar-baz2) 38 bytes [rendered]
|
||||
> ./baz ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz
|
||||
> ./baz.js ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz.js
|
||||
./templates/baz.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./baz ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz
|
||||
context element ./baz.js ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz.js
|
||||
> ./baz ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz
|
||||
> ./baz.js ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz.js
|
||||
./templates/baz.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
[used exports unknown]
|
||||
context element ./baz ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz
|
||||
context element ./baz.js ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz.js
|
||||
chunk 791.output.js (chunk-bar-baz0) 38 bytes [rendered]
|
||||
> ./bar ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar
|
||||
> ./bar.js ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar.js
|
||||
./templates/bar.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./bar ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar
|
||||
context element ./bar.js ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar.js
|
||||
> ./bar ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar
|
||||
> ./bar.js ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar.js
|
||||
./templates/bar.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
[used exports unknown]
|
||||
context element ./bar ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar
|
||||
context element ./bar.js ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar.js
|
||||
chunk 930.output.js (chunk-foo) 38 bytes [rendered]
|
||||
> ./templates/foo ./example.js 1:0-62
|
||||
> ./example.js 5:0-8:16
|
||||
./templates/foo.js 38 bytes [built]
|
||||
[exports: default]
|
||||
import() ./templates/foo ./example.js 1:0-62
|
||||
cjs require ./templates/foo ./example.js 6:11-37
|
||||
> ./templates/foo ./example.js 1:0-62
|
||||
> ./example.js 5:0-8:16
|
||||
./templates/foo.js 38 bytes [built] [code generated]
|
||||
[exports: default]
|
||||
[used exports unknown]
|
||||
import() ./templates/foo ./example.js 1:0-62
|
||||
cjs require ./templates/foo ./example.js 6:11-37
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
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.08 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 565 bytes (javascript) 4.76 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 405 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object 160 bytes [built]
|
||||
import() context lazy ./templates ./example.js 11:0-84
|
||||
+ 7 hidden chunk modules
|
||||
chunk 548.output.js (chunk-bar-baz2) 38 bytes [rendered]
|
||||
> ./baz ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz
|
||||
> ./baz.js ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz.js
|
||||
./templates/baz.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./baz ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz
|
||||
context element ./baz.js ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz.js
|
||||
chunk 791.output.js (chunk-bar-baz0) 38 bytes [rendered]
|
||||
> ./bar ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar
|
||||
> ./bar.js ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar.js
|
||||
./templates/bar.js 38 bytes [optional] [built]
|
||||
[exports: default]
|
||||
context element ./bar ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar
|
||||
context element ./bar.js ./templates lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar.js
|
||||
chunk 930.output.js (chunk-foo) 38 bytes [rendered]
|
||||
> ./templates/foo ./example.js 1:0-62
|
||||
> ./example.js 5:0-8:16
|
||||
./templates/foo.js 38 bytes [built]
|
||||
[exports: default]
|
||||
import() ./templates/foo ./example.js 1:0-62
|
||||
cjs require ./templates/foo ./example.js 6:11-37
|
||||
asset output.js 2.39 KiB [emitted] [minimized] (name: main)
|
||||
asset 548.output.js 130 bytes [emitted] [minimized] (name: chunk-bar-baz2)
|
||||
asset 791.output.js 130 bytes [emitted] [minimized] (name: chunk-bar-baz0)
|
||||
asset 930.output.js 130 bytes [emitted] [minimized] (name: chunk-foo)
|
||||
chunk (runtime: main) output.js (main) 565 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.42 KiB 8 modules
|
||||
dependent modules 160 bytes [dependent] 1 module
|
||||
./example.js 405 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 548.output.js (chunk-bar-baz2) 38 bytes [rendered]
|
||||
> ./baz ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz
|
||||
> ./baz.js ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz.js
|
||||
./templates/baz.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
context element ./baz ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz
|
||||
context element ./baz.js ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./baz.js
|
||||
chunk (runtime: main) 791.output.js (chunk-bar-baz0) 38 bytes [rendered]
|
||||
> ./bar ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar
|
||||
> ./bar.js ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar.js
|
||||
./templates/bar.js 38 bytes [optional] [built] [code generated]
|
||||
[exports: default]
|
||||
context element ./bar ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar
|
||||
context element ./bar.js ./templates/ lazy ^\.\/ba.*$ chunkName: chunk-bar-baz namespace object ./bar.js
|
||||
chunk (runtime: main) 930.output.js (chunk-foo) 38 bytes [rendered]
|
||||
> ./templates/foo ./example.js 1:0-62
|
||||
> ./example.js 5:0-8:16
|
||||
./templates/foo.js 38 bytes [built] [code generated]
|
||||
[exports: default]
|
||||
import() ./templates/foo ./example.js 1:0-62
|
||||
cjs require ./templates/foo ./example.js 6:11-37
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -45,7 +45,6 @@ require.ensure(["c"], function(require) {
|
|||
!*** ./node_modules/a.js ***!
|
||||
\***************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -57,7 +56,6 @@ require.ensure(["c"], function(require) {
|
|||
!*** ./node_modules/b.js ***!
|
||||
\***************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -125,6 +123,52 @@ require.ensure(["c"], function(require) {
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/publicPath */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.p = "dist/";
|
||||
|
@ -132,6 +176,8 @@ require.ensure(["c"], function(require) {
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -158,49 +204,24 @@ require.ensure(["c"], function(require) {
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -217,11 +238,8 @@ require.ensure(["c"], function(require) {
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -238,17 +256,16 @@ require.ensure(["c"], function(require) {
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -262,7 +279,6 @@ require.ensure(["c"], function(require) {
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.* */
|
||||
var a = __webpack_require__(/*! a */ 1);
|
||||
var b = __webpack_require__(/*! b */ 2);
|
||||
|
@ -279,7 +295,7 @@ __webpack_require__.e(/*! require.ensure */ 796).then((function(require) {
|
|||
# dist/796.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[796],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[796],[
|
||||
/* 0 */,
|
||||
/* 1 */,
|
||||
/* 2 */,
|
||||
|
@ -288,7 +304,6 @@ __webpack_require__.e(/*! require.ensure */ 796).then((function(require) {
|
|||
!*** ./node_modules/c.js ***!
|
||||
\***************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -300,7 +315,6 @@ __webpack_require__.e(/*! require.ensure */ 796).then((function(require) {
|
|||
!*** ./node_modules/d.js ***!
|
||||
\***************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -313,7 +327,7 @@ __webpack_require__.e(/*! require.ensure */ 796).then((function(require) {
|
|||
Minimized
|
||||
|
||||
```javascript
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[796],{286:()=>{},882:()=>{}}]);
|
||||
(self.webpackChunk=self.webpackChunk||[]).push([[796],{286:()=>{},882:()=>{}}]);
|
||||
```
|
||||
|
||||
# Info
|
||||
|
@ -321,55 +335,45 @@ Minimized
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
796.output.js 694 bytes [emitted]
|
||||
output.js 8.54 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 161 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 139 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./node_modules/a.js 11 bytes [built]
|
||||
cjs require a ./example.js 1:8-20
|
||||
./node_modules/b.js 11 bytes [built]
|
||||
cjs require b ./example.js 2:8-20
|
||||
cjs full require b ./example.js 4:4-20
|
||||
+ 5 hidden chunk modules
|
||||
asset output.js 9.23 KiB [emitted] (name: main)
|
||||
asset 796.output.js 528 bytes [emitted]
|
||||
chunk output.js (main) 161 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
dependent modules 22 bytes [dependent] 2 modules
|
||||
./example.js 139 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 796.output.js 22 bytes [rendered]
|
||||
> ./example.js 3:0-6:2
|
||||
./node_modules/c.js 11 bytes [built]
|
||||
require.ensure item c ./example.js 3:0-6:2
|
||||
./node_modules/d.js 11 bytes [built]
|
||||
cjs require d ./example.js 5:12-24
|
||||
> ./example.js 3:0-6:2
|
||||
./node_modules/c.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
require.ensure item c ./example.js 3:0-6:2
|
||||
./node_modules/d.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require d ./example.js 5:12-24
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
796.output.js 84 bytes [emitted]
|
||||
output.js 1.38 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 161 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 139 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./node_modules/a.js 11 bytes [built]
|
||||
cjs require a ./example.js 1:8-20
|
||||
./node_modules/b.js 11 bytes [built]
|
||||
cjs require b ./example.js 2:8-20
|
||||
cjs full require b ./example.js 4:4-20
|
||||
+ 5 hidden chunk modules
|
||||
chunk 796.output.js 22 bytes [rendered]
|
||||
> ./example.js 3:0-6:2
|
||||
./node_modules/c.js 11 bytes [built]
|
||||
require.ensure item c ./example.js 3:0-6:2
|
||||
./node_modules/d.js 11 bytes [built]
|
||||
cjs require d ./example.js 5:12-24
|
||||
asset output.js 1.68 KiB [emitted] [minimized] (name: main)
|
||||
asset 796.output.js 80 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) output.js (main) 161 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
dependent modules 22 bytes [dependent] 2 modules
|
||||
./example.js 139 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 796.output.js 22 bytes [rendered]
|
||||
> ./example.js 3:0-6:2
|
||||
./node_modules/c.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
require.ensure item c ./example.js 3:0-6:2
|
||||
./node_modules/d.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require d ./example.js 5:12-24
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -33,8 +33,8 @@ module.exports = 42
|
|||
!*** ./cup1.coffee ***!
|
||||
\*********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = {
|
||||
|
@ -51,8 +51,8 @@ module.exports = {
|
|||
!*** ./cup2.coffee ***!
|
||||
\*********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 3:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
console.log("yeah coffee-script");
|
||||
|
@ -102,7 +102,6 @@ module.exports = 42;
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
console.log(__webpack_require__(/*! ./cup1 */ 1));
|
||||
})();
|
||||
|
@ -116,43 +115,25 @@ console.log(__webpack_require__(/*! ./cup1 */ 1));
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 2.18 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
asset output.js 2.09 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 206 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./cup1.coffee 118 bytes [built]
|
||||
cjs require ./cup1 ./example.js 1:12-29
|
||||
cjs self exports reference ./cup1.coffee 1:0-14
|
||||
./cup2.coffee 57 bytes [built]
|
||||
cjs require ./cup2.coffee ./cup1.coffee 4:12-36
|
||||
cjs require ./cup2 ./cup1.coffee 5:9-26
|
||||
cjs self exports reference ./cup2.coffee 3:0-14
|
||||
./example.js 31 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
> ./example.js main
|
||||
dependent modules 175 bytes [dependent] 2 modules
|
||||
./example.js 31 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 278 bytes [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 206 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./cup1.coffee 118 bytes [built]
|
||||
cjs require ./cup1 ./example.js 1:12-29
|
||||
cjs self exports reference ./cup1.coffee 1:0-14
|
||||
./cup2.coffee 57 bytes [built]
|
||||
cjs require ./cup2.coffee ./cup1.coffee 4:12-36
|
||||
cjs require ./cup2 ./cup1.coffee 5:9-26
|
||||
cjs self exports reference ./cup2.coffee 3:0-14
|
||||
./example.js 31 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
asset output.js 280 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 206 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 175 bytes [dependent] 2 modules
|
||||
./example.js 31 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -73,15 +73,15 @@ module.exports = {
|
|||
# dist/vendor.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["vendor"],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([["vendor"],{
|
||||
|
||||
/***/ 1:
|
||||
/*!*********************************!*\
|
||||
!*** ./node_modules/vendor1.js ***!
|
||||
\*********************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "vendor1";
|
||||
|
@ -93,8 +93,8 @@ module.exports = "vendor1";
|
|||
!*** ./node_modules/vendor2.js ***!
|
||||
\*********************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "vendor2";
|
||||
|
@ -107,15 +107,15 @@ module.exports = "vendor2";
|
|||
# dist/commons-utility2_js.js
|
||||
|
||||
``` javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["commons-utility2_js"],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([["commons-utility2_js"],{
|
||||
|
||||
/***/ 3:
|
||||
/*!*********************!*\
|
||||
!*** ./utility2.js ***!
|
||||
\*********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "utility2";
|
||||
|
@ -128,15 +128,15 @@ module.exports = "utility2";
|
|||
# dist/commons-utility3_js.js
|
||||
|
||||
``` javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["commons-utility3_js"],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([["commons-utility3_js"],{
|
||||
|
||||
/***/ 6:
|
||||
/*!*********************!*\
|
||||
!*** ./utility3.js ***!
|
||||
\*********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "utility3";
|
||||
|
@ -156,8 +156,8 @@ module.exports = "utility3";
|
|||
!*** ./pageA.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/*! CommonJS bailout: module.exports is used directly at 5:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
var vendor1 = __webpack_require__(/*! vendor1 */ 1);
|
||||
|
@ -174,8 +174,8 @@ module.exports = "pageA";
|
|||
!*** ./utility1.js ***!
|
||||
\*********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "utility1";
|
||||
|
@ -222,6 +222,8 @@ module.exports = "utility1";
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -272,17 +274,14 @@ module.exports = "utility1";
|
|||
/******/ __webpack_require__.x = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice();
|
||||
/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]);
|
||||
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime, executeModules] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -299,7 +298,7 @@ module.exports = "utility1";
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
|
@ -309,12 +308,11 @@ module.exports = "utility1";
|
|||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -340,8 +338,8 @@ module.exports = "utility1";
|
|||
!*** ./pageB.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/*! CommonJS bailout: module.exports is used directly at 5:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
var vendor2 = __webpack_require__(/*! vendor2 */ 5);
|
||||
|
@ -394,6 +392,8 @@ module.exports = "pageB";
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -444,17 +444,14 @@ module.exports = "pageB";
|
|||
/******/ __webpack_require__.x = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice();
|
||||
/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]);
|
||||
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime, executeModules] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -471,7 +468,7 @@ module.exports = "pageB";
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
|
@ -481,12 +478,11 @@ module.exports = "pageB";
|
|||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -512,8 +508,8 @@ module.exports = "pageB";
|
|||
!*** ./pageC.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/*! CommonJS bailout: module.exports is used directly at 4:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
var utility2 = __webpack_require__(/*! ./utility2 */ 3);
|
||||
|
@ -564,6 +560,8 @@ module.exports = "pageC";
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -614,17 +612,14 @@ module.exports = "pageC";
|
|||
/******/ __webpack_require__.x = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice();
|
||||
/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]);
|
||||
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime, executeModules] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -641,7 +636,7 @@ module.exports = "pageC";
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
|
@ -651,12 +646,11 @@ module.exports = "pageC";
|
|||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -676,125 +670,133 @@ module.exports = "pageC";
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
commons-utility2_js.js 402 bytes [emitted] [id hint: commons]
|
||||
commons-utility3_js.js 402 bytes [emitted] [id hint: commons]
|
||||
pageA.js 5.99 KiB [emitted] [name: pageA]
|
||||
pageB.js 5.71 KiB [emitted] [name: pageB]
|
||||
pageC.js 5.64 KiB [emitted] [name: pageC]
|
||||
vendor.js 769 bytes [emitted] [name: vendor] [id hint: vendor]
|
||||
Entrypoint pageA = vendor.js commons-utility2_js.js pageA.js
|
||||
Entrypoint pageB = vendor.js commons-utility2_js.js commons-utility3_js.js pageB.js
|
||||
Entrypoint pageC = commons-utility2_js.js commons-utility3_js.js pageC.js
|
||||
assets by chunk 768 bytes (id hint: commons)
|
||||
asset commons-utility2_js.js 384 bytes [emitted] (id hint: commons)
|
||||
asset commons-utility3_js.js 384 bytes [emitted] (id hint: commons)
|
||||
asset pageA.js 5.92 KiB [emitted] (name: pageA)
|
||||
asset pageB.js 5.65 KiB [emitted] (name: pageB)
|
||||
asset pageC.js 5.59 KiB [emitted] (name: pageC)
|
||||
asset vendor.js 737 bytes [emitted] (name: vendor) (id hint: vendor)
|
||||
Entrypoint pageA 7.02 KiB = vendor.js 737 bytes commons-utility2_js.js 384 bytes pageA.js 5.92 KiB
|
||||
Entrypoint pageB 7.12 KiB = vendor.js 737 bytes commons-utility2_js.js 384 bytes commons-utility3_js.js 384 bytes pageB.js 5.65 KiB
|
||||
Entrypoint pageC 6.34 KiB = commons-utility2_js.js 384 bytes commons-utility3_js.js 384 bytes pageC.js 5.59 KiB
|
||||
chunk commons-utility2_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons)
|
||||
> ./pageA pageA
|
||||
> ./pageB pageB
|
||||
> ./pageC pageC
|
||||
./utility2.js 28 bytes [built]
|
||||
cjs require ./utility2 ./pageA.js 3:15-36
|
||||
cjs require ./utility2 ./pageB.js 2:15-36
|
||||
cjs require ./utility2 ./pageC.js 1:15-36
|
||||
cjs self exports reference ./utility2.js 1:0-14
|
||||
> ./pageA pageA
|
||||
> ./pageB pageB
|
||||
> ./pageC pageC
|
||||
./utility2.js 28 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./utility2 ./pageA.js 3:15-36
|
||||
cjs require ./utility2 ./pageB.js 2:15-36
|
||||
cjs require ./utility2 ./pageC.js 1:15-36
|
||||
cjs self exports reference ./utility2.js 1:0-14
|
||||
chunk commons-utility3_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons)
|
||||
> ./pageB pageB
|
||||
> ./pageC pageC
|
||||
./utility3.js 28 bytes [built]
|
||||
cjs require ./utility3 ./pageB.js 3:15-36
|
||||
cjs require ./utility3 ./pageC.js 2:15-36
|
||||
cjs self exports reference ./utility3.js 1:0-14
|
||||
chunk pageA.js (pageA) 165 bytes (javascript) 2.63 KiB (runtime) [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
./pageA.js 137 bytes [built]
|
||||
cjs self exports reference ./pageA.js 5:0-14
|
||||
entry ./pageA pageA
|
||||
./utility1.js 28 bytes [built]
|
||||
cjs require ./utility1 ./pageA.js 2:15-36
|
||||
cjs self exports reference ./utility1.js 1:0-14
|
||||
+ 2 hidden chunk modules
|
||||
chunk pageB.js (pageB) 137 bytes (javascript) 2.65 KiB (runtime) [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
./pageB.js 137 bytes [built]
|
||||
cjs self exports reference ./pageB.js 5:0-14
|
||||
entry ./pageB pageB
|
||||
+ 2 hidden chunk modules
|
||||
chunk pageC.js (pageC) 102 bytes (javascript) 2.64 KiB (runtime) [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
./pageC.js 102 bytes [built]
|
||||
cjs self exports reference ./pageC.js 4:0-14
|
||||
entry ./pageC pageC
|
||||
+ 2 hidden chunk modules
|
||||
> ./pageB pageB
|
||||
> ./pageC pageC
|
||||
./utility3.js 28 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./utility3 ./pageB.js 3:15-36
|
||||
cjs require ./utility3 ./pageC.js 2:15-36
|
||||
cjs self exports reference ./utility3.js 1:0-14
|
||||
chunk pageA.js (pageA) 165 bytes (javascript) 2.61 KiB (runtime) [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
runtime modules 2.61 KiB 2 modules
|
||||
dependent modules 28 bytes [dependent] 1 module
|
||||
./pageA.js 137 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageA.js 5:0-14
|
||||
entry ./pageA pageA
|
||||
chunk pageB.js (pageB) 137 bytes (javascript) 2.63 KiB (runtime) [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
runtime modules 2.63 KiB 2 modules
|
||||
./pageB.js 137 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageB.js 5:0-14
|
||||
entry ./pageB pageB
|
||||
chunk pageC.js (pageC) 102 bytes (javascript) 2.62 KiB (runtime) [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
runtime modules 2.62 KiB 2 modules
|
||||
./pageC.js 102 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageC.js 4:0-14
|
||||
entry ./pageC pageC
|
||||
chunk vendor.js (vendor) (id hint: vendor) 54 bytes [initial] [rendered] split chunk (cache group: vendor) (name: vendor)
|
||||
> ./pageA pageA
|
||||
> ./pageB pageB
|
||||
./node_modules/vendor1.js 27 bytes [built]
|
||||
cjs self exports reference ./node_modules/vendor1.js 1:0-14
|
||||
cjs require vendor1 ./pageA.js 1:14-32
|
||||
./node_modules/vendor2.js 27 bytes [built]
|
||||
cjs self exports reference ./node_modules/vendor2.js 1:0-14
|
||||
cjs require vendor2 ./pageB.js 1:14-32
|
||||
> ./pageA pageA
|
||||
> ./pageB pageB
|
||||
./node_modules/vendor1.js 27 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./node_modules/vendor1.js 1:0-14
|
||||
cjs require vendor1 ./pageA.js 1:14-32
|
||||
./node_modules/vendor2.js 27 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./node_modules/vendor2.js 1:0-14
|
||||
cjs require vendor2 ./pageB.js 1:14-32
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
commons-utility2_js.js 110 bytes [emitted] [id hint: commons]
|
||||
commons-utility3_js.js 110 bytes [emitted] [id hint: commons]
|
||||
pageA.js 938 bytes [emitted] [name: pageA]
|
||||
pageB.js 930 bytes [emitted] [name: pageB]
|
||||
pageC.js 914 bytes [emitted] [name: pageC]
|
||||
vendor.js 125 bytes [emitted] [name: vendor] [id hint: vendor]
|
||||
Entrypoint pageA = vendor.js commons-utility2_js.js pageA.js
|
||||
Entrypoint pageB = vendor.js commons-utility2_js.js commons-utility3_js.js pageB.js
|
||||
Entrypoint pageC = commons-utility2_js.js commons-utility3_js.js pageC.js
|
||||
chunk commons-utility2_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons)
|
||||
> ./pageA pageA
|
||||
> ./pageB pageB
|
||||
> ./pageC pageC
|
||||
./utility2.js 28 bytes [built]
|
||||
cjs require ./utility2 ./pageA.js 3:15-36
|
||||
cjs require ./utility2 ./pageB.js 2:15-36
|
||||
cjs require ./utility2 ./pageC.js 1:15-36
|
||||
cjs self exports reference ./utility2.js 1:0-14
|
||||
chunk commons-utility3_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons)
|
||||
> ./pageB pageB
|
||||
> ./pageC pageC
|
||||
./utility3.js 28 bytes [built]
|
||||
cjs require ./utility3 ./pageB.js 3:15-36
|
||||
cjs require ./utility3 ./pageC.js 2:15-36
|
||||
cjs self exports reference ./utility3.js 1:0-14
|
||||
chunk pageA.js (pageA) 165 bytes (javascript) 2.63 KiB (runtime) [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
./pageA.js 137 bytes [built]
|
||||
cjs self exports reference ./pageA.js 5:0-14
|
||||
entry ./pageA pageA
|
||||
./utility1.js 28 bytes [built]
|
||||
cjs require ./utility1 ./pageA.js 2:15-36
|
||||
cjs self exports reference ./utility1.js 1:0-14
|
||||
+ 2 hidden chunk modules
|
||||
chunk pageB.js (pageB) 137 bytes (javascript) 2.65 KiB (runtime) [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
./pageB.js 137 bytes [built]
|
||||
cjs self exports reference ./pageB.js 5:0-14
|
||||
entry ./pageB pageB
|
||||
+ 2 hidden chunk modules
|
||||
chunk pageC.js (pageC) 102 bytes (javascript) 2.64 KiB (runtime) [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
./pageC.js 102 bytes [built]
|
||||
cjs self exports reference ./pageC.js 4:0-14
|
||||
entry ./pageC pageC
|
||||
+ 2 hidden chunk modules
|
||||
chunk vendor.js (vendor) (id hint: vendor) 54 bytes [initial] [rendered] split chunk (cache group: vendor) (name: vendor)
|
||||
> ./pageA pageA
|
||||
> ./pageB pageB
|
||||
./node_modules/vendor1.js 27 bytes [built]
|
||||
cjs self exports reference ./node_modules/vendor1.js 1:0-14
|
||||
cjs require vendor1 ./pageA.js 1:14-32
|
||||
./node_modules/vendor2.js 27 bytes [built]
|
||||
cjs self exports reference ./node_modules/vendor2.js 1:0-14
|
||||
cjs require vendor2 ./pageB.js 1:14-32
|
||||
assets by chunk 212 bytes (id hint: commons)
|
||||
asset commons-utility2_js.js 106 bytes [emitted] [minimized] (id hint: commons)
|
||||
asset commons-utility3_js.js 106 bytes [emitted] [minimized] (id hint: commons)
|
||||
asset pageA.js 900 bytes [emitted] [minimized] (name: pageA)
|
||||
asset pageB.js 892 bytes [emitted] [minimized] (name: pageB)
|
||||
asset pageC.js 876 bytes [emitted] [minimized] (name: pageC)
|
||||
asset vendor.js 121 bytes [emitted] [minimized] (name: vendor) (id hint: vendor)
|
||||
Entrypoint pageA 1.1 KiB = vendor.js 121 bytes commons-utility2_js.js 106 bytes pageA.js 900 bytes
|
||||
Entrypoint pageB 1.2 KiB = vendor.js 121 bytes commons-utility2_js.js 106 bytes commons-utility3_js.js 106 bytes pageB.js 892 bytes
|
||||
Entrypoint pageC 1.06 KiB = commons-utility2_js.js 106 bytes commons-utility3_js.js 106 bytes pageC.js 876 bytes
|
||||
chunk (runtime: pageA, pageB, pageC) commons-utility2_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons)
|
||||
> ./pageA pageA
|
||||
> ./pageB pageB
|
||||
> ./pageC pageC
|
||||
./utility2.js 28 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./utility2 ./pageA.js 3:15-36
|
||||
cjs require ./utility2 ./pageB.js 2:15-36
|
||||
cjs require ./utility2 ./pageC.js 1:15-36
|
||||
cjs self exports reference ./utility2.js 1:0-14
|
||||
chunk (runtime: pageB, pageC) commons-utility3_js.js (id hint: commons) 28 bytes [initial] [rendered] split chunk (cache group: commons)
|
||||
> ./pageB pageB
|
||||
> ./pageC pageC
|
||||
./utility3.js 28 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./utility3 ./pageB.js 3:15-36
|
||||
cjs require ./utility3 ./pageC.js 2:15-36
|
||||
cjs self exports reference ./utility3.js 1:0-14
|
||||
chunk (runtime: pageA) pageA.js (pageA) 165 bytes (javascript) 2.61 KiB (runtime) [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
runtime modules 2.61 KiB 2 modules
|
||||
dependent modules 28 bytes [dependent] 1 module
|
||||
./pageA.js 137 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageA.js 5:0-14
|
||||
entry ./pageA pageA
|
||||
chunk (runtime: pageB) pageB.js (pageB) 137 bytes (javascript) 2.63 KiB (runtime) [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
runtime modules 2.63 KiB 2 modules
|
||||
./pageB.js 137 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageB.js 5:0-14
|
||||
entry ./pageB pageB
|
||||
chunk (runtime: pageC) pageC.js (pageC) 102 bytes (javascript) 2.62 KiB (runtime) [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
runtime modules 2.62 KiB 2 modules
|
||||
./pageC.js 102 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageC.js 4:0-14
|
||||
entry ./pageC pageC
|
||||
chunk (runtime: pageA, pageB) vendor.js (vendor) (id hint: vendor) 54 bytes [initial] [rendered] split chunk (cache group: vendor) (name: vendor)
|
||||
> ./pageA pageA
|
||||
> ./pageB pageB
|
||||
./node_modules/vendor1.js 27 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./node_modules/vendor1.js 1:0-14
|
||||
cjs require vendor1 ./pageA.js 1:14-32
|
||||
./node_modules/vendor2.js 27 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./node_modules/vendor2.js 1:0-14
|
||||
cjs require vendor2 ./pageB.js 1:14-32
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -168,6 +168,52 @@ module.exports = {
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/publicPath */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.p = "dist/";
|
||||
|
@ -175,6 +221,8 @@ module.exports = {
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -201,49 +249,24 @@ module.exports = {
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -260,11 +283,8 @@ module.exports = {
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -281,17 +301,16 @@ module.exports = {
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -304,7 +323,6 @@ module.exports = {
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.* */
|
||||
var main = function() {
|
||||
console.log("Main class");
|
||||
|
@ -327,15 +345,15 @@ main();
|
|||
# dist/366.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[366],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[366],[
|
||||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!******************!*\
|
||||
!*** ./pageA.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/*! CommonJS bailout: module.exports is used directly at 3:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
var reusableComponent = __webpack_require__(/*! ./reusableComponent */ 2);
|
||||
|
@ -353,15 +371,15 @@ module.exports = function() {
|
|||
# dist/588.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[588],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[588],{
|
||||
|
||||
/***/ 3:
|
||||
/*!******************!*\
|
||||
!*** ./pageB.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__, __webpack_require__.e, __webpack_require__.* */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -381,15 +399,15 @@ module.exports = function() {
|
|||
# dist/145.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[145],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[145],{
|
||||
|
||||
/***/ 4:
|
||||
/*!******************!*\
|
||||
!*** ./pageC.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/*! CommonJS bailout: module.exports is used directly at 3:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
var reusableComponent = __webpack_require__(/*! ./reusableComponent */ 2);
|
||||
|
@ -408,15 +426,15 @@ module.exports = function() {
|
|||
# dist/421.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[421],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[421],{
|
||||
|
||||
/***/ 2:
|
||||
/*!******************************!*\
|
||||
!*** ./reusableComponent.js ***!
|
||||
\******************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -434,83 +452,85 @@ module.exports = function() {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
145.output.js 570 bytes [emitted]
|
||||
366.output.js 576 bytes [emitted]
|
||||
421.output.js 452 bytes [emitted]
|
||||
588.output.js 754 bytes [emitted]
|
||||
output.js 8.11 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
asset output.js 8.95 KiB [emitted] (name: main)
|
||||
asset 588.output.js 736 bytes [emitted]
|
||||
asset 366.output.js 558 bytes [emitted]
|
||||
asset 145.output.js 552 bytes [emitted]
|
||||
asset 421.output.js 434 bytes [emitted]
|
||||
chunk 145.output.js 136 bytes [rendered]
|
||||
> ./pageB.js 3:1-6:3
|
||||
./pageC.js 136 bytes [built]
|
||||
cjs require ./pageC ./pageB.js 4:15-33
|
||||
cjs self exports reference ./pageC.js 3:0-14
|
||||
chunk output.js (main) 220 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 220 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 5 hidden chunk modules
|
||||
> ./pageB.js 3:1-6:3
|
||||
./pageC.js 136 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./pageC ./pageB.js 4:15-33
|
||||
cjs self exports reference ./pageC.js 3:0-14
|
||||
chunk output.js (main) 220 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./example.js 220 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 366.output.js 136 bytes [rendered]
|
||||
> ./example.js 3:1-6:3
|
||||
./pageA.js 136 bytes [built]
|
||||
cjs require ./pageA ./example.js 4:15-33
|
||||
cjs self exports reference ./pageA.js 3:0-14
|
||||
> ./example.js 3:1-6:3
|
||||
./pageA.js 136 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./pageA ./example.js 4:15-33
|
||||
cjs self exports reference ./pageA.js 3:0-14
|
||||
chunk 421.output.js 69 bytes [rendered] split chunk (cache group: default)
|
||||
> ./example.js 3:1-6:3
|
||||
> ./pageB.js 3:1-6:3
|
||||
./reusableComponent.js 69 bytes [built]
|
||||
cjs require ./reusableComponent ./pageA.js 1:24-54
|
||||
cjs require ./reusableComponent ./pageC.js 1:24-54
|
||||
cjs self exports reference ./reusableComponent.js 1:0-14
|
||||
> ./example.js 3:1-6:3
|
||||
> ./pageB.js 3:1-6:3
|
||||
./reusableComponent.js 69 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./reusableComponent ./pageA.js 1:24-54
|
||||
cjs require ./reusableComponent ./pageC.js 1:24-54
|
||||
cjs self exports reference ./reusableComponent.js 1:0-14
|
||||
chunk 588.output.js 133 bytes [rendered]
|
||||
> ./example.js 7:1-10:3
|
||||
./pageB.js 133 bytes [built]
|
||||
cjs require ./pageB ./example.js 8:15-33
|
||||
cjs self exports reference ./pageB.js 1:0-14
|
||||
> ./example.js 7:1-10:3
|
||||
./pageB.js 133 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./pageB ./example.js 8:15-33
|
||||
cjs self exports reference ./pageB.js 1:0-14
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
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.42 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
|
||||
cjs self exports reference ./pageC.js 3:0-14
|
||||
chunk output.js (main) 220 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 220 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 5 hidden chunk modules
|
||||
chunk 366.output.js 136 bytes [rendered]
|
||||
> ./example.js 3:1-6:3
|
||||
./pageA.js 136 bytes [built]
|
||||
cjs require ./pageA ./example.js 4:15-33
|
||||
cjs self exports reference ./pageA.js 3:0-14
|
||||
chunk 421.output.js 69 bytes [rendered] split chunk (cache group: default)
|
||||
> ./example.js 3:1-6:3
|
||||
> ./pageB.js 3:1-6:3
|
||||
./reusableComponent.js 69 bytes [built]
|
||||
cjs require ./reusableComponent ./pageA.js 1:24-54
|
||||
cjs require ./reusableComponent ./pageC.js 1:24-54
|
||||
cjs self exports reference ./reusableComponent.js 1:0-14
|
||||
chunk 588.output.js 133 bytes [rendered]
|
||||
> ./example.js 7:1-10:3
|
||||
./pageB.js 133 bytes [built]
|
||||
cjs require ./pageB ./example.js 8:15-33
|
||||
cjs self exports reference ./pageB.js 1:0-14
|
||||
asset output.js 1.74 KiB [emitted] [minimized] (name: main)
|
||||
asset 588.output.js 198 bytes [emitted] [minimized]
|
||||
asset 145.output.js 134 bytes [emitted] [minimized]
|
||||
asset 366.output.js 134 bytes [emitted] [minimized]
|
||||
asset 421.output.js 123 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) 145.output.js 136 bytes [rendered]
|
||||
> ./pageB.js 3:1-6:3
|
||||
./pageC.js 136 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./pageC ./pageB.js 4:15-33
|
||||
cjs self exports reference ./pageC.js 3:0-14
|
||||
chunk (runtime: main) output.js (main) 220 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./example.js 220 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 366.output.js 136 bytes [rendered]
|
||||
> ./example.js 3:1-6:3
|
||||
./pageA.js 136 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./pageA ./example.js 4:15-33
|
||||
cjs self exports reference ./pageA.js 3:0-14
|
||||
chunk (runtime: main) 421.output.js 69 bytes [rendered] split chunk (cache group: default)
|
||||
> ./example.js 3:1-6:3
|
||||
> ./pageB.js 3:1-6:3
|
||||
./reusableComponent.js 69 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./reusableComponent ./pageA.js 1:24-54
|
||||
cjs require ./reusableComponent ./pageC.js 1:24-54
|
||||
cjs self exports reference ./reusableComponent.js 1:0-14
|
||||
chunk (runtime: main) 588.output.js 133 bytes [rendered]
|
||||
> ./example.js 7:1-10:3
|
||||
./pageB.js 133 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./pageB ./example.js 8:15-33
|
||||
cjs self exports reference ./pageB.js 1:0-14
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -46,8 +46,8 @@ exports.add = function() {
|
|||
!*** ./increment.js ***!
|
||||
\**********************/
|
||||
/*! default exports */
|
||||
/*! export increment [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! export increment [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_exports__ */
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
@ -63,8 +63,8 @@ exports.increment = function(val) {
|
|||
!*** ./math.js ***!
|
||||
\*****************/
|
||||
/*! default exports */
|
||||
/*! export add [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! export add [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_exports__ */
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
|
@ -118,7 +118,6 @@ exports.add = function() {
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
const inc = __webpack_require__(/*! ./increment */ 1).increment;
|
||||
const a = 1;
|
||||
|
@ -135,45 +134,25 @@ inc(a); // 2
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 2.33 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
asset output.js 2.34 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 326 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 72 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./increment.js 98 bytes [built]
|
||||
[exports: increment]
|
||||
[all exports used]
|
||||
cjs full require ./increment ./example.js 1:12-44
|
||||
./math.js 156 bytes [built]
|
||||
[exports: add]
|
||||
[all exports used]
|
||||
cjs full require ./math ./increment.js 1:12-33
|
||||
> ./example.js main
|
||||
dependent modules 254 bytes [dependent] 2 modules
|
||||
./example.js 72 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 297 bytes [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 326 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 72 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./increment.js 98 bytes [built]
|
||||
[exports: increment]
|
||||
[all exports used]
|
||||
cjs full require ./increment ./example.js 1:12-44
|
||||
./math.js 156 bytes [built]
|
||||
[exports: add]
|
||||
[all exports used]
|
||||
cjs full require ./math ./increment.js 1:12-33
|
||||
asset output.js 296 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 326 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 254 bytes [dependent] 2 modules
|
||||
./example.js 72 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -101,21 +101,47 @@ module.exports = {
|
|||
/******/ (() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 0 */
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _data_toml__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./data.toml */ 1);
|
||||
/* harmony import */ var _data_yaml__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data.yaml */ 2);
|
||||
/* harmony import */ var _data_json5__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./data.json5 */ 3);
|
||||
|
||||
|
||||
|
||||
|
||||
document.querySelector('#app').innerHTML = [_data_toml__WEBPACK_IMPORTED_MODULE_0__, _data_yaml__WEBPACK_IMPORTED_MODULE_1__, _data_json5__WEBPACK_IMPORTED_MODULE_2__].map(data => `
|
||||
<h1>${data.title}</h1>
|
||||
<div>${data.owner.name}</div>
|
||||
<div>${data.owner.organization}</div>
|
||||
<div>${data.owner.bio}</div>
|
||||
<div>${data.owner.dob}</div>
|
||||
`).join('<br><br>');
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/*!*******************!*\
|
||||
!*** ./data.toml ***!
|
||||
\*******************/
|
||||
/*! default exports */
|
||||
/*! export owner [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export bio [provided] [unused] [could be renamed] */
|
||||
/*! export dob [provided] [unused] [could be renamed] */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! export name [provided] [unused] [could be renamed] */
|
||||
/*! export organization [provided] [unused] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! export title [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! export owner [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export bio [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export dob [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! export name [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export organization [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! export title [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
|
@ -127,15 +153,15 @@ module.exports = JSON.parse("{\"title\":\"TOML Example\",\"owner\":{\"name\":\"T
|
|||
!*** ./data.yaml ***!
|
||||
\*******************/
|
||||
/*! default exports */
|
||||
/*! export owner [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export bio [provided] [unused] [could be renamed] */
|
||||
/*! export dob [provided] [unused] [could be renamed] */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! export name [provided] [unused] [could be renamed] */
|
||||
/*! export organization [provided] [unused] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! export title [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! export owner [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export bio [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export dob [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! export name [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export organization [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! export title [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
|
@ -147,14 +173,14 @@ module.exports = JSON.parse("{\"title\":\"YAML Example\",\"owner\":{\"name\":\"T
|
|||
!*** ./data.json5 ***!
|
||||
\********************/
|
||||
/*! default exports */
|
||||
/*! export owner [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export bio [provided] [unused] [could be renamed] */
|
||||
/*! export dob [provided] [unused] [could be renamed] */
|
||||
/*! export name [provided] [unused] [could be renamed] */
|
||||
/*! export organization [provided] [unused] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! export title [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! export owner [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export bio [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export dob [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export name [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export organization [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! export title [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
|
@ -192,35 +218,27 @@ module.exports = JSON.parse("{\"title\":\"JSON5 Example\",\"owner\":{\"name\":\"
|
|||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // 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 });
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
``` js
|
||||
(() => {
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
/* harmony import */ var _data_toml__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./data.toml */ 1);
|
||||
/* harmony import */ var _data_yaml__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data.yaml */ 2);
|
||||
/* harmony import */ var _data_json5__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./data.json5 */ 3);
|
||||
|
||||
|
||||
|
||||
|
||||
document.querySelector('#app').innerHTML = [_data_toml__WEBPACK_IMPORTED_MODULE_0__, _data_yaml__WEBPACK_IMPORTED_MODULE_1__, _data_json5__WEBPACK_IMPORTED_MODULE_2__].map(data => `
|
||||
<h1>${data.title}</h1>
|
||||
<div>${data.owner.name}</div>
|
||||
<div>${data.owner.organization}</div>
|
||||
<div>${data.owner.bio}</div>
|
||||
<div>${data.owner.dob}</div>
|
||||
`).join('<br><br>');
|
||||
|
||||
})();
|
||||
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ __webpack_require__(0);
|
||||
/******/ // This entry module used 'exports' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -230,27 +248,14 @@ document.querySelector('#app').innerHTML = [_data_toml__WEBPACK_IMPORTED_MODULE_
|
|||
## webpack output
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 4.83 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 919 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./data.json5 189 bytes [built]
|
||||
[exports: owner, title]
|
||||
harmony side effect evaluation ./data.json5 ./example.js 3:0-32
|
||||
harmony import specifier ./data.json5 ./example.js 5:56-60
|
||||
./data.toml 188 bytes [built]
|
||||
[exports: owner, title]
|
||||
harmony side effect evaluation ./data.toml ./example.js 1:0-31
|
||||
harmony import specifier ./data.toml ./example.js 5:44-48
|
||||
./data.yaml 188 bytes [built]
|
||||
[exports: owner, title]
|
||||
harmony side effect evaluation ./data.yaml ./example.js 2:0-31
|
||||
harmony import specifier ./data.yaml ./example.js 5:50-54
|
||||
./example.js 354 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
asset output.js 5.98 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 919 bytes (javascript) 274 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 565 bytes [dependent] 3 modules
|
||||
runtime modules 274 bytes 1 module
|
||||
./example.js 354 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -41,7 +41,7 @@ export function square(n) {
|
|||
# dist/vendor.js
|
||||
|
||||
```javascript
|
||||
var vendor_lib_c6c2f689b0bad44474d1;vendor_lib_c6c2f689b0bad44474d1 =
|
||||
var vendor_lib_4d8eacf7030dbe3ec0eb;vendor_lib_4d8eacf7030dbe3ec0eb =
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */
|
||||
|
@ -49,7 +49,6 @@ var vendor_lib_c6c2f689b0bad44474d1;vendor_lib_c6c2f689b0bad44474d1 =
|
|||
!*** dll main ***!
|
||||
\****************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: __webpack_require__, module */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -61,8 +60,8 @@ module.exports = __webpack_require__;
|
|||
!*** ../node_modules/example-vendor.js ***!
|
||||
\*****************************************/
|
||||
/*! namespace exports */
|
||||
/*! export square [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! export square [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
|
@ -153,7 +152,7 @@ function square(n) {
|
|||
# dist/vendor-manifest.json
|
||||
|
||||
```javascript
|
||||
{"name":"vendor_lib_c6c2f689b0bad44474d1","content":{"../node_modules/example-vendor.js":{"id":1,"buildMeta":{"exportsType":"namespace","async":false},"exports":["square"]}}}
|
||||
{"name":"vendor_lib_4d8eacf7030dbe3ec0eb","content":{"../node_modules/example-vendor.js":{"id":1,"buildMeta":{"exportsType":"namespace"},"exports":["square"]}}}
|
||||
```
|
||||
|
||||
# Info
|
||||
|
@ -161,37 +160,28 @@ function square(n) {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
vendor.js 3.65 KiB [emitted] [name: main]
|
||||
Entrypoint main = vendor.js
|
||||
asset vendor.js 3.56 KiB [emitted] (name: main)
|
||||
chunk vendor.js (main) 57 bytes (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> main
|
||||
../node_modules/example-vendor.js 45 bytes [built]
|
||||
[exports: square]
|
||||
entry example-vendor dll main main[0]
|
||||
dll main 12 bytes [built]
|
||||
dll entry
|
||||
used as library export
|
||||
+ 3 hidden chunk modules
|
||||
> main
|
||||
runtime modules 668 bytes 3 modules
|
||||
dependent modules 45 bytes [dependent] 1 module
|
||||
dll main 12 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
dll entry
|
||||
used as library export
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
vendor.js 638 bytes [emitted] [name: main]
|
||||
Entrypoint main = vendor.js
|
||||
chunk vendor.js (main) 57 bytes (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> main
|
||||
../node_modules/example-vendor.js 45 bytes [built]
|
||||
[exports: square]
|
||||
entry example-vendor dll main main[0]
|
||||
dll main 12 bytes [built]
|
||||
dll entry
|
||||
used as library export
|
||||
+ 3 hidden chunk modules
|
||||
asset vendor.js 638 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) vendor.js (main) 57 bytes (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> main
|
||||
runtime modules 668 bytes 3 modules
|
||||
dependent modules 45 bytes [dependent] 1 module
|
||||
dll main 12 bytes [built] [code generated]
|
||||
dll entry
|
||||
used as library export
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -50,31 +50,49 @@ console.log(new square(7));
|
|||
```javascript
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 0 */
|
||||
/*!************************!*\
|
||||
!*** ./example-app.js ***!
|
||||
\************************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var example_vendor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! example-vendor */ 1);
|
||||
|
||||
|
||||
console.log((0,example_vendor__WEBPACK_IMPORTED_MODULE_0__.square)(7));
|
||||
console.log(new example_vendor__WEBPACK_IMPORTED_MODULE_0__.square(7));
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/*!******************************************************************************************************!*\
|
||||
!*** delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_c6c2f689b0bad44474d1 ***!
|
||||
!*** delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_4d8eacf7030dbe3ec0eb ***!
|
||||
\******************************************************************************************************/
|
||||
/*! namespace exports */
|
||||
/*! export square [provided] [used] [provision prevents renaming] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! 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_c6c2f689b0bad44474d1 */ 2))(1);
|
||||
module.exports = (__webpack_require__(/*! dll-reference vendor_lib_4d8eacf7030dbe3ec0eb */ 2))(1);
|
||||
|
||||
/***/ }),
|
||||
/* 2 */
|
||||
/*!**************************************************!*\
|
||||
!*** external "vendor_lib_c6c2f689b0bad44474d1" ***!
|
||||
!*** external "vendor_lib_4d8eacf7030dbe3ec0eb" ***!
|
||||
\**************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! dynamic exports */
|
||||
/*! exports [maybe provided (runtime-defined)] [no usage info] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = vendor_lib_c6c2f689b0bad44474d1;
|
||||
module.exports = vendor_lib_4d8eacf7030dbe3ec0eb;
|
||||
|
||||
/***/ })
|
||||
/******/ ]);
|
||||
|
@ -108,27 +126,27 @@ module.exports = vendor_lib_c6c2f689b0bad44474d1;
|
|||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // 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 });
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
``` js
|
||||
(() => {
|
||||
"use strict";
|
||||
/*!************************!*\
|
||||
!*** ./example-app.js ***!
|
||||
\************************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
/* harmony import */ var example_vendor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! example-vendor */ 1);
|
||||
|
||||
|
||||
console.log((0,example_vendor__WEBPACK_IMPORTED_MODULE_0__.square)(7));
|
||||
console.log(new example_vendor__WEBPACK_IMPORTED_MODULE_0__.square(7));
|
||||
|
||||
})();
|
||||
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ __webpack_require__(0);
|
||||
/******/ // This entry module used 'exports' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -138,49 +156,30 @@ console.log(new example_vendor__WEBPACK_IMPORTED_MODULE_0__.square(7));
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
app.js 2.67 KiB [emitted] [name: main]
|
||||
Entrypoint main = app.js
|
||||
chunk app.js (main) 178 bytes [entry] [rendered]
|
||||
> ./example-app main
|
||||
./example-app.js 94 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example-app main
|
||||
delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_c6c2f689b0bad44474d1 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_c6c2f689b0bad44474d1" 42 bytes [built]
|
||||
delegated source dll-reference vendor_lib_c6c2f689b0bad44474d1 delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_c6c2f689b0bad44474d1
|
||||
asset app.js 3.52 KiB [emitted] (name: main)
|
||||
chunk app.js (main) 178 bytes (javascript) 274 bytes (runtime) [entry] [rendered]
|
||||
> ./example-app main
|
||||
dependent modules 84 bytes [dependent] 2 modules
|
||||
runtime modules 274 bytes 1 module
|
||||
./example-app.js 94 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example-app main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
app.js 319 bytes [emitted] [name: main]
|
||||
Entrypoint main = app.js
|
||||
chunk app.js (main) 178 bytes [entry] [rendered]
|
||||
> ./example-app main
|
||||
./example-app.js 94 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example-app main
|
||||
delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_c6c2f689b0bad44474d1 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_c6c2f689b0bad44474d1" 42 bytes [built]
|
||||
delegated source dll-reference vendor_lib_c6c2f689b0bad44474d1 delegated ../node_modules/example-vendor.js from dll-reference vendor_lib_c6c2f689b0bad44474d1
|
||||
asset app.js 319 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) app.js (main) 178 bytes [entry] [rendered]
|
||||
> ./example-app main
|
||||
dependent modules 84 bytes [dependent] 2 modules
|
||||
./example-app.js 94 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example-app main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
<!-- @TODO:
|
||||
|
|
|
@ -63,7 +63,7 @@ module.exports = {
|
|||
# dist/dll.js
|
||||
|
||||
```javascript
|
||||
var dll_99b323431ba57419786c;dll_99b323431ba57419786c =
|
||||
var dll_84b3c692d890d26bb885;dll_84b3c692d890d26bb885 =
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */
|
||||
|
@ -71,9 +71,8 @@ var dll_99b323431ba57419786c;dll_99b323431ba57419786c =
|
|||
!*** dll dll ***!
|
||||
\***************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: __webpack_require__, module */
|
||||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||||
/*! ModuleConcatenation bailout: Module Concatenation is not implemented for DllModule */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = __webpack_require__;
|
||||
|
@ -84,12 +83,12 @@ module.exports = __webpack_require__;
|
|||
!*** ./example.js + 2 modules ***!
|
||||
\********************************/
|
||||
/*! namespace exports */
|
||||
/*! export a [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export b [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export c [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! export a [provided] [no usage info] [missing usage info prevents renaming] -> ./a.js .a */
|
||||
/*! export b [provided] [no usage info] [missing usage info prevents renaming] -> ./b.js .b */
|
||||
/*! export c [provided] [no usage info] [missing usage info prevents renaming] -> ./cjs.js .c */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__, __webpack_require__.* */
|
||||
/*! ModuleConcatenation bailout: Cannot concat with ./cjs.js (<- Module is not an ECMAScript module) */
|
||||
/*! ModuleConcatenation bailout: Cannot concat with ./cjs.js: Module is not an ECMAScript module */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
@ -116,7 +115,6 @@ var a = "a";
|
|||
|
||||
// EXTERNAL MODULE: ./cjs.js
|
||||
var cjs = __webpack_require__(2);
|
||||
|
||||
// CONCATENATED MODULE: ./example.js
|
||||
|
||||
|
||||
|
@ -128,8 +126,8 @@ var cjs = __webpack_require__(2);
|
|||
!*** ./cjs.js ***!
|
||||
\****************/
|
||||
/*! default exports */
|
||||
/*! export c [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! export c [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_exports__ */
|
||||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
@ -215,7 +213,7 @@ exports.c = "c";
|
|||
# dist/dll-manifest.json
|
||||
|
||||
```javascript
|
||||
{"name":"dll_99b323431ba57419786c","content":{"./example.js":{"id":1,"buildMeta":{"exportsType":"namespace","async":false},"exports":["a","b","c"]}}}
|
||||
{"name":"dll_84b3c692d890d26bb885","content":{"./example.js":{"id":1,"buildMeta":{"exportsType":"namespace"},"exports":["a","b","c"]}}}
|
||||
```
|
||||
|
||||
# Info
|
||||
|
@ -223,47 +221,28 @@ exports.c = "c";
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
dll.js 4.59 KiB [emitted] [name: dll]
|
||||
Entrypoint dll = dll.js
|
||||
chunk dll.js (dll) 216 bytes (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> dll
|
||||
./cjs.js 42 bytes [built]
|
||||
[exports: c]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./cjs ./example.js + 2 modules ./example.js 2:0-26
|
||||
harmony export imported specifier ./cjs ./example.js + 2 modules ./example.js 2:0-26
|
||||
./example.js + 2 modules 162 bytes [built]
|
||||
[exports: a, b, c]
|
||||
entry ./example dll dll dll[0]
|
||||
dll dll 12 bytes [built]
|
||||
dll entry
|
||||
used as library export
|
||||
+ 3 hidden chunk modules
|
||||
asset dll.js 4.58 KiB [emitted] (name: dll)
|
||||
chunk dll.js (dll) 211 bytes (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> dll
|
||||
runtime modules 668 bytes 3 modules
|
||||
dependent modules 199 bytes [dependent] 2 modules
|
||||
dll dll 12 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
dll entry
|
||||
used as library export
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
dll.js 675 bytes [emitted] [name: dll]
|
||||
Entrypoint dll = dll.js
|
||||
chunk dll.js (dll) 216 bytes (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> dll
|
||||
./cjs.js 42 bytes [built]
|
||||
[exports: c]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./cjs ./example.js + 2 modules ./example.js 2:0-26
|
||||
harmony export imported specifier ./cjs ./example.js + 2 modules ./example.js 2:0-26
|
||||
./example.js + 2 modules 162 bytes [built]
|
||||
[exports: a, b, c]
|
||||
entry ./example dll dll dll[0]
|
||||
dll dll 12 bytes [built]
|
||||
dll entry
|
||||
used as library export
|
||||
+ 3 hidden chunk modules
|
||||
asset dll.js 675 bytes [emitted] [minimized] (name: dll)
|
||||
chunk (runtime: dll) dll.js (dll) 211 bytes (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> dll
|
||||
runtime modules 668 bytes 3 modules
|
||||
dependent modules 199 bytes [dependent] 2 modules
|
||||
dll dll 12 bytes [built] [code generated]
|
||||
dll entry
|
||||
used as library export
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -46,100 +46,94 @@ console.log(require("module"));
|
|||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!**************************************************************************!*\
|
||||
!*** delegated ./alpha.js from dll-reference alpha_54d633ccc01113a1050b ***!
|
||||
!*** delegated ./alpha.js from dll-reference alpha_bd6d04da4340c44a8be7 ***!
|
||||
\**************************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = (__webpack_require__(/*! dll-reference alpha_54d633ccc01113a1050b */ 2))(1);
|
||||
module.exports = (__webpack_require__(/*! dll-reference alpha_bd6d04da4340c44a8be7 */ 2))(1);
|
||||
|
||||
/***/ }),
|
||||
/* 2 */
|
||||
/*!*********************************************!*\
|
||||
!*** external "alpha_54d633ccc01113a1050b" ***!
|
||||
!*** external "alpha_bd6d04da4340c44a8be7" ***!
|
||||
\*********************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! dynamic exports */
|
||||
/*! exports [maybe provided (runtime-defined)] [no usage info] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = alpha_54d633ccc01113a1050b;
|
||||
module.exports = alpha_bd6d04da4340c44a8be7;
|
||||
|
||||
/***/ }),
|
||||
/* 3 */
|
||||
/*!**********************************************************************!*\
|
||||
!*** delegated ./a.js from dll-reference alpha_54d633ccc01113a1050b ***!
|
||||
!*** delegated ./a.js from dll-reference alpha_bd6d04da4340c44a8be7 ***!
|
||||
\**********************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = (__webpack_require__(/*! dll-reference alpha_54d633ccc01113a1050b */ 2))(2);
|
||||
module.exports = (__webpack_require__(/*! dll-reference alpha_bd6d04da4340c44a8be7 */ 2))(2);
|
||||
|
||||
/***/ }),
|
||||
/* 4 */
|
||||
/*!************************************************************************!*\
|
||||
!*** delegated ./beta.js from dll-reference beta_54d633ccc01113a1050b ***!
|
||||
!*** delegated ./beta.js from dll-reference beta_bd6d04da4340c44a8be7 ***!
|
||||
\************************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = (__webpack_require__(/*! dll-reference beta_54d633ccc01113a1050b */ 5))(5);
|
||||
module.exports = (__webpack_require__(/*! dll-reference beta_bd6d04da4340c44a8be7 */ 5))(5);
|
||||
|
||||
/***/ }),
|
||||
/* 5 */
|
||||
/*!********************************************!*\
|
||||
!*** external "beta_54d633ccc01113a1050b" ***!
|
||||
!*** external "beta_bd6d04da4340c44a8be7" ***!
|
||||
\********************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! dynamic exports */
|
||||
/*! exports [maybe provided (runtime-defined)] [no usage info] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = beta_54d633ccc01113a1050b;
|
||||
module.exports = beta_bd6d04da4340c44a8be7;
|
||||
|
||||
/***/ }),
|
||||
/* 6 */
|
||||
/*!*********************************************************************!*\
|
||||
!*** delegated ./b.js from dll-reference beta_54d633ccc01113a1050b ***!
|
||||
!*** delegated ./b.js from dll-reference beta_bd6d04da4340c44a8be7 ***!
|
||||
\*********************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = (__webpack_require__(/*! dll-reference beta_54d633ccc01113a1050b */ 5))(6);
|
||||
module.exports = (__webpack_require__(/*! dll-reference beta_bd6d04da4340c44a8be7 */ 5))(6);
|
||||
|
||||
/***/ }),
|
||||
/* 7 */
|
||||
/*!**********************************************************************!*\
|
||||
!*** delegated ./c.jsx from dll-reference beta_54d633ccc01113a1050b ***!
|
||||
!*** delegated ./c.jsx from dll-reference beta_bd6d04da4340c44a8be7 ***!
|
||||
\**********************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = (__webpack_require__(/*! dll-reference beta_54d633ccc01113a1050b */ 5))(7);
|
||||
module.exports = (__webpack_require__(/*! dll-reference beta_bd6d04da4340c44a8be7 */ 5))(7);
|
||||
|
||||
/***/ }),
|
||||
/* 8 */
|
||||
/*!*****************************************************************************************!*\
|
||||
!*** delegated ../node_modules/module.js from dll-reference alpha_54d633ccc01113a1050b ***!
|
||||
!*** delegated ../node_modules/module.js from dll-reference alpha_bd6d04da4340c44a8be7 ***!
|
||||
\*****************************************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = (__webpack_require__(/*! dll-reference alpha_54d633ccc01113a1050b */ 2))(3);
|
||||
module.exports = (__webpack_require__(/*! dll-reference alpha_bd6d04da4340c44a8be7 */ 2))(3);
|
||||
|
||||
/***/ })
|
||||
/******/ ]);
|
||||
|
@ -183,7 +177,6 @@ module.exports = (__webpack_require__(/*! dll-reference alpha_54d633ccc01113a105
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
console.log(__webpack_require__(/*! ../dll/alpha */ 1));
|
||||
console.log(__webpack_require__(/*! ../dll/a */ 3));
|
||||
|
@ -205,69 +198,25 @@ console.log(__webpack_require__(/*! module */ 8));
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 5.93 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
asset output.js 5.33 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 541 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 205 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
delegated ../node_modules/module.js from dll-reference alpha_54d633ccc01113a1050b 42 bytes [built]
|
||||
cjs require module ./example.js 8:12-29
|
||||
delegated ./a.js from dll-reference alpha_54d633ccc01113a1050b 42 bytes [built]
|
||||
cjs require ../dll/a ./example.js 2:12-31
|
||||
delegated ./alpha.js from dll-reference alpha_54d633ccc01113a1050b 42 bytes [built]
|
||||
cjs require ../dll/alpha ./example.js 1:12-35
|
||||
delegated ./b.js from dll-reference beta_54d633ccc01113a1050b 42 bytes [built]
|
||||
cjs require beta/b ./example.js 5:12-29
|
||||
delegated ./beta.js from dll-reference beta_54d633ccc01113a1050b 42 bytes [built]
|
||||
cjs require beta/beta ./example.js 4:12-32
|
||||
delegated ./c.jsx from dll-reference beta_54d633ccc01113a1050b 42 bytes [built]
|
||||
cjs require beta/c ./example.js 6:12-29
|
||||
external "alpha_54d633ccc01113a1050b" 42 bytes [built]
|
||||
delegated source dll-reference alpha_54d633ccc01113a1050b delegated ./alpha.js from dll-reference alpha_54d633ccc01113a1050b
|
||||
delegated source dll-reference alpha_54d633ccc01113a1050b delegated ./a.js from dll-reference alpha_54d633ccc01113a1050b
|
||||
delegated source dll-reference alpha_54d633ccc01113a1050b delegated ../node_modules/module.js from dll-reference alpha_54d633ccc01113a1050b
|
||||
external "beta_54d633ccc01113a1050b" 42 bytes [built]
|
||||
delegated source dll-reference beta_54d633ccc01113a1050b delegated ./beta.js from dll-reference beta_54d633ccc01113a1050b
|
||||
delegated source dll-reference beta_54d633ccc01113a1050b delegated ./b.js from dll-reference beta_54d633ccc01113a1050b
|
||||
delegated source dll-reference beta_54d633ccc01113a1050b delegated ./c.jsx from dll-reference beta_54d633ccc01113a1050b
|
||||
> ./example.js main
|
||||
dependent modules 336 bytes [dependent] 8 modules
|
||||
./example.js 205 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 573 bytes [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 541 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 205 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
delegated ../node_modules/module.js from dll-reference alpha_54d633ccc01113a1050b 42 bytes [built]
|
||||
cjs require module ./example.js 8:12-29
|
||||
delegated ./a.js from dll-reference alpha_54d633ccc01113a1050b 42 bytes [built]
|
||||
cjs require ../dll/a ./example.js 2:12-31
|
||||
delegated ./alpha.js from dll-reference alpha_54d633ccc01113a1050b 42 bytes [built]
|
||||
cjs require ../dll/alpha ./example.js 1:12-35
|
||||
delegated ./b.js from dll-reference beta_54d633ccc01113a1050b 42 bytes [built]
|
||||
cjs require beta/b ./example.js 5:12-29
|
||||
delegated ./beta.js from dll-reference beta_54d633ccc01113a1050b 42 bytes [built]
|
||||
cjs require beta/beta ./example.js 4:12-32
|
||||
delegated ./c.jsx from dll-reference beta_54d633ccc01113a1050b 42 bytes [built]
|
||||
cjs require beta/c ./example.js 6:12-29
|
||||
external "alpha_54d633ccc01113a1050b" 42 bytes [built]
|
||||
delegated source dll-reference alpha_54d633ccc01113a1050b delegated ./alpha.js from dll-reference alpha_54d633ccc01113a1050b
|
||||
delegated source dll-reference alpha_54d633ccc01113a1050b delegated ./a.js from dll-reference alpha_54d633ccc01113a1050b
|
||||
delegated source dll-reference alpha_54d633ccc01113a1050b delegated ../node_modules/module.js from dll-reference alpha_54d633ccc01113a1050b
|
||||
external "beta_54d633ccc01113a1050b" 42 bytes [built]
|
||||
delegated source dll-reference beta_54d633ccc01113a1050b delegated ./beta.js from dll-reference beta_54d633ccc01113a1050b
|
||||
delegated source dll-reference beta_54d633ccc01113a1050b delegated ./b.js from dll-reference beta_54d633ccc01113a1050b
|
||||
delegated source dll-reference beta_54d633ccc01113a1050b delegated ./c.jsx from dll-reference beta_54d633ccc01113a1050b
|
||||
asset output.js 573 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 541 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 336 bytes [dependent] 8 modules
|
||||
./example.js 205 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -35,7 +35,7 @@ module.exports = {
|
|||
# dist/MyDll.alpha.js
|
||||
|
||||
```javascript
|
||||
var alpha_54d633ccc01113a1050b;alpha_54d633ccc01113a1050b =
|
||||
var alpha_bd6d04da4340c44a8be7;alpha_bd6d04da4340c44a8be7 =
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */
|
||||
|
@ -43,7 +43,6 @@ var alpha_54d633ccc01113a1050b;alpha_54d633ccc01113a1050b =
|
|||
!*** dll alpha ***!
|
||||
\*****************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: __webpack_require__, module */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -55,8 +54,8 @@ module.exports = __webpack_require__;
|
|||
!*** ./alpha.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "alpha";
|
||||
|
@ -67,8 +66,8 @@ module.exports = "alpha";
|
|||
!*** ./a.js ***!
|
||||
\**************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "a";
|
||||
|
@ -79,8 +78,8 @@ module.exports = "a";
|
|||
!*** ../node_modules/module.js ***!
|
||||
\*********************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "module";
|
||||
|
@ -133,7 +132,7 @@ module.exports = "module";
|
|||
# dist/alpha-manifest.json
|
||||
|
||||
```javascript
|
||||
{"name":"alpha_54d633ccc01113a1050b","content":{"./alpha.js":{"id":1,"buildMeta":{}},"./a.js":{"id":2,"buildMeta":{}},"../node_modules/module.js":{"id":3,"buildMeta":{}}}}
|
||||
{"name":"alpha_bd6d04da4340c44a8be7","content":{"./alpha.js":{"id":1,"buildMeta":{}},"./a.js":{"id":2,"buildMeta":{}},"../node_modules/module.js":{"id":3,"buildMeta":{}}}}
|
||||
```
|
||||
|
||||
# Info
|
||||
|
@ -141,79 +140,41 @@ module.exports = "module";
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
MyDll.alpha.js 2.58 KiB [emitted] [name: alpha]
|
||||
MyDll.beta.js 2.55 KiB [emitted] [name: beta]
|
||||
Entrypoint alpha = MyDll.alpha.js
|
||||
Entrypoint beta = MyDll.beta.js
|
||||
asset MyDll.alpha.js 2.46 KiB [emitted] (name: alpha)
|
||||
asset MyDll.beta.js 2.43 KiB [emitted] (name: beta)
|
||||
chunk MyDll.alpha.js (alpha) 84 bytes [entry] [rendered]
|
||||
> alpha
|
||||
../node_modules/module.js 26 bytes [built]
|
||||
cjs self exports reference ../node_modules/module.js 1:0-14
|
||||
entry module dll alpha alpha[2]
|
||||
./a.js 21 bytes [built]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
entry ./a dll alpha alpha[1]
|
||||
./alpha.js 25 bytes [built]
|
||||
cjs self exports reference ./alpha.js 1:0-14
|
||||
entry ./alpha dll alpha alpha[0]
|
||||
dll alpha 12 bytes [built]
|
||||
dll entry
|
||||
used as library export
|
||||
> alpha
|
||||
dependent modules 72 bytes [dependent] 3 modules
|
||||
dll alpha 12 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
dll entry
|
||||
used as library export
|
||||
chunk MyDll.beta.js (beta) 80 bytes [entry] [rendered]
|
||||
> beta
|
||||
./b.js 21 bytes [built]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
entry ./b dll beta beta[1]
|
||||
./beta.js 24 bytes [built]
|
||||
cjs self exports reference ./beta.js 1:0-14
|
||||
entry ./beta dll beta beta[0]
|
||||
./c.jsx 23 bytes [built]
|
||||
cjs self exports reference ./c.jsx 1:0-14
|
||||
entry ./c dll beta beta[2]
|
||||
dll beta 12 bytes [built]
|
||||
dll entry
|
||||
used as library export
|
||||
> beta
|
||||
dependent modules 68 bytes [dependent] 3 modules
|
||||
dll beta 12 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
dll entry
|
||||
used as library export
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
MyDll.alpha.js 302 bytes [emitted] [name: alpha]
|
||||
MyDll.beta.js 292 bytes [emitted] [name: beta]
|
||||
Entrypoint alpha = MyDll.alpha.js
|
||||
Entrypoint beta = MyDll.beta.js
|
||||
chunk MyDll.alpha.js (alpha) 84 bytes [entry] [rendered]
|
||||
> alpha
|
||||
../node_modules/module.js 26 bytes [built]
|
||||
cjs self exports reference ../node_modules/module.js 1:0-14
|
||||
entry module dll alpha alpha[2]
|
||||
./a.js 21 bytes [built]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
entry ./a dll alpha alpha[1]
|
||||
./alpha.js 25 bytes [built]
|
||||
cjs self exports reference ./alpha.js 1:0-14
|
||||
entry ./alpha dll alpha alpha[0]
|
||||
dll alpha 12 bytes [built]
|
||||
dll entry
|
||||
used as library export
|
||||
chunk MyDll.beta.js (beta) 80 bytes [entry] [rendered]
|
||||
> beta
|
||||
./b.js 21 bytes [built]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
entry ./b dll beta beta[1]
|
||||
./beta.js 24 bytes [built]
|
||||
cjs self exports reference ./beta.js 1:0-14
|
||||
entry ./beta dll beta beta[0]
|
||||
./c.jsx 23 bytes [built]
|
||||
cjs self exports reference ./c.jsx 1:0-14
|
||||
entry ./c dll beta beta[2]
|
||||
dll beta 12 bytes [built]
|
||||
dll entry
|
||||
used as library export
|
||||
asset MyDll.alpha.js 302 bytes [emitted] [minimized] (name: alpha)
|
||||
asset MyDll.beta.js 292 bytes [emitted] [minimized] (name: beta)
|
||||
chunk (runtime: alpha) MyDll.alpha.js (alpha) 84 bytes [entry] [rendered]
|
||||
> alpha
|
||||
dependent modules 72 bytes [dependent] 3 modules
|
||||
dll alpha 12 bytes [built] [code generated]
|
||||
dll entry
|
||||
used as library export
|
||||
chunk (runtime: beta) MyDll.beta.js (beta) 80 bytes [entry] [rendered]
|
||||
> beta
|
||||
dependent modules 68 bytes [dependent] 3 modules
|
||||
dll beta 12 bytes [built] [code generated]
|
||||
dll entry
|
||||
used as library export
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -46,7 +46,7 @@ module.exports = [
|
|||
# dist/vendor.js
|
||||
|
||||
```javascript
|
||||
var vendor_8437ee63870abffcff70;vendor_8437ee63870abffcff70 =
|
||||
var vendor_fef5e13bbb88a32cfed3;vendor_fef5e13bbb88a32cfed3 =
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */
|
||||
|
@ -54,7 +54,6 @@ var vendor_8437ee63870abffcff70;vendor_8437ee63870abffcff70 =
|
|||
!*** dll main ***!
|
||||
\****************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: __webpack_require__, module */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -66,8 +65,8 @@ module.exports = __webpack_require__;
|
|||
!*** ./vendor.js ***!
|
||||
\*******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "Vendor";
|
||||
|
@ -78,8 +77,8 @@ module.exports = "Vendor";
|
|||
!*** ./vendor2.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "Vendor2";
|
||||
|
@ -139,8 +138,8 @@ module.exports = "Vendor2";
|
|||
!*** ./pageA.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/*! CommonJS bailout: module.exports is used directly at 2:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
console.log(__webpack_require__(/*! ./vendor */ 1));
|
||||
|
@ -149,27 +148,26 @@ module.exports = "pageA";
|
|||
/***/ }),
|
||||
/* 1 */
|
||||
/*!****************************************************************************!*\
|
||||
!*** delegated ./vendor.js from dll-reference vendor_8437ee63870abffcff70 ***!
|
||||
!*** delegated ./vendor.js from dll-reference vendor_fef5e13bbb88a32cfed3 ***!
|
||||
\****************************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = (__webpack_require__(/*! dll-reference vendor_8437ee63870abffcff70 */ 2))(1);
|
||||
module.exports = (__webpack_require__(/*! dll-reference vendor_fef5e13bbb88a32cfed3 */ 2))(1);
|
||||
|
||||
/***/ }),
|
||||
/* 2 */
|
||||
/*!**********************************************!*\
|
||||
!*** external "vendor_8437ee63870abffcff70" ***!
|
||||
!*** external "vendor_fef5e13bbb88a32cfed3" ***!
|
||||
\**********************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! dynamic exports */
|
||||
/*! exports [maybe provided (runtime-defined)] [no usage info] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = vendor_8437ee63870abffcff70;
|
||||
module.exports = vendor_fef5e13bbb88a32cfed3;
|
||||
|
||||
/***/ })
|
||||
/******/ ]);
|
||||
|
@ -210,8 +208,8 @@ module.exports = vendor_8437ee63870abffcff70;
|
|||
``` js
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ // This entry module is referenced by other modules so it can't be inlined
|
||||
/******/ __webpack_require__(0);
|
||||
/******/ // This entry module used 'module' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -221,113 +219,80 @@ module.exports = vendor_8437ee63870abffcff70;
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Child vendor:
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
vendor.js 2.27 KiB [emitted] [name: main]
|
||||
Entrypoint main = vendor.js
|
||||
chunk vendor.js (main) 65 bytes [entry] [rendered]
|
||||
> main
|
||||
./vendor.js 26 bytes [built]
|
||||
cjs self exports reference ./vendor.js 1:0-14
|
||||
entry ./vendor dll main main[0]
|
||||
./vendor2.js 27 bytes [built]
|
||||
cjs self exports reference ./vendor2.js 1:0-14
|
||||
entry ./vendor2 dll main main[1]
|
||||
dll main 12 bytes [built]
|
||||
dll entry
|
||||
used as library export
|
||||
Child app:
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
pageA.js 2.63 KiB [emitted] [name: pageA]
|
||||
pageB.js 2.66 KiB [emitted] [name: pageB]
|
||||
pageC.js 1.52 KiB [emitted] [name: pageC]
|
||||
Entrypoint pageA = pageA.js
|
||||
Entrypoint pageB = pageB.js
|
||||
Entrypoint pageC = pageC.js
|
||||
chunk pageA.js (pageA) 143 bytes [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
./pageA.js 59 bytes [built]
|
||||
cjs self exports reference ./pageA.js 2:0-14
|
||||
entry ./pageA pageA
|
||||
delegated ./vendor.js from dll-reference vendor_8437ee63870abffcff70 42 bytes [built]
|
||||
cjs require ./vendor ./pageA.js 1:12-31
|
||||
external "vendor_8437ee63870abffcff70" 42 bytes [built]
|
||||
delegated source dll-reference vendor_8437ee63870abffcff70 delegated ./vendor.js from dll-reference vendor_8437ee63870abffcff70
|
||||
delegated source dll-reference vendor_8437ee63870abffcff70 delegated ./vendor2.js from dll-reference vendor_8437ee63870abffcff70
|
||||
chunk pageB.js (pageB) 144 bytes [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
./pageB.js 60 bytes [built]
|
||||
cjs self exports reference ./pageB.js 2:0-14
|
||||
entry ./pageB pageB
|
||||
delegated ./vendor2.js from dll-reference vendor_8437ee63870abffcff70 42 bytes [built]
|
||||
cjs require ./vendor2 ./pageB.js 1:12-32
|
||||
external "vendor_8437ee63870abffcff70" 42 bytes [built]
|
||||
delegated source dll-reference vendor_8437ee63870abffcff70 delegated ./vendor.js from dll-reference vendor_8437ee63870abffcff70
|
||||
delegated source dll-reference vendor_8437ee63870abffcff70 delegated ./vendor2.js from dll-reference vendor_8437ee63870abffcff70
|
||||
chunk pageC.js (pageC) 25 bytes [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
./pageC.js 25 bytes [built]
|
||||
cjs self exports reference ./pageC.js 1:0-14
|
||||
entry ./pageC pageC
|
||||
vendor:
|
||||
asset vendor.js 2.16 KiB [emitted] (name: main)
|
||||
chunk vendor.js (main) 65 bytes [entry] [rendered]
|
||||
> main
|
||||
dependent modules 53 bytes [dependent] 2 modules
|
||||
dll main 12 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
dll entry
|
||||
used as library export
|
||||
vendor (webpack 5.0.0-beta.32) compiled successfully
|
||||
|
||||
app:
|
||||
asset pageB.js 2.51 KiB [emitted] (name: pageB)
|
||||
asset pageA.js 2.49 KiB [emitted] (name: pageA)
|
||||
asset pageC.js 1.49 KiB [emitted] (name: pageC)
|
||||
chunk pageA.js (pageA) 143 bytes [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
dependent modules 84 bytes [dependent] 2 modules
|
||||
./pageA.js 59 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageA.js 2:0-14
|
||||
entry ./pageA pageA
|
||||
chunk pageB.js (pageB) 144 bytes [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
dependent modules 84 bytes [dependent] 2 modules
|
||||
./pageB.js 60 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageB.js 2:0-14
|
||||
entry ./pageB pageB
|
||||
chunk pageC.js (pageC) 25 bytes [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
./pageC.js 25 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageC.js 1:0-14
|
||||
entry ./pageC pageC
|
||||
app (webpack 5.0.0-beta.32) compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Child vendor:
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
vendor.js 283 bytes [emitted] [name: main]
|
||||
Entrypoint main = vendor.js
|
||||
chunk vendor.js (main) 65 bytes [entry] [rendered]
|
||||
> main
|
||||
./vendor.js 26 bytes [built]
|
||||
cjs self exports reference ./vendor.js 1:0-14
|
||||
entry ./vendor dll main main[0]
|
||||
./vendor2.js 27 bytes [built]
|
||||
cjs self exports reference ./vendor2.js 1:0-14
|
||||
entry ./vendor2 dll main main[1]
|
||||
dll main 12 bytes [built]
|
||||
dll entry
|
||||
used as library export
|
||||
Child app:
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
pageA.js 283 bytes [emitted] [name: pageA]
|
||||
pageB.js 283 bytes [emitted] [name: pageB]
|
||||
pageC.js 160 bytes [emitted] [name: pageC]
|
||||
Entrypoint pageA = pageA.js
|
||||
Entrypoint pageB = pageB.js
|
||||
Entrypoint pageC = pageC.js
|
||||
chunk pageB.js (pageB) 144 bytes [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
./pageB.js 60 bytes [built]
|
||||
cjs self exports reference ./pageB.js 2:0-14
|
||||
entry ./pageB pageB
|
||||
delegated ./vendor2.js from dll-reference vendor_cd36378c41b73a2600dc 42 bytes [built]
|
||||
cjs require ./vendor2 ./pageB.js 1:12-32
|
||||
external "vendor_cd36378c41b73a2600dc" 42 bytes [built]
|
||||
delegated source dll-reference vendor_cd36378c41b73a2600dc delegated ./vendor2.js from dll-reference vendor_cd36378c41b73a2600dc
|
||||
delegated source dll-reference vendor_cd36378c41b73a2600dc delegated ./vendor.js from dll-reference vendor_cd36378c41b73a2600dc
|
||||
chunk pageC.js (pageC) 25 bytes [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
./pageC.js 25 bytes [built]
|
||||
cjs self exports reference ./pageC.js 1:0-14
|
||||
entry ./pageC pageC
|
||||
chunk pageA.js (pageA) 143 bytes [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
./pageA.js 59 bytes [built]
|
||||
cjs self exports reference ./pageA.js 2:0-14
|
||||
entry ./pageA pageA
|
||||
delegated ./vendor.js from dll-reference vendor_cd36378c41b73a2600dc 42 bytes [built]
|
||||
cjs require ./vendor ./pageA.js 1:12-31
|
||||
external "vendor_cd36378c41b73a2600dc" 42 bytes [built]
|
||||
delegated source dll-reference vendor_cd36378c41b73a2600dc delegated ./vendor2.js from dll-reference vendor_cd36378c41b73a2600dc
|
||||
delegated source dll-reference vendor_cd36378c41b73a2600dc delegated ./vendor.js from dll-reference vendor_cd36378c41b73a2600dc
|
||||
vendor:
|
||||
asset vendor.js 283 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) vendor.js (main) 65 bytes [entry] [rendered]
|
||||
> main
|
||||
dependent modules 53 bytes [dependent] 2 modules
|
||||
dll main 12 bytes [built] [code generated]
|
||||
dll entry
|
||||
used as library export
|
||||
vendor (webpack 5.0.0-beta.32) compiled successfully
|
||||
|
||||
app:
|
||||
asset pageA.js 283 bytes [emitted] [minimized] (name: pageA)
|
||||
asset pageB.js 283 bytes [emitted] [minimized] (name: pageB)
|
||||
asset pageC.js 160 bytes [emitted] [minimized] (name: pageC)
|
||||
chunk (runtime: pageB) pageB.js (pageB) 144 bytes [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
dependent modules 84 bytes [dependent] 2 modules
|
||||
./pageB.js 60 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageB.js 2:0-14
|
||||
entry ./pageB pageB
|
||||
chunk (runtime: pageC) pageC.js (pageC) 25 bytes [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
./pageC.js 25 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageC.js 1:0-14
|
||||
entry ./pageC pageC
|
||||
chunk (runtime: pageA) pageA.js (pageA) 143 bytes [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
dependent modules 84 bytes [dependent] 2 modules
|
||||
./pageA.js 59 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageA.js 2:0-14
|
||||
entry ./pageA pageA
|
||||
app (webpack 5.0.0-beta.32) compiled successfully
|
||||
```
|
||||
|
|
|
@ -58,7 +58,7 @@ module.exports = {
|
|||
var a = typeof exports === 'object' ? factory(require("add"), require("./math")["subtract"]) : factory(root["add"], root["subtract"]);
|
||||
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
||||
}
|
||||
})(window, function(__WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__) {
|
||||
})(self, function(__WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__) {
|
||||
return /******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */
|
||||
|
@ -66,8 +66,8 @@ return /******/ (() => { // webpackBootstrap
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! default exports */
|
||||
/*! export exampleValue [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! export exampleValue [provided] [maybe used in main (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used in main (runtime-defined)] */
|
||||
/*! runtime requirements: __webpack_exports__, __webpack_require__ */
|
||||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
||||
|
||||
|
@ -81,8 +81,8 @@ exports.exampleValue = subtract(add(42, 2), 2);
|
|||
/*!**********************!*\
|
||||
!*** external "add" ***!
|
||||
\**********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! dynamic exports */
|
||||
/*! exports [maybe provided (runtime-defined)] [no usage info] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
|
@ -94,8 +94,8 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1__;
|
|||
/*!***************************************************************************************************************!*\
|
||||
!*** external {"root":"subtract","commonjs2":"./subtract","commonjs":["./math","subtract"],"amd":"subtract"} ***!
|
||||
\***************************************************************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! dynamic exports */
|
||||
/*! exports [maybe provided (runtime-defined)] [no usage info] */
|
||||
/*! runtime requirements: module */
|
||||
/***/ ((module) => {
|
||||
|
||||
|
@ -153,39 +153,28 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 3.34 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
asset output.js 3.29 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 194 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 110 bytes [built]
|
||||
[exports: exampleValue]
|
||||
entry ./example.js main
|
||||
used as library export
|
||||
external "add" 42 bytes [built]
|
||||
cjs require add ./example.js 1:10-24
|
||||
external {"root":"subtract","commonjs2":"./subtract","commonjs":["./math","subtract"],"amd":"subtract"} 42 bytes [built]
|
||||
cjs require subtract ./example.js 2:15-34
|
||||
> ./example.js main
|
||||
dependent modules 84 bytes [dependent] 2 modules
|
||||
./example.js 110 bytes [built] [code generated]
|
||||
[exports: exampleValue]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
used as library export
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 652 bytes [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 194 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 110 bytes [built]
|
||||
[exports: exampleValue]
|
||||
entry ./example.js main
|
||||
used as library export
|
||||
external "add" 42 bytes [built]
|
||||
cjs require add ./example.js 1:10-24
|
||||
external {"root":"subtract","commonjs2":"./subtract","commonjs":["./math","subtract"],"amd":"subtract"} 42 bytes [built]
|
||||
cjs require subtract ./example.js 2:15-34
|
||||
asset output.js 650 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 194 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 84 bytes [dependent] 2 modules
|
||||
./example.js 110 bytes [built] [code generated]
|
||||
[exports: exampleValue]
|
||||
entry ./example.js main
|
||||
used as library export
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -98,6 +98,52 @@ module.exports = {
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/publicPath */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.p = "dist/";
|
||||
|
@ -105,6 +151,8 @@ module.exports = {
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -131,49 +179,24 @@ module.exports = {
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -190,11 +213,8 @@ module.exports = {
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -211,17 +231,16 @@ module.exports = {
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -234,7 +253,6 @@ module.exports = {
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.oe, __webpack_require__.* */
|
||||
Promise.all(/*! AMD require */[__webpack_require__.e(996), __webpack_require__.e(847), __webpack_require__.e(460)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./a */ 1), __webpack_require__(/*! ./b */ 2), __webpack_require__(/*! ./c */ 3)]; (function(a, b, c) {}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}).catch(__webpack_require__.oe);
|
||||
|
||||
|
@ -262,137 +280,145 @@ Promise.all(/*! require.ensure */[__webpack_require__.e(847), __webpack_require_
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
390.output.js 356 bytes [emitted]
|
||||
460.output.js 356 bytes [emitted]
|
||||
568.output.js 356 bytes [emitted]
|
||||
767.output.js 356 bytes [emitted]
|
||||
785.output.js 356 bytes [emitted]
|
||||
847.output.js 362 bytes [emitted]
|
||||
996.output.js 356 bytes [emitted]
|
||||
output.js 8.94 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 346 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 346 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 5 hidden chunk modules
|
||||
asset output.js 9.79 KiB [emitted] (name: main)
|
||||
asset 847.output.js 344 bytes [emitted]
|
||||
asset 390.output.js 338 bytes [emitted]
|
||||
asset 460.output.js 338 bytes [emitted]
|
||||
asset 568.output.js 338 bytes [emitted]
|
||||
asset 767.output.js 338 bytes [emitted]
|
||||
asset 785.output.js 338 bytes [emitted]
|
||||
asset 996.output.js 338 bytes [emitted]
|
||||
chunk output.js (main) 346 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./example.js 346 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 390.output.js 21 bytes [rendered]
|
||||
> ./example.js 8:0-16:2
|
||||
./e.js 21 bytes [built]
|
||||
cjs self exports reference ./e.js 1:0-14
|
||||
require.ensure item ./e ./example.js 8:0-16:2
|
||||
> ./example.js 8:0-16:2
|
||||
./e.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./e.js 1:0-14
|
||||
require.ensure item ./e ./example.js 8:0-16:2
|
||||
chunk 460.output.js 21 bytes [rendered]
|
||||
> ./a ./b ./c ./example.js 1:0-52
|
||||
./c.js 21 bytes [built]
|
||||
cjs self exports reference ./c.js 1:0-14
|
||||
amd require ./c ./example.js 1:0-52
|
||||
> ./a ./b ./c ./example.js 1:0-52
|
||||
./c.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./c.js 1:0-14
|
||||
amd require ./c ./example.js 1:0-52
|
||||
chunk 568.output.js 21 bytes [rendered]
|
||||
> ./example.js 10:1-12:3
|
||||
./f.js 21 bytes [built]
|
||||
cjs require ./f ./example.js 11:2-16
|
||||
cjs self exports reference ./f.js 1:0-14
|
||||
> ./example.js 10:1-12:3
|
||||
./f.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./f ./example.js 11:2-16
|
||||
cjs self exports reference ./f.js 1:0-14
|
||||
chunk 767.output.js 21 bytes [rendered]
|
||||
> ./example.js 3:0-6:2
|
||||
./d.js 21 bytes [built]
|
||||
cjs self exports reference ./d.js 1:0-14
|
||||
cjs require ./d ./example.js 5:1-15
|
||||
> ./example.js 3:0-6:2
|
||||
./d.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./d.js 1:0-14
|
||||
cjs require ./d ./example.js 5:1-15
|
||||
chunk 785.output.js 21 bytes [rendered]
|
||||
> ./example.js 13:1-15:3
|
||||
./g.js 21 bytes [built]
|
||||
cjs require ./g ./example.js 14:2-16
|
||||
cjs self exports reference ./g.js 1:0-14
|
||||
> ./example.js 13:1-15:3
|
||||
./g.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./g ./example.js 14:2-16
|
||||
cjs self exports reference ./g.js 1:0-14
|
||||
chunk 847.output.js 21 bytes [rendered] split chunk (cache group: default)
|
||||
> ./a ./b ./c ./example.js 1:0-52
|
||||
> ./example.js 3:0-6:2
|
||||
> ./example.js 8:0-16:2
|
||||
./a.js 21 bytes [built]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
amd require ./a ./example.js 1:0-52
|
||||
require.ensure item ./a ./example.js 3:0-6:2
|
||||
require.ensure item ./a ./example.js 8:0-16:2
|
||||
cjs require ./a ./example.js 9:1-15
|
||||
> ./a ./b ./c ./example.js 1:0-52
|
||||
> ./example.js 3:0-6:2
|
||||
> ./example.js 8:0-16:2
|
||||
./a.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
amd require ./a ./example.js 1:0-52
|
||||
require.ensure item ./a ./example.js 3:0-6:2
|
||||
require.ensure item ./a ./example.js 8:0-16:2
|
||||
cjs require ./a ./example.js 9:1-15
|
||||
chunk 996.output.js 21 bytes [rendered] split chunk (cache group: default)
|
||||
> ./example.js 10:1-12:3
|
||||
> ./example.js 13:1-15:3
|
||||
> ./a ./b ./c ./example.js 1:0-52
|
||||
> ./example.js 3:0-6:2
|
||||
./b.js 21 bytes [built]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
amd require ./b ./example.js 1:0-52
|
||||
cjs require ./b ./example.js 4:1-15
|
||||
require.ensure item ./b ./example.js 10:1-12:3
|
||||
require.ensure item ./b ./example.js 13:1-15:3
|
||||
> ./example.js 10:1-12:3
|
||||
> ./example.js 13:1-15:3
|
||||
> ./a ./b ./c ./example.js 1:0-52
|
||||
> ./example.js 3:0-6:2
|
||||
./b.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
amd require ./b ./example.js 1:0-52
|
||||
cjs require ./b ./example.js 4:1-15
|
||||
require.ensure item ./b ./example.js 10:1-12:3
|
||||
require.ensure item ./b ./example.js 13:1-15:3
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
390.output.js 85 bytes [emitted]
|
||||
460.output.js 85 bytes [emitted]
|
||||
568.output.js 85 bytes [emitted]
|
||||
767.output.js 85 bytes [emitted]
|
||||
785.output.js 85 bytes [emitted]
|
||||
847.output.js 85 bytes [emitted]
|
||||
996.output.js 85 bytes [emitted]
|
||||
output.js 1.74 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 346 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 346 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 5 hidden chunk modules
|
||||
chunk 390.output.js 21 bytes [rendered]
|
||||
> ./example.js 8:0-16:2
|
||||
./e.js 21 bytes [built]
|
||||
cjs self exports reference ./e.js 1:0-14
|
||||
require.ensure item ./e ./example.js 8:0-16:2
|
||||
chunk 460.output.js 21 bytes [rendered]
|
||||
> ./a ./b ./c ./example.js 1:0-52
|
||||
./c.js 21 bytes [built]
|
||||
cjs self exports reference ./c.js 1:0-14
|
||||
amd require ./c ./example.js 1:0-52
|
||||
chunk 568.output.js 21 bytes [rendered]
|
||||
> ./example.js 10:1-12:3
|
||||
./f.js 21 bytes [built]
|
||||
cjs require ./f ./example.js 11:2-16
|
||||
cjs self exports reference ./f.js 1:0-14
|
||||
chunk 767.output.js 21 bytes [rendered]
|
||||
> ./example.js 3:0-6:2
|
||||
./d.js 21 bytes [built]
|
||||
cjs self exports reference ./d.js 1:0-14
|
||||
cjs require ./d ./example.js 5:1-15
|
||||
chunk 785.output.js 21 bytes [rendered]
|
||||
> ./example.js 13:1-15:3
|
||||
./g.js 21 bytes [built]
|
||||
cjs require ./g ./example.js 14:2-16
|
||||
cjs self exports reference ./g.js 1:0-14
|
||||
chunk 847.output.js 21 bytes [rendered] split chunk (cache group: default)
|
||||
> ./a ./b ./c ./example.js 1:0-52
|
||||
> ./example.js 3:0-6:2
|
||||
> ./example.js 8:0-16:2
|
||||
./a.js 21 bytes [built]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
amd require ./a ./example.js 1:0-52
|
||||
require.ensure item ./a ./example.js 3:0-6:2
|
||||
require.ensure item ./a ./example.js 8:0-16:2
|
||||
cjs require ./a ./example.js 9:1-15
|
||||
chunk 996.output.js 21 bytes [rendered] split chunk (cache group: default)
|
||||
> ./example.js 10:1-12:3
|
||||
> ./example.js 13:1-15:3
|
||||
> ./a ./b ./c ./example.js 1:0-52
|
||||
> ./example.js 3:0-6:2
|
||||
./b.js 21 bytes [built]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
amd require ./b ./example.js 1:0-52
|
||||
cjs require ./b ./example.js 4:1-15
|
||||
require.ensure item ./b ./example.js 10:1-12:3
|
||||
require.ensure item ./b ./example.js 13:1-15:3
|
||||
asset output.js 2.05 KiB [emitted] [minimized] (name: main)
|
||||
asset 390.output.js 81 bytes [emitted] [minimized]
|
||||
asset 460.output.js 81 bytes [emitted] [minimized]
|
||||
asset 568.output.js 81 bytes [emitted] [minimized]
|
||||
asset 767.output.js 81 bytes [emitted] [minimized]
|
||||
asset 785.output.js 81 bytes [emitted] [minimized]
|
||||
asset 847.output.js 81 bytes [emitted] [minimized]
|
||||
asset 996.output.js 81 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) output.js (main) 346 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./example.js 346 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 390.output.js 21 bytes [rendered]
|
||||
> ./example.js 8:0-16:2
|
||||
./e.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./e.js 1:0-14
|
||||
require.ensure item ./e ./example.js 8:0-16:2
|
||||
chunk (runtime: main) 460.output.js 21 bytes [rendered]
|
||||
> ./a ./b ./c ./example.js 1:0-52
|
||||
./c.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./c.js 1:0-14
|
||||
amd require ./c ./example.js 1:0-52
|
||||
chunk (runtime: main) 568.output.js 21 bytes [rendered]
|
||||
> ./example.js 10:1-12:3
|
||||
./f.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./f ./example.js 11:2-16
|
||||
cjs self exports reference ./f.js 1:0-14
|
||||
chunk (runtime: main) 767.output.js 21 bytes [rendered]
|
||||
> ./example.js 3:0-6:2
|
||||
./d.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./d.js 1:0-14
|
||||
cjs require ./d ./example.js 5:1-15
|
||||
chunk (runtime: main) 785.output.js 21 bytes [rendered]
|
||||
> ./example.js 13:1-15:3
|
||||
./g.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./g ./example.js 14:2-16
|
||||
cjs self exports reference ./g.js 1:0-14
|
||||
chunk (runtime: main) 847.output.js 21 bytes [rendered] split chunk (cache group: default)
|
||||
> ./a ./b ./c ./example.js 1:0-52
|
||||
> ./example.js 3:0-6:2
|
||||
> ./example.js 8:0-16:2
|
||||
./a.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
amd require ./a ./example.js 1:0-52
|
||||
require.ensure item ./a ./example.js 3:0-6:2
|
||||
require.ensure item ./a ./example.js 8:0-16:2
|
||||
cjs require ./a ./example.js 9:1-15
|
||||
chunk (runtime: main) 996.output.js 21 bytes [rendered] split chunk (cache group: default)
|
||||
> ./example.js 10:1-12:3
|
||||
> ./example.js 13:1-15:3
|
||||
> ./a ./b ./c ./example.js 1:0-52
|
||||
> ./example.js 3:0-6:2
|
||||
./b.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
amd require ./b ./example.js 1:0-52
|
||||
cjs require ./b ./example.js 4:1-15
|
||||
require.ensure item ./b ./example.js 10:1-12:3
|
||||
require.ensure item ./b ./example.js 13:1-15:3
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -109,6 +109,52 @@ require.ensure(["./a"], function(require) {
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/publicPath */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.p = "dist/";
|
||||
|
@ -116,6 +162,8 @@ require.ensure(["./a"], function(require) {
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -142,49 +190,24 @@ require.ensure(["./a"], function(require) {
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -201,11 +224,8 @@ require.ensure(["./a"], function(require) {
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -222,17 +242,16 @@ require.ensure(["./a"], function(require) {
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -245,7 +264,6 @@ require.ensure(["./a"], function(require) {
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.oe, __webpack_require__.* */
|
||||
// a chunks with a, b, c
|
||||
Promise.all(/*! AMD require */[__webpack_require__.e(394), __webpack_require__.e(460)]).then(function() {[__webpack_require__(/*! ./a */ 1), __webpack_require__(/*! ./b */ 2), __webpack_require__(/*! ./c */ 3)];}).catch(__webpack_require__.oe);
|
||||
|
@ -263,15 +281,15 @@ Promise.all(/*! require.ensure */[__webpack_require__.e(394), __webpack_require_
|
|||
# dist/394.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[394],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[394],[
|
||||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!**************!*\
|
||||
!*** ./a.js ***!
|
||||
\**************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "a";
|
||||
|
@ -282,8 +300,8 @@ module.exports = "a";
|
|||
!*** ./b.js ***!
|
||||
\**************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "b";
|
||||
|
@ -295,15 +313,15 @@ module.exports = "b";
|
|||
# dist/460.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[460],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[460],{
|
||||
|
||||
/***/ 3:
|
||||
/*!**************!*\
|
||||
!*** ./c.js ***!
|
||||
\**************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "c";
|
||||
|
@ -316,15 +334,15 @@ module.exports = "c";
|
|||
# dist/767.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[767],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[767],{
|
||||
|
||||
/***/ 4:
|
||||
/*!**************!*\
|
||||
!*** ./d.js ***!
|
||||
\**************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "d";
|
||||
|
@ -339,79 +357,81 @@ module.exports = "d";
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
394.output.js 642 bytes [emitted]
|
||||
460.output.js 356 bytes [emitted]
|
||||
767.output.js 356 bytes [emitted]
|
||||
output.js 8.18 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 164 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 164 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 5 hidden chunk modules
|
||||
asset output.js 9.03 KiB [emitted] (name: main)
|
||||
asset 394.output.js 610 bytes [emitted]
|
||||
asset 460.output.js 338 bytes [emitted]
|
||||
asset 767.output.js 338 bytes [emitted]
|
||||
chunk output.js (main) 164 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./example.js 164 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 394.output.js 42 bytes [rendered] split chunk (cache group: default)
|
||||
> ./a ./b ./c ./example.js 2:0-30
|
||||
> ./example.js 5:0-8:2
|
||||
./a.js 21 bytes [built]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
amd require ./a ./example.js 2:0-30
|
||||
require.ensure item ./a ./example.js 5:0-8:2
|
||||
./b.js 21 bytes [built]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
amd require ./b ./example.js 2:0-30
|
||||
cjs require ./b ./example.js 6:1-15
|
||||
> ./a ./b ./c ./example.js 2:0-30
|
||||
> ./example.js 5:0-8:2
|
||||
./a.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
amd require ./a ./example.js 2:0-30
|
||||
require.ensure item ./a ./example.js 5:0-8:2
|
||||
./b.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
amd require ./b ./example.js 2:0-30
|
||||
cjs require ./b ./example.js 6:1-15
|
||||
chunk 460.output.js 21 bytes [rendered]
|
||||
> ./a ./b ./c ./example.js 2:0-30
|
||||
./c.js 21 bytes [built]
|
||||
cjs self exports reference ./c.js 1:0-14
|
||||
amd require ./c ./example.js 2:0-30
|
||||
> ./a ./b ./c ./example.js 2:0-30
|
||||
./c.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./c.js 1:0-14
|
||||
amd require ./c ./example.js 2:0-30
|
||||
chunk 767.output.js 21 bytes [rendered]
|
||||
> ./example.js 5:0-8:2
|
||||
./d.js 21 bytes [built]
|
||||
cjs self exports reference ./d.js 1:0-14
|
||||
cjs require ./d ./example.js 7:1-15
|
||||
> ./example.js 5:0-8:2
|
||||
./d.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./d.js 1:0-14
|
||||
cjs require ./d ./example.js 7:1-15
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
394.output.js 108 bytes [emitted]
|
||||
460.output.js 85 bytes [emitted]
|
||||
767.output.js 85 bytes [emitted]
|
||||
output.js 1.44 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 164 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 164 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 5 hidden chunk modules
|
||||
chunk 394.output.js 42 bytes [rendered] split chunk (cache group: default)
|
||||
> ./a ./b ./c ./example.js 2:0-30
|
||||
> ./example.js 5:0-8:2
|
||||
./a.js 21 bytes [built]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
amd require ./a ./example.js 2:0-30
|
||||
require.ensure item ./a ./example.js 5:0-8:2
|
||||
./b.js 21 bytes [built]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
amd require ./b ./example.js 2:0-30
|
||||
cjs require ./b ./example.js 6:1-15
|
||||
chunk 460.output.js 21 bytes [rendered]
|
||||
> ./a ./b ./c ./example.js 2:0-30
|
||||
./c.js 21 bytes [built]
|
||||
cjs self exports reference ./c.js 1:0-14
|
||||
amd require ./c ./example.js 2:0-30
|
||||
chunk 767.output.js 21 bytes [rendered]
|
||||
> ./example.js 5:0-8:2
|
||||
./d.js 21 bytes [built]
|
||||
cjs self exports reference ./d.js 1:0-14
|
||||
cjs require ./d ./example.js 7:1-15
|
||||
asset output.js 1.75 KiB [emitted] [minimized] (name: main)
|
||||
asset 394.output.js 104 bytes [emitted] [minimized]
|
||||
asset 460.output.js 81 bytes [emitted] [minimized]
|
||||
asset 767.output.js 81 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) output.js (main) 164 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
./example.js 164 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 394.output.js 42 bytes [rendered] split chunk (cache group: default)
|
||||
> ./a ./b ./c ./example.js 2:0-30
|
||||
> ./example.js 5:0-8:2
|
||||
./a.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
amd require ./a ./example.js 2:0-30
|
||||
require.ensure item ./a ./example.js 5:0-8:2
|
||||
./b.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./b.js 1:0-14
|
||||
amd require ./b ./example.js 2:0-30
|
||||
cjs require ./b ./example.js 6:1-15
|
||||
chunk (runtime: main) 460.output.js 21 bytes [rendered]
|
||||
> ./a ./b ./c ./example.js 2:0-30
|
||||
./c.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./c.js 1:0-14
|
||||
amd require ./c ./example.js 2:0-30
|
||||
chunk (runtime: main) 767.output.js 21 bytes [rendered]
|
||||
> ./example.js 5:0-8:2
|
||||
./d.js 21 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./d.js 1:0-14
|
||||
cjs require ./d ./example.js 7:1-15
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -68,14 +68,47 @@ export var named = "named";
|
|||
```javascript
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 0 */
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.r, __webpack_exports__, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fs */ 1);
|
||||
/* harmony import */ var _reexport_commonjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reexport-commonjs */ 2);
|
||||
/* harmony import */ var _example2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./example2 */ 3);
|
||||
/* harmony import */ var _example2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_example2__WEBPACK_IMPORTED_MODULE_2__);
|
||||
// harmony module
|
||||
|
||||
// import from CommonJS module
|
||||
|
||||
|
||||
|
||||
_fs__WEBPACK_IMPORTED_MODULE_0__.readFile("file");
|
||||
(0,_fs__WEBPACK_IMPORTED_MODULE_0__.readFile)("file");
|
||||
_fs__WEBPACK_IMPORTED_MODULE_0__.readFile("file");
|
||||
|
||||
// import from harmony module
|
||||
|
||||
(0,_reexport_commonjs__WEBPACK_IMPORTED_MODULE_1__.readFile)("file");
|
||||
|
||||
// import a CommonJs module for side effects
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/*!***************!*\
|
||||
!*** ./fs.js ***!
|
||||
\***************/
|
||||
/*! default exports */
|
||||
/*! export readFile [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! export readFile [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_exports__ */
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
|
@ -94,12 +127,13 @@ exports.readFile = function() {};
|
|||
!*** ./reexport-commonjs.js ***!
|
||||
\******************************/
|
||||
/*! namespace exports */
|
||||
/*! export readFile [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/*! export readFile [provided] [no usage info] [missing usage info prevents renaming] -> ./fs.js .readFile */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_exports__, __webpack_require__.d, __webpack_require__.r, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "readFile": () => /* reexport safe */ _fs__WEBPACK_IMPORTED_MODULE_0__.readFile
|
||||
/* harmony export */ });
|
||||
|
@ -119,7 +153,6 @@ exports.readFile = function() {};
|
|||
!*** ./example2.js ***!
|
||||
\*********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -138,9 +171,9 @@ var namedExport = module.named;
|
|||
!*** ./harmony.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! export default [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export named [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! export default [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export named [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_exports__, __webpack_require__.r, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
|
@ -233,37 +266,10 @@ var named = "named";
|
|||
</details>
|
||||
|
||||
``` js
|
||||
(() => {
|
||||
"use strict";
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_require__.* */
|
||||
/* harmony import */ var _fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fs */ 1);
|
||||
/* harmony import */ var _reexport_commonjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reexport-commonjs */ 2);
|
||||
/* harmony import */ var _example2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./example2 */ 3);
|
||||
/* harmony import */ var _example2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_example2__WEBPACK_IMPORTED_MODULE_2__);
|
||||
// harmony module
|
||||
|
||||
// import from CommonJS module
|
||||
|
||||
|
||||
|
||||
_fs__WEBPACK_IMPORTED_MODULE_0__.readFile("file");
|
||||
(0,_fs__WEBPACK_IMPORTED_MODULE_0__.readFile)("file");
|
||||
_fs__WEBPACK_IMPORTED_MODULE_0__.readFile("file");
|
||||
|
||||
// import from harmony module
|
||||
|
||||
(0,_reexport_commonjs__WEBPACK_IMPORTED_MODULE_1__.readFile)("file");
|
||||
|
||||
// import a CommonJs module for side effects
|
||||
|
||||
|
||||
})();
|
||||
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ __webpack_require__(0);
|
||||
/******/ // This entry module used 'exports' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -273,72 +279,29 @@ _fs__WEBPACK_IMPORTED_MODULE_0__.readFile("file");
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 6.79 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
asset output.js 7.19 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 1.13 KiB (javascript) 931 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 374 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./example2.js 152 bytes [built]
|
||||
[no exports used]
|
||||
harmony side effect evaluation ./example2 ./example.js 16:0-20
|
||||
./fs.js 257 bytes [built]
|
||||
[exports: readFile]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./fs ./example.js 4:0-22
|
||||
harmony side effect evaluation ./fs ./example.js 5:0-32
|
||||
harmony side effect evaluation ./fs ./example.js 6:0-28
|
||||
harmony import specifier ./fs ./example.js 7:0-11
|
||||
harmony import specifier ./fs ./example.js 8:0-8
|
||||
harmony import specifier ./fs ./example.js 9:0-12
|
||||
harmony side effect evaluation ./fs ./reexport-commonjs.js 2:0-21
|
||||
harmony export imported specifier ./fs ./reexport-commonjs.js 2:0-21
|
||||
./harmony.js 75 bytes [built]
|
||||
[exports: default, named]
|
||||
cjs require ./harmony ./example2.js 4:13-33
|
||||
./reexport-commonjs.js 301 bytes [built]
|
||||
[exports: readFile]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./reexport-commonjs ./example.js 12:0-60
|
||||
harmony import specifier ./reexport-commonjs ./example.js 13:0-9
|
||||
+ 4 hidden chunk modules
|
||||
> ./example.js main
|
||||
dependent modules 785 bytes [dependent] 4 modules
|
||||
runtime modules 931 bytes 4 modules
|
||||
./example.js 374 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 724 bytes [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 1.14 KiB (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js + 1 modules 685 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./example2.js 152 bytes [built]
|
||||
[no exports used]
|
||||
harmony side effect evaluation ./example2 ./example.js + 1 modules ./example.js 16:0-20
|
||||
./fs.js 257 bytes [built]
|
||||
[exports: readFile]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./fs ./example.js + 1 modules ./example.js 4:0-22
|
||||
harmony side effect evaluation ./fs ./example.js + 1 modules ./example.js 5:0-32
|
||||
harmony side effect evaluation ./fs ./example.js + 1 modules ./example.js 6:0-28
|
||||
harmony import specifier ./fs ./example.js + 1 modules ./example.js 7:0-11
|
||||
harmony import specifier ./fs ./example.js + 1 modules ./example.js 8:0-8
|
||||
harmony import specifier ./fs ./example.js + 1 modules ./example.js 9:0-12
|
||||
harmony side effect evaluation ./fs ./example.js + 1 modules ./reexport-commonjs.js 2:0-21
|
||||
harmony export imported specifier ./fs ./example.js + 1 modules ./reexport-commonjs.js 2:0-21
|
||||
./harmony.js 75 bytes [built]
|
||||
[exports: default, named]
|
||||
cjs require ./harmony ./example2.js 4:13-33
|
||||
+ 3 hidden chunk modules
|
||||
asset output.js 724 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 1.13 KiB (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 484 bytes [dependent] 3 modules
|
||||
runtime modules 668 bytes 3 modules
|
||||
./example.js + 1 modules 675 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -26,7 +26,7 @@ module.exports = {
|
|||
exports["MyLibrary"] = factory();
|
||||
else
|
||||
root["MyLibrary"] = factory();
|
||||
})(window, function() {
|
||||
})(self, function() {
|
||||
return /******/ (() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ var __webpack_modules__ = ([
|
||||
|
@ -35,10 +35,10 @@ return /******/ (() => { // webpackBootstrap
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! export default [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export increment [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export value [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! export default [provided] [maybe used in main (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export increment [provided] [maybe used in main (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export value [provided] [maybe used in main (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used in main (runtime-defined)] */
|
||||
/*! runtime requirements: __webpack_exports__, __webpack_require__.r, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
|
@ -135,33 +135,28 @@ function increment() {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
MyLibrary.umd.js 3.94 KiB [emitted] [name: main]
|
||||
Entrypoint main = MyLibrary.umd.js
|
||||
asset MyLibrary.umd.js 3.97 KiB [emitted] (name: main)
|
||||
chunk MyLibrary.umd.js (main) 92 bytes (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> ./example main
|
||||
./example.js 92 bytes [built]
|
||||
[exports: default, increment, value]
|
||||
entry ./example main
|
||||
used as library export
|
||||
+ 3 hidden chunk modules
|
||||
> ./example main
|
||||
runtime modules 668 bytes 3 modules
|
||||
./example.js 92 bytes [built] [code generated]
|
||||
[exports: default, increment, value]
|
||||
[used exports unknown]
|
||||
entry ./example main
|
||||
used as library export
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
MyLibrary.umd.js 819 bytes [emitted] [name: main]
|
||||
Entrypoint main = MyLibrary.umd.js
|
||||
chunk MyLibrary.umd.js (main) 92 bytes (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> ./example main
|
||||
./example.js 92 bytes [built]
|
||||
[exports: default, increment, value]
|
||||
entry ./example main
|
||||
used as library export
|
||||
+ 3 hidden chunk modules
|
||||
asset MyLibrary.umd.js 817 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) MyLibrary.umd.js (main) 92 bytes (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> ./example main
|
||||
runtime modules 668 bytes 3 modules
|
||||
./example.js 92 bytes [built] [code generated]
|
||||
[exports: default, increment, value]
|
||||
entry ./example main
|
||||
used as library export
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -53,24 +53,44 @@ export { add as reexportedAdd, multiply as reexportedMultiply } from "./math";
|
|||
/******/ (() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 0 */
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math */ 1);
|
||||
/* harmony import */ var _library__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./library */ 2);
|
||||
|
||||
|
||||
|
||||
(0,_math__WEBPACK_IMPORTED_MODULE_0__.add)(1, 2);
|
||||
_library__WEBPACK_IMPORTED_MODULE_1__.reexportedMultiply(1, 2);
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/*!*****************!*\
|
||||
!*** ./math.js ***!
|
||||
\*****************/
|
||||
/*! namespace exports */
|
||||
/*! export add [provided] [used] [could be renamed] */
|
||||
/*! export list [provided] [unused] [could be renamed] */
|
||||
/*! export multiply [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/*! export add [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export list [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export multiply [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "add": () => /* binding */ add,
|
||||
/* harmony export */ "multiply": () => /* binding */ multiply
|
||||
/* harmony export */ "multiply": () => /* binding */ multiply,
|
||||
/* harmony export */ "list": () => /* binding */ list
|
||||
/* harmony export */ });
|
||||
/* unused harmony export list */
|
||||
function add() {
|
||||
var sum = 0, i = 0, args = arguments, l = args.length;
|
||||
while (i < l) {
|
||||
|
@ -98,16 +118,21 @@ function list() {
|
|||
!*** ./library.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! export a [provided] [unused] [could be renamed] */
|
||||
/*! export b [provided] [unused] [could be renamed] */
|
||||
/*! export c [provided] [unused] [could be renamed] */
|
||||
/*! export reexportedAdd [provided] [unused] [could be renamed] */
|
||||
/*! export reexportedMultiply [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/*! export a [provided] [no usage info] [missing usage info prevents renaming] -> ./abc.js .a */
|
||||
/*! export b [provided] [no usage info] [missing usage info prevents renaming] -> ./abc.js .b */
|
||||
/*! export c [provided] [no usage info] [missing usage info prevents renaming] -> ./abc.js .c */
|
||||
/*! export reexportedAdd [provided] [no usage info] [missing usage info prevents renaming] -> ./math.js .add */
|
||||
/*! export reexportedMultiply [provided] [no usage info] [missing usage info prevents renaming] -> ./math.js .multiply */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_exports__, __webpack_require__.d, __webpack_require__.r, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "a": () => /* reexport safe */ _abc__WEBPACK_IMPORTED_MODULE_0__.a,
|
||||
/* harmony export */ "b": () => /* reexport safe */ _abc__WEBPACK_IMPORTED_MODULE_0__.b,
|
||||
/* harmony export */ "c": () => /* reexport safe */ _abc__WEBPACK_IMPORTED_MODULE_0__.c,
|
||||
/* harmony export */ "reexportedAdd": () => /* reexport safe */ _math__WEBPACK_IMPORTED_MODULE_1__.add,
|
||||
/* harmony export */ "reexportedMultiply": () => /* reexport safe */ _math__WEBPACK_IMPORTED_MODULE_1__.multiply
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _abc__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abc */ 3);
|
||||
|
@ -121,14 +146,19 @@ function list() {
|
|||
!*** ./abc.js ***!
|
||||
\****************/
|
||||
/*! namespace exports */
|
||||
/*! export a [provided] [unused] [could be renamed] */
|
||||
/*! export b [provided] [unused] [could be renamed] */
|
||||
/*! export c [provided] [unused] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/*! export a [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export b [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export c [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
/* unused harmony exports a, b, c */
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "a": () => /* binding */ a,
|
||||
/* harmony export */ "b": () => /* binding */ b,
|
||||
/* harmony export */ "c": () => /* binding */ c
|
||||
/* harmony export */ });
|
||||
function a() { console.log("a"); }
|
||||
function b() { console.log("b"); }
|
||||
function c() { console.log("c"); }
|
||||
|
@ -183,29 +213,27 @@ function c() { console.log("c"); }
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // 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 });
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
``` js
|
||||
(() => {
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
/* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math */ 1);
|
||||
/* harmony import */ var _library__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./library */ 2);
|
||||
|
||||
|
||||
|
||||
(0,_math__WEBPACK_IMPORTED_MODULE_0__.add)(1, 2);
|
||||
_library__WEBPACK_IMPORTED_MODULE_1__.reexportedMultiply(1, 2);
|
||||
|
||||
})();
|
||||
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ __webpack_require__(0);
|
||||
/******/ // This entry module used 'exports' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -213,7 +241,7 @@ _library__WEBPACK_IMPORTED_MODULE_1__.reexportedMultiply(1, 2);
|
|||
# dist/output.js
|
||||
|
||||
```javascript
|
||||
(()=>{"use strict";var r,e,t={169:(r,e,t)=>{},345:(r,e,t)=>{t.d(e,{n:()=>n.Jp});t(169);var n=t(451)},451:(r,e,t)=>{function n(){for(var r=0,e=0,t=arguments,n=t.length;e<n;)r+=t[e++];return r}function o(){for(var r=1,e=0,t=arguments,n=t.length;e<n;)r*=t[e++];return r}t.d(e,{IH:()=>n,Jp:()=>o})}},n={};function o(r){if(n[r])return n[r].exports;var e=n[r]={exports:{}};return t[r](e,e.exports,o),e.exports}o.d=(r,e)=>{for(var t in e)o.o(e,t)&&!o.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},o.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),r=o(451),e=o(345),(0,r.IH)(1,2),e.n(1,2)})();
|
||||
(()=>{"use strict";var r,e,t={169:(r,e,t)=>{},345:(r,e,t)=>{t.d(e,{n:()=>n.Jp}),t(169);var n=t(451)},451:(r,e,t)=>{function n(){for(var r=0,e=0,t=arguments,n=t.length;e<n;)r+=t[e++];return r}function o(){for(var r=1,e=0,t=arguments,n=t.length;e<n;)r*=t[e++];return r}t.d(e,{IH:()=>n,Jp:()=>o})}},n={};function o(r){if(n[r])return n[r].exports;var e=n[r]={exports:{}};return t[r](e,e.exports,o),e.exports}o.d=(r,e)=>{for(var t in e)o.o(e,t)&&!o.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},o.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),r=o(451),e=o(345),(0,r.IH)(1,2),e.n(1,2)})();
|
||||
```
|
||||
|
||||
# Info
|
||||
|
@ -221,73 +249,29 @@ _library__WEBPACK_IMPORTED_MODULE_1__.reexportedMultiply(1, 2);
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 5.09 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 698 bytes (javascript) 394 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./abc.js 126 bytes [built]
|
||||
[exports: a, b, c]
|
||||
[no exports used]
|
||||
harmony side effect evaluation ./abc ./library.js 1:0-32
|
||||
[inactive] harmony export imported specifier ./abc ./library.js 1:0-32
|
||||
[inactive] harmony export imported specifier ./abc ./library.js 1:0-32
|
||||
[inactive] harmony export imported specifier ./abc ./library.js 1:0-32
|
||||
./example.js 114 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./library.js 111 bytes [built]
|
||||
[exports: a, b, c, reexportedAdd, reexportedMultiply]
|
||||
[only some exports used: reexportedMultiply]
|
||||
harmony side effect evaluation ./library ./example.js 2:0-37
|
||||
harmony import specifier ./library ./example.js 5:0-26
|
||||
./math.js 347 bytes [built]
|
||||
[exports: add, list, multiply]
|
||||
[only some exports used: add, multiply]
|
||||
harmony side effect evaluation ./math ./example.js 1:0-29
|
||||
harmony import specifier ./math ./example.js 4:0-3
|
||||
harmony side effect evaluation ./math ./library.js 2:0-78
|
||||
[inactive] harmony export imported specifier ./math ./library.js 2:0-78
|
||||
harmony export imported specifier ./math ./library.js 2:0-78
|
||||
+ 2 hidden chunk modules
|
||||
asset output.js 7.06 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 698 bytes (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 584 bytes [dependent] 3 modules
|
||||
runtime modules 668 bytes 3 modules
|
||||
./example.js 114 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 603 bytes [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 698 bytes (javascript) 394 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./abc.js 126 bytes [built]
|
||||
[exports: a, b, c]
|
||||
[no exports used]
|
||||
harmony side effect evaluation ./abc ./library.js 1:0-32
|
||||
[inactive] harmony export imported specifier ./abc ./library.js 1:0-32
|
||||
[inactive] harmony export imported specifier ./abc ./library.js 1:0-32
|
||||
[inactive] harmony export imported specifier ./abc ./library.js 1:0-32
|
||||
./example.js 114 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./library.js 111 bytes [built]
|
||||
[exports: a, b, c, reexportedAdd, reexportedMultiply]
|
||||
[only some exports used: reexportedMultiply]
|
||||
harmony side effect evaluation ./library ./example.js 2:0-37
|
||||
harmony import specifier ./library ./example.js 5:0-26
|
||||
./math.js 347 bytes [built]
|
||||
[exports: add, list, multiply]
|
||||
[only some exports used: add, multiply]
|
||||
harmony side effect evaluation ./math ./example.js 1:0-29
|
||||
harmony import specifier ./math ./example.js 4:0-3
|
||||
harmony side effect evaluation ./math ./library.js 2:0-78
|
||||
[inactive] harmony export imported specifier ./math ./library.js 2:0-78
|
||||
harmony export imported specifier ./math ./library.js 2:0-78
|
||||
+ 2 hidden chunk modules
|
||||
asset output.js 603 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 698 bytes (javascript) 394 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 584 bytes [dependent] 3 modules
|
||||
runtime modules 394 bytes 2 modules
|
||||
./example.js 114 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -26,17 +26,39 @@ export function increment(val) {
|
|||
/******/ (() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 0 */
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, __webpack_require__.e, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _increment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./increment */ 1);
|
||||
|
||||
var a = 1;
|
||||
(0,_increment__WEBPACK_IMPORTED_MODULE_0__.increment)(a); // 2
|
||||
|
||||
// async loading
|
||||
__webpack_require__.e(/*! import() */ 35).then(__webpack_require__.bind(__webpack_require__, /*! ./async-loaded */ 3)).then(function(asyncLoaded) {
|
||||
console.log(asyncLoaded);
|
||||
});
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/*!**********************!*\
|
||||
!*** ./increment.js ***!
|
||||
\**********************/
|
||||
/*! namespace exports */
|
||||
/*! export increment [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/*! export increment [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "increment": () => /* binding */ increment
|
||||
/* harmony export */ });
|
||||
|
@ -53,11 +75,12 @@ function increment(val) {
|
|||
!*** ./math.js ***!
|
||||
\*****************/
|
||||
/*! namespace exports */
|
||||
/*! export add [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/*! export add [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "add": () => /* binding */ add
|
||||
/* harmony export */ });
|
||||
|
@ -144,6 +167,52 @@ function add() {
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
|
@ -162,6 +231,8 @@ function add() {
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -188,49 +259,24 @@ function add() {
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -247,11 +293,8 @@ function add() {
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -268,17 +311,16 @@ function add() {
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -287,25 +329,10 @@ function add() {
|
|||
</details>
|
||||
|
||||
``` js
|
||||
(() => {
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.* */
|
||||
/* harmony import */ var _increment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./increment */ 1);
|
||||
|
||||
var a = 1;
|
||||
(0,_increment__WEBPACK_IMPORTED_MODULE_0__.increment)(a); // 2
|
||||
|
||||
// async loading
|
||||
__webpack_require__.e(/*! import() */ 35).then(__webpack_require__.bind(__webpack_require__, /*! ./async-loaded */ 3)).then(function(asyncLoaded) {
|
||||
console.log(asyncLoaded);
|
||||
});
|
||||
|
||||
})();
|
||||
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ __webpack_require__(0);
|
||||
/******/ // This entry module used 'exports' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -315,55 +342,41 @@ __webpack_require__.e(/*! import() */ 35).then(__webpack_require__.bind(__webpac
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
35.output.js 793 bytes [emitted]
|
||||
output.js 10.4 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
asset output.js 11.8 KiB [emitted] (name: main)
|
||||
asset 35.output.js 772 bytes [emitted]
|
||||
chunk 35.output.js 24 bytes [rendered]
|
||||
> ./async-loaded ./example.js 6:0-24
|
||||
./async-loaded.js 24 bytes [built]
|
||||
[exports: answer]
|
||||
import() ./async-loaded ./example.js 6:0-24
|
||||
chunk output.js (main) 400 bytes (javascript) 4.76 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 175 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./increment.js 90 bytes [built]
|
||||
[exports: increment]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./increment ./example.js 1:0-47
|
||||
harmony import specifier ./increment ./example.js 3:0-3
|
||||
./math.js 135 bytes [built]
|
||||
[exports: add]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./math ./increment.js 1:0-29
|
||||
harmony import specifier ./math ./increment.js 3:11-14
|
||||
+ 7 hidden chunk modules
|
||||
> ./async-loaded ./example.js 6:0-24
|
||||
./async-loaded.js 24 bytes [built] [code generated]
|
||||
[exports: answer]
|
||||
[used exports unknown]
|
||||
import() ./async-loaded ./example.js 6:0-24
|
||||
chunk output.js (main) 400 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.42 KiB 8 modules
|
||||
dependent modules 225 bytes [dependent] 2 modules
|
||||
./example.js 175 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
35.output.js 126 bytes [emitted]
|
||||
output.js 1.67 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk 35.output.js 24 bytes [rendered]
|
||||
> ./async-loaded ./example.js 6:0-24
|
||||
./async-loaded.js 24 bytes [built]
|
||||
[exports: answer]
|
||||
import() ./async-loaded ./example.js + 2 modules ./example.js 6:0-24
|
||||
chunk output.js (main) 400 bytes (javascript) 4.76 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js + 2 modules 400 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 7 hidden chunk modules
|
||||
asset output.js 1.98 KiB [emitted] [minimized] (name: main)
|
||||
asset 35.output.js 122 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) 35.output.js 24 bytes [rendered]
|
||||
> ./async-loaded ./example.js 6:0-24
|
||||
./async-loaded.js 24 bytes [built] [code generated]
|
||||
[exports: answer]
|
||||
import() ./async-loaded ./example.js + 2 modules ./example.js 6:0-24
|
||||
chunk (runtime: main) output.js (main) 400 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.42 KiB 8 modules
|
||||
./example.js + 2 modules 400 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -46,58 +46,45 @@ module.exports = {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
407aff58e6b1ca379c9a.js 118 KiB [emitted] [immutable] [id hint: vendors]
|
||||
c9d5339df313a5d6a02b.js 20.4 KiB [emitted] [immutable] [name: main]
|
||||
e684ff3ecaf2754af9cb.js 7.21 KiB [emitted] [immutable]
|
||||
Entrypoint main = c9d5339df313a5d6a02b.js
|
||||
chunk c9d5339df313a5d6a02b.js (main) 8.8 KiB (javascript) 4.24 KiB (runtime) [entry] [rendered]
|
||||
> ./example main
|
||||
../../node_modules/object-assign/index.js 2.06 KiB [built]
|
||||
../../node_modules/react/cjs/react.production.min.js 6.52 KiB [built]
|
||||
../../node_modules/react/index.js 190 bytes [built]
|
||||
./example.js 42 bytes [built]
|
||||
+ 5 hidden chunk modules
|
||||
chunk e684ff3ecaf2754af9cb.js 6.45 KiB [rendered]
|
||||
> react-dom ./example.js 2:0-22
|
||||
../../node_modules/react-dom/index.js 1.33 KiB [built]
|
||||
../../node_modules/scheduler/cjs/scheduler.production.min.js 4.92 KiB [built]
|
||||
../../node_modules/scheduler/index.js 198 bytes [built]
|
||||
chunk 407aff58e6b1ca379c9a.js (id hint: vendors) 116 KiB [rendered] [recorded] aggressive splitted, reused as split chunk (cache group: defaultVendors)
|
||||
> react-dom ./example.js 2:0-22
|
||||
../../node_modules/react-dom/cjs/react-dom.production.min.js 116 KiB [built]
|
||||
asset 47ea1b166a82a1b5f43d.js 118 KiB [emitted] [immutable] (id hint: vendors)
|
||||
asset 532c4ecc9904099f20f1.js 25.7 KiB [emitted] [immutable] (name: main)
|
||||
asset 5526ff367fe4665c9c7e.js 15.5 KiB [emitted] [immutable]
|
||||
chunk 532c4ecc9904099f20f1.js (main) 8.8 KiB (javascript) 4.89 KiB (runtime) [entry] [rendered]
|
||||
> ./example main
|
||||
runtime modules 4.89 KiB 6 modules
|
||||
dependent modules 8.76 KiB [dependent] 3 modules
|
||||
./example.js 42 bytes [built] [code generated]
|
||||
chunk 5526ff367fe4665c9c7e.js 6.45 KiB [rendered]
|
||||
> react-dom ./example.js 2:0-22
|
||||
dependent modules 4.92 KiB [dependent] 1 module
|
||||
../../node_modules/react-dom/index.js 1.33 KiB [built] [code generated]
|
||||
../../node_modules/scheduler/index.js 198 bytes [built] [code generated]
|
||||
chunk 47ea1b166a82a1b5f43d.js (id hint: vendors) 116 KiB [rendered] [recorded] aggressive splitted, reused as split chunk (cache group: defaultVendors)
|
||||
> react-dom ./example.js 2:0-22
|
||||
../../node_modules/react-dom/cjs/react-dom.production.min.js 116 KiB [built] [code generated]
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
33fc105596f0ad773952.js 8.47 KiB [emitted] [immutable] [name: main]
|
||||
33fc105596f0ad773952.js.LICENSE.txt 295 bytes [emitted]
|
||||
4b2f50aca0f61171332b.js 114 KiB [emitted] [immutable] [id hint: vendors]
|
||||
4b2f50aca0f61171332b.js.LICENSE.txt 247 bytes [emitted]
|
||||
9eb90b095fa7f3282f24.js 4.92 KiB [emitted] [immutable]
|
||||
9eb90b095fa7f3282f24.js.LICENSE.txt 246 bytes [emitted]
|
||||
Entrypoint main = 33fc105596f0ad773952.js
|
||||
chunk 33fc105596f0ad773952.js (main) 8.8 KiB (javascript) 4.24 KiB (runtime) [entry] [rendered]
|
||||
> ./example main
|
||||
../../node_modules/object-assign/index.js 2.06 KiB [built]
|
||||
../../node_modules/react/cjs/react.production.min.js 6.52 KiB [built]
|
||||
../../node_modules/react/index.js 190 bytes [built]
|
||||
./example.js 42 bytes [built]
|
||||
+ 5 hidden chunk modules
|
||||
chunk 9eb90b095fa7f3282f24.js 6.45 KiB [rendered]
|
||||
> react-dom ./example.js 2:0-22
|
||||
../../node_modules/react-dom/index.js 1.33 KiB [built]
|
||||
../../node_modules/scheduler/cjs/scheduler.production.min.js 4.92 KiB [built]
|
||||
../../node_modules/scheduler/index.js 198 bytes [built]
|
||||
chunk 4b2f50aca0f61171332b.js (id hint: vendors) 116 KiB [rendered] [recorded] aggressive splitted, reused as split chunk (cache group: defaultVendors)
|
||||
> react-dom ./example.js 2:0-22
|
||||
../../node_modules/react-dom/cjs/react-dom.production.min.js 116 KiB [built]
|
||||
asset 72aa363ce76bb633931d.js 114 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
|
||||
asset 38dc5da5a9157d296707.js 8.78 KiB [emitted] [immutable] [minimized] (name: main) 1 related asset
|
||||
asset b0b6aefd6d463ae1bef1.js 4.92 KiB [emitted] [immutable] [minimized] 1 related asset
|
||||
chunk (runtime: main) 38dc5da5a9157d296707.js (main) 8.8 KiB (javascript) 4.9 KiB (runtime) [entry] [rendered]
|
||||
> ./example main
|
||||
runtime modules 4.9 KiB 6 modules
|
||||
dependent modules 8.76 KiB [dependent] 3 modules
|
||||
./example.js 42 bytes [built] [code generated]
|
||||
chunk (runtime: main) b0b6aefd6d463ae1bef1.js 6.45 KiB [rendered]
|
||||
> react-dom ./example.js 2:0-22
|
||||
dependent modules 4.92 KiB [dependent] 1 module
|
||||
../../node_modules/react-dom/index.js 1.33 KiB [built] [code generated]
|
||||
../../node_modules/scheduler/index.js 198 bytes [built] [code generated]
|
||||
chunk (runtime: main) 72aa363ce76bb633931d.js (id hint: vendors) 116 KiB [rendered] [recorded] aggressive splitted, reused as split chunk (cache group: defaultVendors)
|
||||
> react-dom ./example.js 2:0-22
|
||||
../../node_modules/react-dom/cjs/react-dom.production.min.js 116 KiB [built] [code generated]
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Records
|
||||
|
@ -106,7 +93,7 @@ chunk 4b2f50aca0f61171332b.js (id hint: vendors) 116 KiB [rendered] [recorded] a
|
|||
{
|
||||
"aggressiveSplits": [
|
||||
{
|
||||
"hash": "407aff58e6b1ca379c9aa5f6e6df20cc",
|
||||
"hash": "47ea1b166a82a1b5f43d12447a1b119e",
|
||||
"id": 2,
|
||||
"modules": [
|
||||
"../../node_modules/react-dom/cjs/react-dom.production.min.js"
|
||||
|
|
|
@ -86,16 +86,16 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
|
|||
|
||||
# dist/router_js.bundle.js
|
||||
|
||||
``` javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["router_js"],[
|
||||
```javascript
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([["router_js"],[
|
||||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!*******************!*\
|
||||
!*** ./render.js ***!
|
||||
\*******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function(page) {
|
||||
|
@ -109,7 +109,6 @@ module.exports = function(page) {
|
|||
!*** ./router.js ***!
|
||||
\*******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -135,11 +134,11 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
|
|||
|
||||
/***/ }),
|
||||
/* 4 */
|
||||
/*!******************************************************************!*\
|
||||
!*** ./ lazy ^\.\/.*Page$ chunkName: [request] namespace object ***!
|
||||
\******************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*!*******************************************************************!*\
|
||||
!*** .// lazy ^\.\/.*Page$ chunkName: [request] namespace object ***!
|
||||
\*******************************************************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module, __webpack_require__.o, __webpack_require__, __webpack_require__.e, __webpack_require__.t, __webpack_require__.* */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -185,7 +184,6 @@ module.exports = webpackAsyncContext;
|
|||
!*** ./aEntry.js ***!
|
||||
\*******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -281,7 +279,7 @@ render(__webpack_require__(/*! ./aPage */ 2));
|
|||
/******/ // This function allow to reference async chunks
|
||||
/******/ __webpack_require__.u = (chunkId) => {
|
||||
/******/ // return url for filenames based on template
|
||||
/******/ return "" + chunkId + ".chunk.js";
|
||||
/******/ return "" + chunkId + ".bundle.js";
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
|
@ -290,6 +288,52 @@ render(__webpack_require__(/*! ./aPage */ 2));
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
|
@ -308,6 +352,8 @@ render(__webpack_require__(/*! ./aPage */ 2));
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -337,49 +383,24 @@ render(__webpack_require__(/*! ./aPage */ 2));
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -423,17 +444,14 @@ render(__webpack_require__(/*! ./aPage */ 2));
|
|||
/******/ __webpack_require__.x = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice();
|
||||
/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]);
|
||||
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime, executeModules] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -450,7 +468,7 @@ render(__webpack_require__(/*! ./aPage */ 2));
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
|
@ -460,12 +478,11 @@ render(__webpack_require__(/*! ./aPage */ 2));
|
|||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -480,18 +497,18 @@ render(__webpack_require__(/*! ./aPage */ 2));
|
|||
;
|
||||
```
|
||||
|
||||
# dist/aPage.chunk.js
|
||||
# dist/aPage.bundle.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["aPage"],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([["aPage"],{
|
||||
|
||||
/***/ 2:
|
||||
/*!******************!*\
|
||||
!*** ./aPage.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -508,121 +525,109 @@ module.exports = function() {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
aPage.chunk.js 410 bytes [emitted] [name: aPage]
|
||||
bPage.chunk.js 410 bytes [emitted] [name: bPage]
|
||||
pageA.bundle.js 11.4 KiB [emitted] [name: pageA]
|
||||
pageB.bundle.js 11.4 KiB [emitted] [name: pageB]
|
||||
router_js.bundle.js 2.56 KiB [emitted]
|
||||
Entrypoint pageA = router_js.bundle.js aPage.chunk.js pageA.bundle.js
|
||||
Entrypoint pageB = router_js.bundle.js bPage.chunk.js pageB.bundle.js
|
||||
chunk aPage.chunk.js (aPage) 59 bytes [initial] [rendered] reused as split chunk (cache group: default)
|
||||
> ./aPage ./ lazy ^\.\/.*Page$ chunkName: [request] namespace object ./aPage
|
||||
> ./aEntry pageA
|
||||
> ./router pageA
|
||||
./aPage.js 59 bytes [built]
|
||||
cjs require ./aPage ./aEntry.js 3:7-25
|
||||
cjs self exports reference ./aPage.js 1:0-14
|
||||
context element ./aPage ./ lazy ^\.\/.*Page$ chunkName: [request] namespace object ./aPage
|
||||
chunk bPage.chunk.js (bPage) 59 bytes [initial] [rendered] reused as split chunk (cache group: default)
|
||||
> ./bPage ./ lazy ^\.\/.*Page$ chunkName: [request] namespace object ./bPage
|
||||
> ./bEntry pageB
|
||||
> ./router pageB
|
||||
./bPage.js 59 bytes [built]
|
||||
cjs require ./bPage ./bEntry.js 3:7-25
|
||||
cjs self exports reference ./bPage.js 1:0-14
|
||||
context element ./bPage ./ lazy ^\.\/.*Page$ chunkName: [request] namespace object ./bPage
|
||||
chunk pageA.bundle.js (pageA) 87 bytes (javascript) 6.64 KiB (runtime) [entry] [rendered]
|
||||
> ./aEntry pageA
|
||||
> ./router pageA
|
||||
./aEntry.js 87 bytes [built]
|
||||
[no exports used]
|
||||
entry ./aEntry pageA
|
||||
+ 8 hidden chunk modules
|
||||
chunk pageB.bundle.js (pageB) 87 bytes (javascript) 6.64 KiB (runtime) [entry] [rendered]
|
||||
> ./bEntry pageB
|
||||
> ./router pageB
|
||||
./bEntry.js 87 bytes [built]
|
||||
[no exports used]
|
||||
entry ./bEntry pageB
|
||||
+ 8 hidden chunk modules
|
||||
asset pageB.bundle.js 12.3 KiB [emitted] (name: pageB)
|
||||
asset pageA.bundle.js 12.3 KiB [emitted] (name: pageA)
|
||||
asset router_js.bundle.js 2.44 KiB [emitted]
|
||||
asset aPage.bundle.js 392 bytes [emitted] (name: aPage)
|
||||
asset bPage.bundle.js 392 bytes [emitted] (name: bPage)
|
||||
Entrypoint pageA 15.1 KiB = router_js.bundle.js 2.44 KiB aPage.bundle.js 392 bytes pageA.bundle.js 12.3 KiB
|
||||
Entrypoint pageB 15.1 KiB = router_js.bundle.js 2.44 KiB bPage.bundle.js 392 bytes pageB.bundle.js 12.3 KiB
|
||||
chunk aPage.bundle.js (aPage) 59 bytes [initial] [rendered] reused as split chunk (cache group: default)
|
||||
> ./aPage .// lazy ^\.\/.*Page$ chunkName: [request] namespace object ./aPage
|
||||
> ./aEntry pageA
|
||||
> ./router pageA
|
||||
./aPage.js 59 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./aPage ./aEntry.js 3:7-25
|
||||
cjs self exports reference ./aPage.js 1:0-14
|
||||
context element ./aPage .// lazy ^\.\/.*Page$ chunkName: [request] namespace object ./aPage
|
||||
chunk bPage.bundle.js (bPage) 59 bytes [initial] [rendered] reused as split chunk (cache group: default)
|
||||
> ./bPage .// lazy ^\.\/.*Page$ chunkName: [request] namespace object ./bPage
|
||||
> ./bEntry pageB
|
||||
> ./router pageB
|
||||
./bPage.js 59 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./bPage ./bEntry.js 3:7-25
|
||||
cjs self exports reference ./bPage.js 1:0-14
|
||||
context element ./bPage .// lazy ^\.\/.*Page$ chunkName: [request] namespace object ./bPage
|
||||
chunk pageA.bundle.js (pageA) 87 bytes (javascript) 7.32 KiB (runtime) [entry] [rendered]
|
||||
> ./aEntry pageA
|
||||
> ./router pageA
|
||||
runtime modules 7.32 KiB 9 modules
|
||||
./aEntry.js 87 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./aEntry pageA
|
||||
chunk pageB.bundle.js (pageB) 87 bytes (javascript) 7.32 KiB (runtime) [entry] [rendered]
|
||||
> ./bEntry pageB
|
||||
> ./router pageB
|
||||
runtime modules 7.32 KiB 9 modules
|
||||
./bEntry.js 87 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./bEntry pageB
|
||||
chunk router_js.bundle.js 951 bytes [initial] [rendered] split chunk (cache group: default)
|
||||
> ./aEntry pageA
|
||||
> ./router pageA
|
||||
> ./bEntry pageB
|
||||
> ./router pageB
|
||||
./ lazy ^\.\/.*Page$ chunkName: [request] namespace object 160 bytes [built]
|
||||
import() context lazy . ./router.js 15:1-59
|
||||
./render.js 58 bytes [built]
|
||||
cjs require ./render ./aEntry.js 2:13-32
|
||||
cjs require ./render ./bEntry.js 2:13-32
|
||||
cjs self exports reference ./render.js 1:0-14
|
||||
cjs require ./render ./router.js 1:13-32
|
||||
./router.js 733 bytes [built]
|
||||
[no exports used]
|
||||
entry ./router pageA
|
||||
entry ./router pageB
|
||||
> ./aEntry pageA
|
||||
> ./router pageA
|
||||
> ./bEntry pageB
|
||||
> ./router pageB
|
||||
dependent modules 218 bytes [dependent] 2 modules
|
||||
./router.js 733 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./router pageA
|
||||
entry ./router pageB
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
aPage.chunk.js 121 bytes [emitted] [name: aPage]
|
||||
bPage.chunk.js 121 bytes [emitted] [name: bPage]
|
||||
pageA.bundle.js 2.17 KiB [emitted] [name: pageA]
|
||||
pageB.bundle.js 2.17 KiB [emitted] [name: pageB]
|
||||
router_js.bundle.js 541 bytes [emitted]
|
||||
Entrypoint pageA = router_js.bundle.js aPage.chunk.js pageA.bundle.js
|
||||
Entrypoint pageB = router_js.bundle.js bPage.chunk.js pageB.bundle.js
|
||||
chunk aPage.chunk.js (aPage) 59 bytes [initial] [rendered] reused as split chunk (cache group: default)
|
||||
> ./aPage ./ lazy ^\.\/.*Page$ chunkName: [request] namespace object ./aPage
|
||||
> ./aEntry pageA
|
||||
> ./router pageA
|
||||
./aPage.js 59 bytes [built]
|
||||
cjs require ./aPage ./aEntry.js 3:7-25
|
||||
cjs self exports reference ./aPage.js 1:0-14
|
||||
context element ./aPage ./ lazy ^\.\/.*Page$ chunkName: [request] namespace object ./aPage
|
||||
chunk bPage.chunk.js (bPage) 59 bytes [initial] [rendered] reused as split chunk (cache group: default)
|
||||
> ./bPage ./ lazy ^\.\/.*Page$ chunkName: [request] namespace object ./bPage
|
||||
> ./bEntry pageB
|
||||
> ./router pageB
|
||||
./bPage.js 59 bytes [built]
|
||||
cjs require ./bPage ./bEntry.js 3:7-25
|
||||
cjs self exports reference ./bPage.js 1:0-14
|
||||
context element ./bPage ./ lazy ^\.\/.*Page$ chunkName: [request] namespace object ./bPage
|
||||
chunk pageA.bundle.js (pageA) 87 bytes (javascript) 6.65 KiB (runtime) [entry] [rendered]
|
||||
> ./aEntry pageA
|
||||
> ./router pageA
|
||||
./aEntry.js 87 bytes [built]
|
||||
[no exports used]
|
||||
entry ./aEntry pageA
|
||||
+ 8 hidden chunk modules
|
||||
chunk pageB.bundle.js (pageB) 87 bytes (javascript) 6.65 KiB (runtime) [entry] [rendered]
|
||||
> ./bEntry pageB
|
||||
> ./router pageB
|
||||
./bEntry.js 87 bytes [built]
|
||||
[no exports used]
|
||||
entry ./bEntry pageB
|
||||
+ 8 hidden chunk modules
|
||||
chunk router_js.bundle.js 951 bytes [initial] [rendered] split chunk (cache group: default)
|
||||
> ./aEntry pageA
|
||||
> ./router pageA
|
||||
> ./bEntry pageB
|
||||
> ./router pageB
|
||||
./ lazy ^\.\/.*Page$ chunkName: [request] namespace object 160 bytes [built]
|
||||
import() context lazy . ./router.js 15:1-59
|
||||
./render.js 58 bytes [built]
|
||||
cjs require ./render ./aEntry.js 2:13-32
|
||||
cjs require ./render ./bEntry.js 2:13-32
|
||||
cjs self exports reference ./render.js 1:0-14
|
||||
cjs require ./render ./router.js 1:13-32
|
||||
./router.js 733 bytes [built]
|
||||
[no exports used]
|
||||
entry ./router pageA
|
||||
entry ./router pageB
|
||||
asset pageA.bundle.js 2.48 KiB [emitted] [minimized] (name: pageA)
|
||||
asset pageB.bundle.js 2.48 KiB [emitted] [minimized] (name: pageB)
|
||||
asset router_js.bundle.js 537 bytes [emitted] [minimized]
|
||||
asset aPage.bundle.js 117 bytes [emitted] [minimized] (name: aPage)
|
||||
asset bPage.bundle.js 117 bytes [emitted] [minimized] (name: bPage)
|
||||
Entrypoint pageA 3.12 KiB = router_js.bundle.js 537 bytes aPage.bundle.js 117 bytes pageA.bundle.js 2.48 KiB
|
||||
Entrypoint pageB 3.12 KiB = router_js.bundle.js 537 bytes bPage.bundle.js 117 bytes pageB.bundle.js 2.48 KiB
|
||||
chunk (runtime: pageA, pageB) aPage.bundle.js (aPage) 59 bytes [initial] [rendered] reused as split chunk (cache group: default)
|
||||
> ./aPage .// lazy ^\.\/.*Page$ chunkName: [request] namespace object ./aPage
|
||||
> ./aEntry pageA
|
||||
> ./router pageA
|
||||
./aPage.js 59 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./aPage ./aEntry.js 3:7-25
|
||||
cjs self exports reference ./aPage.js 1:0-14
|
||||
context element ./aPage .// lazy ^\.\/.*Page$ chunkName: [request] namespace object ./aPage
|
||||
chunk (runtime: pageA, pageB) bPage.bundle.js (bPage) 59 bytes [initial] [rendered] reused as split chunk (cache group: default)
|
||||
> ./bPage .// lazy ^\.\/.*Page$ chunkName: [request] namespace object ./bPage
|
||||
> ./bEntry pageB
|
||||
> ./router pageB
|
||||
./bPage.js 59 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./bPage ./bEntry.js 3:7-25
|
||||
cjs self exports reference ./bPage.js 1:0-14
|
||||
context element ./bPage .// lazy ^\.\/.*Page$ chunkName: [request] namespace object ./bPage
|
||||
chunk (runtime: pageA) pageA.bundle.js (pageA) 87 bytes (javascript) 7.32 KiB (runtime) [entry] [rendered]
|
||||
> ./aEntry pageA
|
||||
> ./router pageA
|
||||
runtime modules 7.32 KiB 9 modules
|
||||
./aEntry.js 87 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./aEntry pageA
|
||||
chunk (runtime: pageB) pageB.bundle.js (pageB) 87 bytes (javascript) 7.32 KiB (runtime) [entry] [rendered]
|
||||
> ./bEntry pageB
|
||||
> ./router pageB
|
||||
runtime modules 7.32 KiB 9 modules
|
||||
./bEntry.js 87 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./bEntry pageB
|
||||
chunk (runtime: pageA, pageB) router_js.bundle.js 951 bytes [initial] [rendered] split chunk (cache group: default)
|
||||
> ./aEntry pageA
|
||||
> ./router pageA
|
||||
> ./bEntry pageB
|
||||
> ./router pageB
|
||||
dependent modules 218 bytes [dependent] 2 modules
|
||||
./router.js 733 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./router pageA
|
||||
entry ./router pageB
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -34,7 +34,7 @@ _{{pageA.html}}_
|
|||
|
||||
# dist/router_js.bundle.js
|
||||
|
||||
``` javascript
|
||||
```javascript
|
||||
_{{dist/router_js.bundle.js}}_
|
||||
```
|
||||
|
||||
|
@ -44,10 +44,10 @@ _{{dist/router_js.bundle.js}}_
|
|||
_{{dist/pageA.bundle.js}}_
|
||||
```
|
||||
|
||||
# dist/aPage.chunk.js
|
||||
# dist/aPage.bundle.js
|
||||
|
||||
```javascript
|
||||
_{{dist/aPage.chunk.js}}_
|
||||
_{{dist/aPage.bundle.js}}_
|
||||
```
|
||||
|
||||
# Info
|
||||
|
|
|
@ -42,9 +42,9 @@ module.exports = function(content) {
|
|||
!*** ./loader.js!./file.js ***!
|
||||
\*****************************/
|
||||
/*! default exports */
|
||||
/*! export answer [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export foo [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! export answer [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export foo [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_exports__ */
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
|
@ -57,8 +57,11 @@ exports.foo = "bar";
|
|||
!*** ../../node_modules/css-loader/dist/cjs.js!./test.css ***!
|
||||
\************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: __webpack_exports__, module, __webpack_require__, module.id */
|
||||
/*! CommonJS bailout: exports is used directly at 3:0-7 */
|
||||
/*! CommonJS bailout: exports.push(...) prevents optimization as exports is passed as call context as 5:0-12 */
|
||||
/*! CommonJS bailout: exports is used directly at 7:17-24 */
|
||||
/*! CommonJS bailout: module.exports is used directly at 7:0-14 */
|
||||
/***/ ((module, exports, __webpack_require__) => {
|
||||
|
||||
// Imports
|
||||
|
@ -76,8 +79,8 @@ module.exports = exports;
|
|||
!*** ../../node_modules/css-loader/dist/runtime/api.js ***!
|
||||
\*********************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 9:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
|
@ -218,7 +221,6 @@ function toComment(sourceMap) {
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
// use our loader
|
||||
console.dir(__webpack_require__(/*! ./loader!./file */ 1));
|
||||
|
@ -248,55 +250,25 @@ Prints in node.js (`enhanced-require example.js`) and in browser:
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 5.66 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
asset output.js 5.78 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 2.96 KiB [entry] [rendered]
|
||||
> ./example.js main
|
||||
../../node_modules/css-loader/dist/cjs.js!./test.css 272 bytes [built]
|
||||
cjs require ./test.css ./example.js 5:12-33
|
||||
cjs require !css-loader!./test.css ./example.js 6:12-45
|
||||
cjs self exports reference ../../node_modules/css-loader/dist/cjs.js!./test.css 3:0-7
|
||||
cjs self exports reference ../../node_modules/css-loader/dist/cjs.js!./test.css 5:0-7
|
||||
cjs self exports reference ../../node_modules/css-loader/dist/cjs.js!./test.css 7:0-14
|
||||
cjs self exports reference ../../node_modules/css-loader/dist/cjs.js!./test.css 7:17-24
|
||||
../../node_modules/css-loader/dist/runtime/api.js 2.46 KiB [built]
|
||||
cjs require ../../node_modules/css-loader/dist/runtime/api.js ../../node_modules/css-loader/dist/cjs.js!./test.css 2:34-94
|
||||
cjs self exports reference ../../node_modules/css-loader/dist/runtime/api.js 9:0-14
|
||||
./example.js 205 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./loader.js!./file.js 41 bytes [built]
|
||||
[exports: answer, foo]
|
||||
cjs require ./loader!./file ./example.js 2:12-38
|
||||
> ./example.js main
|
||||
dependent modules 2.76 KiB [dependent] 3 modules
|
||||
./example.js 205 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 1.18 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 2.96 KiB [entry] [rendered]
|
||||
> ./example.js main
|
||||
../../node_modules/css-loader/dist/cjs.js!./test.css 272 bytes [built]
|
||||
cjs require ./test.css ./example.js 5:12-33
|
||||
cjs require !css-loader!./test.css ./example.js 6:12-45
|
||||
cjs self exports reference ../../node_modules/css-loader/dist/cjs.js!./test.css 3:0-7
|
||||
cjs self exports reference ../../node_modules/css-loader/dist/cjs.js!./test.css 5:0-7
|
||||
cjs self exports reference ../../node_modules/css-loader/dist/cjs.js!./test.css 7:0-14
|
||||
cjs self exports reference ../../node_modules/css-loader/dist/cjs.js!./test.css 7:17-24
|
||||
../../node_modules/css-loader/dist/runtime/api.js 2.46 KiB [built]
|
||||
cjs require ../../node_modules/css-loader/dist/runtime/api.js ../../node_modules/css-loader/dist/cjs.js!./test.css 2:34-94
|
||||
cjs self exports reference ../../node_modules/css-loader/dist/runtime/api.js 9:0-14
|
||||
./example.js 205 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./loader.js!./file.js 41 bytes [built]
|
||||
[exports: answer, foo]
|
||||
cjs require ./loader!./file ./example.js 2:12-38
|
||||
asset output.js 1.17 KiB [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 2.96 KiB [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 2.76 KiB [dependent] 3 modules
|
||||
./example.js 205 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -51,100 +51,88 @@ module.exports = {
|
|||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
115.js 168 bytes [emitted] [id hint: vendors]
|
||||
402.js 115 bytes [emitted] [id hint: vendors]
|
||||
497.js 115 bytes [emitted] [id hint: vendors]
|
||||
505.js 144 bytes [emitted]
|
||||
730.js 115 bytes [emitted] [id hint: vendors]
|
||||
777.js 115 bytes [emitted] [id hint: vendors]
|
||||
833.js 168 bytes [emitted] [id hint: vendors]
|
||||
pageA.js 1.09 KiB [emitted] [name: pageA]
|
||||
pageB.js 1.16 KiB [emitted] [name: pageB]
|
||||
pageC.js 1.17 KiB [emitted] [name: pageC]
|
||||
pageD.js 1.09 KiB [emitted] [name: pageD]
|
||||
pageE.js 1.07 KiB [emitted] [name: pageE]
|
||||
pageF.js 1.09 KiB [emitted] [name: pageF]
|
||||
pageG.js 1.06 KiB [emitted] [name: pageG]
|
||||
Entrypoint pageA = 115.js 730.js 505.js pageA.js
|
||||
Entrypoint pageB = 115.js 497.js pageB.js
|
||||
Entrypoint pageC = 115.js 402.js pageC.js
|
||||
Entrypoint pageD = 777.js 833.js 505.js pageD.js
|
||||
Entrypoint pageE = 777.js 833.js pageE.js
|
||||
Entrypoint pageF = 777.js 833.js 505.js pageF.js
|
||||
Entrypoint pageG = 777.js pageG.js
|
||||
chunk 115.js (id hint: vendors) 86 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
|
||||
> ./pages/a pageA
|
||||
> ./pages/b pageB
|
||||
> ./pages/c pageC
|
||||
./node_modules/m1.js 43 bytes [built]
|
||||
./node_modules/m2.js 43 bytes [built]
|
||||
chunk pageB.js (pageB) 199 bytes (javascript) 3.16 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/b pageB
|
||||
./pages/b.js 106 bytes [built]
|
||||
./stuff/s1.js 31 bytes [built]
|
||||
./stuff/s7.js 31 bytes [built]
|
||||
./stuff/s8.js 31 bytes [built]
|
||||
+ 4 hidden chunk modules
|
||||
chunk pageC.js (pageC) 199 bytes (javascript) 3.16 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/c pageC
|
||||
./pages/c.js 106 bytes [built]
|
||||
./stuff/s4.js 31 bytes [built]
|
||||
./stuff/s5.js 31 bytes [built]
|
||||
./stuff/s6.js 31 bytes [built]
|
||||
+ 4 hidden chunk modules
|
||||
chunk pageE.js (pageE) 93 bytes (javascript) 3.16 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/e pageE
|
||||
./pages/e.js 62 bytes [built]
|
||||
./stuff/s7.js 31 bytes [built]
|
||||
+ 4 hidden chunk modules
|
||||
chunk 402.js (id hint: vendors) 43 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
|
||||
> ./pages/c pageC
|
||||
./node_modules/m5.js 43 bytes [built]
|
||||
chunk pageA.js (pageA) 137 bytes (javascript) 3.17 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/a pageA
|
||||
./pages/a.js 106 bytes [built]
|
||||
./stuff/s4.js 31 bytes [built]
|
||||
+ 4 hidden chunk modules
|
||||
chunk 497.js (id hint: vendors) 43 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
|
||||
> ./pages/b pageB
|
||||
./node_modules/m4.js 43 bytes [built]
|
||||
chunk 505.js 62 bytes [initial] [rendered] split chunk (cache group: default)
|
||||
> ./pages/a pageA
|
||||
> ./pages/d pageD
|
||||
> ./pages/f pageF
|
||||
./stuff/s2.js 31 bytes [built]
|
||||
./stuff/s3.js 31 bytes [built]
|
||||
chunk pageG.js (pageG) 67 bytes (javascript) 3.16 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/g pageG
|
||||
./pages/g.js 36 bytes [built]
|
||||
./stuff/s1.js 31 bytes [built]
|
||||
+ 4 hidden chunk modules
|
||||
chunk pageD.js (pageD) 137 bytes (javascript) 3.17 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/d pageD
|
||||
./pages/d.js 106 bytes [built]
|
||||
./stuff/s1.js 31 bytes [built]
|
||||
+ 4 hidden chunk modules
|
||||
chunk 730.js (id hint: vendors) 43 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
|
||||
> ./pages/a pageA
|
||||
./node_modules/m3.js 43 bytes [built]
|
||||
chunk 777.js (id hint: vendors) 43 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
|
||||
> ./pages/d pageD
|
||||
> ./pages/e pageE
|
||||
> ./pages/f pageF
|
||||
> ./pages/g pageG
|
||||
./node_modules/m6.js 43 bytes [built]
|
||||
chunk pageF.js (pageF) 137 bytes (javascript) 3.17 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/f pageF
|
||||
./pages/f.js 106 bytes [built]
|
||||
./stuff/s1.js 31 bytes [built]
|
||||
+ 4 hidden chunk modules
|
||||
chunk 833.js (id hint: vendors) 86 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
|
||||
> ./pages/d pageD
|
||||
> ./pages/e pageE
|
||||
> ./pages/f pageF
|
||||
./node_modules/m7.js 43 bytes [built]
|
||||
./node_modules/m8.js 43 bytes [built]
|
||||
assets by chunk 772 bytes (id hint: vendors)
|
||||
asset 115.js 164 bytes [emitted] [minimized] (id hint: vendors)
|
||||
asset 833.js 164 bytes [emitted] [minimized] (id hint: vendors)
|
||||
asset 402.js 111 bytes [emitted] [minimized] (id hint: vendors)
|
||||
asset 497.js 111 bytes [emitted] [minimized] (id hint: vendors)
|
||||
asset 730.js 111 bytes [emitted] [minimized] (id hint: vendors)
|
||||
asset 777.js 111 bytes [emitted] [minimized] (id hint: vendors)
|
||||
asset pageC.js 1.13 KiB [emitted] [minimized] (name: pageC)
|
||||
asset pageB.js 1.13 KiB [emitted] [minimized] (name: pageB)
|
||||
asset pageD.js 1.05 KiB [emitted] [minimized] (name: pageD)
|
||||
asset pageF.js 1.05 KiB [emitted] [minimized] (name: pageF)
|
||||
asset pageA.js 1.05 KiB [emitted] [minimized] (name: pageA)
|
||||
asset pageE.js 1.04 KiB [emitted] [minimized] (name: pageE)
|
||||
asset pageG.js 1.02 KiB [emitted] [minimized] (name: pageG)
|
||||
asset 505.js 140 bytes [emitted] [minimized]
|
||||
chunk (runtime: pageA, pageB, pageC) 115.js (id hint: vendors) 86 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
|
||||
> ./pages/a pageA
|
||||
> ./pages/b pageB
|
||||
> ./pages/c pageC
|
||||
./node_modules/m1.js 43 bytes [built] [code generated]
|
||||
./node_modules/m2.js 43 bytes [built] [code generated]
|
||||
chunk (runtime: pageB) pageB.js (pageB) 199 bytes (javascript) 3.14 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/b pageB
|
||||
runtime modules 3.14 KiB 4 modules
|
||||
dependent modules 93 bytes [dependent] 3 modules
|
||||
./pages/b.js 106 bytes [built] [code generated]
|
||||
chunk (runtime: pageC) pageC.js (pageC) 199 bytes (javascript) 3.14 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/c pageC
|
||||
runtime modules 3.14 KiB 4 modules
|
||||
dependent modules 93 bytes [dependent] 3 modules
|
||||
./pages/c.js 106 bytes [built] [code generated]
|
||||
chunk (runtime: pageE) pageE.js (pageE) 93 bytes (javascript) 3.14 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/e pageE
|
||||
runtime modules 3.14 KiB 4 modules
|
||||
dependent modules 31 bytes [dependent] 1 module
|
||||
./pages/e.js 62 bytes [built] [code generated]
|
||||
chunk (runtime: pageC) 402.js (id hint: vendors) 43 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
|
||||
> ./pages/c pageC
|
||||
./node_modules/m5.js 43 bytes [built] [code generated]
|
||||
chunk (runtime: pageA) pageA.js (pageA) 137 bytes (javascript) 3.14 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/a pageA
|
||||
runtime modules 3.14 KiB 4 modules
|
||||
dependent modules 31 bytes [dependent] 1 module
|
||||
./pages/a.js 106 bytes [built] [code generated]
|
||||
chunk (runtime: pageB) 497.js (id hint: vendors) 43 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
|
||||
> ./pages/b pageB
|
||||
./node_modules/m4.js 43 bytes [built] [code generated]
|
||||
chunk (runtime: pageA, pageD, pageF) 505.js 62 bytes [initial] [rendered] split chunk (cache group: default)
|
||||
> ./pages/a pageA
|
||||
> ./pages/d pageD
|
||||
> ./pages/f pageF
|
||||
./stuff/s2.js 31 bytes [built] [code generated]
|
||||
./stuff/s3.js 31 bytes [built] [code generated]
|
||||
chunk (runtime: pageG) pageG.js (pageG) 67 bytes (javascript) 3.14 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/g pageG
|
||||
runtime modules 3.14 KiB 4 modules
|
||||
dependent modules 31 bytes [dependent] 1 module
|
||||
./pages/g.js 36 bytes [built] [code generated]
|
||||
chunk (runtime: pageD) pageD.js (pageD) 137 bytes (javascript) 3.14 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/d pageD
|
||||
runtime modules 3.14 KiB 4 modules
|
||||
dependent modules 31 bytes [dependent] 1 module
|
||||
./pages/d.js 106 bytes [built] [code generated]
|
||||
chunk (runtime: pageA) 730.js (id hint: vendors) 43 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
|
||||
> ./pages/a pageA
|
||||
./node_modules/m3.js 43 bytes [built] [code generated]
|
||||
chunk (runtime: pageD, pageE, pageF, pageG) 777.js (id hint: vendors) 43 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
|
||||
> ./pages/d pageD
|
||||
> ./pages/e pageE
|
||||
> ./pages/f pageF
|
||||
> ./pages/g pageG
|
||||
./node_modules/m6.js 43 bytes [built] [code generated]
|
||||
chunk (runtime: pageF) pageF.js (pageF) 137 bytes (javascript) 3.14 KiB (runtime) [entry] [rendered]
|
||||
> ./pages/f pageF
|
||||
runtime modules 3.14 KiB 4 modules
|
||||
dependent modules 31 bytes [dependent] 1 module
|
||||
./pages/f.js 106 bytes [built] [code generated]
|
||||
chunk (runtime: pageD, pageE, pageF) 833.js (id hint: vendors) 86 bytes [initial] [rendered] split chunk (cache group: defaultVendors)
|
||||
> ./pages/d pageD
|
||||
> ./pages/e pageE
|
||||
> ./pages/f pageF
|
||||
./node_modules/m7.js 43 bytes [built] [code generated]
|
||||
./node_modules/m8.js 43 bytes [built] [code generated]
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -65,8 +65,8 @@ require(
|
|||
!*** ./commonjs.js ***!
|
||||
\*********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__, __webpack_require__.oe, __webpack_require__.* */
|
||||
/*! CommonJS bailout: module.exports is used directly at 2:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
// CommonJs Module Format
|
||||
|
@ -84,7 +84,6 @@ Promise.resolve(/*! AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_
|
|||
!*** ./amd.js ***!
|
||||
\****************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_exports__, module */
|
||||
/***/ ((module, exports, __webpack_require__) => {
|
||||
|
||||
|
@ -104,8 +103,8 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// AMD Module Fo
|
|||
!*** ./harmony.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! export default [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! export default [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_exports__, __webpack_require__.r, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
|
@ -211,6 +210,52 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
|
@ -229,6 +274,8 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -255,49 +302,24 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -314,11 +336,8 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -335,17 +354,16 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -359,7 +377,6 @@ __webpack_require__.r(__webpack_exports__);
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.oe, __webpack_require__.* */
|
||||
// CommonJs-style requires
|
||||
var commonjs1 = __webpack_require__(/*! ./commonjs */ 1);
|
||||
|
@ -383,17 +400,17 @@ __webpack_require__.e(/*! AMD require */ 635).then(function() { var __WEBPACK_AM
|
|||
# dist/635.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[635],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[635],[
|
||||
/* 0 */,
|
||||
/* 1 */,
|
||||
/* 2 */,
|
||||
/* 3 */,
|
||||
/* 4 */
|
||||
/*!******************************************************!*\
|
||||
!*** ../require.context/templates sync ^\.\/.*\.js$ ***!
|
||||
\******************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*!*******************************************************!*\
|
||||
!*** ../require.context/templates/ sync ^\.\/.*\.js$ ***!
|
||||
\*******************************************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module, __webpack_require__.o, __webpack_require__ */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -429,8 +446,8 @@ webpackContext.id = 4;
|
|||
!*** ../require.context/templates/a.js ***!
|
||||
\*****************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -443,8 +460,8 @@ module.exports = function() {
|
|||
!*** ../require.context/templates/b.js ***!
|
||||
\*****************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -457,8 +474,8 @@ module.exports = function() {
|
|||
!*** ../require.context/templates/c.js ***!
|
||||
\*****************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -474,103 +491,42 @@ module.exports = function() {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
635.output.js 2.33 KiB [emitted]
|
||||
output.js 12.8 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 1010 bytes (javascript) 5.02 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./amd.js 298 bytes [built]
|
||||
amd require ./amd ./commonjs.js 5:0-11:1
|
||||
cjs require ./amd ./commonjs.js 8:13-29
|
||||
cjs require ./amd ./example.js 3:11-27
|
||||
amd require ./amd ./example.js 7:0-14:1
|
||||
amd require ./amd ./example.js 7:0-14:1
|
||||
harmony side effect evaluation ./amd ./harmony.js 3:0-24
|
||||
./commonjs.js 223 bytes [built]
|
||||
cjs require ./commonjs ./amd.js 7:18-39
|
||||
amd require ./commonjs ./amd.js
|
||||
cjs self exports reference ./commonjs.js 2:0-14
|
||||
cjs require ./commonjs ./example.js 2:16-37
|
||||
amd require ./commonjs ./example.js 7:0-14:1
|
||||
amd require ./commonjs ./example.js 7:0-14:1
|
||||
harmony side effect evaluation ./commonjs ./harmony.js 2:0-34
|
||||
./example.js 396 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./harmony.js 96 bytes [built]
|
||||
[exports: default]
|
||||
cjs require ./harmony ./amd.js 8:17-37
|
||||
amd require ./harmony ./amd.js
|
||||
amd require ./harmony ./commonjs.js 5:0-11:1
|
||||
cjs require ./harmony ./commonjs.js 9:17-37
|
||||
cjs require ./harmony ./example.js 4:15-35
|
||||
+ 8 hidden chunk modules
|
||||
asset output.js 13.6 KiB [emitted] (name: main)
|
||||
asset 635.output.js 2.24 KiB [emitted]
|
||||
chunk output.js (main) 1010 bytes (javascript) 5.67 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.67 KiB 9 modules
|
||||
dependent modules 617 bytes [dependent] 3 modules
|
||||
./example.js 396 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 635.output.js 433 bytes [rendered]
|
||||
> ./example.js 7:0-14:1
|
||||
../require.context/templates sync ^\.\/.*\.js$ 193 bytes [built]
|
||||
amd require context ../require.context/templates ./example.js 7:0-14:1
|
||||
../require.context/templates/a.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/a.js 1:0-14
|
||||
context element ./a.js ../require.context/templates sync ^\.\/.*\.js$ ./a.js
|
||||
../require.context/templates/b.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/b.js 1:0-14
|
||||
context element ./b.js ../require.context/templates sync ^\.\/.*\.js$ ./b.js
|
||||
../require.context/templates/c.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/c.js 1:0-14
|
||||
context element ./c.js ../require.context/templates sync ^\.\/.*\.js$ ./c.js
|
||||
> ./example.js 7:0-14:1
|
||||
dependent modules 240 bytes [dependent] 3 modules
|
||||
../require.context/templates/ sync ^\.\/.*\.js$ 193 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
amd require context ./example.js 7:0-14:1
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
635.output.js 584 bytes [emitted]
|
||||
output.js 2.12 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 1010 bytes (javascript) 5.02 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./amd.js 298 bytes [built]
|
||||
amd require ./amd ./commonjs.js 5:0-11:1
|
||||
cjs require ./amd ./commonjs.js 8:13-29
|
||||
cjs require ./amd ./example.js 3:11-27
|
||||
amd require ./amd ./example.js 7:0-14:1
|
||||
amd require ./amd ./example.js 7:0-14:1
|
||||
harmony side effect evaluation ./amd ./harmony.js 3:0-24
|
||||
./commonjs.js 223 bytes [built]
|
||||
cjs require ./commonjs ./amd.js 7:18-39
|
||||
amd require ./commonjs ./amd.js
|
||||
cjs self exports reference ./commonjs.js 2:0-14
|
||||
cjs require ./commonjs ./example.js 2:16-37
|
||||
amd require ./commonjs ./example.js 7:0-14:1
|
||||
amd require ./commonjs ./example.js 7:0-14:1
|
||||
harmony side effect evaluation ./commonjs ./harmony.js 2:0-34
|
||||
./example.js 396 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./harmony.js 96 bytes [built]
|
||||
[exports: default]
|
||||
cjs require ./harmony ./amd.js 8:17-37
|
||||
amd require ./harmony ./amd.js
|
||||
amd require ./harmony ./commonjs.js 5:0-11:1
|
||||
cjs require ./harmony ./commonjs.js 9:17-37
|
||||
cjs require ./harmony ./example.js 4:15-35
|
||||
+ 8 hidden chunk modules
|
||||
chunk 635.output.js 433 bytes [rendered]
|
||||
> ./example.js 7:0-14:1
|
||||
../require.context/templates sync ^\.\/.*\.js$ 193 bytes [built]
|
||||
amd require context ../require.context/templates ./example.js 7:0-14:1
|
||||
../require.context/templates/a.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/a.js 1:0-14
|
||||
context element ./a.js ../require.context/templates sync ^\.\/.*\.js$ ./a.js
|
||||
../require.context/templates/b.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/b.js 1:0-14
|
||||
context element ./b.js ../require.context/templates sync ^\.\/.*\.js$ ./b.js
|
||||
../require.context/templates/c.js 80 bytes [built]
|
||||
cjs self exports reference ../require.context/templates/c.js 1:0-14
|
||||
context element ./c.js ../require.context/templates sync ^\.\/.*\.js$ ./c.js
|
||||
asset output.js 2.43 KiB [emitted] [minimized] (name: main)
|
||||
asset 635.output.js 580 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) output.js (main) 1010 bytes (javascript) 5.67 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.67 KiB 9 modules
|
||||
dependent modules 617 bytes [dependent] 3 modules
|
||||
./example.js 396 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 635.output.js 433 bytes [rendered]
|
||||
> ./example.js 7:0-14:1
|
||||
dependent modules 240 bytes [dependent] 3 modules
|
||||
../require.context/templates/ sync ^\.\/.*\.js$ 193 bytes [built] [code generated]
|
||||
[no exports]
|
||||
amd require context ./example.js 7:0-14:1
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -43,7 +43,6 @@ export function reset() {
|
|||
!*** ./example.js + 2 modules ***!
|
||||
\********************************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: */
|
||||
|
||||
// CONCATENATED MODULE: ./counter.js
|
||||
|
@ -86,31 +85,25 @@ let o=0;function n(){o++}const c=o=>console.log(o);c(o),n(),n(),n(),c(o),o=0,c(o
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 616 bytes [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 429 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js + 2 modules 429 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
asset output.js 577 bytes [emitted] (name: main)
|
||||
chunk (runtime: main) output.js (main) 429 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js + 2 modules 429 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 82 bytes [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 429 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js + 2 modules 429 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
asset output.js 82 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 429 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js + 2 modules 429 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -53,7 +53,6 @@ module.exports = [
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: */
|
||||
if(false) {}
|
||||
console.log("Running " + "desktop" + " build");
|
||||
|
@ -72,7 +71,6 @@ console.log("Running " + "desktop" + " build");
|
|||
!*** ./mobile-stuff.js ***!
|
||||
\*************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -120,7 +118,6 @@ console.log("Running " + "desktop" + " build");
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
if(true) {
|
||||
__webpack_require__(/*! ./mobile-stuff */ 1);
|
||||
|
@ -137,57 +134,45 @@ console.log("Running " + "mobile" + " build");
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Child mobile:
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
mobile.js 1.71 KiB [emitted] [name: main]
|
||||
Entrypoint main = mobile.js
|
||||
chunk mobile.js (main) 114 bytes [entry] [rendered]
|
||||
> ./example main
|
||||
./example.js 94 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example main
|
||||
./mobile-stuff.js 20 bytes [built]
|
||||
cjs require ./mobile-stuff ./example.js 2:1-26
|
||||
Child desktop:
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
desktop.js 321 bytes [emitted] [name: main]
|
||||
Entrypoint main = desktop.js
|
||||
chunk desktop.js (main) 94 bytes [entry] [rendered]
|
||||
> ./example main
|
||||
./example.js 94 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example main
|
||||
mobile:
|
||||
asset mobile.js 1.57 KiB [emitted] (name: main)
|
||||
chunk mobile.js (main) 114 bytes [entry] [rendered]
|
||||
> ./example main
|
||||
dependent modules 20 bytes [dependent] 1 module
|
||||
./example.js 94 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example main
|
||||
mobile (webpack 5.0.0-beta.32) compiled successfully
|
||||
|
||||
desktop:
|
||||
asset desktop.js 262 bytes [emitted] (name: main)
|
||||
chunk desktop.js (main) 94 bytes [entry] [rendered]
|
||||
> ./example main
|
||||
./example.js 94 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example main
|
||||
desktop (webpack 5.0.0-beta.32) compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Child mobile:
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
mobile.js 180 bytes [emitted] [name: main]
|
||||
Entrypoint main = mobile.js
|
||||
chunk mobile.js (main) 114 bytes [entry] [rendered]
|
||||
> ./example main
|
||||
./example.js 94 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example main
|
||||
./mobile-stuff.js 20 bytes [built]
|
||||
cjs require ./mobile-stuff ./example.js 2:1-26
|
||||
Child desktop:
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
desktop.js 37 bytes [emitted] [name: main]
|
||||
Entrypoint main = desktop.js
|
||||
chunk desktop.js (main) 94 bytes [entry] [rendered]
|
||||
> ./example main
|
||||
./example.js 94 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example main
|
||||
mobile:
|
||||
asset mobile.js 181 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) mobile.js (main) 114 bytes [entry] [rendered]
|
||||
> ./example main
|
||||
dependent modules 20 bytes [dependent] 1 module
|
||||
./example.js 94 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example main
|
||||
mobile (webpack 5.0.0-beta.32) compiled successfully
|
||||
|
||||
desktop:
|
||||
asset desktop.js 37 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) desktop.js (main) 94 bytes [entry] [rendered]
|
||||
> ./example main
|
||||
./example.js 94 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example main
|
||||
desktop (webpack 5.0.0-beta.32) compiled successfully
|
||||
```
|
||||
|
|
|
@ -43,7 +43,7 @@ module.exports = {
|
|||
exports["MyLibrary"] = factory();
|
||||
else
|
||||
root["MyLibrary"] = root["MyLibrary"] || {}, root["MyLibrary"]["alpha"] = factory();
|
||||
})(window, function() {
|
||||
})(self, function() {
|
||||
return /******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */
|
||||
|
@ -51,8 +51,8 @@ return /******/ (() => { // webpackBootstrap
|
|||
!*** ./alpha.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "alpha";
|
||||
|
@ -115,7 +115,7 @@ module.exports = "alpha";
|
|||
exports["MyLibrary"] = factory();
|
||||
else
|
||||
root["MyLibrary"] = root["MyLibrary"] || {}, root["MyLibrary"]["beta"] = factory();
|
||||
})(window, function() {
|
||||
})(self, function() {
|
||||
return /******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
|
@ -124,8 +124,8 @@ return /******/ (() => { // webpackBootstrap
|
|||
!*** ./beta.js ***!
|
||||
\*****************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "beta";
|
||||
|
@ -181,47 +181,43 @@ module.exports = "beta";
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
MyLibrary.alpha.js 1.97 KiB [emitted] [name: alpha]
|
||||
MyLibrary.beta.js 1.97 KiB [emitted] [name: beta]
|
||||
Entrypoint alpha = MyLibrary.alpha.js
|
||||
Entrypoint beta = MyLibrary.beta.js
|
||||
asset MyLibrary.beta.js 1.96 KiB [emitted] (name: beta)
|
||||
asset MyLibrary.alpha.js 1.95 KiB [emitted] (name: alpha)
|
||||
chunk MyLibrary.alpha.js (alpha) 25 bytes [entry] [rendered]
|
||||
> ./alpha alpha
|
||||
./alpha.js 25 bytes [built]
|
||||
cjs self exports reference ./alpha.js 1:0-14
|
||||
entry ./alpha alpha
|
||||
used as library export
|
||||
> ./alpha alpha
|
||||
./alpha.js 25 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./alpha.js 1:0-14
|
||||
entry ./alpha alpha
|
||||
used as library export
|
||||
chunk MyLibrary.beta.js (beta) 24 bytes [entry] [rendered]
|
||||
> ./beta beta
|
||||
./beta.js 24 bytes [built]
|
||||
cjs self exports reference ./beta.js 1:0-14
|
||||
entry ./beta beta
|
||||
used as library export
|
||||
> ./beta beta
|
||||
./beta.js 24 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./beta.js 1:0-14
|
||||
entry ./beta beta
|
||||
used as library export
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
MyLibrary.alpha.js 417 bytes [emitted] [name: alpha]
|
||||
MyLibrary.beta.js 413 bytes [emitted] [name: beta]
|
||||
Entrypoint alpha = MyLibrary.alpha.js
|
||||
Entrypoint beta = MyLibrary.beta.js
|
||||
chunk MyLibrary.alpha.js (alpha) 25 bytes [entry] [rendered]
|
||||
> ./alpha alpha
|
||||
./alpha.js 25 bytes [built]
|
||||
cjs self exports reference ./alpha.js 1:0-14
|
||||
entry ./alpha alpha
|
||||
used as library export
|
||||
chunk MyLibrary.beta.js (beta) 24 bytes [entry] [rendered]
|
||||
> ./beta beta
|
||||
./beta.js 24 bytes [built]
|
||||
cjs self exports reference ./beta.js 1:0-14
|
||||
entry ./beta beta
|
||||
used as library export
|
||||
asset MyLibrary.alpha.js 415 bytes [emitted] [minimized] (name: alpha)
|
||||
asset MyLibrary.beta.js 411 bytes [emitted] [minimized] (name: beta)
|
||||
chunk (runtime: alpha) MyLibrary.alpha.js (alpha) 25 bytes [entry] [rendered]
|
||||
> ./alpha alpha
|
||||
./alpha.js 25 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./alpha.js 1:0-14
|
||||
entry ./alpha alpha
|
||||
used as library export
|
||||
chunk (runtime: beta) MyLibrary.beta.js (beta) 24 bytes [entry] [rendered]
|
||||
> ./beta beta
|
||||
./beta.js 24 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./beta.js 1:0-14
|
||||
entry ./beta beta
|
||||
used as library export
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -87,15 +87,15 @@ module.exports = {
|
|||
# dist/commons.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[351],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[351],[
|
||||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!*******************!*\
|
||||
!*** ./common.js ***!
|
||||
\*******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "Common";
|
||||
|
@ -114,7 +114,6 @@ module.exports = "Common";
|
|||
!*** ./pageA.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.oe, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -185,6 +184,52 @@ __webpack_require__.e(/*! AMD require */ 52).then(function() { var __WEBPACK_AMD
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/publicPath */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.p = "dist/";
|
||||
|
@ -192,6 +237,8 @@ __webpack_require__.e(/*! AMD require */ 52).then(function() { var __WEBPACK_AMD
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -220,49 +267,24 @@ __webpack_require__.e(/*! AMD require */ 52).then(function() { var __WEBPACK_AMD
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -306,17 +328,14 @@ __webpack_require__.e(/*! AMD require */ 52).then(function() { var __WEBPACK_AMD
|
|||
/******/ __webpack_require__.x = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice();
|
||||
/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]);
|
||||
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime, executeModules] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -333,7 +352,7 @@ __webpack_require__.e(/*! AMD require */ 52).then(function() { var __WEBPACK_AMD
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
|
@ -343,12 +362,11 @@ __webpack_require__.e(/*! AMD require */ 52).then(function() { var __WEBPACK_AMD
|
|||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -374,7 +392,6 @@ __webpack_require__.e(/*! AMD require */ 52).then(function() { var __WEBPACK_AMD
|
|||
!*** ./pageB.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -447,6 +464,52 @@ __webpack_require__.e(/*! require.ensure */ 52).then((function(require) {
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/publicPath */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.p = "dist/";
|
||||
|
@ -454,6 +517,8 @@ __webpack_require__.e(/*! require.ensure */ 52).then((function(require) {
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -482,49 +547,24 @@ __webpack_require__.e(/*! require.ensure */ 52).then((function(require) {
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -568,17 +608,14 @@ __webpack_require__.e(/*! require.ensure */ 52).then((function(require) {
|
|||
/******/ __webpack_require__.x = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ chunkLoadingGlobal = chunkLoadingGlobal.slice();
|
||||
/******/ for(var i = 0; i < chunkLoadingGlobal.length; i++) webpackJsonpCallback(chunkLoadingGlobal[i]);
|
||||
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime, executeModules] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -595,7 +632,7 @@ __webpack_require__.e(/*! require.ensure */ 52).then((function(require) {
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
|
@ -605,12 +642,11 @@ __webpack_require__.e(/*! require.ensure */ 52).then((function(require) {
|
|||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -628,15 +664,15 @@ __webpack_require__.e(/*! require.ensure */ 52).then((function(require) {
|
|||
# dist/52.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[52],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[52],{
|
||||
|
||||
/***/ 3:
|
||||
/*!*******************!*\
|
||||
!*** ./shared.js ***!
|
||||
\*******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/*! CommonJS bailout: module.exports is used directly at 2:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
var common = __webpack_require__(/*! ./common */ 1);
|
||||
|
@ -654,83 +690,83 @@ module.exports = function(msg) {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
52.js 524 bytes [emitted]
|
||||
commons.js 382 bytes [emitted] [name: commons] [id hint: commons]
|
||||
pageA.js 9.73 KiB [emitted] [name: pageA]
|
||||
pageB.js 9.66 KiB [emitted] [name: pageB]
|
||||
Entrypoint pageA = commons.js pageA.js
|
||||
Entrypoint pageB = commons.js pageB.js
|
||||
asset pageA.js 10.6 KiB [emitted] (name: pageA)
|
||||
asset pageB.js 10.5 KiB [emitted] (name: pageB)
|
||||
asset 52.js 506 bytes [emitted]
|
||||
asset commons.js 364 bytes [emitted] (name: commons) (id hint: commons)
|
||||
Entrypoint pageA 10.9 KiB = commons.js 364 bytes pageA.js 10.6 KiB
|
||||
Entrypoint pageB 10.9 KiB = commons.js 364 bytes pageB.js 10.5 KiB
|
||||
chunk 52.js 88 bytes [rendered]
|
||||
> ./shared ./pageA.js 2:0-4:2
|
||||
> ./pageB.js 2:0-5:2
|
||||
./shared.js 88 bytes [built]
|
||||
amd require ./shared ./pageA.js 2:0-4:2
|
||||
require.ensure item ./shared ./pageB.js 2:0-5:2
|
||||
cjs require ./shared ./pageB.js 3:14-33
|
||||
cjs self exports reference ./shared.js 2:0-14
|
||||
chunk pageB.js (pageB) 148 bytes (javascript) 5.36 KiB (runtime) [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
./pageB.js 148 bytes [built]
|
||||
[no exports used]
|
||||
entry ./pageB pageB
|
||||
+ 5 hidden chunk modules
|
||||
> ./shared ./pageA.js 2:0-4:2
|
||||
> ./pageB.js 2:0-5:2
|
||||
./shared.js 88 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
amd require ./shared ./pageA.js 2:0-4:2
|
||||
require.ensure item ./shared ./pageB.js 2:0-5:2
|
||||
cjs require ./shared ./pageB.js 3:14-33
|
||||
cjs self exports reference ./shared.js 2:0-14
|
||||
chunk pageB.js (pageB) 148 bytes (javascript) 6.03 KiB (runtime) [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
runtime modules 6.03 KiB 6 modules
|
||||
./pageB.js 148 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./pageB pageB
|
||||
chunk commons.js (commons) (id hint: commons) 26 bytes [initial] [rendered] split chunk (cache group: commons) (name: commons)
|
||||
> ./pageA pageA
|
||||
> ./pageB pageB
|
||||
./common.js 26 bytes [built]
|
||||
cjs self exports reference ./common.js 1:0-14
|
||||
cjs require ./common ./pageA.js 1:13-32
|
||||
cjs require ./common ./pageB.js 1:13-32
|
||||
cjs require ./common ./shared.js 1:13-32
|
||||
chunk pageA.js (pageA) 105 bytes (javascript) 5.36 KiB (runtime) [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
./pageA.js 105 bytes [built]
|
||||
[no exports used]
|
||||
entry ./pageA pageA
|
||||
+ 5 hidden chunk modules
|
||||
> ./pageA pageA
|
||||
> ./pageB pageB
|
||||
./common.js 26 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./common.js 1:0-14
|
||||
cjs require ./common ./pageA.js 1:13-32
|
||||
cjs require ./common ./pageB.js 1:13-32
|
||||
cjs require ./common ./shared.js 1:13-32
|
||||
chunk pageA.js (pageA) 105 bytes (javascript) 6.03 KiB (runtime) [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
runtime modules 6.03 KiB 6 modules
|
||||
./pageA.js 105 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./pageA pageA
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
52.js 120 bytes [emitted]
|
||||
commons.js 90 bytes [emitted] [name: commons] [id hint: commons]
|
||||
pageA.js 1.72 KiB [emitted] [name: pageA]
|
||||
pageB.js 1.69 KiB [emitted] [name: pageB]
|
||||
Entrypoint pageA = commons.js pageA.js
|
||||
Entrypoint pageB = commons.js pageB.js
|
||||
chunk 52.js 88 bytes [rendered]
|
||||
> ./shared ./pageA.js 2:0-4:2
|
||||
> ./pageB.js 2:0-5:2
|
||||
./shared.js 88 bytes [built]
|
||||
amd require ./shared ./pageA.js 2:0-4:2
|
||||
require.ensure item ./shared ./pageB.js 2:0-5:2
|
||||
cjs require ./shared ./pageB.js 3:14-33
|
||||
cjs self exports reference ./shared.js 2:0-14
|
||||
chunk pageB.js (pageB) 148 bytes (javascript) 5.36 KiB (runtime) [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
./pageB.js 148 bytes [built]
|
||||
[no exports used]
|
||||
entry ./pageB pageB
|
||||
+ 5 hidden chunk modules
|
||||
chunk commons.js (commons) (id hint: commons) 26 bytes [initial] [rendered] split chunk (cache group: commons) (name: commons)
|
||||
> ./pageA pageA
|
||||
> ./pageB pageB
|
||||
./common.js 26 bytes [built]
|
||||
cjs self exports reference ./common.js 1:0-14
|
||||
cjs require ./common ./pageA.js 1:13-32
|
||||
cjs require ./common ./pageB.js 1:13-32
|
||||
cjs require ./common ./shared.js 1:13-32
|
||||
chunk pageA.js (pageA) 105 bytes (javascript) 5.36 KiB (runtime) [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
./pageA.js 105 bytes [built]
|
||||
[no exports used]
|
||||
entry ./pageA pageA
|
||||
+ 5 hidden chunk modules
|
||||
asset pageA.js 2.02 KiB [emitted] [minimized] (name: pageA)
|
||||
asset pageB.js 2 KiB [emitted] [minimized] (name: pageB)
|
||||
asset 52.js 116 bytes [emitted] [minimized]
|
||||
asset commons.js 86 bytes [emitted] [minimized] (name: commons) (id hint: commons)
|
||||
Entrypoint pageA 2.11 KiB = commons.js 86 bytes pageA.js 2.02 KiB
|
||||
Entrypoint pageB 2.08 KiB = commons.js 86 bytes pageB.js 2 KiB
|
||||
chunk (runtime: pageA, pageB) 52.js 88 bytes [rendered]
|
||||
> ./shared ./pageA.js 2:0-4:2
|
||||
> ./pageB.js 2:0-5:2
|
||||
./shared.js 88 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
amd require ./shared ./pageA.js 2:0-4:2
|
||||
require.ensure item ./shared ./pageB.js 2:0-5:2
|
||||
cjs require ./shared ./pageB.js 3:14-33
|
||||
cjs self exports reference ./shared.js 2:0-14
|
||||
chunk (runtime: pageB) pageB.js (pageB) 148 bytes (javascript) 6.04 KiB (runtime) [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
runtime modules 6.04 KiB 6 modules
|
||||
./pageB.js 148 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./pageB pageB
|
||||
chunk (runtime: pageA, pageB) commons.js (commons) (id hint: commons) 26 bytes [initial] [rendered] split chunk (cache group: commons) (name: commons)
|
||||
> ./pageA pageA
|
||||
> ./pageB pageB
|
||||
./common.js 26 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./common.js 1:0-14
|
||||
cjs require ./common ./pageA.js 1:13-32
|
||||
cjs require ./common ./pageB.js 1:13-32
|
||||
cjs require ./common ./shared.js 1:13-32
|
||||
chunk (runtime: pageA) pageA.js (pageA) 105 bytes (javascript) 6.04 KiB (runtime) [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
runtime modules 6.04 KiB 6 modules
|
||||
./pageA.js 105 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./pageA pageA
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -34,7 +34,6 @@ require.ensure(["b"], function(require) {
|
|||
!*** ./node_modules/a.js ***!
|
||||
\***************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -102,6 +101,52 @@ require.ensure(["b"], function(require) {
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/publicPath */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.p = "dist/";
|
||||
|
@ -109,6 +154,8 @@ require.ensure(["b"], function(require) {
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -135,49 +182,24 @@ require.ensure(["b"], function(require) {
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -194,11 +216,8 @@ require.ensure(["b"], function(require) {
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -215,17 +234,16 @@ require.ensure(["b"], function(require) {
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -239,7 +257,6 @@ require.ensure(["b"], function(require) {
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.* */
|
||||
var a = __webpack_require__(/*! a */ 1);
|
||||
|
||||
|
@ -271,7 +288,7 @@ __webpack_require__.e(/*! require.ensure */ 885).then((function(require) {
|
|||
# dist/666.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[666],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[666],[
|
||||
/* 0 */,
|
||||
/* 1 */,
|
||||
/* 2 */
|
||||
|
@ -279,7 +296,6 @@ __webpack_require__.e(/*! require.ensure */ 885).then((function(require) {
|
|||
!*** ./node_modules/b.js ***!
|
||||
\***************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -291,7 +307,6 @@ __webpack_require__.e(/*! require.ensure */ 885).then((function(require) {
|
|||
!*** ./node_modules/c.js ***!
|
||||
\***************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -303,7 +318,6 @@ __webpack_require__.e(/*! require.ensure */ 885).then((function(require) {
|
|||
!*** ./node_modules/d.js ***!
|
||||
\***************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -316,7 +330,7 @@ __webpack_require__.e(/*! require.ensure */ 885).then((function(require) {
|
|||
# dist/885.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[885],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[885],[
|
||||
/* 0 */,
|
||||
/* 1 */,
|
||||
/* 2 */
|
||||
|
@ -324,7 +338,6 @@ __webpack_require__.e(/*! require.ensure */ 885).then((function(require) {
|
|||
!*** ./node_modules/b.js ***!
|
||||
\***************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -337,7 +350,6 @@ __webpack_require__.e(/*! require.ensure */ 885).then((function(require) {
|
|||
!*** ./node_modules/d.js ***!
|
||||
\***************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -352,83 +364,85 @@ __webpack_require__.e(/*! require.ensure */ 885).then((function(require) {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
666.output.js 982 bytes [emitted] [name: my own chunk]
|
||||
885.output.js 694 bytes [emitted]
|
||||
output.js 8.8 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 432 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 421 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./node_modules/a.js 11 bytes [built]
|
||||
cjs require a ./example.js 1:8-20
|
||||
+ 5 hidden chunk modules
|
||||
asset output.js 9.57 KiB [emitted] (name: main)
|
||||
asset 666.output.js 735 bytes [emitted] (name: my own chunk)
|
||||
asset 885.output.js 528 bytes [emitted]
|
||||
chunk output.js (main) 432 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
dependent modules 11 bytes [dependent] 1 module
|
||||
./example.js 421 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 666.output.js (my own chunk) 33 bytes [rendered]
|
||||
> ./example.js 13:0-15:18
|
||||
> ./example.js 3:0-6:18
|
||||
> ./example.js 8:0-11:18
|
||||
./node_modules/b.js 11 bytes [built]
|
||||
require.ensure item b ./example.js 3:0-6:18
|
||||
require.ensure item b ./example.js 8:0-11:18
|
||||
require.ensure item b ./example.js 17:0-20:2
|
||||
./node_modules/c.js 11 bytes [built]
|
||||
cjs require c ./example.js 5:9-21
|
||||
./node_modules/d.js 11 bytes [built]
|
||||
cjs require d ./example.js 10:9-21
|
||||
cjs require d ./example.js 19:9-21
|
||||
> ./example.js 13:0-15:18
|
||||
> ./example.js 3:0-6:18
|
||||
> ./example.js 8:0-11:18
|
||||
./node_modules/b.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
require.ensure item b ./example.js 3:0-6:18
|
||||
require.ensure item b ./example.js 8:0-11:18
|
||||
require.ensure item b ./example.js 17:0-20:2
|
||||
./node_modules/c.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require c ./example.js 5:9-21
|
||||
./node_modules/d.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require d ./example.js 10:9-21
|
||||
cjs require d ./example.js 19:9-21
|
||||
chunk 885.output.js 22 bytes [rendered]
|
||||
> ./example.js 17:0-20:2
|
||||
./node_modules/b.js 11 bytes [built]
|
||||
require.ensure item b ./example.js 3:0-6:18
|
||||
require.ensure item b ./example.js 8:0-11:18
|
||||
require.ensure item b ./example.js 17:0-20:2
|
||||
./node_modules/d.js 11 bytes [built]
|
||||
cjs require d ./example.js 10:9-21
|
||||
cjs require d ./example.js 19:9-21
|
||||
> ./example.js 17:0-20:2
|
||||
./node_modules/b.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
require.ensure item b ./example.js 3:0-6:18
|
||||
require.ensure item b ./example.js 8:0-11:18
|
||||
require.ensure item b ./example.js 17:0-20:2
|
||||
./node_modules/d.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require d ./example.js 10:9-21
|
||||
cjs require d ./example.js 19:9-21
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
666.output.js 99 bytes [emitted] [name: my own chunk]
|
||||
885.output.js 84 bytes [emitted]
|
||||
output.js 1.52 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 432 bytes (javascript) 4.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 421 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./node_modules/a.js 11 bytes [built]
|
||||
cjs require a ./example.js 1:8-20
|
||||
+ 5 hidden chunk modules
|
||||
chunk 666.output.js (my own chunk) 33 bytes [rendered]
|
||||
> ./example.js 13:0-15:18
|
||||
> ./example.js 3:0-6:18
|
||||
> ./example.js 8:0-11:18
|
||||
./node_modules/b.js 11 bytes [built]
|
||||
require.ensure item b ./example.js 3:0-6:18
|
||||
require.ensure item b ./example.js 8:0-11:18
|
||||
require.ensure item b ./example.js 17:0-20:2
|
||||
./node_modules/c.js 11 bytes [built]
|
||||
cjs require c ./example.js 5:9-21
|
||||
./node_modules/d.js 11 bytes [built]
|
||||
cjs require d ./example.js 10:9-21
|
||||
cjs require d ./example.js 19:9-21
|
||||
chunk 885.output.js 22 bytes [rendered]
|
||||
> ./example.js 17:0-20:2
|
||||
./node_modules/b.js 11 bytes [built]
|
||||
require.ensure item b ./example.js 3:0-6:18
|
||||
require.ensure item b ./example.js 8:0-11:18
|
||||
require.ensure item b ./example.js 17:0-20:2
|
||||
./node_modules/d.js 11 bytes [built]
|
||||
cjs require d ./example.js 10:9-21
|
||||
cjs require d ./example.js 19:9-21
|
||||
asset output.js 1.82 KiB [emitted] [minimized] (name: main)
|
||||
asset 666.output.js 95 bytes [emitted] [minimized] (name: my own chunk)
|
||||
asset 885.output.js 80 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) output.js (main) 432 bytes (javascript) 4.85 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 4.85 KiB 6 modules
|
||||
dependent modules 11 bytes [dependent] 1 module
|
||||
./example.js 421 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 666.output.js (my own chunk) 33 bytes [rendered]
|
||||
> ./example.js 13:0-15:18
|
||||
> ./example.js 3:0-6:18
|
||||
> ./example.js 8:0-11:18
|
||||
./node_modules/b.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
require.ensure item b ./example.js 3:0-6:18
|
||||
require.ensure item b ./example.js 8:0-11:18
|
||||
require.ensure item b ./example.js 17:0-20:2
|
||||
./node_modules/c.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require c ./example.js 5:9-21
|
||||
./node_modules/d.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require d ./example.js 10:9-21
|
||||
cjs require d ./example.js 19:9-21
|
||||
chunk (runtime: main) 885.output.js 22 bytes [rendered]
|
||||
> ./example.js 17:0-20:2
|
||||
./node_modules/b.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
require.ensure item b ./example.js 3:0-6:18
|
||||
require.ensure item b ./example.js 8:0-11:18
|
||||
require.ensure item b ./example.js 17:0-20:2
|
||||
./node_modules/d.js 11 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require d ./example.js 10:9-21
|
||||
cjs require d ./example.js 19:9-21
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -55,40 +55,44 @@ module.exports = (env = "development") => ({
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 3.5 MiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 2.55 MiB (javascript) 0 bytes (runtime) [entry]
|
||||
> ./example.js main
|
||||
991 chunk modules
|
||||
asset output.js 3.92 MiB [emitted] (name: main)
|
||||
chunk output.js (main) 2.8 MiB (javascript) 1.58 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 2.8 MiB [dependent] 1183 modules
|
||||
runtime modules 1.58 KiB 7 modules
|
||||
./example.js 214 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 479 KiB [emitted] [big] [name: main]
|
||||
output.js.LICENSE.txt 1.49 KiB [emitted]
|
||||
Entrypoint main [big] = output.js
|
||||
chunk output.js (main) 1.64 MiB (javascript) 0 bytes (runtime) [entry]
|
||||
> ./example.js main
|
||||
370 chunk modules
|
||||
asset output.js 544 KiB [emitted] [minimized] [big] (name: main) 1 related asset
|
||||
chunk (runtime: main) output.js (main) 1.89 MiB (javascript) 1.33 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 1.13 MiB [dependent] 563 modules
|
||||
runtime modules 1.33 KiB 6 modules
|
||||
./example.js + 612 modules 775 KiB [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
|
||||
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
||||
This can impact web performance.
|
||||
Assets:
|
||||
output.js (479 KiB)
|
||||
output.js (544 KiB)
|
||||
|
||||
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
|
||||
Entrypoints:
|
||||
main (479 KiB)
|
||||
main (544 KiB)
|
||||
output.js
|
||||
|
||||
WARNING in webpack performance recommendations:
|
||||
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
|
||||
For more info visit https://webpack.js.org/guides/code-splitting/
|
||||
|
||||
webpack 5.0.0-beta.32 compiled with 3 warnings
|
||||
```
|
||||
|
|
|
@ -29,11 +29,11 @@ module.exports = function() {
|
|||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 1 */
|
||||
/*!*********************************!*\
|
||||
!*** ./templates sync ^\.\/.*$ ***!
|
||||
\*********************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*!**********************************!*\
|
||||
!*** ./templates/ sync ^\.\/.*$ ***!
|
||||
\**********************************/
|
||||
/*! default exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: module, __webpack_require__.o, __webpack_require__ */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -72,8 +72,8 @@ webpackContext.id = 1;
|
|||
!*** ./templates/a.js ***!
|
||||
\************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -86,8 +86,8 @@ module.exports = function() {
|
|||
!*** ./templates/b.js ***!
|
||||
\************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -100,8 +100,8 @@ module.exports = function() {
|
|||
!*** ./templates/c.js ***!
|
||||
\************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = function() {
|
||||
|
@ -156,7 +156,6 @@ module.exports = function() {
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
function getTemplate(templateName) {
|
||||
return __webpack_require__(1)("./"+templateName);
|
||||
|
@ -174,61 +173,29 @@ console.log(getTemplate("b"));
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 3.77 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
asset output.js 3.62 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 603 bytes (javascript) 86 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 146 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./templates sync ^\.\/.*$ 217 bytes [built]
|
||||
cjs require context ./templates ./example.js 2:8-44
|
||||
./templates/a.js 80 bytes [built]
|
||||
cjs self exports reference ./templates/a.js 1:0-14
|
||||
context element ./a ./templates sync ^\.\/.*$ ./a
|
||||
context element ./a.js ./templates sync ^\.\/.*$ ./a.js
|
||||
./templates/b.js 80 bytes [built]
|
||||
cjs self exports reference ./templates/b.js 1:0-14
|
||||
context element ./b ./templates sync ^\.\/.*$ ./b
|
||||
context element ./b.js ./templates sync ^\.\/.*$ ./b.js
|
||||
./templates/c.js 80 bytes [built]
|
||||
cjs self exports reference ./templates/c.js 1:0-14
|
||||
context element ./c ./templates sync ^\.\/.*$ ./c
|
||||
context element ./c.js ./templates sync ^\.\/.*$ ./c.js
|
||||
+ 1 hidden chunk module
|
||||
> ./example.js main
|
||||
dependent modules 457 bytes [dependent] 4 modules
|
||||
runtime modules 86 bytes 1 module
|
||||
./example.js 146 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 819 bytes [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 603 bytes (javascript) 86 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 146 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./templates sync ^\.\/.*$ 217 bytes [built]
|
||||
cjs require context ./templates ./example.js 2:8-44
|
||||
./templates/a.js 80 bytes [built]
|
||||
cjs self exports reference ./templates/a.js 1:0-14
|
||||
context element ./a ./templates sync ^\.\/.*$ ./a
|
||||
context element ./a.js ./templates sync ^\.\/.*$ ./a.js
|
||||
./templates/b.js 80 bytes [built]
|
||||
cjs self exports reference ./templates/b.js 1:0-14
|
||||
context element ./b ./templates sync ^\.\/.*$ ./b
|
||||
context element ./b.js ./templates sync ^\.\/.*$ ./b.js
|
||||
./templates/c.js 80 bytes [built]
|
||||
cjs self exports reference ./templates/c.js 1:0-14
|
||||
context element ./c ./templates sync ^\.\/.*$ ./c
|
||||
context element ./c.js ./templates sync ^\.\/.*$ ./c.js
|
||||
+ 1 hidden chunk module
|
||||
asset output.js 819 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 603 bytes (javascript) 86 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 457 bytes [dependent] 4 modules
|
||||
runtime modules 86 bytes 1 module
|
||||
./example.js 146 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
# Code Splitting
|
||||
|
|
|
@ -33,7 +33,6 @@ module.exports = Math.random();
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.c, module.id, module.loaded, __webpack_require__.*, module */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
|
@ -57,8 +56,8 @@ if(a == a2) throw new Error("Cache clear failed :(");
|
|||
!*** ./a.js ***!
|
||||
\**************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = Math.random();
|
||||
|
@ -119,39 +118,25 @@ module.exports = Math.random();
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 2.38 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
asset output.js 2.31 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 313 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./a.js 31 bytes [built]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
cjs require ./a ./example.js 1:8-22
|
||||
require.resolve ./a.js ./example.js 4:10-35
|
||||
cjs require ./a ./example.js 10:9-23
|
||||
./example.js 282 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
> ./example.js main
|
||||
dependent modules 31 bytes [dependent] 1 module
|
||||
./example.js 282 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 297 bytes [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 313 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./a.js 31 bytes [built]
|
||||
cjs self exports reference ./a.js 1:0-14
|
||||
cjs require ./a ./example.js 1:8-22
|
||||
require.resolve ./a.js ./example.js 4:10-35
|
||||
cjs require ./a ./example.js 10:9-23
|
||||
./example.js 282 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
asset output.js 297 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 313 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 31 bytes [dependent] 1 module
|
||||
./example.js 282 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -121,9 +121,8 @@ module.exports = {
|
|||
!*** ./node_modules/shared.js + 1 modules ***!
|
||||
\********************************************/
|
||||
/*! namespace exports */
|
||||
/*! export x [provided] [used] [could be renamed] */
|
||||
/*! export y [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! export x [provided] [used in main] [could be renamed] */
|
||||
/*! export y [provided] [used in main] [could be renamed] -> ./node_modules/shared2.js .y */
|
||||
/*! runtime requirements: __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
|
@ -218,6 +217,52 @@ var x = "x";
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/load script */
|
||||
/******/ (() => {
|
||||
/******/ var inProgress = {};
|
||||
/******/ // data-webpack is not used as build has no uniqueName
|
||||
/******/ // loadScript function to load a script via script tag
|
||||
/******/ __webpack_require__.l = (url, done, key) => {
|
||||
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
||||
/******/ var script, needAttach;
|
||||
/******/ if(key !== undefined) {
|
||||
/******/ var scripts = document.getElementsByTagName("script");
|
||||
/******/ for(var i = 0; i < scripts.length; i++) {
|
||||
/******/ var s = scripts[i];
|
||||
/******/ if(s.getAttribute("src") == url) { script = s; break; }
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(!script) {
|
||||
/******/ needAttach = true;
|
||||
/******/ script = document.createElement('script');
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ script.src = url;
|
||||
/******/ }
|
||||
/******/ inProgress[url] = [done];
|
||||
/******/ var onScriptComplete = (prev, event) => {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var doneFns = inProgress[url];
|
||||
/******/ delete inProgress[url];
|
||||
/******/ script.parentNode && script.parentNode.removeChild(script);
|
||||
/******/ doneFns && doneFns.forEach((fn) => fn(event));
|
||||
/******/ if(prev) return prev(event);
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
||||
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
||||
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
||||
/******/ needAttach && document.head.appendChild(script);
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
|
@ -236,6 +281,8 @@ var x = "x";
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -262,49 +309,24 @@ var x = "x";
|
|||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
||||
/******/ var loadingEnded = () => {
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ var loadingEnded = (event) => {
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
||||
/******/ installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
||||
/******/ if(installedChunkData) return installedChunkData[1];
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ installedChunkData[1](error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = url;
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = (event) => {
|
||||
/******/ onScriptComplete = () => {
|
||||
/******/
|
||||
/******/ }
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var reportError = loadingEnded();
|
||||
/******/ if(reportError) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ reportError(error);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ ;
|
||||
/******/ var timeout = setTimeout(() => {
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script })
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId);
|
||||
/******/ } else installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ }
|
||||
|
@ -321,11 +343,8 @@ var x = "x";
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -342,17 +361,16 @@ var x = "x";
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -366,13 +384,11 @@ var x = "x";
|
|||
!*** ./example.js + 2 modules ***!
|
||||
\********************************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.e, __webpack_require__.* */
|
||||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shared.js (<- Module is referenced from different chunks by these modules: ./lazy.js + 2 modules) */
|
||||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shared.js: Module ./node_modules/shared.js is referenced from different chunks by these modules: ./node_modules/c.js */
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/shared.js + 1 modules
|
||||
var shared = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/a.js
|
||||
// module a
|
||||
var a = "a";
|
||||
|
@ -388,7 +404,7 @@ function b_a() {
|
|||
|
||||
|
||||
|
||||
__webpack_require__.e(/*! import() */ 262).then(__webpack_require__.bind(__webpack_require__, /*! ./lazy */ 2)).then(function(lazy) {
|
||||
__webpack_require__.e(/*! import() */ 872).then(__webpack_require__.bind(__webpack_require__, /*! ./lazy */ 2)).then(function(lazy) {
|
||||
console.log(a, b_a(), shared.x, shared.y, lazy.c, lazy.d.a, lazy.x, lazy.y);
|
||||
});
|
||||
|
||||
|
@ -398,10 +414,10 @@ __webpack_require__.e(/*! import() */ 262).then(__webpack_require__.bind(__webpa
|
|||
;
|
||||
```
|
||||
|
||||
# dist/262.output.js
|
||||
# dist/872.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[262],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[872],[
|
||||
/* 0 */,
|
||||
/* 1 */,
|
||||
/* 2 */
|
||||
|
@ -409,16 +425,16 @@ __webpack_require__.e(/*! import() */ 262).then(__webpack_require__.bind(__webpa
|
|||
!*** ./lazy.js + 2 modules ***!
|
||||
\*****************************/
|
||||
/*! namespace exports */
|
||||
/*! export c [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export d [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export a [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! export x [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! export y [provided] [maybe used (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used (runtime-defined)] */
|
||||
/*! export c [provided] [maybe used in main (runtime-defined)] [usage prevents renaming] -> ./node_modules/c.js .c */
|
||||
/*! export d [provided] [maybe used in main (runtime-defined)] [usage prevents renaming] -> ./node_modules/d.js */
|
||||
/*! export a [provided] [maybe used in main (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used in main (runtime-defined)] */
|
||||
/*! export x [provided] [maybe used in main (runtime-defined)] [usage prevents renaming] -> ./node_modules/shared.js + 1 modules .x */
|
||||
/*! export y [provided] [maybe used in main (runtime-defined)] [usage prevents renaming] -> ./node_modules/shared2.js .y */
|
||||
/*! other exports [not provided] [maybe used in main (runtime-defined)] */
|
||||
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__, __webpack_require__.* */
|
||||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/cjs.js (<- Module is not an ECMAScript module) */
|
||||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shared.js (<- Module is referenced from different chunks by these modules: ./lazy.js + 2 modules) */
|
||||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/cjs.js: Module is not an ECMAScript module */
|
||||
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shared.js: Module ./node_modules/shared.js is not in the same chunk(s) (expected in chunk(s) unnamed chunk(s), module is in chunk(s) main) */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
@ -428,9 +444,9 @@ __webpack_require__.r(__webpack_exports__);
|
|||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"c": () => /* reexport */ c,
|
||||
"d": () => /* reexport */ d_namespaceObject,
|
||||
"x": () => /* reexport */ shared.x,
|
||||
"y": () => /* reexport */ shared.y,
|
||||
"d": () => /* reexport */ d_namespaceObject
|
||||
"y": () => /* reexport */ shared.y
|
||||
});
|
||||
|
||||
// NAMESPACE OBJECT: ./node_modules/d.js
|
||||
|
@ -442,10 +458,8 @@ __webpack_require__.d(d_namespaceObject, {
|
|||
|
||||
// EXTERNAL MODULE: ./node_modules/cjs.js
|
||||
var cjs = __webpack_require__(3);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/shared.js + 1 modules
|
||||
var shared = __webpack_require__(1);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/c.js
|
||||
// module c
|
||||
|
||||
|
@ -470,8 +484,7 @@ var a = "d";
|
|||
!*** ./node_modules/cjs.js ***!
|
||||
\*****************************/
|
||||
/*! default exports */
|
||||
/*! export c [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! export c [provided] [used in main] [could be renamed] */
|
||||
/*! runtime requirements: __webpack_exports__ */
|
||||
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
@ -487,7 +500,7 @@ exports.c = "e";
|
|||
Minimized
|
||||
|
||||
```javascript
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[262],{262:(r,d,a)=>{"use strict";a.r(d),a.d(d,{c:()=>w,x:()=>e.x,y:()=>e.y,d:()=>c});var c={};a.r(c),a.d(c,{a:()=>n});var o=a(75),e=a(350),w=String.fromCharCode(o.c.charCodeAt(0)-2),n="d"},75:(r,d)=>{d.c="e"}}]);
|
||||
(self.webpackChunk=self.webpackChunk||[]).push([[872],{872:(r,e,a)=>{"use strict";a.r(e),a.d(e,{c:()=>s,d:()=>c,x:()=>h.x,y:()=>h.y});var c={};a.r(c),a.d(c,{a:()=>C});var d=a(75),h=a(376),s=String.fromCharCode(d.c.charCodeAt(0)-2),C="d"},75:(r,e)=>{e.c="e"}}]);
|
||||
```
|
||||
|
||||
# Info
|
||||
|
@ -495,71 +508,43 @@ Minimized
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
262.output.js 2.56 KiB [emitted]
|
||||
output.js 10.1 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 372 bytes (javascript) 4.76 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js + 2 modules 272 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./node_modules/shared.js + 1 modules 100 bytes [built]
|
||||
[exports: x, y]
|
||||
[all exports used]
|
||||
harmony side effect evaluation shared ./example.js + 2 modules ./node_modules/a.js 3:0-23
|
||||
harmony export imported specifier shared ./example.js + 2 modules ./node_modules/a.js 3:0-23
|
||||
harmony side effect evaluation shared ./lazy.js + 2 modules ./node_modules/c.js 6:0-30
|
||||
harmony export imported specifier shared ./lazy.js + 2 modules ./node_modules/c.js 6:0-30
|
||||
harmony export imported specifier shared ./lazy.js + 2 modules ./node_modules/c.js 6:0-30
|
||||
+ 7 hidden chunk modules
|
||||
chunk 262.output.js 273 bytes [rendered]
|
||||
> ./lazy ./example.js 4:0-16
|
||||
./lazy.js + 2 modules 231 bytes [built]
|
||||
[exports: c, d, x, y]
|
||||
import() ./lazy ./example.js + 2 modules ./example.js 4:0-16
|
||||
./node_modules/cjs.js 42 bytes [built]
|
||||
[exports: c]
|
||||
[all exports used]
|
||||
harmony side effect evaluation cjs ./lazy.js + 2 modules ./node_modules/c.js 2:0-29
|
||||
harmony import specifier cjs ./lazy.js + 2 modules ./node_modules/c.js 4:35-47
|
||||
asset output.js 10.9 KiB [emitted] (name: main)
|
||||
asset 872.output.js 2.73 KiB [emitted]
|
||||
chunk (runtime: main) output.js (main) 367 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.42 KiB 8 modules
|
||||
dependent modules 100 bytes [dependent] 1 module
|
||||
./example.js + 2 modules 267 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 872.output.js 263 bytes [rendered]
|
||||
> ./lazy ./example.js 4:0-16
|
||||
dependent modules 42 bytes [dependent] 1 module
|
||||
./lazy.js + 2 modules 221 bytes [built] [code generated]
|
||||
[exports: c, d, x, y]
|
||||
import() ./lazy ./example.js + 2 modules ./example.js 4:0-16
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
262.output.js 265 bytes [emitted]
|
||||
output.js 1.7 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 372 bytes (javascript) 4.76 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js + 2 modules 272 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./node_modules/shared.js + 1 modules 100 bytes [built]
|
||||
[exports: x, y]
|
||||
[all exports used]
|
||||
harmony side effect evaluation shared ./example.js + 2 modules ./node_modules/a.js 3:0-23
|
||||
harmony export imported specifier shared ./example.js + 2 modules ./node_modules/a.js 3:0-23
|
||||
harmony side effect evaluation shared ./lazy.js + 2 modules ./node_modules/c.js 6:0-30
|
||||
harmony export imported specifier shared ./lazy.js + 2 modules ./node_modules/c.js 6:0-30
|
||||
harmony export imported specifier shared ./lazy.js + 2 modules ./node_modules/c.js 6:0-30
|
||||
+ 7 hidden chunk modules
|
||||
chunk 262.output.js 273 bytes [rendered]
|
||||
> ./lazy ./example.js 4:0-16
|
||||
./lazy.js + 2 modules 231 bytes [built]
|
||||
[exports: c, d, x, y]
|
||||
import() ./lazy ./example.js + 2 modules ./example.js 4:0-16
|
||||
./node_modules/cjs.js 42 bytes [built]
|
||||
[exports: c]
|
||||
[all exports used]
|
||||
harmony side effect evaluation cjs ./lazy.js + 2 modules ./node_modules/c.js 2:0-29
|
||||
harmony import specifier cjs ./lazy.js + 2 modules ./node_modules/c.js 4:35-47
|
||||
asset output.js 2.01 KiB [emitted] [minimized] (name: main)
|
||||
asset 872.output.js 261 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) output.js (main) 367 bytes (javascript) 5.42 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.42 KiB 8 modules
|
||||
dependent modules 100 bytes [dependent] 1 module
|
||||
./example.js + 2 modules 267 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 872.output.js 263 bytes [rendered]
|
||||
> ./lazy ./example.js 4:0-16
|
||||
dependent modules 42 bytes [dependent] 1 module
|
||||
./lazy.js + 2 modules 221 bytes [built] [code generated]
|
||||
[exports: c, d, x, y]
|
||||
import() ./lazy ./example.js + 2 modules ./example.js 4:0-16
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -86,16 +86,16 @@ _{{webpack.config.js}}_
|
|||
_{{dist/output.js}}_
|
||||
```
|
||||
|
||||
# dist/262.output.js
|
||||
# dist/872.output.js
|
||||
|
||||
```javascript
|
||||
_{{dist/262.output.js}}_
|
||||
_{{dist/872.output.js}}_
|
||||
```
|
||||
|
||||
Minimized
|
||||
|
||||
```javascript
|
||||
_{{production:dist/262.output.js}}_
|
||||
_{{production:dist/872.output.js}}_
|
||||
```
|
||||
|
||||
# Info
|
||||
|
|
|
@ -58,22 +58,48 @@ export { c } from "./c";
|
|||
/******/ (() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ var __webpack_modules__ = ([
|
||||
/* 0 */,
|
||||
/* 0 */
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var big_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! big-module */ 1);
|
||||
/* harmony import */ var big_module_with_flag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! big-module-with-flag */ 5);
|
||||
/* harmony import */ var big_module_with_flag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! big-module-with-flag */ 6);
|
||||
|
||||
|
||||
|
||||
console.log(
|
||||
big_module__WEBPACK_IMPORTED_MODULE_0__.a,
|
||||
big_module__WEBPACK_IMPORTED_MODULE_0__.b,
|
||||
big_module_with_flag__WEBPACK_IMPORTED_MODULE_1__.a,
|
||||
big_module_with_flag__WEBPACK_IMPORTED_MODULE_2__.b
|
||||
);
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/*!******************************************!*\
|
||||
!*** ./node_modules/big-module/index.js ***!
|
||||
\******************************************/
|
||||
/*! namespace exports */
|
||||
/*! export a [provided] [used] [could be renamed] */
|
||||
/*! export b [provided] [used] [could be renamed] */
|
||||
/*! export c [provided] [unused] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/*! export a [provided] [no usage info] [missing usage info prevents renaming] -> ./node_modules/big-module/a.js .a */
|
||||
/*! export b [provided] [no usage info] [missing usage info prevents renaming] -> ./node_modules/big-module/b.js .b */
|
||||
/*! export c [provided] [no usage info] [missing usage info prevents renaming] -> ./node_modules/big-module/c.js .c */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_exports__, __webpack_require__.d, __webpack_require__.r, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "a": () => /* reexport safe */ _a__WEBPACK_IMPORTED_MODULE_0__.a,
|
||||
/* harmony export */ "b": () => /* reexport safe */ _b__WEBPACK_IMPORTED_MODULE_1__.b
|
||||
/* harmony export */ "b": () => /* reexport safe */ _b__WEBPACK_IMPORTED_MODULE_1__.b,
|
||||
/* harmony export */ "c": () => /* reexport safe */ _c__WEBPACK_IMPORTED_MODULE_2__.c
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _a__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./a */ 2);
|
||||
/* harmony import */ var _b__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./b */ 3);
|
||||
|
@ -89,11 +115,12 @@ export { c } from "./c";
|
|||
!*** ./node_modules/big-module/a.js ***!
|
||||
\**************************************/
|
||||
/*! namespace exports */
|
||||
/*! export a [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/*! export a [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "a": () => /* binding */ a
|
||||
/* harmony export */ });
|
||||
|
@ -106,11 +133,12 @@ const a = "a";
|
|||
!*** ./node_modules/big-module/b.js ***!
|
||||
\**************************************/
|
||||
/*! namespace exports */
|
||||
/*! export b [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/*! export b [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "b": () => /* binding */ b
|
||||
/* harmony export */ });
|
||||
|
@ -123,12 +151,15 @@ const b = "b";
|
|||
!*** ./node_modules/big-module/c.js ***!
|
||||
\**************************************/
|
||||
/*! namespace exports */
|
||||
/*! export c [provided] [unused] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/*! export c [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
/* unused harmony export c */
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "c": () => /* binding */ c
|
||||
/* harmony export */ });
|
||||
const c = "c";
|
||||
|
||||
|
||||
|
@ -138,11 +169,12 @@ const c = "c";
|
|||
!*** ./node_modules/big-module-with-flag/a.js ***!
|
||||
\************************************************/
|
||||
/*! namespace exports */
|
||||
/*! export a [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/*! export a [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "a": () => /* binding */ a
|
||||
/* harmony export */ });
|
||||
|
@ -155,11 +187,12 @@ const a = "a";
|
|||
!*** ./node_modules/big-module-with-flag/b.js ***!
|
||||
\************************************************/
|
||||
/*! namespace exports */
|
||||
/*! export b [provided] [used] [could be renamed] */
|
||||
/*! other exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/*! export b [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "b": () => /* binding */ b
|
||||
/* harmony export */ });
|
||||
|
@ -215,34 +248,27 @@ const b = "b";
|
|||
/******/ __webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // 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 });
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
``` js
|
||||
(() => {
|
||||
/*!********************!*\
|
||||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! namespace exports */
|
||||
/*! exports [not provided] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
/* harmony import */ var big_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! big-module */ 1);
|
||||
/* harmony import */ var big_module_with_flag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! big-module-with-flag */ 5);
|
||||
/* harmony import */ var big_module_with_flag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! big-module-with-flag */ 6);
|
||||
|
||||
|
||||
|
||||
console.log(
|
||||
big_module__WEBPACK_IMPORTED_MODULE_0__.a,
|
||||
big_module__WEBPACK_IMPORTED_MODULE_0__.b,
|
||||
big_module_with_flag__WEBPACK_IMPORTED_MODULE_1__.a,
|
||||
big_module_with_flag__WEBPACK_IMPORTED_MODULE_2__.b
|
||||
);
|
||||
|
||||
})();
|
||||
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ __webpack_require__(0);
|
||||
/******/ // This entry module used 'exports' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -252,69 +278,27 @@ console.log(
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 6.65 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 325 bytes (javascript) 394 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 140 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./node_modules/big-module-with-flag/a.js 22 bytes [built]
|
||||
[exports: a]
|
||||
[all exports used]
|
||||
harmony import specifier big-module-with-flag ./example.js 7:1-3 (skipped side-effect-free modules)
|
||||
[inactive] harmony side effect evaluation ./a ./node_modules/big-module-with-flag/index.js 1:0-24
|
||||
[inactive] harmony export imported specifier ./a ./node_modules/big-module-with-flag/index.js 1:0-24
|
||||
./node_modules/big-module-with-flag/b.js 22 bytes [built]
|
||||
[exports: b]
|
||||
[all exports used]
|
||||
harmony import specifier big-module-with-flag ./example.js 8:1-3 (skipped side-effect-free modules)
|
||||
[inactive] harmony side effect evaluation ./b ./node_modules/big-module-with-flag/index.js 2:0-24
|
||||
[inactive] harmony export imported specifier ./b ./node_modules/big-module-with-flag/index.js 2:0-24
|
||||
./node_modules/big-module/a.js 22 bytes [built]
|
||||
[exports: a]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./a ./node_modules/big-module/index.js 1:0-24
|
||||
harmony export imported specifier ./a ./node_modules/big-module/index.js 1:0-24
|
||||
./node_modules/big-module/b.js 22 bytes [built]
|
||||
[exports: b]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./b ./node_modules/big-module/index.js 2:0-24
|
||||
harmony export imported specifier ./b ./node_modules/big-module/index.js 2:0-24
|
||||
./node_modules/big-module/c.js 22 bytes [built]
|
||||
[exports: c]
|
||||
[no exports used]
|
||||
harmony side effect evaluation ./c ./node_modules/big-module/index.js 3:0-24
|
||||
[inactive] harmony export imported specifier ./c ./node_modules/big-module/index.js 3:0-24
|
||||
./node_modules/big-module/index.js 75 bytes [built]
|
||||
[exports: a, b, c]
|
||||
[only some exports used: a, b]
|
||||
harmony side effect evaluation big-module ./example.js 1:0-46
|
||||
harmony import specifier big-module ./example.js 5:1-3
|
||||
harmony import specifier big-module ./example.js 6:1-3
|
||||
+ 2 hidden chunk modules
|
||||
asset output.js 8.39 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 325 bytes (javascript) 668 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 185 bytes [dependent] 6 modules
|
||||
runtime modules 668 bytes 3 modules
|
||||
./example.js 140 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 52 bytes [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 325 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js + 6 modules 325 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
[inactive] harmony side effect evaluation ./a ./node_modules/big-module-with-flag/index.js 1:0-24
|
||||
[inactive] harmony export imported specifier ./a ./node_modules/big-module-with-flag/index.js 1:0-24
|
||||
[inactive] harmony side effect evaluation ./b ./node_modules/big-module-with-flag/index.js 2:0-24
|
||||
[inactive] harmony export imported specifier ./b ./node_modules/big-module-with-flag/index.js 2:0-24
|
||||
entry ./example.js main
|
||||
asset output.js 52 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 325 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js + 6 modules 325 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -55,13 +55,12 @@ module.exports = [
|
|||
## source-map.js and source-map.js.map
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[0],[
|
||||
/* 0 */
|
||||
/*!******************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/index.js!./example.coffee ***!
|
||||
\******************************************************************/
|
||||
/*!*********************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/dist/cjs.js!./example.coffee ***!
|
||||
\*********************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -85,24 +84,24 @@ race = function(winner, ...runners) {
|
|||
|
||||
|
||||
/***/ })
|
||||
],[[0,0]]]);
|
||||
],
|
||||
0,[[0,1]]]);
|
||||
//# sourceMappingURL=bundle-source-map.js.map
|
||||
```
|
||||
|
||||
```json
|
||||
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;;AAEU;;;AAAA;;AACV,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX;AAFR,EAFQ;;;AAOV,OAAO,SAAC,MAAD,KAAS,OAAT;SACL,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-source-map.js","sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n"],"sourceRoot":""}
|
||||
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAEU;;;AAAA;;AACV,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX;AAFR,EAFQ;;;AAOV,OAAO,SAAC,MAAD,KAAS,OAAT;SACL,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-source-map.js","sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n"],"sourceRoot":""}
|
||||
```
|
||||
|
||||
## hidden-source-map.js and hidden-source-map.js.map
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[0],[
|
||||
/* 0 */
|
||||
/*!******************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/index.js!./example.coffee ***!
|
||||
\******************************************************************/
|
||||
/*!*********************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/dist/cjs.js!./example.coffee ***!
|
||||
\*********************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -126,23 +125,23 @@ race = function(winner, ...runners) {
|
|||
|
||||
|
||||
/***/ })
|
||||
],[[0,0]]]);
|
||||
],
|
||||
0,[[0,1]]]);
|
||||
```
|
||||
|
||||
```json
|
||||
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;;AAEU;;;AAAA;;AACV,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX;AAFR,EAFQ;;;AAOV,OAAO,SAAC,MAAD,KAAS,OAAT;SACL,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-hidden-source-map.js","sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n"],"sourceRoot":""}
|
||||
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAEU;;;AAAA;;AACV,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX;AAFR,EAFQ;;;AAOV,OAAO,SAAC,MAAD,KAAS,OAAT;SACL,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-hidden-source-map.js","sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n"],"sourceRoot":""}
|
||||
```
|
||||
|
||||
## inline-source-map.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[0],[
|
||||
/* 0 */
|
||||
/*!******************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/index.js!./example.coffee ***!
|
||||
\******************************************************************/
|
||||
/*!*********************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/dist/cjs.js!./example.coffee ***!
|
||||
\*********************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
|
@ -166,14 +165,15 @@ race = function(winner, ...runners) {
|
|||
|
||||
|
||||
/***/ })
|
||||
],[[0,0]]]);
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9leGFtcGxlLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBRVU7OztBQUFBOztBQUNWLE9BQ0U7RUFBQSxNQUFRLElBQUksQ0FBQyxJQUFiO0VBQ0EsUUFBUSxNQURSO0VBRUEsTUFBUSxTQUFDLENBQUQ7V0FBTyxJQUFJLE9BQU8sQ0FBUDtFQUFYO0FBRlIsRUFGUTs7O0FBT1YsT0FBTyxTQUFDLE1BQUQsS0FBUyxPQUFUO1NBQ0wsTUFBTSxNQUFOLEVBQWMsT0FBZDtBQURLIiwiZmlsZSI6Ii4vYnVuZGxlLWlubGluZS1zb3VyY2UtbWFwLmpzIiwic291cmNlc0NvbnRlbnQiOlsiIyBUYWtlbiBmcm9tIGh0dHA6Ly9jb2ZmZWVzY3JpcHQub3JnL1xuXG4jIE9iamVjdHM6XG5tYXRoID1cbiAgcm9vdDogICBNYXRoLnNxcnRcbiAgc3F1YXJlOiBzcXVhcmVcbiAgY3ViZTogICAoeCkgLT4geCAqIHNxdWFyZSB4XG5cbiMgU3BsYXRzOlxucmFjZSA9ICh3aW5uZXIsIHJ1bm5lcnMuLi4pIC0+XG4gIHByaW50IHdpbm5lciwgcnVubmVyc1xuIl0sInNvdXJjZVJvb3QiOiIifQ==
|
||||
],
|
||||
0,[[0,1]]]);
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9leGFtcGxlLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFFVTs7O0FBQUE7O0FBQ1YsT0FDRTtFQUFBLE1BQVEsSUFBSSxDQUFDLElBQWI7RUFDQSxRQUFRLE1BRFI7RUFFQSxNQUFRLFNBQUMsQ0FBRDtXQUFPLElBQUksT0FBTyxDQUFQO0VBQVg7QUFGUixFQUZROzs7QUFPVixPQUFPLFNBQUMsTUFBRCxLQUFTLE9BQVQ7U0FDTCxNQUFNLE1BQU4sRUFBYyxPQUFkO0FBREsiLCJmaWxlIjoiLi9idW5kbGUtaW5saW5lLXNvdXJjZS1tYXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyIjIFRha2VuIGZyb20gaHR0cDovL2NvZmZlZXNjcmlwdC5vcmcvXG5cbiMgT2JqZWN0czpcbm1hdGggPVxuICByb290OiAgIE1hdGguc3FydFxuICBzcXVhcmU6IHNxdWFyZVxuICBjdWJlOiAgICh4KSAtPiB4ICogc3F1YXJlIHhcblxuIyBTcGxhdHM6XG5yYWNlID0gKHdpbm5lciwgcnVubmVycy4uLikgLT5cbiAgcHJpbnQgd2lubmVyLCBydW5uZXJzXG4iXSwic291cmNlUm9vdCI6IiJ9
|
||||
```
|
||||
|
||||
## nosources-source-map.js.map
|
||||
|
||||
```json
|
||||
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;;AAEU;;;AAAA;;AACV,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX;AAFR,EAFQ;;;AAOV,OAAO,SAAC,MAAD,KAAS,OAAT;SACL,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-nosources-source-map.js","sourceRoot":""}
|
||||
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAEU;;;AAAA;;AACV,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX;AAFR,EAFQ;;;AAOV,OAAO,SAAC,MAAD,KAAS,OAAT;SACL,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-nosources-source-map.js","sourceRoot":""}
|
||||
```
|
||||
|
||||
## eval-source-map.js
|
||||
|
@ -187,20 +187,20 @@ race = function(winner, ...runners) {
|
|||
* or disable the default devtool with "devtool: false".
|
||||
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
||||
*/
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[0],[
|
||||
/* 0 */
|
||||
/*!******************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/index.js!./example.coffee ***!
|
||||
\******************************************************************/
|
||||
/*!*********************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/dist/cjs.js!./example.coffee ***!
|
||||
\*********************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\n// Splats:\nrace = function(winner, ...runners) {\n return print(winner, runners);\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9leGFtcGxlLmNvZmZlZT8yNDE2Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVVOzs7QUFBQSxJQUFBLElBQUEsRUFBQTs7QUFDVixJQUFBLEdBQ0U7RUFBQSxJQUFBLEVBQVEsSUFBSSxDQUFDLElBQWI7RUFDQSxNQUFBLEVBQVEsTUFEUjtFQUVBLElBQUEsRUFBUSxRQUFBLENBQUMsQ0FBRCxDQUFBO1dBQU8sQ0FBQSxHQUFJLE1BQUEsQ0FBTyxDQUFQO0VBQVg7QUFGUixFQUZROzs7QUFPVixJQUFBLEdBQU8sUUFBQSxDQUFDLE1BQUQsRUFBQSxHQUFTLE9BQVQsQ0FBQTtTQUNMLEtBQUEsQ0FBTSxNQUFOLEVBQWMsT0FBZDtBQURLIiwic291cmNlc0NvbnRlbnQiOlsiIyBUYWtlbiBmcm9tIGh0dHA6Ly9jb2ZmZWVzY3JpcHQub3JnL1xuXG4jIE9iamVjdHM6XG5tYXRoID1cbiAgcm9vdDogICBNYXRoLnNxcnRcbiAgc3F1YXJlOiBzcXVhcmVcbiAgY3ViZTogICAoeCkgLT4geCAqIHNxdWFyZSB4XG5cbiMgU3BsYXRzOlxucmFjZSA9ICh3aW5uZXIsIHJ1bm5lcnMuLi4pIC0+XG4gIHByaW50IHdpbm5lciwgcnVubmVyc1xuIl19\n//# sourceURL=webpack-internal:///0\n");
|
||||
eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\n// Splats:\nrace = function(winner, ...runners) {\n return print(winner, runners);\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vZXhhbXBsZS5jb2ZmZWU/MjQxNiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFVTs7O0FBQUEsSUFBQSxJQUFBLEVBQUE7O0FBQ1YsSUFBQSxHQUNFO0VBQUEsSUFBQSxFQUFRLElBQUksQ0FBQyxJQUFiO0VBQ0EsTUFBQSxFQUFRLE1BRFI7RUFFQSxJQUFBLEVBQVEsUUFBQSxDQUFDLENBQUQsQ0FBQTtXQUFPLENBQUEsR0FBSSxNQUFBLENBQU8sQ0FBUDtFQUFYO0FBRlIsRUFGUTs7O0FBT1YsSUFBQSxHQUFPLFFBQUEsQ0FBQyxNQUFELEVBQUEsR0FBUyxPQUFULENBQUE7U0FDTCxLQUFBLENBQU0sTUFBTixFQUFjLE9BQWQ7QUFESyIsInNvdXJjZXNDb250ZW50IjpbIiMgVGFrZW4gZnJvbSBodHRwOi8vY29mZmVlc2NyaXB0Lm9yZy9cblxuIyBPYmplY3RzOlxubWF0aCA9XG4gIHJvb3Q6ICAgTWF0aC5zcXJ0XG4gIHNxdWFyZTogc3F1YXJlXG4gIGN1YmU6ICAgKHgpIC0+IHggKiBzcXVhcmUgeFxuXG4jIFNwbGF0czpcbnJhY2UgPSAod2lubmVyLCBydW5uZXJzLi4uKSAtPlxuICBwcmludCB3aW5uZXIsIHJ1bm5lcnNcbiJdLCJmaWxlIjoiMC5qcyJ9\n//# sourceURL=webpack-internal:///0\n");
|
||||
|
||||
/***/ })
|
||||
],[[0,0]]]);
|
||||
],
|
||||
0,[[0,1]]]);
|
||||
```
|
||||
|
||||
## eval.js
|
||||
|
@ -214,20 +214,20 @@ eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\n
|
|||
* or disable the default devtool with "devtool: false".
|
||||
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
||||
*/
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[0],[
|
||||
/* 0 */
|
||||
/*!******************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/index.js!./example.coffee ***!
|
||||
\******************************************************************/
|
||||
/*!*********************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/dist/cjs.js!./example.coffee ***!
|
||||
\*********************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\n// Splats:\nrace = function(winner, ...runners) {\n return print(winner, runners);\n};\n\n\n//# sourceURL=webpack:///./example.coffee?../../node_modules/coffee-loader/index.js");
|
||||
eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\n// Splats:\nrace = function(winner, ...runners) {\n return print(winner, runners);\n};\n\n\n//# sourceURL=webpack:///./example.coffee?../../node_modules/coffee-loader/dist/cjs.js");
|
||||
|
||||
/***/ })
|
||||
],[[0,0]]]);
|
||||
],
|
||||
0,[[0,1]]]);
|
||||
```
|
||||
|
||||
## eval-cheap-source-map.js
|
||||
|
@ -241,20 +241,20 @@ eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\n
|
|||
* or disable the default devtool with "devtool: false".
|
||||
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
||||
*/
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[0],[
|
||||
/* 0 */
|
||||
/*!******************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/index.js!./example.coffee ***!
|
||||
\******************************************************************/
|
||||
/*!*********************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/dist/cjs.js!./example.coffee ***!
|
||||
\*********************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\n// Splats:\nrace = function(winner, ...runners) {\n return print(winner, runners);\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2V4YW1wbGUuY29mZmVlP2ViNDEiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gVGFrZW4gZnJvbSBodHRwOi8vY29mZmVlc2NyaXB0Lm9yZy9cblxuLy8gT2JqZWN0czpcbnZhciBtYXRoLCByYWNlO1xuXG5tYXRoID0ge1xuICByb290OiBNYXRoLnNxcnQsXG4gIHNxdWFyZTogc3F1YXJlLFxuICBjdWJlOiBmdW5jdGlvbih4KSB7XG4gICAgcmV0dXJuIHggKiBzcXVhcmUoeCk7XG4gIH1cbn07XG5cbi8vIFNwbGF0czpcbnJhY2UgPSBmdW5jdGlvbih3aW5uZXIsIC4uLnJ1bm5lcnMpIHtcbiAgcmV0dXJuIHByaW50KHdpbm5lciwgcnVubmVycyk7XG59O1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///0\n");
|
||||
eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\n// Splats:\nrace = function(winner, ...runners) {\n return print(winner, runners);\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2V4YW1wbGUuY29mZmVlP2VlNTgiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gVGFrZW4gZnJvbSBodHRwOi8vY29mZmVlc2NyaXB0Lm9yZy9cblxuLy8gT2JqZWN0czpcbnZhciBtYXRoLCByYWNlO1xuXG5tYXRoID0ge1xuICByb290OiBNYXRoLnNxcnQsXG4gIHNxdWFyZTogc3F1YXJlLFxuICBjdWJlOiBmdW5jdGlvbih4KSB7XG4gICAgcmV0dXJuIHggKiBzcXVhcmUoeCk7XG4gIH1cbn07XG5cbi8vIFNwbGF0czpcbnJhY2UgPSBmdW5jdGlvbih3aW5uZXIsIC4uLnJ1bm5lcnMpIHtcbiAgcmV0dXJuIHByaW50KHdpbm5lciwgcnVubmVycyk7XG59O1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///0\n");
|
||||
|
||||
/***/ })
|
||||
],[[0,0]]]);
|
||||
],
|
||||
0,[[0,1]]]);
|
||||
```
|
||||
|
||||
## eval-cheap-module-source-map.js
|
||||
|
@ -268,215 +268,190 @@ eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\n
|
|||
* or disable the default devtool with "devtool: false".
|
||||
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
||||
*/
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[0],[
|
||||
/* 0 */
|
||||
/*!******************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/index.js!./example.coffee ***!
|
||||
\******************************************************************/
|
||||
/*!*********************************************************************!*\
|
||||
!*** ../../node_modules/coffee-loader/dist/cjs.js!./example.coffee ***!
|
||||
\*********************************************************************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: */
|
||||
/***/ (() => {
|
||||
|
||||
eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\n// Splats:\nrace = function(winner, ...runners) {\n return print(winner, runners);\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9leGFtcGxlLmNvZmZlZT8yNDE2Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVVOzs7QUFBQSxJQUFBLElBQUEsRUFBQTs7QUFDVixJQUFBLEdBQ0U7RUFBQSxJQUFBLEVBQVEsSUFBSSxDQUFDLElBQWI7RUFDQSxNQUFBLEVBQVEsTUFEUjtFQUVBLElBQUEsRUFBUSxRQUFBLENBQUMsQ0FBRCxDQUFBO1dBQU8sQ0FBQSxHQUFJLE1BQUEsQ0FBTyxDQUFQO0VBQVg7QUFGUixFQUZROzs7QUFPVixJQUFBLEdBQU8sUUFBQSxDQUFDLE1BQUQsRUFBQSxHQUFTLE9BQVQsQ0FBQTtTQUNMLEtBQUEsQ0FBTSxNQUFOLEVBQWMsT0FBZDtBQURLIiwic291cmNlc0NvbnRlbnQiOlsiIyBUYWtlbiBmcm9tIGh0dHA6Ly9jb2ZmZWVzY3JpcHQub3JnL1xuXG4jIE9iamVjdHM6XG5tYXRoID1cbiAgcm9vdDogICBNYXRoLnNxcnRcbiAgc3F1YXJlOiBzcXVhcmVcbiAgY3ViZTogICAoeCkgLT4geCAqIHNxdWFyZSB4XG5cbiMgU3BsYXRzOlxucmFjZSA9ICh3aW5uZXIsIHJ1bm5lcnMuLi4pIC0+XG4gIHByaW50IHdpbm5lciwgcnVubmVyc1xuIl19\n//# sourceURL=webpack-internal:///0\n");
|
||||
eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\n// Splats:\nrace = function(winner, ...runners) {\n return print(winner, runners);\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vZXhhbXBsZS5jb2ZmZWU/MjQxNiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFVTs7O0FBQUEsSUFBQSxJQUFBLEVBQUE7O0FBQ1YsSUFBQSxHQUNFO0VBQUEsSUFBQSxFQUFRLElBQUksQ0FBQyxJQUFiO0VBQ0EsTUFBQSxFQUFRLE1BRFI7RUFFQSxJQUFBLEVBQVEsUUFBQSxDQUFDLENBQUQsQ0FBQTtXQUFPLENBQUEsR0FBSSxNQUFBLENBQU8sQ0FBUDtFQUFYO0FBRlIsRUFGUTs7O0FBT1YsSUFBQSxHQUFPLFFBQUEsQ0FBQyxNQUFELEVBQUEsR0FBUyxPQUFULENBQUE7U0FDTCxLQUFBLENBQU0sTUFBTixFQUFjLE9BQWQ7QUFESyIsInNvdXJjZXNDb250ZW50IjpbIiMgVGFrZW4gZnJvbSBodHRwOi8vY29mZmVlc2NyaXB0Lm9yZy9cblxuIyBPYmplY3RzOlxubWF0aCA9XG4gIHJvb3Q6ICAgTWF0aC5zcXJ0XG4gIHNxdWFyZTogc3F1YXJlXG4gIGN1YmU6ICAgKHgpIC0+IHggKiBzcXVhcmUgeFxuXG4jIFNwbGF0czpcbnJhY2UgPSAod2lubmVyLCBydW5uZXJzLi4uKSAtPlxuICBwcmludCB3aW5uZXIsIHJ1bm5lcnNcbiJdLCJmaWxlIjoiMC5qcyJ9\n//# sourceURL=webpack-internal:///0\n");
|
||||
|
||||
/***/ })
|
||||
],[[0,0]]]);
|
||||
],
|
||||
0,[[0,1]]]);
|
||||
```
|
||||
|
||||
## cheap-module-source-map.js.map
|
||||
|
||||
```json
|
||||
{"version":3,"file":"./bundle-cheap-module-source-map.js","sources":["webpack:///./example.coffee"],"sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n"],"mappings":";;;;;;;;;;AAEA;AACA;;AADA;AACA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAFA;AACA;;AAIA;AACA;AADA;AACA;AACA;A;A","sourceRoot":""}
|
||||
{"version":3,"file":"./bundle-cheap-module-source-map.js","sources":["webpack:///./example.coffee"],"sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n"],"mappings":";;;;;;;;;AAEA;AACA;;AADA;AACA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAFA;AACA;;AAIA;AACA;AADA;AACA;AACA;A;;A","sourceRoot":""}
|
||||
```
|
||||
|
||||
## cheap-source-map.js.map
|
||||
|
||||
```json
|
||||
{"version":3,"file":"./bundle-cheap-source-map.js","sources":["webpack:///./example.coffee"],"sourcesContent":["// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\n// Splats:\nrace = function(winner, ...runners) {\n return print(winner, runners);\n};\n"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A;A","sourceRoot":""}
|
||||
{"version":3,"file":"./bundle-cheap-source-map.js","sources":["webpack:///./example.coffee"],"sourcesContent":["// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\n// Splats:\nrace = function(winner, ...runners) {\n return print(winner, runners);\n};\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A;;A","sourceRoot":""}
|
||||
```
|
||||
|
||||
# webpack output
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
./bundle-eval.js 1.36 KiB [emitted] [name: bundle]
|
||||
./runtime~bundle-eval.js 5.69 KiB [emitted] [name: runtime~bundle]
|
||||
Entrypoint bundle = ./runtime~bundle-eval.js ./bundle-eval.js
|
||||
chunk ./runtime~bundle-eval.js (runtime~bundle) 2.59 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
2 chunk modules
|
||||
chunk ./bundle-eval.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/index.js!./example.coffee 256 bytes [built]
|
||||
[no exports used]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
./bundle-eval-cheap-source-map.js 2.03 KiB [emitted] [name: bundle]
|
||||
./runtime~bundle-eval-cheap-source-map.js 5.68 KiB [emitted] [name: runtime~bundle]
|
||||
Entrypoint bundle = ./runtime~bundle-eval-cheap-source-map.js ./bundle-eval-cheap-source-map.js
|
||||
chunk ./runtime~bundle-eval-cheap-source-map.js (runtime~bundle) 2.59 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
2 chunk modules
|
||||
chunk ./bundle-eval-cheap-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/index.js!./example.coffee 256 bytes [built]
|
||||
[no exports used]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
./bundle-eval-cheap-module-source-map.js 2.17 KiB [emitted] [name: bundle]
|
||||
./runtime~bundle-eval-cheap-module-source-map.js 5.68 KiB [emitted] [name: runtime~bundle]
|
||||
Entrypoint bundle = ./runtime~bundle-eval-cheap-module-source-map.js ./bundle-eval-cheap-module-source-map.js
|
||||
chunk ./runtime~bundle-eval-cheap-module-source-map.js (runtime~bundle) 2.59 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
2 chunk modules
|
||||
chunk ./bundle-eval-cheap-module-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/index.js!./example.coffee 256 bytes [built]
|
||||
[no exports used]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
./bundle-eval-source-map.js 2.17 KiB [emitted] [name: bundle]
|
||||
./runtime~bundle-eval-source-map.js 5.68 KiB [emitted] [name: runtime~bundle]
|
||||
Entrypoint bundle = ./runtime~bundle-eval-source-map.js ./bundle-eval-source-map.js
|
||||
chunk ./runtime~bundle-eval-source-map.js (runtime~bundle) 2.59 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
2 chunk modules
|
||||
chunk ./bundle-eval-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/index.js!./example.coffee 256 bytes [built]
|
||||
[no exports used]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
./bundle-cheap-source-map.js 768 bytes [emitted] [name: bundle]
|
||||
./bundle-cheap-source-map.js.map 526 bytes [emitted] [dev] [name: (bundle)]
|
||||
./runtime~bundle-cheap-source-map.js 5.19 KiB [emitted] [name: runtime~bundle]
|
||||
./runtime~bundle-cheap-source-map.js.map 4.44 KiB [emitted] [dev] [name: (runtime~bundle)]
|
||||
Entrypoint bundle = ./runtime~bundle-cheap-source-map.js ./bundle-cheap-source-map.js (./bundle-cheap-source-map.js.map ./runtime~bundle-cheap-source-map.js.map)
|
||||
chunk ./runtime~bundle-cheap-source-map.js (runtime~bundle) 2.59 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
2 chunk modules
|
||||
chunk ./bundle-cheap-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/index.js!./example.coffee 256 bytes [built]
|
||||
[no exports used]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
./bundle-cheap-module-source-map.js 775 bytes [emitted] [name: bundle]
|
||||
./bundle-cheap-module-source-map.js.map 453 bytes [emitted] [dev] [name: (bundle)]
|
||||
./runtime~bundle-cheap-module-source-map.js 5.2 KiB [emitted] [name: runtime~bundle]
|
||||
./runtime~bundle-cheap-module-source-map.js.map 4.45 KiB [emitted] [dev] [name: (runtime~bundle)]
|
||||
Entrypoint bundle = ./runtime~bundle-cheap-module-source-map.js ./bundle-cheap-module-source-map.js (./bundle-cheap-module-source-map.js.map ./runtime~bundle-cheap-module-source-map.js.map)
|
||||
chunk ./runtime~bundle-cheap-module-source-map.js (runtime~bundle) 2.59 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
2 chunk modules
|
||||
chunk ./bundle-cheap-module-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/index.js!./example.coffee 256 bytes [built]
|
||||
[no exports used]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
./bundle-inline-cheap-source-map.js 1.46 KiB [emitted] [name: bundle]
|
||||
./runtime~bundle-inline-cheap-source-map.js 11.1 KiB [emitted] [name: runtime~bundle]
|
||||
Entrypoint bundle = ./runtime~bundle-inline-cheap-source-map.js ./bundle-inline-cheap-source-map.js
|
||||
chunk ./runtime~bundle-inline-cheap-source-map.js (runtime~bundle) 2.59 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
2 chunk modules
|
||||
chunk ./bundle-inline-cheap-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/index.js!./example.coffee 256 bytes [built]
|
||||
[no exports used]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
./bundle-inline-cheap-module-source-map.js 1.36 KiB [emitted] [name: bundle]
|
||||
./runtime~bundle-inline-cheap-module-source-map.js 11.1 KiB [emitted] [name: runtime~bundle]
|
||||
Entrypoint bundle = ./runtime~bundle-inline-cheap-module-source-map.js ./bundle-inline-cheap-module-source-map.js
|
||||
chunk ./runtime~bundle-inline-cheap-module-source-map.js (runtime~bundle) 2.59 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
2 chunk modules
|
||||
chunk ./bundle-inline-cheap-module-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/index.js!./example.coffee 256 bytes [built]
|
||||
[no exports used]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
./bundle-source-map.js 762 bytes [emitted] [name: bundle]
|
||||
./bundle-source-map.js.map 540 bytes [emitted] [dev] [name: (bundle)]
|
||||
./runtime~bundle-source-map.js 5.19 KiB [emitted] [name: runtime~bundle]
|
||||
./runtime~bundle-source-map.js.map 4.43 KiB [emitted] [dev] [name: (runtime~bundle)]
|
||||
Entrypoint bundle = ./runtime~bundle-source-map.js ./bundle-source-map.js (./bundle-source-map.js.map ./runtime~bundle-source-map.js.map)
|
||||
chunk ./runtime~bundle-source-map.js (runtime~bundle) 2.59 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
2 chunk modules
|
||||
chunk ./bundle-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/index.js!./example.coffee 256 bytes [built]
|
||||
[no exports used]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
./bundle-inline-source-map.js 1.48 KiB [emitted] [name: bundle]
|
||||
./runtime~bundle-inline-source-map.js 11.1 KiB [emitted] [name: runtime~bundle]
|
||||
Entrypoint bundle = ./runtime~bundle-inline-source-map.js ./bundle-inline-source-map.js
|
||||
chunk ./runtime~bundle-inline-source-map.js (runtime~bundle) 2.59 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
2 chunk modules
|
||||
chunk ./bundle-inline-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/index.js!./example.coffee 256 bytes [built]
|
||||
[no exports used]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
./bundle-hidden-source-map.js 716 bytes [emitted] [name: bundle]
|
||||
./bundle-hidden-source-map.js.map 547 bytes [emitted] [dev] [name: (bundle)]
|
||||
./runtime~bundle-hidden-source-map.js 5.13 KiB [emitted] [name: runtime~bundle]
|
||||
./runtime~bundle-hidden-source-map.js.map 4.43 KiB [emitted] [dev] [name: (runtime~bundle)]
|
||||
Entrypoint bundle = ./runtime~bundle-hidden-source-map.js ./bundle-hidden-source-map.js (./bundle-hidden-source-map.js.map ./runtime~bundle-hidden-source-map.js.map)
|
||||
chunk ./runtime~bundle-hidden-source-map.js (runtime~bundle) 2.59 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
2 chunk modules
|
||||
chunk ./bundle-hidden-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/index.js!./example.coffee 256 bytes [built]
|
||||
[no exports used]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
Child
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Asset Size
|
||||
./bundle-nosources-source-map.js 772 bytes [emitted] [name: bundle]
|
||||
./bundle-nosources-source-map.js.map 327 bytes [emitted] [dev] [name: (bundle)]
|
||||
./runtime~bundle-nosources-source-map.js 5.2 KiB [emitted] [name: runtime~bundle]
|
||||
./runtime~bundle-nosources-source-map.js.map 888 bytes [emitted] [dev] [name: (runtime~bundle)]
|
||||
Entrypoint bundle = ./runtime~bundle-nosources-source-map.js ./bundle-nosources-source-map.js (./bundle-nosources-source-map.js.map ./runtime~bundle-nosources-source-map.js.map)
|
||||
chunk ./runtime~bundle-nosources-source-map.js (runtime~bundle) 2.59 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
2 chunk modules
|
||||
chunk ./bundle-nosources-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/index.js!./example.coffee 256 bytes [built]
|
||||
[no exports used]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
asset ./runtime~bundle-eval.js 5.65 KiB [emitted] (name: runtime~bundle)
|
||||
asset ./bundle-eval.js 1.32 KiB [emitted] (name: bundle)
|
||||
Entrypoint bundle 6.96 KiB = ./runtime~bundle-eval.js 5.65 KiB ./bundle-eval.js 1.32 KiB
|
||||
chunk ./bundle-eval.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
chunk ./runtime~bundle-eval.js (runtime~bundle) 2.57 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
runtime modules 2.57 KiB 2 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset ./runtime~bundle-eval-cheap-source-map.js 5.64 KiB [emitted] (name: runtime~bundle)
|
||||
asset ./bundle-eval-cheap-source-map.js 1.98 KiB [emitted] (name: bundle)
|
||||
Entrypoint bundle 7.62 KiB = ./runtime~bundle-eval-cheap-source-map.js 5.64 KiB ./bundle-eval-cheap-source-map.js 1.98 KiB
|
||||
chunk ./bundle-eval-cheap-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
chunk ./runtime~bundle-eval-cheap-source-map.js (runtime~bundle) 2.57 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
runtime modules 2.57 KiB 2 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset ./runtime~bundle-eval-cheap-module-source-map.js 5.64 KiB [emitted] (name: runtime~bundle)
|
||||
asset ./bundle-eval-cheap-module-source-map.js 2.12 KiB [emitted] (name: bundle)
|
||||
Entrypoint bundle 7.76 KiB = ./runtime~bundle-eval-cheap-module-source-map.js 5.64 KiB ./bundle-eval-cheap-module-source-map.js 2.12 KiB
|
||||
chunk ./bundle-eval-cheap-module-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
chunk ./runtime~bundle-eval-cheap-module-source-map.js (runtime~bundle) 2.57 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
runtime modules 2.57 KiB 2 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset ./runtime~bundle-eval-source-map.js 5.64 KiB [emitted] (name: runtime~bundle)
|
||||
asset ./bundle-eval-source-map.js 2.12 KiB [emitted] (name: bundle)
|
||||
Entrypoint bundle 7.76 KiB = ./runtime~bundle-eval-source-map.js 5.64 KiB ./bundle-eval-source-map.js 2.12 KiB
|
||||
chunk ./bundle-eval-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
chunk ./runtime~bundle-eval-source-map.js (runtime~bundle) 2.57 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
runtime modules 2.57 KiB 2 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset ./runtime~bundle-cheap-source-map.js 5.15 KiB [emitted] (name: runtime~bundle) 1 related asset
|
||||
asset ./bundle-cheap-source-map.js 717 bytes [emitted] (name: bundle) 1 related asset
|
||||
Entrypoint bundle 5.85 KiB (4.92 KiB) = ./runtime~bundle-cheap-source-map.js 5.15 KiB ./bundle-cheap-source-map.js 717 bytes 2 auxiliary assets
|
||||
chunk ./bundle-cheap-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
chunk ./runtime~bundle-cheap-source-map.js (runtime~bundle) 2.57 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
runtime modules 2.57 KiB 2 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset ./runtime~bundle-cheap-module-source-map.js 5.16 KiB [emitted] (name: runtime~bundle) 1 related asset
|
||||
asset ./bundle-cheap-module-source-map.js 724 bytes [emitted] (name: bundle) 1 related asset
|
||||
Entrypoint bundle 5.86 KiB (4.85 KiB) = ./runtime~bundle-cheap-module-source-map.js 5.16 KiB ./bundle-cheap-module-source-map.js 724 bytes 2 auxiliary assets
|
||||
chunk ./bundle-cheap-module-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
chunk ./runtime~bundle-cheap-module-source-map.js (runtime~bundle) 2.57 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
runtime modules 2.57 KiB 2 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset ./runtime~bundle-inline-cheap-source-map.js 11 KiB [emitted] (name: runtime~bundle)
|
||||
asset ./bundle-inline-cheap-source-map.js 1.41 KiB [emitted] (name: bundle)
|
||||
Entrypoint bundle 12.4 KiB = ./runtime~bundle-inline-cheap-source-map.js 11 KiB ./bundle-inline-cheap-source-map.js 1.41 KiB
|
||||
chunk ./bundle-inline-cheap-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
chunk ./runtime~bundle-inline-cheap-source-map.js (runtime~bundle) 2.57 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
runtime modules 2.57 KiB 2 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset ./runtime~bundle-inline-cheap-module-source-map.js 11 KiB [emitted] (name: runtime~bundle)
|
||||
asset ./bundle-inline-cheap-module-source-map.js 1.31 KiB [emitted] (name: bundle)
|
||||
Entrypoint bundle 12.4 KiB = ./runtime~bundle-inline-cheap-module-source-map.js 11 KiB ./bundle-inline-cheap-module-source-map.js 1.31 KiB
|
||||
chunk ./bundle-inline-cheap-module-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
chunk ./runtime~bundle-inline-cheap-module-source-map.js (runtime~bundle) 2.57 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
runtime modules 2.57 KiB 2 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset ./runtime~bundle-source-map.js 5.14 KiB [emitted] (name: runtime~bundle) 1 related asset
|
||||
asset ./bundle-source-map.js 711 bytes [emitted] (name: bundle) 1 related asset
|
||||
Entrypoint bundle 5.84 KiB (4.91 KiB) = ./runtime~bundle-source-map.js 5.14 KiB ./bundle-source-map.js 711 bytes 2 auxiliary assets
|
||||
chunk ./bundle-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
chunk ./runtime~bundle-source-map.js (runtime~bundle) 2.57 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
runtime modules 2.57 KiB 2 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset ./runtime~bundle-inline-source-map.js 11 KiB [emitted] (name: runtime~bundle)
|
||||
asset ./bundle-inline-source-map.js 1.42 KiB [emitted] (name: bundle)
|
||||
Entrypoint bundle 12.4 KiB = ./runtime~bundle-inline-source-map.js 11 KiB ./bundle-inline-source-map.js 1.42 KiB
|
||||
chunk ./bundle-inline-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
chunk ./runtime~bundle-inline-source-map.js (runtime~bundle) 2.57 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
runtime modules 2.57 KiB 2 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset ./runtime~bundle-hidden-source-map.js 5.09 KiB [emitted] (name: runtime~bundle) 1 related asset
|
||||
asset ./bundle-hidden-source-map.js 665 bytes [emitted] (name: bundle) 1 related asset
|
||||
Entrypoint bundle 5.74 KiB (4.93 KiB) = ./runtime~bundle-hidden-source-map.js 5.09 KiB ./bundle-hidden-source-map.js 665 bytes 2 auxiliary assets
|
||||
chunk ./bundle-hidden-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
chunk ./runtime~bundle-hidden-source-map.js (runtime~bundle) 2.57 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
runtime modules 2.57 KiB 2 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
|
||||
asset ./runtime~bundle-nosources-source-map.js 5.15 KiB [emitted] (name: runtime~bundle) 1 related asset
|
||||
asset ./bundle-nosources-source-map.js 721 bytes [emitted] (name: bundle) 1 related asset
|
||||
Entrypoint bundle 5.86 KiB (1.17 KiB) = ./runtime~bundle-nosources-source-map.js 5.15 KiB ./bundle-nosources-source-map.js 721 bytes 2 auxiliary assets
|
||||
chunk ./bundle-nosources-source-map.js (bundle) 256 bytes [initial] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
../../node_modules/coffee-loader/dist/cjs.js!./example.coffee 256 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry coffee-loader!./example.coffee bundle
|
||||
chunk ./runtime~bundle-nosources-source-map.js (runtime~bundle) 2.57 KiB [entry] [rendered]
|
||||
> coffee-loader!./example.coffee bundle
|
||||
runtime modules 2.57 KiB 2 modules
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -321,6 +321,8 @@ const AlternativeCreateUserAction = async name => {
|
|||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
|
@ -381,11 +383,8 @@ const AlternativeCreateUserAction = async name => {
|
|||
/******/ // no deferred startup
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/
|
||||
/******/ var runtime = data[3];
|
||||
/******/ var webpackJsonpCallback = (data) => {
|
||||
/******/ var [chunkIds, moreModules, runtime] = data;
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
|
@ -402,17 +401,16 @@ const AlternativeCreateUserAction = async name => {
|
|||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) runtime(__webpack_require__);
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/ parentChunkLoadingFunction(data);
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ };
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
|
||||
/******/ var parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback;
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
|
@ -432,7 +430,7 @@ const AlternativeCreateUserAction = async name => {
|
|||
# dist/497.output.js
|
||||
|
||||
```javascript
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[497],[
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[497],[
|
||||
/* 0 */,
|
||||
/* 1 */,
|
||||
/* 2 */
|
||||
|
@ -510,7 +508,7 @@ return __webpack_exports__;
|
|||
## in production mode:
|
||||
|
||||
```javascript
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[497],{497:(a,e,s)=>{"use strict";a.exports=(async()=>{s.r(e),s.d(e,{createUser:()=>t});var a=s(447);a=await Promise.resolve(a);const t=async e=>{command="CREATE USER "+e,await(0,a.j)({command})};return e})()},447:(a,e,s)=>{"use strict";a.exports=(async()=>{s.d(e,{j:()=>a});await(async a=>{await new Promise(a=>setTimeout(a,1e3))})();const a=async a=>(await new Promise(a=>setTimeout(a,100)),"fake data");return e})()}}]);
|
||||
(self.webpackChunk=self.webpackChunk||[]).push([[497],{497:(e,a,s)=>{"use strict";e.exports=(async()=>{s.r(a),s.d(a,{createUser:()=>t});var e=s(447);e=await Promise.resolve(e);const t=async a=>{command="CREATE USER "+a,await(0,e.j)({command})};return a})()},447:(e,a,s)=>{"use strict";e.exports=(async()=>{s.d(a,{j:()=>e}),await(async e=>{await new Promise(e=>setTimeout(e,1e3))})();const e=async e=>(await new Promise(e=>setTimeout(e,100)),"fake data");return a})()}}]);
|
||||
```
|
||||
|
||||
# Info
|
||||
|
@ -518,63 +516,47 @@ return __webpack_exports__;
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.23
|
||||
asset 497.output.js 2.53 KiB [emitted]
|
||||
asset output.js 12.2 KiB [emitted] (name: main)
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 1.19 KiB (javascript) 5.46 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./Actions.js 1.09 KiB [built]
|
||||
[exports: AlternativeCreateUserAction, CreateUserAction]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation ./Actions.js ./example.js 1:0-48
|
||||
harmony import specifier ./Actions.js ./example.js 4:7-23
|
||||
./example.js 103 bytes [built]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
+ 8 hidden chunk modules
|
||||
asset 497.output.js 2.52 KiB [emitted]
|
||||
chunk output.js (main) 1.19 KiB (javascript) 5.42 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.42 KiB 8 modules
|
||||
dependent modules 1.09 KiB [dependent] 1 module
|
||||
./example.js 103 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
chunk 497.output.js 617 bytes [rendered]
|
||||
> ./UserApi.js ./Actions.js 22:30-52
|
||||
> ./UserApi.js ./Actions.js 2:16-38
|
||||
./UserApi.js 215 bytes [built]
|
||||
[exports: createUser]
|
||||
[used exports unknown]
|
||||
import() ./UserApi.js ./Actions.js 2:16-38
|
||||
import() ./UserApi.js ./Actions.js 22:30-52
|
||||
./db-connection.js 402 bytes [built]
|
||||
[exports: close, dbCall]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation ./db-connection.js ./UserApi.js 1:0-44
|
||||
harmony import specifier ./db-connection.js ./UserApi.js 6:7-13
|
||||
> ./UserApi.js ./Actions.js 22:30-52
|
||||
> ./UserApi.js ./Actions.js 2:16-38
|
||||
dependent modules 402 bytes [dependent] 1 module
|
||||
./UserApi.js 215 bytes [built] [code generated]
|
||||
[exports: createUser]
|
||||
[used exports unknown]
|
||||
import() ./UserApi.js ./Actions.js 2:16-38
|
||||
import() ./UserApi.js ./Actions.js 22:30-52
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.23
|
||||
asset 497.output.js 475 bytes [emitted]
|
||||
asset output.js 2 KiB [emitted] (name: main)
|
||||
Entrypoint main = output.js
|
||||
chunk (runtime: main) output.js (main) 1.19 KiB (javascript) 5.46 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js + 1 modules 1.19 KiB [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
+ 8 hidden chunk modules
|
||||
asset output.js 1.96 KiB [emitted] [minimized] (name: main)
|
||||
asset 497.output.js 471 bytes [emitted] [minimized]
|
||||
chunk (runtime: main) output.js (main) 1.19 KiB (javascript) 5.42 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
runtime modules 5.42 KiB 8 modules
|
||||
./example.js + 1 modules 1.19 KiB [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: main) 497.output.js 617 bytes [rendered]
|
||||
> ./UserApi.js ./Actions.js 22:30-52
|
||||
> ./UserApi.js ./Actions.js 2:16-38
|
||||
./UserApi.js 215 bytes [built]
|
||||
[exports: createUser]
|
||||
import() ./UserApi.js ./example.js + 1 modules ./Actions.js 2:16-38
|
||||
import() ./UserApi.js ./example.js + 1 modules ./Actions.js 22:30-52
|
||||
./db-connection.js 402 bytes [built]
|
||||
[exports: close, dbCall]
|
||||
[only some exports used: dbCall]
|
||||
harmony side effect evaluation ./db-connection.js ./UserApi.js 1:0-44
|
||||
harmony import specifier ./db-connection.js ./UserApi.js 6:7-13
|
||||
> ./UserApi.js ./Actions.js 22:30-52
|
||||
> ./UserApi.js ./Actions.js 2:16-38
|
||||
dependent modules 402 bytes [dependent] 1 module
|
||||
./UserApi.js 215 bytes [built] [code generated]
|
||||
[exports: createUser]
|
||||
import() ./UserApi.js ./example.js + 1 modules ./Actions.js 2:16-38
|
||||
import() ./UserApi.js ./example.js + 1 modules ./Actions.js 22:30-52
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -44,8 +44,8 @@ module.exports = {
|
|||
!*** ./vendor1.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "Vendor1";
|
||||
|
@ -89,8 +89,8 @@ module.exports = "Vendor1";
|
|||
``` js
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ // This entry module is referenced by other modules so it can't be inlined
|
||||
/******/ __webpack_require__(0);
|
||||
/******/ // This entry module used 'module' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -105,8 +105,8 @@ module.exports = "Vendor1";
|
|||
!*** ./vendor1.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "Vendor1";
|
||||
|
@ -117,8 +117,8 @@ module.exports = "Vendor1";
|
|||
!*** ./vendor2.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = "Vendor2";
|
||||
|
@ -164,8 +164,8 @@ __webpack_require__(/*! ./vendor1 */ 0);
|
|||
``` js
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ // This entry module is referenced by other modules so it can't be inlined
|
||||
/******/ __webpack_require__(1);
|
||||
/******/ // This entry module used 'module' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -180,8 +180,8 @@ __webpack_require__(/*! ./vendor1 */ 0);
|
|||
!*** ./vendor1.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = "Vendor1";
|
||||
|
@ -192,8 +192,8 @@ module.exports = "Vendor1";
|
|||
!*** ./vendor2.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = "Vendor2";
|
||||
|
@ -206,8 +206,8 @@ __webpack_require__(/*! ./vendor1 */ 0);
|
|||
!*** ./pageA.js ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: module, __webpack_require__ */
|
||||
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = "pageA";
|
||||
|
@ -254,8 +254,8 @@ __webpack_require__(/*! ./vendor2 */ 1);
|
|||
``` js
|
||||
/******/ // startup
|
||||
/******/ // Load entry module
|
||||
/******/ // This entry module is referenced by other modules so it can't be inlined
|
||||
/******/ __webpack_require__(2);
|
||||
/******/ // This entry module used 'module' so it can't be inlined
|
||||
/******/ })()
|
||||
;
|
||||
```
|
||||
|
@ -265,119 +265,91 @@ __webpack_require__(/*! ./vendor2 */ 1);
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
pageA.js 2.37 KiB [emitted] [name: pageA]
|
||||
pageB.js 1.52 KiB [emitted] [name: pageB]
|
||||
pageC.js 1.52 KiB [emitted] [name: pageC]
|
||||
vendor1.js 1.53 KiB [emitted] [name: vendor1]
|
||||
vendor2.js 1.93 KiB [emitted] [name: vendor2]
|
||||
Entrypoint vendor1 = vendor1.js
|
||||
Entrypoint vendor2 = vendor2.js
|
||||
Entrypoint pageA = pageA.js
|
||||
Entrypoint pageB = pageB.js
|
||||
Entrypoint pageC = pageC.js
|
||||
chunk vendor1.js (vendor1) 27 bytes [entry] [rendered]
|
||||
> ./vendor1 vendor1
|
||||
./vendor1.js 27 bytes [built]
|
||||
cjs require ./vendor1 ./pageA.js 2:0-20
|
||||
cjs self exports reference ./vendor1.js 1:0-14
|
||||
cjs require ./vendor1 ./vendor2.js 2:0-20
|
||||
entry ./vendor1 vendor1
|
||||
chunk vendor2.js (vendor2) 77 bytes [entry] [rendered]
|
||||
> ./vendor2 vendor2
|
||||
./vendor1.js 27 bytes [built]
|
||||
cjs require ./vendor1 ./pageA.js 2:0-20
|
||||
cjs self exports reference ./vendor1.js 1:0-14
|
||||
cjs require ./vendor1 ./vendor2.js 2:0-20
|
||||
entry ./vendor1 vendor1
|
||||
./vendor2.js 50 bytes [built]
|
||||
cjs require ./vendor2 ./pageA.js 3:0-20
|
||||
cjs self exports reference ./vendor2.js 1:0-14
|
||||
entry ./vendor2 vendor2
|
||||
asset pageA.js 2.31 KiB [emitted] (name: pageA)
|
||||
asset vendor2.js 1.89 KiB [emitted] (name: vendor2)
|
||||
asset vendor1.js 1.5 KiB [emitted] (name: vendor1)
|
||||
asset pageB.js 1.49 KiB [emitted] (name: pageB)
|
||||
asset pageC.js 1.49 KiB [emitted] (name: pageC)
|
||||
chunk pageA.js (pageA) 147 bytes [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
./pageA.js 70 bytes [built]
|
||||
cjs self exports reference ./pageA.js 1:0-14
|
||||
entry ./pageA pageA
|
||||
./vendor1.js 27 bytes [built]
|
||||
cjs require ./vendor1 ./pageA.js 2:0-20
|
||||
cjs self exports reference ./vendor1.js 1:0-14
|
||||
cjs require ./vendor1 ./vendor2.js 2:0-20
|
||||
entry ./vendor1 vendor1
|
||||
./vendor2.js 50 bytes [built]
|
||||
cjs require ./vendor2 ./pageA.js 3:0-20
|
||||
cjs self exports reference ./vendor2.js 1:0-14
|
||||
entry ./vendor2 vendor2
|
||||
> ./pageA pageA
|
||||
dependent modules 77 bytes [dependent] 2 modules
|
||||
./pageA.js 70 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageA.js 1:0-14
|
||||
entry ./pageA pageA
|
||||
chunk pageB.js (pageB) 25 bytes [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
./pageB.js 25 bytes [built]
|
||||
cjs self exports reference ./pageB.js 1:0-14
|
||||
entry ./pageB pageB
|
||||
> ./pageB pageB
|
||||
./pageB.js 25 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageB.js 1:0-14
|
||||
entry ./pageB pageB
|
||||
chunk pageC.js (pageC) 25 bytes [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
./pageC.js 25 bytes [built]
|
||||
cjs self exports reference ./pageC.js 1:0-14
|
||||
entry ./pageC pageC
|
||||
> ./pageC pageC
|
||||
./pageC.js 25 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageC.js 1:0-14
|
||||
entry ./pageC pageC
|
||||
chunk vendor1.js (vendor1) 27 bytes [entry] [rendered]
|
||||
> ./vendor1 vendor1
|
||||
./vendor1.js 27 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./vendor1 ./pageA.js 2:0-20
|
||||
cjs self exports reference ./vendor1.js 1:0-14
|
||||
cjs require ./vendor1 ./vendor2.js 2:0-20
|
||||
entry ./vendor1 vendor1
|
||||
chunk vendor2.js (vendor2) 77 bytes [entry] [rendered]
|
||||
> ./vendor2 vendor2
|
||||
dependent modules 27 bytes [dependent] 1 module
|
||||
./vendor2.js 50 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./vendor2 ./pageA.js 3:0-20
|
||||
cjs self exports reference ./vendor2.js 1:0-14
|
||||
entry ./vendor2 vendor2
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
pageA.js 251 bytes [emitted] [name: pageA]
|
||||
pageB.js 160 bytes [emitted] [name: pageB]
|
||||
pageC.js 160 bytes [emitted] [name: pageC]
|
||||
vendor1.js 162 bytes [emitted] [name: vendor1]
|
||||
vendor2.js 204 bytes [emitted] [name: vendor2]
|
||||
Entrypoint vendor1 = vendor1.js
|
||||
Entrypoint vendor2 = vendor2.js
|
||||
Entrypoint pageA = pageA.js
|
||||
Entrypoint pageB = pageB.js
|
||||
Entrypoint pageC = pageC.js
|
||||
chunk pageB.js (pageB) 25 bytes [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
./pageB.js 25 bytes [built]
|
||||
cjs self exports reference ./pageB.js 1:0-14
|
||||
entry ./pageB pageB
|
||||
chunk pageC.js (pageC) 25 bytes [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
./pageC.js 25 bytes [built]
|
||||
cjs self exports reference ./pageC.js 1:0-14
|
||||
entry ./pageC pageC
|
||||
chunk vendor2.js (vendor2) 77 bytes [entry] [rendered]
|
||||
> ./vendor2 vendor2
|
||||
./vendor1.js 27 bytes [built]
|
||||
cjs require ./vendor1 ./pageA.js 2:0-20
|
||||
cjs self exports reference ./vendor1.js 1:0-14
|
||||
cjs require ./vendor1 ./vendor2.js 2:0-20
|
||||
entry ./vendor1 vendor1
|
||||
./vendor2.js 50 bytes [built]
|
||||
cjs require ./vendor2 ./pageA.js 3:0-20
|
||||
cjs self exports reference ./vendor2.js 1:0-14
|
||||
entry ./vendor2 vendor2
|
||||
chunk pageA.js (pageA) 147 bytes [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
./pageA.js 70 bytes [built]
|
||||
cjs self exports reference ./pageA.js 1:0-14
|
||||
entry ./pageA pageA
|
||||
./vendor1.js 27 bytes [built]
|
||||
cjs require ./vendor1 ./pageA.js 2:0-20
|
||||
cjs self exports reference ./vendor1.js 1:0-14
|
||||
cjs require ./vendor1 ./vendor2.js 2:0-20
|
||||
entry ./vendor1 vendor1
|
||||
./vendor2.js 50 bytes [built]
|
||||
cjs require ./vendor2 ./pageA.js 3:0-20
|
||||
cjs self exports reference ./vendor2.js 1:0-14
|
||||
entry ./vendor2 vendor2
|
||||
chunk vendor1.js (vendor1) 27 bytes [entry] [rendered]
|
||||
> ./vendor1 vendor1
|
||||
./vendor1.js 27 bytes [built]
|
||||
cjs require ./vendor1 ./pageA.js 2:0-20
|
||||
cjs self exports reference ./vendor1.js 1:0-14
|
||||
cjs require ./vendor1 ./vendor2.js 2:0-20
|
||||
entry ./vendor1 vendor1
|
||||
asset pageA.js 251 bytes [emitted] [minimized] (name: pageA)
|
||||
asset vendor2.js 204 bytes [emitted] [minimized] (name: vendor2)
|
||||
asset vendor1.js 162 bytes [emitted] [minimized] (name: vendor1)
|
||||
asset pageB.js 160 bytes [emitted] [minimized] (name: pageB)
|
||||
asset pageC.js 160 bytes [emitted] [minimized] (name: pageC)
|
||||
chunk (runtime: pageB) pageB.js (pageB) 25 bytes [entry] [rendered]
|
||||
> ./pageB pageB
|
||||
./pageB.js 25 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageB.js 1:0-14
|
||||
entry ./pageB pageB
|
||||
chunk (runtime: pageC) pageC.js (pageC) 25 bytes [entry] [rendered]
|
||||
> ./pageC pageC
|
||||
./pageC.js 25 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageC.js 1:0-14
|
||||
entry ./pageC pageC
|
||||
chunk (runtime: vendor2) vendor2.js (vendor2) 77 bytes [entry] [rendered]
|
||||
> ./vendor2 vendor2
|
||||
dependent modules 27 bytes [dependent] 1 module
|
||||
./vendor2.js 50 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./vendor2 ./pageA.js 3:0-20
|
||||
cjs self exports reference ./vendor2.js 1:0-14
|
||||
entry ./vendor2 vendor2
|
||||
chunk (runtime: pageA) pageA.js (pageA) 147 bytes [entry] [rendered]
|
||||
> ./pageA pageA
|
||||
dependent modules 77 bytes [dependent] 2 modules
|
||||
./pageA.js 70 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs self exports reference ./pageA.js 1:0-14
|
||||
entry ./pageA pageA
|
||||
chunk (runtime: vendor1) vendor1.js (vendor1) 27 bytes [entry] [rendered]
|
||||
> ./vendor1 vendor1
|
||||
./vendor1.js 27 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
cjs require ./vendor1 ./pageA.js 2:0-20
|
||||
cjs self exports reference ./vendor1.js 1:0-14
|
||||
cjs require ./vendor1 ./vendor2.js 2:0-20
|
||||
entry ./vendor1 vendor1
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -57,8 +57,8 @@ module.exports = (env = "development") => ({
|
|||
!*** ./index.ts ***!
|
||||
\******************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [maybe used (runtime-defined)] */
|
||||
/*! runtime requirements: top-level-this-exports */
|
||||
/*! CommonJS bailout: this is used directly at 1:22-26 */
|
||||
/***/ (function() {
|
||||
|
||||
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
||||
|
@ -123,7 +123,6 @@ console.log(getArray(1, 2, 3));
|
|||
!*** ./example.js ***!
|
||||
\********************/
|
||||
/*! unknown exports (runtime-defined) */
|
||||
/*! exports [maybe provided (runtime-defined)] [unused] */
|
||||
/*! runtime requirements: __webpack_require__ */
|
||||
console.log(__webpack_require__(/*! ./index */ 1));
|
||||
|
||||
|
@ -140,20 +139,55 @@ console.log(__webpack_require__(/*! ./index */ 1));
|
|||
```
|
||||
Starting type checking service...
|
||||
Using 1 worker with 2048MB memory limit
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 2.26 KiB [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
asset output.js 2.18 KiB [emitted] (name: main)
|
||||
chunk output.js (main) 652 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 33 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./index.ts 619 bytes [built]
|
||||
cjs require ./index ./example.js 1:12-30
|
||||
cjs self exports reference ./index.ts 1:22-26
|
||||
cjs self exports reference ./index.ts 1:30-34
|
||||
> ./example.js main
|
||||
dependent modules 619 bytes [dependent] 1 module
|
||||
./example.js 33 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__core/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__core/index.d.ts(14,20):
|
||||
TS2307: Cannot find module '@babel/types' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__core/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__core/index.d.ts(15,31):
|
||||
TS2307: Cannot find module '@babel/parser' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__generator/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__generator/index.d.ts(11,20):
|
||||
TS2307: Cannot find module '@babel/types' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__template/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__template/index.d.ts(9,31):
|
||||
TS2307: Cannot find module '@babel/parser' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__template/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__template/index.d.ts(10,54):
|
||||
TS2307: Cannot find module '@babel/types' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__traverse/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__traverse/index.d.ts(12,20):
|
||||
TS2307: Cannot find module '@babel/types' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__traverse/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__traverse/index.d.ts(40,5):
|
||||
TS2411: Property 'scope' of type 'Scope' is not assignable to string index type '(VisitNodeFunction<S, any> & VisitNodeFunction<S, any>) | (VisitNodeFunction<S, any> & VisitNodeObject<S, any>) | (VisitNodeObject<...> & VisitNodeFunction<...>) | (VisitNodeObject<...> & VisitNodeObject<...>)'.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__traverse/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__traverse/index.d.ts(41,5):
|
||||
TS2411: Property 'noScope' of type 'boolean' is not assignable to string index type '(VisitNodeFunction<S, any> & VisitNodeFunction<S, any>) | (VisitNodeFunction<S, any> & VisitNodeObject<S, any>) | (VisitNodeObject<...> & VisitNodeFunction<...>) | (VisitNodeObject<...> & VisitNodeObject<...>)'.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/jest/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/jest/index.d.ts(486,51):
|
||||
TS2307: Cannot find module 'jest-diff' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/jest/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/jest/index.d.ts(540,44):
|
||||
TS2307: Cannot find module 'pretty-format' or its corresponding type declarations.
|
||||
|
||||
webpack 5.0.0-beta.32 compiled with 10 errors
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
@ -161,18 +195,53 @@ chunk output.js (main) 652 bytes [entry] [rendered]
|
|||
```
|
||||
Starting type checking service...
|
||||
Using 1 worker with 2048MB memory limit
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.16
|
||||
Asset Size
|
||||
output.js 525 bytes [emitted] [name: main]
|
||||
Entrypoint main = output.js
|
||||
chunk output.js (main) 652 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 33 bytes [built]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./index.ts 619 bytes [built]
|
||||
cjs require ./index ./example.js 1:12-30
|
||||
cjs self exports reference ./index.ts 1:22-26
|
||||
cjs self exports reference ./index.ts 1:30-34
|
||||
asset output.js 524 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 652 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 619 bytes [dependent] 1 module
|
||||
./example.js 33 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__core/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__core/index.d.ts(14,20):
|
||||
TS2307: Cannot find module '@babel/types' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__core/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__core/index.d.ts(15,31):
|
||||
TS2307: Cannot find module '@babel/parser' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__generator/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__generator/index.d.ts(11,20):
|
||||
TS2307: Cannot find module '@babel/types' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__template/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__template/index.d.ts(9,31):
|
||||
TS2307: Cannot find module '@babel/parser' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__template/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__template/index.d.ts(10,54):
|
||||
TS2307: Cannot find module '@babel/types' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__traverse/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__traverse/index.d.ts(12,20):
|
||||
TS2307: Cannot find module '@babel/types' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__traverse/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__traverse/index.d.ts(40,5):
|
||||
TS2411: Property 'scope' of type 'Scope' is not assignable to string index type '(VisitNodeFunction<S, any> & VisitNodeFunction<S, any>) | (VisitNodeFunction<S, any> & VisitNodeObject<S, any>) | (VisitNodeObject<...> & VisitNodeFunction<...>) | (VisitNodeObject<...> & VisitNodeObject<...>)'.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/babel__traverse/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/babel__traverse/index.d.ts(41,5):
|
||||
TS2411: Property 'noScope' of type 'boolean' is not assignable to string index type '(VisitNodeFunction<S, any> & VisitNodeFunction<S, any>) | (VisitNodeFunction<S, any> & VisitNodeObject<S, any>) | (VisitNodeObject<...> & VisitNodeFunction<...>) | (VisitNodeObject<...> & VisitNodeObject<...>)'.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/jest/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/jest/index.d.ts(486,51):
|
||||
TS2307: Cannot find module 'jest-diff' or its corresponding type declarations.
|
||||
|
||||
ERROR in (webpack)/node_modules/@types/jest/index.d.ts
|
||||
ERROR in (webpack)/node_modules/@types/jest/index.d.ts(540,44):
|
||||
TS2307: Cannot find module 'pretty-format' or its corresponding type declarations.
|
||||
|
||||
webpack 5.0.0-beta.32 compiled with 10 errors
|
||||
```
|
||||
|
|
|
@ -109,9 +109,9 @@ return __webpack_exports__;
|
|||
!*** ./magic.js ***!
|
||||
\******************/
|
||||
/*! namespace exports */
|
||||
/*! export get [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export getNumber [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export set [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export get [provided] [no usage info] [missing usage info prevents renaming] -> ./magic.wat .get */
|
||||
/*! export getNumber [provided] [no usage info] [missing usage info prevents renaming] -> ./magic.wat .getNumber */
|
||||
/*! export set [provided] [no usage info] [missing usage info prevents renaming] -> ./magic.wat .set */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_exports__, __webpack_require__.d, __webpack_require__.r, module, __webpack_require__.* */
|
||||
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
||||
|
@ -147,7 +147,7 @@ return __webpack_exports__;
|
|||
/* harmony import */ var WEBPACK_IMPORTED_MODULE_0 = __webpack_require__(/*! ./memory.js */ 3);
|
||||
/* harmony import */ var WEBPACK_IMPORTED_MODULE_1 = __webpack_require__(/*! ./magic-number.js */ 4);
|
||||
module.exports = Promise.resolve(WEBPACK_IMPORTED_MODULE_0).then((WEBPACK_IMPORTED_MODULE_0) => {
|
||||
return __webpack_require__.v(exports, module.id, "493198b38242c233ec44", {
|
||||
return __webpack_require__.v(exports, module.id, "b7db4b0f3af7dad67222", {
|
||||
"./memory.js": {
|
||||
"memory": WEBPACK_IMPORTED_MODULE_0.memory
|
||||
},
|
||||
|
@ -309,83 +309,31 @@ function getRandomNumber() {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.23
|
||||
asset 493198b38242c233ec44.module.wasm 139 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
asset output.js 8.8 KiB [emitted] (name: main)
|
||||
Entrypoint main = output.js (493198b38242c233ec44.module.wasm)
|
||||
asset output.js 8.87 KiB [emitted] (name: main)
|
||||
asset b7db4b0f3af7dad67222.module.wasm 139 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
chunk output.js (main) 696 bytes (javascript) 139 bytes (webassembly) 1.2 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 247 bytes [built]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
./magic-number.js 124 bytes [built]
|
||||
[exports: getNumber, getRandomNumber]
|
||||
[used exports unknown]
|
||||
wasm import ./magic-number.js ./magic.wat
|
||||
./magic.js 44 bytes [built]
|
||||
[exports: get, getNumber, set]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation ./magic.js ./example.js 1:0-49
|
||||
harmony import specifier ./magic.js ./example.js 4:12-15
|
||||
harmony import specifier ./magic.js ./example.js 5:0-3
|
||||
harmony import specifier ./magic.js ./example.js 6:12-15
|
||||
harmony import specifier ./magic.js ./example.js 7:0-3
|
||||
harmony import specifier ./magic.js ./example.js 8:12-15
|
||||
harmony import specifier ./magic.js ./example.js 11:12-21
|
||||
harmony import specifier ./magic.js ./example.js 12:12-21
|
||||
harmony import specifier ./magic.js ./example.js 13:12-21
|
||||
./magic.wat 70 bytes (javascript) 139 bytes (webassembly) [built]
|
||||
[exports: get, getNumber, set]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation ./magic.wat ./magic.js 2:0-28
|
||||
harmony export imported specifier ./magic.wat ./magic.js 2:0-28
|
||||
./memory.js 211 bytes [built]
|
||||
[exports: memory]
|
||||
[used exports unknown]
|
||||
wasm import ./memory.js ./magic.wat
|
||||
+ 5 hidden chunk modules
|
||||
> ./example.js main
|
||||
runtime modules 1.2 KiB 5 modules
|
||||
dependent modules 449 bytes (javascript) 139 bytes (webassembly) [dependent] 4 modules
|
||||
./example.js 247 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.23
|
||||
asset b873a21e71d2d93bad48.module.wasm 139 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
asset output.js 1.43 KiB [emitted] (name: main)
|
||||
Entrypoint main = output.js (b873a21e71d2d93bad48.module.wasm)
|
||||
asset output.js 1.43 KiB [emitted] [minimized] (name: main)
|
||||
asset 3b415f18e7be9a707201.module.wasm 139 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
chunk (runtime: main) output.js (main) 696 bytes (javascript) 139 bytes (webassembly) 950 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./example.js 247 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./magic-number.js 124 bytes [built]
|
||||
[exports: getNumber, getRandomNumber]
|
||||
[only some exports used: getRandomNumber]
|
||||
wasm import ./magic-number.js ./magic.wat
|
||||
./magic.js 44 bytes [built]
|
||||
[exports: get, getNumber, set]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./magic.js ./example.js 1:0-49
|
||||
harmony import specifier ./magic.js ./example.js 4:12-15
|
||||
harmony import specifier ./magic.js ./example.js 5:0-3
|
||||
harmony import specifier ./magic.js ./example.js 6:12-15
|
||||
harmony import specifier ./magic.js ./example.js 7:0-3
|
||||
harmony import specifier ./magic.js ./example.js 8:12-15
|
||||
harmony import specifier ./magic.js ./example.js 11:12-21
|
||||
harmony import specifier ./magic.js ./example.js 12:12-21
|
||||
harmony import specifier ./magic.js ./example.js 13:12-21
|
||||
./magic.wat 70 bytes (javascript) 139 bytes (webassembly) [built]
|
||||
[exports: get, getNumber, set]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./magic.wat ./magic.js 2:0-28
|
||||
harmony export imported specifier ./magic.wat ./magic.js 2:0-28
|
||||
./memory.js 211 bytes [built]
|
||||
[exports: memory]
|
||||
[all exports used]
|
||||
wasm import ./memory.js ./magic.wat
|
||||
+ 4 hidden chunk modules
|
||||
> ./example.js main
|
||||
dependent modules 449 bytes (javascript) 139 bytes (webassembly) [dependent] 4 modules
|
||||
runtime modules 950 bytes 4 modules
|
||||
./example.js 247 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -113,7 +113,7 @@ return __webpack_exports__;
|
|||
/*! runtime requirements: module, module.id, __webpack_exports__, __webpack_require__.v, __webpack_require__.* */
|
||||
/***/ ((module, exports, __webpack_require__) => {
|
||||
|
||||
module.exports = __webpack_require__.v(exports, module.id, "937efcc237fa853c54c5")
|
||||
module.exports = __webpack_require__.v(exports, module.id, "ceee125bae475876af47")
|
||||
|
||||
/***/ }),
|
||||
/* 2 */
|
||||
|
@ -121,10 +121,10 @@ module.exports = __webpack_require__.v(exports, module.id, "937efcc237fa853c54c5
|
|||
!*** ./math.js ***!
|
||||
\*****************/
|
||||
/*! namespace exports */
|
||||
/*! export add [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export factorial [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export add [provided] [no usage info] [missing usage info prevents renaming] -> ./add.wasm .add */
|
||||
/*! export factorial [provided] [no usage info] [missing usage info prevents renaming] -> ./factorial.wasm .factorial */
|
||||
/*! export factorialJavascript [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export fibonacci [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! export fibonacci [provided] [no usage info] [missing usage info prevents renaming] -> ./fibonacci.wasm .fibonacci */
|
||||
/*! export fibonacciJavascript [provided] [no usage info] [missing usage info prevents renaming] */
|
||||
/*! other exports [not provided] [no usage info] */
|
||||
/*! runtime requirements: __webpack_require__, __webpack_exports__, __webpack_require__.d, __webpack_require__.r, module, __webpack_require__.* */
|
||||
|
@ -173,7 +173,7 @@ return __webpack_exports__;
|
|||
/*! runtime requirements: module, module.id, __webpack_exports__, __webpack_require__.v, __webpack_require__.* */
|
||||
/***/ ((module, exports, __webpack_require__) => {
|
||||
|
||||
module.exports = __webpack_require__.v(exports, module.id, "39f1d275c85dc3f2ce74")
|
||||
module.exports = __webpack_require__.v(exports, module.id, "f06646bac0d91cc0583d")
|
||||
|
||||
/***/ }),
|
||||
/* 4 */
|
||||
|
@ -186,7 +186,7 @@ module.exports = __webpack_require__.v(exports, module.id, "39f1d275c85dc3f2ce74
|
|||
/*! runtime requirements: module, module.id, __webpack_exports__, __webpack_require__.v, __webpack_require__.* */
|
||||
/***/ ((module, exports, __webpack_require__) => {
|
||||
|
||||
module.exports = __webpack_require__.v(exports, module.id, "8daa7a900abbba23d2f2")
|
||||
module.exports = __webpack_require__.v(exports, module.id, "0c2b42c68d1cb59a3b24")
|
||||
|
||||
/***/ })
|
||||
/******/ ]);
|
||||
|
@ -287,97 +287,35 @@ module.exports = __webpack_require__.v(exports, module.id, "8daa7a900abbba23d2f2
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.23
|
||||
asset 39f1d275c85dc3f2ce74.wasm 62 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
asset 8daa7a900abbba23d2f2.wasm 67 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
asset 937efcc237fa853c54c5.wasm 41 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
asset output.js 8.97 KiB [emitted] (name: main)
|
||||
Entrypoint main = output.js (39f1d275c85dc3f2ce74.wasm 8daa7a900abbba23d2f2.wasm 937efcc237fa853c54c5.wasm)
|
||||
asset output.js 9.05 KiB [emitted] (name: main)
|
||||
asset 0c2b42c68d1cb59a3b24.wasm 67 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
asset f06646bac0d91cc0583d.wasm 62 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
asset ceee125bae475876af47.wasm 41 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
chunk output.js (main) 1.27 KiB (javascript) 170 bytes (webassembly) 1.19 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./add.wasm 50 bytes (javascript) 41 bytes (webassembly) [built]
|
||||
[exports: add]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation ./add.wasm ./example.js 1:0-33
|
||||
harmony import specifier ./add.wasm ./example.js 10:12-15
|
||||
harmony side effect evaluation ./add.wasm ./math.js 1:0-33
|
||||
harmony export imported specifier ./add.wasm ./math.js 5:0-37
|
||||
./example.js 753 bytes [built]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
./factorial.wasm 50 bytes (javascript) 62 bytes (webassembly) [built]
|
||||
[exports: factorial]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation ./factorial.wasm ./math.js 2:0-45
|
||||
harmony export imported specifier ./factorial.wasm ./math.js 5:0-37
|
||||
./fibonacci.wasm 50 bytes (javascript) 67 bytes (webassembly) [built]
|
||||
[exports: fibonacci]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation ./fibonacci.wasm ./math.js 3:0-45
|
||||
harmony export imported specifier ./fibonacci.wasm ./math.js 5:0-37
|
||||
./math.js 402 bytes [built]
|
||||
[exports: add, factorial, factorialJavascript, fibonacci, fibonacciJavascript]
|
||||
[used exports unknown]
|
||||
harmony side effect evaluation ./math ./example.js 2:0-8:16
|
||||
harmony import specifier ./math ./example.js 11:12-19
|
||||
harmony import specifier ./math ./example.js 12:12-21
|
||||
harmony import specifier ./math ./example.js 13:12-31
|
||||
harmony import specifier ./math ./example.js 14:12-21
|
||||
harmony import specifier ./math ./example.js 15:12-31
|
||||
harmony import specifier ./math ./example.js 16:30-39
|
||||
harmony import specifier ./math ./example.js 17:28-47
|
||||
harmony import specifier ./math ./example.js 18:30-39
|
||||
harmony import specifier ./math ./example.js 19:28-47
|
||||
+ 5 hidden chunk modules
|
||||
> ./example.js main
|
||||
runtime modules 1.19 KiB 5 modules
|
||||
dependent modules 552 bytes (javascript) 170 bytes (webassembly) [dependent] 4 modules
|
||||
./example.js 753 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
Hash: 0a1b2c3d4e5f6a7b8c9d
|
||||
Version: webpack 5.0.0-beta.23
|
||||
asset 402d0640d802f4390f09.wasm 41 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
asset 79f27550455ff7b728fb.wasm 62 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
asset c473e4ed21f109fed4d9.wasm 67 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
asset output.js 1.58 KiB [emitted] (name: main)
|
||||
Entrypoint main = output.js (402d0640d802f4390f09.wasm 79f27550455ff7b728fb.wasm c473e4ed21f109fed4d9.wasm)
|
||||
asset output.js 1.57 KiB [emitted] [minimized] (name: main)
|
||||
asset 24f7619aa8685820e275.wasm 67 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
asset fb8c9ac1a90009920ab8.wasm 62 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
asset ccc0513d2f742a4d8505.wasm 41 bytes [emitted] [immutable] (auxiliary name: main)
|
||||
chunk (runtime: main) output.js (main) 1.27 KiB (javascript) 170 bytes (webassembly) 943 bytes (runtime) [entry] [rendered]
|
||||
> ./example.js main
|
||||
./add.wasm 50 bytes (javascript) 41 bytes (webassembly) [built]
|
||||
[exports: add]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./add.wasm ./example.js 1:0-33
|
||||
harmony import specifier ./add.wasm ./example.js 10:12-15
|
||||
harmony side effect evaluation ./add.wasm ./math.js 1:0-33
|
||||
harmony export imported specifier ./add.wasm ./math.js 5:0-37
|
||||
./example.js 753 bytes [built]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
./factorial.wasm 50 bytes (javascript) 62 bytes (webassembly) [built]
|
||||
[exports: factorial]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./factorial.wasm ./math.js 2:0-45
|
||||
harmony export imported specifier ./factorial.wasm ./math.js 5:0-37
|
||||
./fibonacci.wasm 50 bytes (javascript) 67 bytes (webassembly) [built]
|
||||
[exports: fibonacci]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./fibonacci.wasm ./math.js 3:0-45
|
||||
harmony export imported specifier ./fibonacci.wasm ./math.js 5:0-37
|
||||
./math.js 402 bytes [built]
|
||||
[exports: add, factorial, factorialJavascript, fibonacci, fibonacciJavascript]
|
||||
[all exports used]
|
||||
harmony side effect evaluation ./math ./example.js 2:0-8:16
|
||||
harmony import specifier ./math ./example.js 11:12-19
|
||||
harmony import specifier ./math ./example.js 12:12-21
|
||||
harmony import specifier ./math ./example.js 13:12-31
|
||||
harmony import specifier ./math ./example.js 14:12-21
|
||||
harmony import specifier ./math ./example.js 15:12-31
|
||||
harmony import specifier ./math ./example.js 16:30-39
|
||||
harmony import specifier ./math ./example.js 17:28-47
|
||||
harmony import specifier ./math ./example.js 18:30-39
|
||||
harmony import specifier ./math ./example.js 19:28-47
|
||||
+ 4 hidden chunk modules
|
||||
> ./example.js main
|
||||
dependent modules 552 bytes (javascript) 170 bytes (webassembly) [dependent] 4 modules
|
||||
runtime modules 943 bytes 4 modules
|
||||
./example.js 753 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
|
@ -716,8 +716,8 @@ onmessage = async event => {
|
|||
!*** ./fibonacci.js ***!
|
||||
\**********************/
|
||||
/*! namespace exports */
|
||||
/*! export fibonacci [provided] [maybe used in main, fibonacci (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used in main, fibonacci (runtime-defined)] */
|
||||
/*! export fibonacci [provided] [maybe used in main, ./example.js|79:18-82:2 (runtime-defined)] [usage prevents renaming] */
|
||||
/*! other exports [not provided] [maybe used in main, ./example.js|79:18-82:2 (runtime-defined)] */
|
||||
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
|
@ -741,11 +741,11 @@ function fibonacci(n) {
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
asset 129.js 907 bytes [emitted]
|
||||
asset chat.js 879 bytes [emitted] (name: chat)
|
||||
asset main.js 12.2 KiB [emitted] (name: main)
|
||||
asset workers/fibonacci.js 5.3 KiB [emitted] (name: fibonacci)
|
||||
chunk (runtime: fibonacci, main) 129.js 103 bytes [rendered]
|
||||
asset 129.js 997 bytes [emitted]
|
||||
asset chat.js 879 bytes [emitted] (name: chat)
|
||||
chunk (runtime: ./example.js|79:18-82:2, main) 129.js 103 bytes [rendered]
|
||||
> ./fibonacci ./example.js 69:30-51
|
||||
> ./fibonacci ./fib-worker.js 2:29-50
|
||||
./fibonacci.js 103 bytes [built] [code generated]
|
||||
|
@ -758,29 +758,29 @@ chunk (runtime: main) main.js (main) 2.22 KiB (javascript) 5.59 KiB (runtime) [e
|
|||
./example.js 2.22 KiB [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: chat) chat.js (chat) 527 bytes [entry] [rendered]
|
||||
chunk (runtime: ./example.js|25:19-30:1) chat.js (chat) 527 bytes [entry] [rendered]
|
||||
> ./example.js 25:19-30:1
|
||||
./chat-worker.js + 1 modules 527 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
new Worker() ./chat-worker.js ./example.js 25:19-30:1
|
||||
chunk (runtime: fibonacci) workers/fibonacci.js (fibonacci) 176 bytes (javascript) 2.1 KiB (runtime) [entry] [rendered]
|
||||
chunk (runtime: ./example.js|79:18-82:2) workers/fibonacci.js (fibonacci) 176 bytes (javascript) 2.1 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js 79:18-82:2
|
||||
runtime modules 2.1 KiB 7 modules
|
||||
./fib-worker.js 176 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
new Worker() ./fib-worker.js ./example.js 79:18-82:2
|
||||
webpack 5.0.0-beta.29 compiled successfully
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
||||
## Production mode
|
||||
|
||||
```
|
||||
asset 129.js 166 bytes [emitted] [minimized]
|
||||
asset chat.js 270 bytes [emitted] [minimized] (name: chat)
|
||||
asset main.js 3.37 KiB [emitted] [minimized] (name: main)
|
||||
asset workers/fibonacci.js 930 bytes [emitted] [minimized] (name: fibonacci)
|
||||
chunk (runtime: fibonacci, main) 129.js 103 bytes [rendered]
|
||||
asset chat.js 270 bytes [emitted] [minimized] (name: chat)
|
||||
asset 129.js 166 bytes [emitted] [minimized]
|
||||
chunk (runtime: ./example.js|79:18-82:2, main) 129.js 103 bytes [rendered]
|
||||
> ./fibonacci ./example.js 69:30-51
|
||||
> ./fibonacci ./fib-worker.js 2:29-50
|
||||
./fibonacci.js 103 bytes [built] [code generated]
|
||||
|
@ -793,17 +793,17 @@ chunk (runtime: main) main.js (main) 2.22 KiB (javascript) 5.59 KiB (runtime) [e
|
|||
./example.js 2.22 KiB [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
chunk (runtime: chat) chat.js (chat) 527 bytes [entry] [rendered]
|
||||
chunk (runtime: ./example.js|25:19-30:1) chat.js (chat) 527 bytes [entry] [rendered]
|
||||
> ./example.js 25:19-30:1
|
||||
./chat-worker.js + 1 modules 527 bytes [built] [code generated]
|
||||
[no exports]
|
||||
[no exports used]
|
||||
new Worker() ./chat-worker.js ./example.js 25:19-30:1
|
||||
chunk (runtime: fibonacci) workers/fibonacci.js (fibonacci) 176 bytes (javascript) 2.1 KiB (runtime) [entry] [rendered]
|
||||
chunk (runtime: ./example.js|79:18-82:2) workers/fibonacci.js (fibonacci) 176 bytes (javascript) 2.1 KiB (runtime) [entry] [rendered]
|
||||
> ./example.js 79:18-82:2
|
||||
runtime modules 2.1 KiB 7 modules
|
||||
./fib-worker.js 176 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
new Worker() ./fib-worker.js ./example.js 79:18-82:2
|
||||
webpack 5.0.0-beta.29 compiled successfully
|
||||
webpack 5.0.0-beta.32 compiled successfully
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue