update examples

This commit is contained in:
Tobias Koppers 2018-01-22 15:18:54 +01:00
parent d043323305
commit bfe89fb92f
11 changed files with 171 additions and 146 deletions

View File

@ -302,19 +302,19 @@ __webpack_require__(3)("./ba" + createContextVar).then(function(bar) {
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack next
Asset Size Chunks Chunk Names
0.output.js 445 bytes 0 [emitted] chunk-bar-baz3
1.output.js 439 bytes 1 [emitted] chunk-bar-baz1
0.output.js 445 bytes 0 [emitted] chunk-bar-baz2
1.output.js 439 bytes 1 [emitted] chunk-bar-baz0
2.output.js 436 bytes 2 [emitted] chunk-foo
output.js 8.23 KiB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (chunk-bar-baz3) 41 bytes <{3}> [rendered]
chunk {0} 0.output.js (chunk-bar-baz2) 41 bytes <{3}> [rendered]
> ./baz [3] ./templates lazy ^\.\/ba.*$ namespace object ./baz
> ./baz.js [3] ./templates lazy ^\.\/ba.*$ namespace object ./baz.js
[1] ./templates/baz.js 41 bytes {0} [optional] [built]
[exports: default]
context element ./baz.js [3] ./templates lazy ^\.\/ba.*$ namespace object ./baz.js
context element ./baz [3] ./templates lazy ^\.\/ba.*$ namespace object ./baz
chunk {1} 1.output.js (chunk-bar-baz1) 41 bytes <{3}> [rendered]
chunk {1} 1.output.js (chunk-bar-baz0) 41 bytes <{3}> [rendered]
> ./bar [3] ./templates lazy ^\.\/ba.*$ namespace object ./bar
> ./bar.js [3] ./templates lazy ^\.\/ba.*$ namespace object ./bar.js
[2] ./templates/bar.js 41 bytes {1} [optional] [built]
@ -342,19 +342,19 @@ chunk {3} output.js (main) 580 bytes >{0}< >{1}< >{2}< [entry] [rendered]
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack next
Asset Size Chunks Chunk Names
0.output.js 114 bytes 0 [emitted] chunk-bar-baz3
1.output.js 115 bytes 1 [emitted] chunk-bar-baz1
0.output.js 114 bytes 0 [emitted] chunk-bar-baz2
1.output.js 115 bytes 1 [emitted] chunk-bar-baz0
2.output.js 113 bytes 2 [emitted] chunk-foo
output.js 2.12 KiB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (chunk-bar-baz3) 41 bytes <{3}> [rendered]
chunk {0} 0.output.js (chunk-bar-baz2) 41 bytes <{3}> [rendered]
> ./baz [3] ./templates lazy ^\.\/ba.*$ namespace object ./baz
> ./baz.js [3] ./templates lazy ^\.\/ba.*$ namespace object ./baz.js
[1] ./templates/baz.js 41 bytes {0} [optional] [built]
[exports: default]
context element ./baz.js [3] ./templates lazy ^\.\/ba.*$ namespace object ./baz.js
context element ./baz [3] ./templates lazy ^\.\/ba.*$ namespace object ./baz
chunk {1} 1.output.js (chunk-bar-baz1) 41 bytes <{3}> [rendered]
chunk {1} 1.output.js (chunk-bar-baz0) 41 bytes <{3}> [rendered]
> ./bar [3] ./templates lazy ^\.\/ba.*$ namespace object ./bar
> ./bar.js [3] ./templates lazy ^\.\/ba.*$ namespace object ./bar.js
[2] ./templates/bar.js 41 bytes {1} [optional] [built]

View File

@ -45,12 +45,15 @@ module.exports = {
},
optimization: {
splitChunks: {
chunks: "initial",
minSize: 0, // This is example is too small to create commons chunks
name: "common",
cacheGroups: {
commons: {
chunks: "initial",
minChunks: 2,
minSize: 0 // This is example is too small to create commons chunks
},
vendor: {
test: /node_modules/,
chunks: "initial",
name: "vendor",
enforce: true
}
@ -67,7 +70,7 @@ module.exports = {
# dist/vendor.js
``` javascript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[3],{
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[5],{
/***/ 1:
/*!*********************************!*\
@ -94,10 +97,10 @@ module.exports = "vendor2";
}]);
```
# dist/common.js
# dist/commons~pageA~pageB~pageC.js
``` javascript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[3],{
/***/ 3:
/*!*********************!*\
@ -108,7 +111,15 @@ module.exports = "vendor2";
module.exports = "utility2";
/***/ }),
/***/ })
}]);
```
# dist/commons~pageB~pageC.js
``` javascript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{
/***/ 6:
/*!*********************!*\
@ -259,7 +270,7 @@ module.exports = "utility3";
/******/
/******/
/******/ // add entry module to deferred list
/******/ deferredModules.push([0,3,4]);
/******/ deferredModules.push([0,3,5]);
/******/ // run deferred modules when ready
/******/ return checkDeferredModules();
/******/ })
@ -432,7 +443,7 @@ module.exports = "utility1";
/******/
/******/
/******/ // add entry module to deferred list
/******/ deferredModules.push([4,3,4]);
/******/ deferredModules.push([4,3,4,5]);
/******/ // run deferred modules when ready
/******/ return checkDeferredModules();
/******/ })
@ -591,7 +602,7 @@ module.exports = "pageB";
/******/
/******/
/******/ // add entry module to deferred list
/******/ deferredModules.push([7,4]);
/******/ deferredModules.push([7,3,4]);
/******/ // run deferred modules when ready
/******/ return checkDeferredModules();
/******/ })
@ -622,44 +633,48 @@ module.exports = "pageC";
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack next
Asset Size Chunks Chunk Names
pageA.js 5.6 KiB 0 [emitted] pageA
pageB.js 5.4 KiB 1 [emitted] pageB
pageC.js 5.34 KiB 2 [emitted] pageC
vendor.js 536 bytes 3 [emitted] vendor
common.js 466 bytes 4 [emitted] common
Entrypoint pageA = vendor.js common.js pageA.js
Entrypoint pageB = vendor.js common.js pageB.js
Entrypoint pageC = common.js pageC.js
chunk {0} pageA.js (pageA) 170 bytes ={3}= ={4}= [entry] [rendered]
Asset Size Chunks Chunk Names
pageA.js 5.6 KiB 0 [emitted] pageA
pageB.js 5.4 KiB 1 [emitted] pageB
pageC.js 5.34 KiB 2 [emitted] pageC
commons~pageA~pageB~pageC.js 269 bytes 3 [emitted] commons~pageA~pageB~pageC
commons~pageB~pageC.js 269 bytes 4 [emitted] commons~pageB~pageC
vendor.js 536 bytes 5 [emitted] vendor
Entrypoint pageA = commons~pageA~pageB~pageC.js vendor.js pageA.js
Entrypoint pageB = commons~pageA~pageB~pageC.js commons~pageB~pageC.js vendor.js pageB.js
Entrypoint pageC = commons~pageA~pageB~pageC.js commons~pageB~pageC.js pageC.js
chunk {0} pageA.js (pageA) 170 bytes ={3}= ={5}= [entry] [rendered]
> ./pageA pageA
[0] ./pageA.js 142 bytes {0} [built]
single entry ./pageA pageA
[2] ./utility1.js 28 bytes {0} [built]
cjs require ./utility1 [0] ./pageA.js 2:15-36
chunk {1} pageB.js (pageB) 142 bytes ={3}= ={4}= [entry] [rendered]
chunk {1} pageB.js (pageB) 142 bytes ={3}= ={4}= ={5}= [entry] [rendered]
> ./pageB pageB
[4] ./pageB.js 142 bytes {1} [built]
single entry ./pageB pageB
chunk {2} pageC.js (pageC) 105 bytes ={4}= [entry] [rendered]
chunk {2} pageC.js (pageC) 105 bytes ={3}= ={4}= [entry] [rendered]
> ./pageC pageC
[7] ./pageC.js 105 bytes {2} [built]
single entry ./pageC pageC
chunk {3} vendor.js (vendor) 54 bytes ={4}= ={0}= ={1}= [initial] [rendered] split chunk (cache group: vendor) (name: vendor)
> ./pageA pageA
> ./pageB pageB
2 modules
chunk {4} common.js (common) 56 bytes ={2}= ={3}= ={1}= ={0}= [initial] [rendered] split chunk (name: common)
chunk {3} commons~pageA~pageB~pageC.js (commons~pageA~pageB~pageC) 28 bytes ={4}= ={2}= ={5}= ={1}= ={0}= [initial] [rendered] split chunk (cache group: commons) (name: commons~pageA~pageB~pageC)
> ./pageC pageC
> ./pageB pageB
> ./pageA pageA
[3] ./utility2.js 28 bytes {4} [built]
[3] ./utility2.js 28 bytes {3} [built]
cjs require ./utility2 [0] ./pageA.js 3:15-36
cjs require ./utility2 [4] ./pageB.js 2:15-36
cjs require ./utility2 [7] ./pageC.js 1:15-36
chunk {4} commons~pageB~pageC.js (commons~pageB~pageC) 28 bytes ={3}= ={2}= ={5}= ={1}= [initial] [rendered] split chunk (cache group: commons) (name: commons~pageB~pageC)
> ./pageC pageC
> ./pageB pageB
[6] ./utility3.js 28 bytes {4} [built]
cjs require ./utility3 [4] ./pageB.js 3:15-36
cjs require ./utility3 [7] ./pageC.js 2:15-36
chunk {5} vendor.js (vendor) 54 bytes ={3}= ={0}= ={4}= ={1}= [initial] [rendered] split chunk (cache group: vendor) (name: vendor)
> ./pageA pageA
> ./pageB pageB
2 modules
```
## Production mode
@ -667,42 +682,46 @@ chunk {4} common.js (common) 56 bytes ={2}= ={3}= ={1}= ={0}= [initial] [rend
```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack next
Asset Size Chunks Chunk Names
common.js 132 bytes 0 [emitted] common
vendor.js 134 bytes 1 [emitted] vendor
pageC.js 1.1 KiB 2 [emitted] pageC
pageB.js 1.11 KiB 3 [emitted] pageB
pageA.js 1.15 KiB 4 [emitted] pageA
Entrypoint pageA = vendor.js common.js pageA.js
Entrypoint pageB = vendor.js common.js pageB.js
Entrypoint pageC = common.js pageC.js
chunk {0} common.js (common) 56 bytes ={2}= ={1}= ={3}= ={4}= [initial] [rendered] split chunk (name: common)
> ./pageC pageC
> ./pageB pageB
> ./pageA pageA
[0] ./utility2.js 28 bytes {0} [built]
cjs require ./utility2 [2] ./pageC.js 1:15-36
cjs require ./utility2 [4] ./pageB.js 2:15-36
cjs require ./utility2 [7] ./pageA.js 3:15-36
[1] ./utility3.js 28 bytes {0} [built]
cjs require ./utility3 [2] ./pageC.js 2:15-36
cjs require ./utility3 [4] ./pageB.js 3:15-36
chunk {1} vendor.js (vendor) 54 bytes ={0}= ={4}= ={3}= [initial] [rendered] split chunk (cache group: vendor) (name: vendor)
Asset Size Chunks Chunk Names
vendor.js 134 bytes 0 [emitted] vendor
commons~pageB~pageC.js 97 bytes 1 [emitted] commons~pageB~pageC
commons~pageA~pageB~pageC.js 96 bytes 2 [emitted] commons~pageA~pageB~pageC
pageC.js 1.1 KiB 3 [emitted] pageC
pageB.js 1.11 KiB 4 [emitted] pageB
pageA.js 1.15 KiB 5 [emitted] pageA
Entrypoint pageA = commons~pageA~pageB~pageC.js vendor.js pageA.js
Entrypoint pageB = commons~pageA~pageB~pageC.js commons~pageB~pageC.js vendor.js pageB.js
Entrypoint pageC = commons~pageA~pageB~pageC.js commons~pageB~pageC.js pageC.js
chunk {0} vendor.js (vendor) 54 bytes ={2}= ={5}= ={1}= ={4}= [initial] [rendered] split chunk (cache group: vendor) (name: vendor)
> ./pageA pageA
> ./pageB pageB
2 modules
chunk {2} pageC.js (pageC) 105 bytes ={0}= [entry] [rendered]
chunk {1} commons~pageB~pageC.js (commons~pageB~pageC) 28 bytes ={2}= ={3}= ={0}= ={4}= [initial] [rendered] split chunk (cache group: commons) (name: commons~pageB~pageC)
> ./pageC pageC
> ./pageB pageB
[1] ./utility3.js 28 bytes {1} [built]
cjs require ./utility3 [2] ./pageC.js 2:15-36
cjs require ./utility3 [4] ./pageB.js 3:15-36
chunk {2} commons~pageA~pageB~pageC.js (commons~pageA~pageB~pageC) 28 bytes ={1}= ={3}= ={0}= ={4}= ={5}= [initial] [rendered] split chunk (cache group: commons) (name: commons~pageA~pageB~pageC)
> ./pageC pageC
[2] ./pageC.js 105 bytes {2} [built]
single entry ./pageC pageC
chunk {3} pageB.js (pageB) 142 bytes ={1}= ={0}= [entry] [rendered]
> ./pageB pageB
[4] ./pageB.js 142 bytes {3} [built]
single entry ./pageB pageB
chunk {4} pageA.js (pageA) 170 bytes ={1}= ={0}= [entry] [rendered]
> ./pageA pageA
[5] ./utility1.js 28 bytes {4} [built]
[0] ./utility2.js 28 bytes {2} [built]
cjs require ./utility2 [2] ./pageC.js 1:15-36
cjs require ./utility2 [4] ./pageB.js 2:15-36
cjs require ./utility2 [7] ./pageA.js 3:15-36
chunk {3} pageC.js (pageC) 105 bytes ={2}= ={1}= [entry] [rendered]
> ./pageC pageC
[2] ./pageC.js 105 bytes {3} [built]
single entry ./pageC pageC
chunk {4} pageB.js (pageB) 142 bytes ={2}= ={1}= ={0}= [entry] [rendered]
> ./pageB pageB
[4] ./pageB.js 142 bytes {4} [built]
single entry ./pageB pageB
chunk {5} pageA.js (pageA) 170 bytes ={2}= ={0}= [entry] [rendered]
> ./pageA pageA
[5] ./utility1.js 28 bytes {5} [built]
cjs require ./utility1 [7] ./pageA.js 2:15-36
[7] ./pageA.js 142 bytes {4} [built]
[7] ./pageA.js 142 bytes {5} [built]
single entry ./pageA pageA
```

View File

@ -438,7 +438,7 @@ Version: webpack next
3.output.js 414 bytes 3 [emitted]
output.js 7.53 KiB 4 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 72 bytes <{1}> <{4}> ={3}= ={2}= [rendered] split chunk
chunk {0} 0.output.js 72 bytes <{1}> <{4}> ={3}= ={2}= [rendered] split chunk (cache group: default)
> [2] ./pageB.js 3:1-6:3
> [0] ./example.js 3:1-6:3
[4] ./reusableComponent.js 72 bytes {0} [built]
@ -476,7 +476,7 @@ Version: webpack next
3.output.js 138 bytes 3 [emitted]
output.js 1.76 KiB 4 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 72 bytes <{1}> <{4}> ={3}= ={2}= [rendered] split chunk
chunk {0} 0.output.js 72 bytes <{1}> <{4}> ={3}= ={2}= [rendered] split chunk (cache group: default)
> [2] ./pageB.js 3:1-6:3
> [0] ./example.js 3:1-6:3
[4] ./reusableComponent.js 72 bytes {0} [built]

View File

@ -140,82 +140,82 @@ console.log(__webpack_require__(/*! module */ 8));
/***/ }),
/* 1 */
/*!**************************************************************************!*\
!*** delegated ./alpha.js from dll-reference alpha_e92bad326fecff628fb8 ***!
!*** delegated ./alpha.js from dll-reference alpha_ae937b5d3e880b635a69 ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(/*! dll-reference alpha_e92bad326fecff628fb8 */ 2))(1);
module.exports = (__webpack_require__(/*! dll-reference alpha_ae937b5d3e880b635a69 */ 2))(1);
/***/ }),
/* 2 */
/*!*********************************************!*\
!*** external "alpha_e92bad326fecff628fb8" ***!
!*** external "alpha_ae937b5d3e880b635a69" ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = alpha_e92bad326fecff628fb8;
module.exports = alpha_ae937b5d3e880b635a69;
/***/ }),
/* 3 */
/*!**********************************************************************!*\
!*** delegated ./a.js from dll-reference alpha_e92bad326fecff628fb8 ***!
!*** delegated ./a.js from dll-reference alpha_ae937b5d3e880b635a69 ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(/*! dll-reference alpha_e92bad326fecff628fb8 */ 2))(2);
module.exports = (__webpack_require__(/*! dll-reference alpha_ae937b5d3e880b635a69 */ 2))(2);
/***/ }),
/* 4 */
/*!************************************************************************!*\
!*** delegated ./beta.js from dll-reference beta_e92bad326fecff628fb8 ***!
!*** delegated ./beta.js from dll-reference beta_ae937b5d3e880b635a69 ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(/*! dll-reference beta_e92bad326fecff628fb8 */ 5))(5);
module.exports = (__webpack_require__(/*! dll-reference beta_ae937b5d3e880b635a69 */ 5))(5);
/***/ }),
/* 5 */
/*!********************************************!*\
!*** external "beta_e92bad326fecff628fb8" ***!
!*** external "beta_ae937b5d3e880b635a69" ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = beta_e92bad326fecff628fb8;
module.exports = beta_ae937b5d3e880b635a69;
/***/ }),
/* 6 */
/*!*********************************************************************!*\
!*** delegated ./b.js from dll-reference beta_e92bad326fecff628fb8 ***!
!*** delegated ./b.js from dll-reference beta_ae937b5d3e880b635a69 ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(/*! dll-reference beta_e92bad326fecff628fb8 */ 5))(6);
module.exports = (__webpack_require__(/*! dll-reference beta_ae937b5d3e880b635a69 */ 5))(6);
/***/ }),
/* 7 */
/*!**********************************************************************!*\
!*** delegated ./c.jsx from dll-reference beta_e92bad326fecff628fb8 ***!
!*** delegated ./c.jsx from dll-reference beta_ae937b5d3e880b635a69 ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(/*! dll-reference beta_e92bad326fecff628fb8 */ 5))(7);
module.exports = (__webpack_require__(/*! dll-reference beta_ae937b5d3e880b635a69 */ 5))(7);
/***/ }),
/* 8 */
/*!*****************************************************************************************!*\
!*** delegated ../node_modules/module.js from dll-reference alpha_e92bad326fecff628fb8 ***!
!*** delegated ../node_modules/module.js from dll-reference alpha_ae937b5d3e880b635a69 ***!
\*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(/*! dll-reference alpha_e92bad326fecff628fb8 */ 2))(3);
module.exports = (__webpack_require__(/*! dll-reference alpha_ae937b5d3e880b635a69 */ 2))(3);
/***/ })
/******/ ]);
@ -235,25 +235,25 @@ chunk {0} output.js (main) 549 bytes [entry] [rendered]
> .\example.js main
[0] ./example.js 213 bytes {0} [built]
single entry .\example.js main
[1] delegated ./alpha.js from dll-reference alpha_e92bad326fecff628fb8 42 bytes {0} [built]
[1] delegated ./alpha.js from dll-reference alpha_ae937b5d3e880b635a69 42 bytes {0} [built]
cjs require ../dll/alpha [0] ./example.js 1:12-35
[2] external "alpha_e92bad326fecff628fb8" 42 bytes {0} [built]
delegated source dll-reference alpha_e92bad326fecff628fb8 [1] delegated ./alpha.js from dll-reference alpha_e92bad326fecff628fb8
delegated source dll-reference alpha_e92bad326fecff628fb8 [3] delegated ./a.js from dll-reference alpha_e92bad326fecff628fb8
delegated source dll-reference alpha_e92bad326fecff628fb8 [8] delegated ../node_modules/module.js from dll-reference alpha_e92bad326fecff628fb8
[3] delegated ./a.js from dll-reference alpha_e92bad326fecff628fb8 42 bytes {0} [built]
[2] external "alpha_ae937b5d3e880b635a69" 42 bytes {0} [built]
delegated source dll-reference alpha_ae937b5d3e880b635a69 [1] delegated ./alpha.js from dll-reference alpha_ae937b5d3e880b635a69
delegated source dll-reference alpha_ae937b5d3e880b635a69 [3] delegated ./a.js from dll-reference alpha_ae937b5d3e880b635a69
delegated source dll-reference alpha_ae937b5d3e880b635a69 [8] delegated ../node_modules/module.js from dll-reference alpha_ae937b5d3e880b635a69
[3] delegated ./a.js from dll-reference alpha_ae937b5d3e880b635a69 42 bytes {0} [built]
cjs require ../dll/a [0] ./example.js 2:12-31
[4] delegated ./beta.js from dll-reference beta_e92bad326fecff628fb8 42 bytes {0} [built]
[4] delegated ./beta.js from dll-reference beta_ae937b5d3e880b635a69 42 bytes {0} [built]
cjs require beta/beta [0] ./example.js 4:12-32
[5] external "beta_e92bad326fecff628fb8" 42 bytes {0} [built]
delegated source dll-reference beta_e92bad326fecff628fb8 [4] delegated ./beta.js from dll-reference beta_e92bad326fecff628fb8
delegated source dll-reference beta_e92bad326fecff628fb8 [6] delegated ./b.js from dll-reference beta_e92bad326fecff628fb8
delegated source dll-reference beta_e92bad326fecff628fb8 [7] delegated ./c.jsx from dll-reference beta_e92bad326fecff628fb8
[6] delegated ./b.js from dll-reference beta_e92bad326fecff628fb8 42 bytes {0} [built]
[5] external "beta_ae937b5d3e880b635a69" 42 bytes {0} [built]
delegated source dll-reference beta_ae937b5d3e880b635a69 [4] delegated ./beta.js from dll-reference beta_ae937b5d3e880b635a69
delegated source dll-reference beta_ae937b5d3e880b635a69 [6] delegated ./b.js from dll-reference beta_ae937b5d3e880b635a69
delegated source dll-reference beta_ae937b5d3e880b635a69 [7] delegated ./c.jsx from dll-reference beta_ae937b5d3e880b635a69
[6] delegated ./b.js from dll-reference beta_ae937b5d3e880b635a69 42 bytes {0} [built]
cjs require beta/b [0] ./example.js 5:12-29
[7] delegated ./c.jsx from dll-reference beta_e92bad326fecff628fb8 42 bytes {0} [built]
[7] delegated ./c.jsx from dll-reference beta_ae937b5d3e880b635a69 42 bytes {0} [built]
cjs require beta/c [0] ./example.js 6:12-29
[8] delegated ../node_modules/module.js from dll-reference alpha_e92bad326fecff628fb8 42 bytes {0} [built]
[8] delegated ../node_modules/module.js from dll-reference alpha_ae937b5d3e880b635a69 42 bytes {0} [built]
cjs require module [0] ./example.js 8:12-29
```
@ -267,25 +267,25 @@ output.js 972 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 549 bytes [entry] [rendered]
> .\example.js main
[0] external "beta_e92bad326fecff628fb8" 42 bytes {0} [built]
delegated source dll-reference beta_e92bad326fecff628fb8 [3] delegated ./c.jsx from dll-reference beta_e92bad326fecff628fb8
delegated source dll-reference beta_e92bad326fecff628fb8 [4] delegated ./b.js from dll-reference beta_e92bad326fecff628fb8
delegated source dll-reference beta_e92bad326fecff628fb8 [5] delegated ./beta.js from dll-reference beta_e92bad326fecff628fb8
[1] external "alpha_e92bad326fecff628fb8" 42 bytes {0} [built]
delegated source dll-reference alpha_e92bad326fecff628fb8 [2] delegated ../node_modules/module.js from dll-reference alpha_e92bad326fecff628fb8
delegated source dll-reference alpha_e92bad326fecff628fb8 [6] delegated ./a.js from dll-reference alpha_e92bad326fecff628fb8
delegated source dll-reference alpha_e92bad326fecff628fb8 [7] delegated ./alpha.js from dll-reference alpha_e92bad326fecff628fb8
[2] delegated ../node_modules/module.js from dll-reference alpha_e92bad326fecff628fb8 42 bytes {0} [built]
[0] external "beta_ae937b5d3e880b635a69" 42 bytes {0} [built]
delegated source dll-reference beta_ae937b5d3e880b635a69 [3] delegated ./c.jsx from dll-reference beta_ae937b5d3e880b635a69
delegated source dll-reference beta_ae937b5d3e880b635a69 [4] delegated ./b.js from dll-reference beta_ae937b5d3e880b635a69
delegated source dll-reference beta_ae937b5d3e880b635a69 [5] delegated ./beta.js from dll-reference beta_ae937b5d3e880b635a69
[1] external "alpha_ae937b5d3e880b635a69" 42 bytes {0} [built]
delegated source dll-reference alpha_ae937b5d3e880b635a69 [2] delegated ../node_modules/module.js from dll-reference alpha_ae937b5d3e880b635a69
delegated source dll-reference alpha_ae937b5d3e880b635a69 [6] delegated ./a.js from dll-reference alpha_ae937b5d3e880b635a69
delegated source dll-reference alpha_ae937b5d3e880b635a69 [7] delegated ./alpha.js from dll-reference alpha_ae937b5d3e880b635a69
[2] delegated ../node_modules/module.js from dll-reference alpha_ae937b5d3e880b635a69 42 bytes {0} [built]
cjs require module [8] ./example.js 8:12-29
[3] delegated ./c.jsx from dll-reference beta_e92bad326fecff628fb8 42 bytes {0} [built]
[3] delegated ./c.jsx from dll-reference beta_ae937b5d3e880b635a69 42 bytes {0} [built]
cjs require beta/c [8] ./example.js 6:12-29
[4] delegated ./b.js from dll-reference beta_e92bad326fecff628fb8 42 bytes {0} [built]
[4] delegated ./b.js from dll-reference beta_ae937b5d3e880b635a69 42 bytes {0} [built]
cjs require beta/b [8] ./example.js 5:12-29
[5] delegated ./beta.js from dll-reference beta_e92bad326fecff628fb8 42 bytes {0} [built]
[5] delegated ./beta.js from dll-reference beta_ae937b5d3e880b635a69 42 bytes {0} [built]
cjs require beta/beta [8] ./example.js 4:12-32
[6] delegated ./a.js from dll-reference alpha_e92bad326fecff628fb8 42 bytes {0} [built]
[6] delegated ./a.js from dll-reference alpha_ae937b5d3e880b635a69 42 bytes {0} [built]
cjs require ../dll/a [8] ./example.js 2:12-31
[7] delegated ./alpha.js from dll-reference alpha_e92bad326fecff628fb8 42 bytes {0} [built]
[7] delegated ./alpha.js from dll-reference alpha_ae937b5d3e880b635a69 42 bytes {0} [built]
cjs require ../dll/alpha [8] ./example.js 1:12-35
[8] ./example.js 213 bytes {0} [built]
single entry .\example.js main

View File

@ -36,7 +36,7 @@ module.exports = {
# dist/MyDll.alpha.js
``` javascript
var alpha_e92bad326fecff628fb8 =
var alpha_ae937b5d3e880b635a69 =
```
<details><summary><code>/******/ (function(modules) { /* webpackBootstrap */ })</code></summary>
@ -168,7 +168,7 @@ module.exports = "module";
# dist/alpha-manifest.json
``` javascript
{"name":"alpha_e92bad326fecff628fb8","content":{"./alpha.js":{"id":1,"buildMeta":{"providedExports":true}},"./a.js":{"id":2,"buildMeta":{"providedExports":true}},"../node_modules/module.js":{"id":3,"buildMeta":{"providedExports":true}}}}
{"name":"alpha_ae937b5d3e880b635a69","content":{"./alpha.js":{"id":1,"buildMeta":{"providedExports":true}},"./a.js":{"id":2,"buildMeta":{"providedExports":true}},"../node_modules/module.js":{"id":3,"buildMeta":{"providedExports":true}}}}
```
# Info

View File

@ -4,6 +4,7 @@
var path = require("path");
var webpack = require("../../");
module.exports = [
{
name: "vendor",
// mode: "development || "production",
@ -20,6 +21,7 @@ module.exports = [
})
]
},
{
name: "app",
// mode: "development || "production",
@ -39,6 +41,7 @@ module.exports = [
})
]
}
];
```

