Merge pull request #9997 from webpack/example/build

update example build process
This commit is contained in:
Tobias Koppers 2019-11-19 15:50:27 +01:00 committed by GitHub
commit 53cb3c6479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
50 changed files with 555 additions and 2711 deletions

View File

@ -146,6 +146,11 @@ module.exports = __webpack_require__.p + "images/1be7b55b29524343503e.svg";
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -216,6 +221,11 @@ module.exports = __webpack_require__.p + "images/1be7b55b29524343503e.svg";
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ __webpack_require__(0);

View File

@ -14,7 +14,7 @@ const extraArgs = "";
const targetArgs = global.NO_TARGET_ARGS ? "" : " ./example.js -o dist/output.js ";
const displayReasons = global.NO_REASONS ? "" : " --display-reasons --display-used-exports --display-provided-exports";
const commonArgs = `--display-chunks --display-max-modules 99999 --display-origins --display-entrypoints --output-public-path "dist/" ${extraArgs} ${targetArgs}`;
const commonArgs = `--display-chunks --no-color --display-max-modules 99999 --display-origins --display-entrypoints --output-public-path "dist/" ${extraArgs} ${targetArgs}`;
let readme = fs.readFileSync(require("path").join(process.cwd(), "template.md"), "utf-8");

View File

@ -57,6 +57,11 @@ module.exports = {
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({});
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -320,6 +325,11 @@ module.exports = {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // run startup
/******/ return __webpack_require__.x();
/******/ })()

View File

@ -19,6 +19,11 @@ getTemplate("b", function(b) {
``` javascript
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({});
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -205,6 +210,11 @@ getTemplate("b", function(b) {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/*!********************!*\
!*** ./example.js ***!
\********************/

View File

@ -19,6 +19,11 @@ getTemplate("b", function(b) {
``` javascript
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({});
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -205,6 +210,11 @@ getTemplate("b", function(b) {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/*!********************!*\
!*** ./example.js ***!
\********************/

View File

@ -47,6 +47,11 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) {
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -233,6 +238,11 @@ __webpack_require__.e(/*! require.ensure */ 929).then((function(require) {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!

View File

@ -116,6 +116,11 @@ module.exports = webpackAsyncContext;
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -361,6 +366,11 @@ module.exports = webpackAsyncContext;
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ __webpack_require__(0);

View File

@ -105,6 +105,11 @@ module.exports = webpackAsyncContext;
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -315,6 +320,11 @@ module.exports = webpackAsyncContext;
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!

View File

@ -94,6 +94,11 @@ module.exports = webpackAsyncContext;
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -304,6 +309,11 @@ module.exports = webpackAsyncContext;
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!

View File

@ -86,6 +86,11 @@ module.exports = webpackAsyncContext;
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -296,6 +301,11 @@ module.exports = webpackAsyncContext;
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!

View File

@ -64,6 +64,11 @@ require.ensure(["c"], function(require) {
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -250,6 +255,11 @@ require.ensure(["c"], function(require) {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!

View File

@ -60,6 +60,11 @@ module.exports = 42;
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -88,6 +93,11 @@ module.exports = 42;
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!

View File

@ -176,6 +176,11 @@ module.exports = "utility1";
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -300,6 +305,11 @@ module.exports = "utility1";
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // run startup
/******/ return __webpack_require__.x();
/******/ })()
@ -330,6 +340,11 @@ module.exports = "pageB";
/***/ })
/******/ });
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -454,6 +469,11 @@ module.exports = "pageB";
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // run startup
/******/ return __webpack_require__.x();
/******/ })()
@ -482,6 +502,11 @@ module.exports = "pageC";
/***/ })
/******/ });
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -606,6 +631,11 @@ module.exports = "pageC";
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // run startup
/******/ return __webpack_require__.x();
/******/ })()
@ -618,7 +648,7 @@ module.exports = "pageC";
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-beta.1
Version: webpack 5.0.0-beta.6
Asset Size
commons-utility2_js.js 346 bytes [emitted] [id hint: commons]
commons-utility3_js.js 346 bytes [emitted] [id hint: commons]
@ -681,7 +711,7 @@ chunk vendor.js (vendor) (id hint: vendor) 54 bytes [initial] [rendered] split c
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-beta.1
Version: webpack 5.0.0-beta.6
Asset Size
commons-utility2_js.js 110 bytes [emitted] [id hint: commons]
commons-utility3_js.js 110 bytes [emitted] [id hint: commons]