View File

@ -268,7 +268,7 @@ Version: webpack next
6.output.js 241 bytes 6 [emitted]
output.js 8.07 KiB 7 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 21 bytes <{7}> ={2}= ={1}= ={3}= ={4}= >{1}< >{5}< >{6}< [rendered] split chunk
chunk {0} 0.output.js 21 bytes <{7}> ={2}= ={1}= ={3}= ={4}= >{1}< >{5}< >{6}< [rendered] split chunk (cache group: default)
> [2] ./example.js 8:0-16:2
> [2] ./example.js 3:0-6:2
> ./a ./b ./c [2] ./example.js 1:0-52
@ -277,7 +277,7 @@ chunk {0} 0.output.js 21 bytes <{7}> ={2}= ={1}= ={3}= ={4}= >{1}< >{5}< >{6}
require.ensure item ./a [2] ./example.js 3:0-6:2
require.ensure item ./a [2] ./example.js 8:0-16:2
cjs require ./a [2] ./example.js 9:1-15
chunk {1} 1.output.js 21 bytes <{0}> <{2}> <{7}> ={5}= ={6}= ={0}= ={3}= ={4}= [rendered] split chunk
chunk {1} 1.output.js 21 bytes <{0}> <{2}> <{7}> ={5}= ={6}= ={0}= ={3}= ={4}= [rendered] split chunk (cache group: default)
> [2] ./example.js 13:1-15:3
> [2] ./example.js 10:1-12:3
> [2] ./example.js 3:0-6:2
@ -328,7 +328,7 @@ Version: webpack next
6.output.js 91 bytes 6 [emitted]
output.js 2.02 KiB 7 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 21 bytes <{7}> ={2}= ={1}= ={3}= ={4}= >{1}< >{5}< >{6}< [rendered] split chunk
chunk {0} 0.output.js 21 bytes <{7}> ={2}= ={1}= ={3}= ={4}= >{1}< >{5}< >{6}< [rendered] split chunk (cache group: default)
> [2] ./example.js 8:0-16:2
> [2] ./example.js 3:0-6:2
> ./a ./b ./c [2] ./example.js 1:0-52
@ -337,7 +337,7 @@ chunk {0} 0.output.js 21 bytes <{7}> ={2}= ={1}= ={3}= ={4}= >{1}< >{5}< >{6}
require.ensure item ./a [2] ./example.js 3:0-6:2
require.ensure item ./a [2] ./example.js 8:0-16:2
cjs require ./a [2] ./example.js 9:1-15
chunk {1} 1.output.js 21 bytes <{0}> <{2}> <{7}> ={5}= ={6}= ={0}= ={3}= ={4}= [rendered] split chunk
chunk {1} 1.output.js 21 bytes <{0}> <{2}> <{7}> ={5}= ={6}= ={0}= ={3}= ={4}= [rendered] split chunk (cache group: default)
> [2] ./example.js 13:1-15:3
> [2] ./example.js 10:1-12:3
> [2] ./example.js 3:0-6:2