View File

@ -108,6 +108,11 @@ module.exports = {
```javascript
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({});
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -294,6 +299,11 @@ module.exports = {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/*!********************!*\
!*** ./example.js ***!
\********************/

View File

@ -74,6 +74,11 @@ exports.add = function() {
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -102,6 +107,11 @@ exports.add = function() {
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!
@ -123,7 +133,7 @@ inc(a); // 2
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-alpha.31
Version: webpack 5.0.0-beta.6
Asset Size
output.js 2.23 KiB [emitted] [name: main]
Entrypoint main = output.js
@ -144,7 +154,7 @@ chunk output.js (main) 326 bytes [entry] [rendered]
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-alpha.31
Version: webpack 5.0.0-beta.6
Asset Size
output.js 333 bytes [emitted] [name: main]
Entrypoint main = output.js

View File

@ -76,6 +76,11 @@ function square(n) {
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -129,6 +134,11 @@ function square(n) {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports

View File

@ -93,6 +93,11 @@ module.exports = vendor_lib_02cb05c865a84081bc8b;
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -133,6 +138,11 @@ module.exports = vendor_lib_02cb05c865a84081bc8b;
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ __webpack_require__(0);

View File

@ -133,6 +133,11 @@ exports.c = "c";
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -186,6 +191,11 @@ exports.c = "c";
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports

View File

@ -135,6 +135,11 @@ module.exports = (__webpack_require__(/*! dll-reference alpha_dcd111488d58f75099
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -163,6 +168,11 @@ module.exports = (__webpack_require__(/*! dll-reference alpha_dcd111488d58f75099
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!

View File

@ -83,6 +83,11 @@ module.exports = "module";
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -111,6 +116,11 @@ module.exports = "module";
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports

View File

@ -83,6 +83,11 @@ module.exports = "Vendor2";
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -111,6 +116,11 @@ module.exports = "Vendor2";
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
@ -160,6 +170,11 @@ module.exports = vendor_57330e24282ed92fe266;
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -188,6 +203,11 @@ module.exports = vendor_57330e24282ed92fe266;
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ __webpack_require__(0);

View File

@ -100,6 +100,11 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -128,6 +133,11 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
@ -143,7 +153,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-beta.1
Version: webpack 5.0.0-beta.6
Asset Size
output.js 3.18 KiB [emitted] [name: main]
Entrypoint main = output.js
@ -164,7 +174,7 @@ chunk output.js (main) 194 bytes [entry] [rendered]
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-beta.1
Version: webpack 5.0.0-beta.6
Asset Size
output.js 668 bytes [emitted] [name: main]
Entrypoint main = output.js

View File

@ -38,6 +38,11 @@ module.exports = {
```javascript
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({});
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -224,6 +229,11 @@ module.exports = {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/*!********************!*\
!*** ./example.js ***!
\********************/

View File

@ -49,6 +49,11 @@ require.ensure(["./a"], function(require) {
```javascript
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({});
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -235,6 +240,11 @@ require.ensure(["./a"], function(require) {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/*!********************!*\
!*** ./example.js ***!
\********************/

View File

@ -186,6 +186,11 @@ var named = "named";
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -251,6 +256,11 @@ var named = "named";
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ __webpack_require__(0);

View File

@ -56,6 +56,11 @@ function increment() {
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -109,6 +114,11 @@ function increment() {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports

View File

@ -162,6 +162,11 @@ function c() { console.log("c"); }
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -215,6 +220,11 @@ function c() { console.log("c"); }
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ __webpack_require__(0);

View File

@ -92,6 +92,11 @@ function add() {
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -302,6 +307,11 @@ function add() {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ __webpack_require__(0);

View File

@ -49,23 +49,23 @@ module.exports = {
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-beta.6
Asset Size
7598e98a1006fa74c6e5.js 7.15 KiB [emitted] [immutable]
bd7487f4ebb1f501a0fa.js 17.7 KiB [emitted] [immutable] [name: main]
d90620a8d5b803dfc7e9.js 117 KiB [emitted] [immutable] [id hint: vendors]
Entrypoint main = bd7487f4ebb1f501a0fa.js
chunk bd7487f4ebb1f501a0fa.js (main) 8.77 KiB (javascript) 4.28 KiB (runtime) [entry] [rendered]
1b3df87d8d004e83a428.js 17.7 KiB [emitted] [immutable] [name: main]
515efe286e0264e81c5c.js 117 KiB [emitted] [immutable] [id hint: vendors]
5ce1f3cb6de70a368806.js 7.15 KiB [emitted] [immutable]
Entrypoint main = 1b3df87d8d004e83a428.js
chunk 1b3df87d8d004e83a428.js (main) 8.77 KiB (javascript) 4.28 KiB (runtime) [entry] [rendered]
> ./example main
(webpack)/node_modules/object-assign/index.js 2.06 KiB [built]
(webpack)/node_modules/react/cjs/react.production.min.js 6.49 KiB [built]
(webpack)/node_modules/react/index.js 190 bytes [built]
./example.js 42 bytes [built]
+ 4 hidden chunk modules
chunk 7598e98a1006fa74c6e5.js 6.52 KiB [rendered]
chunk 5ce1f3cb6de70a368806.js 6.51 KiB [rendered]
> react-dom ./example.js 2:0-22
(webpack)/node_modules/react-dom/index.js 1.33 KiB [built]
(webpack)/node_modules/scheduler/cjs/scheduler.production.min.js 4.99 KiB [built]
(webpack)/node_modules/scheduler/index.js 198 bytes [built]
chunk d90620a8d5b803dfc7e9.js (id hint: vendors) 116 KiB [rendered] split chunk (cache group: defaultVendors)
chunk 515efe286e0264e81c5c.js (id hint: vendors) 116 KiB [rendered] [recorded] aggressive splitted, reused as split chunk (cache group: defaultVendors)
> react-dom ./example.js 2:0-22
(webpack)/node_modules/react-dom/cjs/react-dom.production.min.js 116 KiB [built]
```
@ -76,26 +76,26 @@ chunk d90620a8d5b803dfc7e9.js (id hint: vendors) 116 KiB [rendered] split chunk
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-beta.6
Asset Size
9d197b298deac2e3d4d5.js 114 KiB [emitted] [immutable] [id hint: vendors]
9d197b298deac2e3d4d5.js.LICENSE 247 bytes [emitted]
d060f216c0ec95bc7558.js 8.71 KiB [emitted] [immutable] [name: main]
d060f216c0ec95bc7558.js.LICENSE 295 bytes [emitted]
db2eac6661b345a54896.js 4.98 KiB [emitted] [immutable]
db2eac6661b345a54896.js.LICENSE 246 bytes [emitted]
Entrypoint main = d060f216c0ec95bc7558.js
chunk d060f216c0ec95bc7558.js (main) 8.77 KiB (javascript) 4.28 KiB (runtime) [entry] [rendered]
68637c8e1dda08b1fadf.js 114 KiB [emitted] [immutable] [id hint: vendors]
68637c8e1dda08b1fadf.js.LICENSE 247 bytes [emitted]
aaa7fd653ee0bc7bb83b.js 4.98 KiB [emitted] [immutable]
aaa7fd653ee0bc7bb83b.js.LICENSE 246 bytes [emitted]
c3d741758d9e4bf8e4bd.js 8.71 KiB [emitted] [immutable] [name: main]
c3d741758d9e4bf8e4bd.js.LICENSE 295 bytes [emitted]
Entrypoint main = c3d741758d9e4bf8e4bd.js
chunk c3d741758d9e4bf8e4bd.js (main) 8.77 KiB (javascript) 4.28 KiB (runtime) [entry] [rendered]
> ./example main
(webpack)/node_modules/object-assign/index.js 2.06 KiB [built]
(webpack)/node_modules/react/cjs/react.production.min.js 6.49 KiB [built]
(webpack)/node_modules/react/index.js 190 bytes [built]
./example.js 42 bytes [built]
+ 4 hidden chunk modules
chunk db2eac6661b345a54896.js 6.52 KiB [rendered]
chunk aaa7fd653ee0bc7bb83b.js 6.51 KiB [rendered]
> react-dom ./example.js 2:0-22
(webpack)/node_modules/react-dom/index.js 1.33 KiB [built]
(webpack)/node_modules/scheduler/cjs/scheduler.production.min.js 4.99 KiB [built]
(webpack)/node_modules/scheduler/index.js 198 bytes [built]
chunk 9d197b298deac2e3d4d5.js (id hint: vendors) 116 KiB [rendered] split chunk (cache group: defaultVendors)
chunk 68637c8e1dda08b1fadf.js (id hint: vendors) 116 KiB [rendered] [recorded] aggressive splitted, reused as split chunk (cache group: defaultVendors)
> react-dom ./example.js 2:0-22
(webpack)/node_modules/react-dom/cjs/react-dom.production.min.js 116 KiB [built]
```
@ -104,7 +104,16 @@ chunk 9d197b298deac2e3d4d5.js (id hint: vendors) 116 KiB [rendered] split chunk
```
{
"aggressiveSplits": [],
"aggressiveSplits": [
{
"hash": "515efe286e0264e81c5c93158843db80",
"id": 2,
"modules": [
"../../node_modules/react-dom/cjs/react-dom.production.min.js"
],
"size": 119155
}
],
"chunks": {
"byName": {
"main": 0

View File

@ -193,6 +193,11 @@ render(__webpack_require__(/*! ./aPage */ 2));
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -457,6 +462,11 @@ render(__webpack_require__(/*! ./aPage */ 2));
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // run startup
/******/ return __webpack_require__.x();
/******/ })()

View File

@ -165,6 +165,11 @@ function toComment(sourceMap) {
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -193,6 +198,11 @@ function toComment(sourceMap) {
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!

View File

@ -52,7 +52,7 @@ module.exports = {
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-alpha.31
Version: webpack 5.0.0-beta.6
Asset Size
115.js 168 bytes [emitted] [id hint: vendors]
402.js 115 bytes [emitted] [id hint: vendors]

View File

@ -124,6 +124,11 @@ __webpack_require__.r(__webpack_exports__);
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -346,6 +351,11 @@ __webpack_require__.r(__webpack_exports__);
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!

View File

@ -86,7 +86,7 @@ let o=0;function n(){o++}const c=o=>console.log(o);c(o),n(),n(),n(),c(o),c(o=0);
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-alpha.31
Version: webpack 5.0.0-beta.6
Asset Size
output.js 591 bytes [emitted] [name: main]
Entrypoint main = output.js
@ -103,7 +103,7 @@ chunk output.js (main) 429 bytes [entry] [rendered]
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-alpha.31
Version: webpack 5.0.0-beta.6
Asset Size
output.js 80 bytes [emitted] [name: main]
Entrypoint main = output.js

View File

@ -78,6 +78,11 @@ console.log("Running " + "desktop" + " build");
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -106,6 +111,11 @@ console.log("Running " + "desktop" + " build");
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!
@ -127,7 +137,7 @@ console.log("Running " + "mobile" + " build");
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-alpha.31
Version: webpack 5.0.0-beta.6
Child mobile:
Hash: 0a1b2c3d4e5f6a7b8c9d
Asset Size
@ -157,7 +167,7 @@ Child desktop:
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-alpha.31
Version: webpack 5.0.0-beta.6
Child mobile:
Hash: 0a1b2c3d4e5f6a7b8c9d
Asset Size

View File

@ -58,6 +58,11 @@ module.exports = "alpha";
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -86,6 +91,11 @@ module.exports = "alpha";
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
@ -123,6 +133,11 @@ module.exports = "beta";
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -151,6 +166,11 @@ module.exports = "beta";
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
@ -166,7 +186,7 @@ module.exports = "beta";
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-beta.1
Version: webpack 5.0.0-beta.6
Asset Size
MyLibrary.alpha.js 1.97 KiB [emitted] [name: alpha]
MyLibrary.beta.js 1.98 KiB [emitted] [name: beta]
@ -188,7 +208,7 @@ chunk MyLibrary.beta.js (beta) 24 bytes [entry] [rendered]
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-beta.1
Version: webpack 5.0.0-beta.6
Asset Size
MyLibrary.alpha.js 429 bytes [emitted] [name: alpha]
MyLibrary.beta.js 424 bytes [emitted] [name: beta]

View File

@ -123,6 +123,11 @@ __webpack_require__.e(/*! AMD require */ 52).then(function() { var __WEBPACK_AMD
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -339,6 +344,11 @@ __webpack_require__.e(/*! AMD require */ 52).then(function() { var __WEBPACK_AMD
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // run startup
/******/ return __webpack_require__.x();
/******/ })()
@ -368,6 +378,11 @@ __webpack_require__.e(/*! require.ensure */ 52).then((function(require) {
/***/ })
/******/ });
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -584,6 +599,11 @@ __webpack_require__.e(/*! require.ensure */ 52).then((function(require) {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // run startup
/******/ return __webpack_require__.x();
/******/ })()

View File

@ -41,6 +41,11 @@ require.ensure(["b"], function(require) {
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -227,6 +232,11 @@ require.ensure(["b"], function(require) {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!

File diff suppressed because it is too large Load Diff

View File

@ -106,6 +106,11 @@ module.exports = function() {
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -134,6 +139,11 @@ module.exports = function() {
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!
@ -156,7 +166,7 @@ console.log(getTemplate("b"));
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-alpha.31
Version: webpack 5.0.0-beta.6
Asset Size
output.js 3.3 KiB [emitted] [name: main]
Entrypoint main = output.js
@ -186,7 +196,7 @@ chunk output.js (main) 603 bytes [entry] [rendered]
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-alpha.31
Version: webpack 5.0.0-beta.6
Asset Size
output.js 820 bytes [emitted] [name: main]
Entrypoint main = output.js

View File

@ -63,6 +63,11 @@ module.exports = Math.random();
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -94,6 +99,11 @@ module.exports = Math.random();
/******/ __webpack_require__.c = __webpack_module_cache__;
/******/
/************************************************************************/
```
</details>
``` js
/******/ // module cache are used so entry inlining is disabled
/******/ // startup
/******/ // Load entry module
@ -108,7 +118,7 @@ module.exports = Math.random();
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-alpha.31
Version: webpack 5.0.0-beta.6
Asset Size
output.js 2.26 KiB [emitted] [name: main]
Entrypoint main = output.js
@ -128,7 +138,7 @@ chunk output.js (main) 313 bytes [entry] [rendered]
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-alpha.31
Version: webpack 5.0.0-beta.6
Asset Size
output.js 286 bytes [emitted] [name: main]
Entrypoint main = output.js

View File

@ -143,6 +143,11 @@ var x = "x";
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -353,6 +358,11 @@ var x = "x";
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************************!*\
!*** ./example.js + 2 modules ***!

View File

@ -194,6 +194,11 @@ const b = "b";
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -247,6 +252,11 @@ const b = "b";
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ __webpack_require__(0);

View File

@ -261,7 +261,7 @@ eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\n
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-beta.1
Version: webpack 5.0.0-beta.6
Child
Hash: 0a1b2c3d4e5f6a7b8c9d
Asset Size

View File

@ -13,8 +13,7 @@ function lessStrict(regExpStr) {
return regExpStr;
}
const runtimeRegexp = /(```\s*(?:js|javascript)\n)?(.*)(\/\*\*\*\*\*\*\/ \(function\(modules, runtime\) \{ \/\/ webpackBootstrap\n(?:.|\n)*?\n\/\*\*\*\*\*\*\/ \}\)\n\/\**\/\n)/;
const runtimeModulesRegexp = /(\/\*\*\*\*\*\*\/ function\(__webpack_require__\) \{ \/\/ webpackRuntimeModules\n(?:.|\n)*?\n\/\*\*\*\*\*\*\/ \}\n\);\n)```\n/;
const runtimeModulesRegexp = /(\/\*{72}\/\n(?:\/(?:\*{6}|\*{72})\/.*\n)*\/\*{72}\/\n)/g;
const timeRegexp = /\s*Time: \d+ms/g;
const buildAtRegexp = /\s*Built at: .+/mg;
const hashRegexp = /Hash: [a-f0-9]+/g;
@ -45,14 +44,8 @@ exports.replaceBase = (template) => {
.replace(/\.chunkhash\./g, ".[chunkhash].")
.replace(runtimeModulesRegexp, function(match, content) {
return "```\n\n<details><summary>"+
"<code>function(__webpack_require__) { /* webpackRuntimeModules */ });</code>"+
"</summary>\n\n``` js\n" + content + "```\n\n</details>\n\n";
})
.replace(runtimeRegexp, function(match) {
match = runtimeRegexp.exec(match);
const prefix = match[1] ? "" : "```\n";
const inner = match[1] ? match[1] : "``` js\n";
return prefix + "<details><summary><code>" + match[2] + "/******/ (function(modules) { /* webpackBootstrap */ })</code></summary>\n\n" + inner + match[2] + match[3] + "```\n\n</details>\n\n" + inner;
"<code>/* webpack runtime code */</code>"+
"</summary>\n\n``` js\n" + content + "```\n\n</details>\n\n``` js\n";
});
};

View File

@ -192,6 +192,11 @@ const AlternativeCreateUserAction = async name => {
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -402,6 +407,11 @@ const AlternativeCreateUserAction = async name => {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ __webpack_require__(0);

View File

@ -51,6 +51,11 @@ module.exports = "Vendor1";
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -79,6 +84,11 @@ module.exports = "Vendor1";
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ // This entry module is referenced by other modules so it can't be inlined
@ -117,6 +127,11 @@ __webpack_require__(/*! ./vendor1 */ 0);
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -145,6 +160,11 @@ __webpack_require__(/*! ./vendor1 */ 0);
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ // This entry module is referenced by other modules so it can't be inlined
@ -197,6 +217,11 @@ __webpack_require__(/*! ./vendor2 */ 1);
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -225,6 +250,11 @@ __webpack_require__(/*! ./vendor2 */ 1);
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ __webpack_require__(2);
@ -239,7 +269,7 @@ __webpack_require__(/*! ./vendor2 */ 1);
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-beta.1
Version: webpack 5.0.0-beta.6
Asset Size
pageA.js 2.24 KiB [emitted] [name: pageA]
pageB.js 1.5 KiB [emitted] [name: pageB]
@ -299,7 +329,7 @@ chunk pageC.js (pageC) 25 bytes [entry] [rendered]
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-beta.1
Version: webpack 5.0.0-beta.6
Asset Size
pageA.js 267 bytes [emitted] [name: pageA]
pageB.js 176 bytes [emitted] [name: pageB]

View File

@ -82,6 +82,11 @@ console.log(getArray(1, 2, 3));
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -110,6 +115,11 @@ console.log(getArray(1, 2, 3));
/******/ }
/******/
/************************************************************************/
```
</details>
``` js
!function() {
/*!********************!*\
!*** ./example.js ***!

View File

@ -210,6 +210,11 @@ function getRandomNumber() {
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -283,6 +288,11 @@ function getRandomNumber() {
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ __webpack_require__(0);
@ -343,7 +353,7 @@ Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 5.0.0-beta.6
Asset Size
4636ea8e62e0734a195f.module.wasm 139 bytes [emitted] [immutable] [name: (main)]
output.js 1.61 KiB [emitted] [name: main]
output.js 1.59 KiB [emitted] [name: main]
Entrypoint main = output.js (4636ea8e62e0734a195f.module.wasm)
chunk output.js (main) 708 bytes (javascript) 139 bytes (webassembly) 999 bytes (runtime) [entry] [rendered]
> ./example.js main

View File

@ -186,6 +186,11 @@ module.exports = __webpack_require__.v(exports, module.i)
/***/ })
/******/ ]);
```
<details><summary><code>/* webpack runtime code */</code></summary>
``` js
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
@ -259,6 +264,11 @@ module.exports = __webpack_require__.v(exports, module.i)
/******/ }();
/******/
/************************************************************************/
```
</details>
``` js
/******/ // startup
/******/ // Load entry module
/******/ __webpack_require__(0);
@ -328,7 +338,7 @@ Version: webpack 5.0.0-beta.6
5ba3e3921117e9d828f5.wasm 67 bytes [emitted] [immutable] [name: (main)]
5dd947250fab86306d49.wasm 62 bytes [emitted] [immutable] [name: (main)]
6f6c0ffc52ce3a45ff7e.wasm 41 bytes [emitted] [immutable] [name: (main)]
output.js 1.72 KiB [emitted] [name: main]
output.js 1.7 KiB [emitted] [name: main]
Entrypoint main = output.js (5ba3e3921117e9d828f5.wasm 5dd947250fab86306d49.wasm 6f6c0ffc52ce3a45ff7e.wasm)
chunk output.js (main) 1.3 KiB (javascript) 170 bytes (webassembly) 1.03 KiB (runtime) [entry] [rendered]
> ./example.js main