View File

@ -331,7 +331,7 @@ Version: webpack next
2.output.js 241 bytes 2 [emitted]
output.js 7.32 KiB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 42 bytes <{3}> ={1}= ={2}= [rendered] split chunk
chunk {0} 0.output.js 42 bytes <{3}> ={1}= ={2}= [rendered] split chunk (cache group: default)
> [2] ./example.js 5:0-8:2
> ./a ./b ./c [2] ./example.js 2:0-30
[0] ./b.js 21 bytes {0} [built]
@ -365,7 +365,7 @@ Version: webpack next
2.output.js 91 bytes 2 [emitted]
output.js 1.73 KiB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 42 bytes <{3}> ={1}= ={2}= [rendered] split chunk
chunk {0} 0.output.js 42 bytes <{3}> ={1}= ={2}= [rendered] split chunk (cache group: default)
> [2] ./example.js 5:0-8:2
> ./a ./b ./c [2] ./example.js 2:0-30
[0] ./b.js 21 bytes {0} [built]

View File

@ -50,7 +50,7 @@ Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack next
Asset Size Chunks Chunk Names
aae9c6dac629dd3f112e.js 54.5 KiB 7 [emitted]
c943782a49da9f00f591.js 34.8 KiB 0 [emitted]
07ed7b2dfa6fe5502719.js 34.8 KiB 0 [emitted]
987f929f287f8a6c88ac.js 52.1 KiB 2 [emitted]
bc5ed8b126130fde4f42.js 31.1 KiB 3 [emitted]
511009f3a8f06b7c54cb.js 43 KiB 4 [emitted]
@ -64,8 +64,8 @@ ee6461bbec846ab2c762.js 37.6 KiB 10 [emitted]
0a6d10836900825087ce.js 44.7 KiB 12 [emitted]
5ec04d5529f6b78241e2.js 51.9 KiB 13 [emitted]
38a6975540caa0156886.js 51.3 KiB 14 [emitted]
Entrypoint main = bc5ed8b126130fde4f42.js 2a784b823ab0da1e0293.js c943782a49da9f00f591.js
chunk {0} c943782a49da9f00f591.js 28.3 KiB ={3}= ={5}= >{2}< >{4}< >{6}< >{7}< >{8}< >{9}< >{10}< >{11}< >{12}< >{13}< >{14}< >{1}< [entry] [rendered]
Entrypoint main = bc5ed8b126130fde4f42.js 2a784b823ab0da1e0293.js 07ed7b2dfa6fe5502719.js
chunk {0} 07ed7b2dfa6fe5502719.js 28.3 KiB ={3}= ={5}= >{2}< >{4}< >{6}< >{7}< >{8}< >{9}< >{10}< >{11}< >{12}< >{13}< >{14}< >{1}< [entry] [rendered]
> ./example main
[0] ./example.js 44 bytes {0} [built]
+ 13 hidden modules
@ -133,8 +133,8 @@ cf3beff30352265c3fae.js 13.1 KiB 2 [emitted]
27d8a7d99dbd33243169.js 4.2 KiB 11 [emitted]
f9403b4474b02c436f23.js 10.9 KiB 12 [emitted]
97ad3a6439b7ef8470ec.js 6.41 KiB 13 [emitted]
50362e240b6b01a16dd2.js 5.97 KiB 14 [emitted]
Entrypoint main = 97ad3a6439b7ef8470ec.js f9403b4474b02c436f23.js 50362e240b6b01a16dd2.js
ed199e2ef66607136e6a.js 5.97 KiB 14 [emitted]
Entrypoint main = 97ad3a6439b7ef8470ec.js f9403b4474b02c436f23.js ed199e2ef66607136e6a.js
chunk {0} 9baaf7bc0364c2600ef8.js 46.6 KiB <{13}> <{12}> <{14}> ={10}= ={9}= ={8}= ={7}= ={6}= ={5}= ={4}= ={3}= ={2}= ={1}= ={11}= [rendered] [recorded] aggressive splitted
> react-dom [30] ./example.js 2:0-22
24 modules
@ -177,7 +177,7 @@ chunk {12} f9403b4474b02c436f23.js 45.7 KiB ={13}= ={14}= >{10}< >{9}< >{8}< >
chunk {13} 97ad3a6439b7ef8470ec.js 37.8 KiB ={12}= ={14}= >{10}< >{9}< >{8}< >{7}< >{6}< >{5}< >{4}< >{3}< >{2}< >{1}< >{0}< >{11}< [initial] [rendered] [recorded] aggressive splitted
> ./example main
8 modules
chunk {14} 50362e240b6b01a16dd2.js 28.3 KiB ={13}= ={12}= >{10}< >{9}< >{8}< >{7}< >{6}< >{5}< >{4}< >{3}< >{2}< >{1}< >{0}< >{11}< [entry] [rendered]
chunk {14} ed199e2ef66607136e6a.js 28.3 KiB ={13}= ={12}= >{10}< >{9}< >{8}< >{7}< >{6}< >{5}< >{4}< >{3}< >{2}< >{1}< >{0}< >{11}< [entry] [rendered]
> ./example main
[30] ./example.js 44 bytes {14} [built]
+ 13 hidden modules

View File

@ -100,7 +100,8 @@ module.exports = function(page) {
};
/***/ }),
/* 1 */
/* 1 */,
/* 2 */
/*!*******************!*\
!*** ./router.js ***!
\*******************/
@ -128,7 +129,6 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
/***/ }),
/* 2 */,
/* 3 */,
/* 4 */,
/* 5 */,
@ -145,7 +145,7 @@ var map = {
1
],
"./bPage": [
2,
1,
0
]
};
@ -402,7 +402,7 @@ render(__webpack_require__(/*! ./aPage */ 3));
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ./aEntry */7);
module.exports = __webpack_require__(/*! ./router */1);
module.exports = __webpack_require__(/*! ./router */2);
/***/ })
@ -439,39 +439,39 @@ module.exports = function() {
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack next
Asset Size Chunks Chunk Names
bPage.chunk.js 293 bytes 0 [emitted] bPage
bPage.chunk.js 299 bytes 0 [emitted] bPage
aPage.chunk.js 293 bytes 1 [emitted] aPage
pageA~pageB.chunk.js 2.16 KiB 2 [emitted] pageA~pageB
pageB.bundle.js 8.2 KiB 3 [emitted] pageB
pageA.bundle.js 8.2 KiB 4 [emitted] pageA
Entrypoint pageA = aPage.chunk.js pageA~pageB.chunk.js pageA.bundle.js
Entrypoint pageB = bPage.chunk.js pageA~pageB.chunk.js pageB.bundle.js
chunk {0} bPage.chunk.js (bPage) 61 bytes <{1}> <{2}> <{4}> ={2}= ={3}= >{1}< [rendered] reused as split chunk
chunk {0} bPage.chunk.js (bPage) 61 bytes <{1}> <{2}> <{4}> ={2}= ={3}= >{1}< [initial] [rendered] reused as split chunk (cache group: default)
> ./bPage [6] . lazy ^\.\/.*Page$ namespace object ./bPage
> ./bPage [6] . lazy ^\.\/.*Page$ namespace object ./bPage
> pageB
[2] ./bPage.js 61 bytes {0} [built]
[1] ./bPage.js 61 bytes {0} [built]
cjs require ./bPage [4] ./bEntry.js 3:7-25
context element ./bPage [6] . lazy ^\.\/.*Page$ namespace object ./bPage
chunk {1} aPage.chunk.js (aPage) 61 bytes <{0}> <{2}> <{3}> ={2}= ={4}= >{0}< [rendered] reused as split chunk
chunk {1} aPage.chunk.js (aPage) 61 bytes <{0}> <{2}> <{3}> ={2}= ={4}= >{0}< [initial] [rendered] reused as split chunk (cache group: default)
> ./aPage [6] . lazy ^\.\/.*Page$ namespace object ./aPage
> ./aPage [6] . lazy ^\.\/.*Page$ namespace object ./aPage
> pageA
[3] ./aPage.js 61 bytes {1} [built]
context element ./aPage [6] . lazy ^\.\/.*Page$ namespace object ./aPage
cjs require ./aPage [7] ./aEntry.js 3:7-25
chunk {2} pageA~pageB.chunk.js (pageA~pageB) 970 bytes ={0}= ={3}= ={1}= ={4}= >{1}< >{0}< [initial] [rendered] split chunk (name: pageA~pageB)
chunk {2} pageA~pageB.chunk.js (pageA~pageB) 970 bytes ={0}= ={3}= ={1}= ={4}= >{1}< >{0}< [initial] [rendered] split chunk (cache group: default) (name: pageA~pageB)
> pageB
> pageA
[0] ./render.js 60 bytes {2} [built]
cjs require ./render [1] ./router.js 1:13-32
cjs require ./render [2] ./router.js 1:13-32
cjs require ./render [4] ./bEntry.js 2:13-32
cjs require ./render [7] ./aEntry.js 2:13-32
[1] ./router.js 750 bytes {2} [built]
[2] ./router.js 750 bytes {2} [built]
single entry ./router [5] multi ./bEntry ./router pageB:100001
single entry ./router [8] multi ./aEntry ./router pageA:100001
[6] . lazy ^\.\/.*Page$ namespace object 160 bytes {2} [built]
import() context lazy . [1] ./router.js 15:1-59
import() context lazy . [2] ./router.js 15:1-59
chunk {3} pageB.bundle.js (pageB) 129 bytes ={0}= ={2}= >{1}< [entry] [rendered]
> pageB
[4] ./bEntry.js 89 bytes {3} [built]
@ -492,39 +492,39 @@ chunk {4} pageA.bundle.js (pageA) 129 bytes ={1}= ={2}= >{0}< [entry] [render
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack next
Asset Size Chunks Chunk Names
bPage.chunk.js 123 bytes 0 [emitted] bPage
bPage.chunk.js 122 bytes 0 [emitted] bPage
aPage.chunk.js 123 bytes 1 [emitted] aPage
pageA~pageB.chunk.js 589 bytes 2 [emitted] pageA~pageB
pageB.bundle.js 1.85 KiB 3 [emitted] pageB
pageA.bundle.js 1.85 KiB 4 [emitted] pageA
Entrypoint pageA = aPage.chunk.js pageA~pageB.chunk.js pageA.bundle.js
Entrypoint pageB = bPage.chunk.js pageA~pageB.chunk.js pageB.bundle.js
chunk {0} bPage.chunk.js (bPage) 61 bytes <{1}> <{2}> <{4}> ={2}= ={3}= >{1}< [rendered] reused as split chunk
chunk {0} bPage.chunk.js (bPage) 61 bytes <{1}> <{2}> <{4}> ={2}= ={3}= >{1}< [initial] [rendered] reused as split chunk (cache group: default)
> ./bPage [6] . lazy ^\.\/.*Page$ namespace object ./bPage
> ./bPage [6] . lazy ^\.\/.*Page$ namespace object ./bPage
> pageB
[2] ./bPage.js 61 bytes {0} [built]
[1] ./bPage.js 61 bytes {0} [built]
cjs require ./bPage [4] ./bEntry.js 3:7-25
context element ./bPage [6] . lazy ^\.\/.*Page$ namespace object ./bPage
chunk {1} aPage.chunk.js (aPage) 61 bytes <{0}> <{2}> <{3}> ={2}= ={4}= >{0}< [rendered] reused as split chunk
chunk {1} aPage.chunk.js (aPage) 61 bytes <{0}> <{2}> <{3}> ={2}= ={4}= >{0}< [initial] [rendered] reused as split chunk (cache group: default)
> ./aPage [6] . lazy ^\.\/.*Page$ namespace object ./aPage
> ./aPage [6] . lazy ^\.\/.*Page$ namespace object ./aPage
> pageA
[3] ./aPage.js 61 bytes {1} [built]
context element ./aPage [6] . lazy ^\.\/.*Page$ namespace object ./aPage
cjs require ./aPage [7] ./aEntry.js 3:7-25
chunk {2} pageA~pageB.chunk.js (pageA~pageB) 970 bytes ={0}= ={3}= ={1}= ={4}= >{1}< >{0}< [initial] [rendered] split chunk (name: pageA~pageB)
chunk {2} pageA~pageB.chunk.js (pageA~pageB) 970 bytes ={0}= ={3}= ={1}= ={4}= >{1}< >{0}< [initial] [rendered] split chunk (cache group: default) (name: pageA~pageB)
> pageB
> pageA
[0] ./render.js 60 bytes {2} [built]
cjs require ./render [1] ./router.js 1:13-32
cjs require ./render [2] ./router.js 1:13-32
cjs require ./render [4] ./bEntry.js 2:13-32
cjs require ./render [7] ./aEntry.js 2:13-32
[1] ./router.js 750 bytes {2} [built]
[2] ./router.js 750 bytes {2} [built]
single entry ./router [5] multi ./bEntry ./router pageB:100001
single entry ./router [8] multi ./aEntry ./router pageA:100001
[6] . lazy ^\.\/.*Page$ namespace object 160 bytes {2} [built]
import() context lazy . [1] ./router.js 15:1-59
import() context lazy . [2] ./router.js 15:1-59
chunk {3} pageB.bundle.js (pageB) 129 bytes ={0}= ={2}= >{1}< [entry] [rendered]
> pageB
[4] ./bEntry.js 89 bytes {3} [built]

View File

@ -14,6 +14,7 @@ console.log("Running " + ENV + " build");
var path = require("path");
var webpack = require("../../");
module.exports = [
{
name: "mobile",
// mode: "development || "production",
@ -28,6 +29,7 @@ module.exports = [
})
]
},
{
name: "desktop",
// mode: "development || "production",
@ -42,6 +44,7 @@ module.exports = [
})
]
}
];
```