regenerated examples

This commit is contained in:
Tobias Koppers 2016-12-14 12:03:24 +01:00
parent a11fa89dc9
commit 484dfde58f
38 changed files with 2038 additions and 1849 deletions

View File

@ -56,22 +56,21 @@ module.exports = {
## Uncompressed
```
Hash: 06a73dcf91032a0ba5a5
Version: webpack 2.1.0-beta.25
Time: 147ms
Hash: 06f18f1663d1b6555aff
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.chunk.js 5.75 kB 0 [emitted]
0.chunk.js 5.76 kB 0 [emitted]
1.chunk.js 397 bytes 1 [emitted]
pageB.bundle.js 5.98 kB 2 [emitted] pageB
pageA.bundle.js 5.95 kB 3 [emitted] pageA
pageC.bundle.js 5.75 kB 4 [emitted] pageC
pageB.bundle.js 6.17 kB 2 [emitted] pageB
pageA.bundle.js 6.14 kB 3 [emitted] pageA
pageC.bundle.js 5.94 kB 4 [emitted] pageC
Entrypoint pageA = pageA.bundle.js
Entrypoint pageB = pageB.bundle.js
Entrypoint pageC = pageC.bundle.js
chunk {0} 0.chunk.js 5.54 kB {3} {2} [rendered]
chunk {0} 0.chunk.js 5.55 kB {2} {3} [rendered]
> aggressive-merge [3] ./pageA.js 1:0-3:2
> aggressive-merge [4] ./pageB.js 1:0-3:2
[2] ./common.js 5.54 kB {0} [built]
[2] ./common.js 5.55 kB {0} [built]
amd require ./common [3] ./pageA.js 1:0-3:2
amd require ./common [4] ./pageB.js 1:0-3:2
chunk {1} 1.chunk.js 42 bytes {4} [rendered]
@ -82,42 +81,41 @@ chunk {1} 1.chunk.js 42 bytes {4} [rendered]
[1] ./b.js 21 bytes {1} {2} [built]
cjs require ./b [4] ./pageB.js 2:8-22
cjs require ./b [5] ./pageC.js 2:17-31
chunk {2} pageB.bundle.js (pageB) 90 bytes [entry] [rendered]
chunk {2} pageB.bundle.js (pageB) 92 bytes [entry] [rendered]
> pageB [4] ./pageB.js
[1] ./b.js 21 bytes {1} {2} [built]
cjs require ./b [4] ./pageB.js 2:8-22
cjs require ./b [5] ./pageC.js 2:17-31
[4] ./pageB.js 69 bytes {2} [built]
chunk {3} pageA.bundle.js (pageA) 90 bytes [entry] [rendered]
[4] ./pageB.js 71 bytes {2} [built]
chunk {3} pageA.bundle.js (pageA) 92 bytes [entry] [rendered]
> pageA [3] ./pageA.js
[0] ./a.js 21 bytes {1} {3} [built]
cjs require ./a [3] ./pageA.js 2:8-22
amd require ./a [5] ./pageC.js 1:0-3:2
[3] ./pageA.js 69 bytes {3} [built]
chunk {4} pageC.bundle.js (pageC) 68 bytes [entry] [rendered]
[3] ./pageA.js 71 bytes {3} [built]
chunk {4} pageC.bundle.js (pageC) 70 bytes [entry] [rendered]
> pageC [5] ./pageC.js
[5] ./pageC.js 68 bytes {4} [built]
[5] ./pageC.js 70 bytes {4} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 06a73dcf91032a0ba5a5
Version: webpack 2.1.0-beta.25
Time: 417ms
Hash: 06f18f1663d1b6555aff
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.chunk.js 75 bytes 0 [emitted]
1.chunk.js 78 bytes 1 [emitted]
pageB.bundle.js 1.45 kB 2 [emitted] pageB
pageA.bundle.js 1.45 kB 3 [emitted] pageA
pageC.bundle.js 1.43 kB 4 [emitted] pageC
pageB.bundle.js 1.48 kB 2 [emitted] pageB
pageA.bundle.js 1.48 kB 3 [emitted] pageA
pageC.bundle.js 1.46 kB 4 [emitted] pageC
Entrypoint pageA = pageA.bundle.js
Entrypoint pageB = pageB.bundle.js
Entrypoint pageC = pageC.bundle.js
chunk {0} 0.chunk.js 5.54 kB {3} {2} [rendered]
chunk {0} 0.chunk.js 5.55 kB {2} {3} [rendered]
> aggressive-merge [3] ./pageA.js 1:0-3:2
> aggressive-merge [4] ./pageB.js 1:0-3:2
[2] ./common.js 5.54 kB {0} [built]
[2] ./common.js 5.55 kB {0} [built]
amd require ./common [3] ./pageA.js 1:0-3:2
amd require ./common [4] ./pageB.js 1:0-3:2
chunk {1} 1.chunk.js 42 bytes {4} [rendered]
@ -128,19 +126,19 @@ chunk {1} 1.chunk.js 42 bytes {4} [rendered]
[1] ./b.js 21 bytes {1} {2} [built]
cjs require ./b [4] ./pageB.js 2:8-22
cjs require ./b [5] ./pageC.js 2:17-31
chunk {2} pageB.bundle.js (pageB) 90 bytes [entry] [rendered]
chunk {2} pageB.bundle.js (pageB) 92 bytes [entry] [rendered]
> pageB [4] ./pageB.js
[1] ./b.js 21 bytes {1} {2} [built]
cjs require ./b [4] ./pageB.js 2:8-22
cjs require ./b [5] ./pageC.js 2:17-31
[4] ./pageB.js 69 bytes {2} [built]
chunk {3} pageA.bundle.js (pageA) 90 bytes [entry] [rendered]
[4] ./pageB.js 71 bytes {2} [built]
chunk {3} pageA.bundle.js (pageA) 92 bytes [entry] [rendered]
> pageA [3] ./pageA.js
[0] ./a.js 21 bytes {1} {3} [built]
cjs require ./a [3] ./pageA.js 2:8-22
amd require ./a [5] ./pageC.js 1:0-3:2
[3] ./pageA.js 69 bytes {3} [built]
chunk {4} pageC.bundle.js (pageC) 68 bytes [entry] [rendered]
[3] ./pageA.js 71 bytes {3} [built]
chunk {4} pageC.bundle.js (pageC) 70 bytes [entry] [rendered]
> pageC [5] ./pageC.js
[5] ./pageC.js 68 bytes {4} [built]
[5] ./pageC.js 70 bytes {4} [built]
```

View File

@ -62,7 +62,7 @@ module.exports = {
<!-- inlined minimized file "manifest.[chunkhash].js" -->
<script>
!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var u,i,f,l=0,s=[];l<t.length;l++)i=t[l],o[i]&&s.push(o[i][0]),o[i]=0;for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&(e[u]=a[u]);for(n&&n(t,a,c);s.length;)s.shift()();if(c)for(l=0;l<c.length;l++)f=r(r.s=c[l]);return f};var t={},o={4:0};r.e=function(e){function n(){a.onerror=a.onload=null,clearTimeout(c);var r=o[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}if(0===o[e])return Promise.resolve();if(o[e])return o[e][2];var t=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,a.src=r.p+""+{0:"ecd2b16a48d8b92daf31",1:"3ab6307df46b05a2e3c3",2:"af804db11849c698ecbd",3:"9b0423f36b542b42b6a3"}[e]+".js";var c=setTimeout(n,12e4);a.onerror=a.onload=n,t.appendChild(a);var u=new Promise(function(r,n){o[e]=[r,n]});return o[e][2]=u},r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,r,n){Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="js/",r.oe=function(e){throw console.error(e),e}}([]);
!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var u,i,f,s=0,l=[];s<t.length;s++)i=t[s],o[i]&&l.push(o[i][0]),o[i]=0;for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&(e[u]=a[u]);for(n&&n(t,a,c);l.length;)l.shift()();if(c)for(s=0;s<c.length;s++)f=r(r.s=c[s]);return f};var t={},o={4:0};r.e=function(e){function n(){a.onerror=a.onload=null,clearTimeout(c);var r=o[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}if(0===o[e])return Promise.resolve();if(o[e])return o[e][2];var t=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,r.nc&&a.setAttribute("nonce",r.nc),a.src=r.p+""+{0:"d8d9958181fae97ba27d",1:"36e4c03aa77bd58b0abc",2:"28b8ea2c1cc4eaebd919",3:"14bf1a160bee78ea17f7"}[e]+".js";var c=setTimeout(n,12e4);a.onerror=a.onload=n;var u=new Promise(function(r,n){o[e]=[r,n]});return o[e][2]=u,t.appendChild(a),u},r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="js/",r.oe=function(e){throw console.error(e),e}}([]);
</script>
<!-- optional when using the CommonChunkPlugin for vendor modules -->
@ -87,6 +87,7 @@ webpackJsonp([2,4],[
/***/ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// some vendor lib (should be in common chunk)
/* harmony default export */ exports["default"] = 123;
@ -124,11 +125,12 @@ webpackJsonp([3,4],{
/***/ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__vendor__ = __webpack_require__(/*! ./vendor */ 0);
// some module
__webpack_require__.e/* System.import */(1).then(__webpack_require__.bind(null, /*! ./async1 */ 1));
__webpack_require__.e/* System.import */(0).then(__webpack_require__.bind(null, /*! ./async2 */ 2));
__webpack_require__.e/* import() */(1).then(__webpack_require__.bind(null, /*! ./async1 */ 1));
__webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, /*! ./async2 */ 2));
/***/ }
@ -141,69 +143,67 @@ __webpack_require__.e/* System.import */(0).then(__webpack_require__.bind(null,
## Uncompressed
```
Hash: 02d122739ca3698772e8
Version: webpack 2.1.0-beta.25
Time: 121ms
Hash: 7b7e514d1f86a946849f
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
ecd2b16a48d8b92daf31.js 236 bytes 0, 4 [emitted]
3ab6307df46b05a2e3c3.js 242 bytes 1, 4 [emitted]
common.chunkhash.js 636 bytes 2, 4 [emitted] common
main.chunkhash.js 573 bytes 3, 4 [emitted] main
manifest.chunkhash.js 5.45 kB 4 [emitted] manifest
d8d9958181fae97ba27d.js 237 bytes 0, 4 [emitted]
36e4c03aa77bd58b0abc.js 243 bytes 1, 4 [emitted]
common.chunkhash.js 701 bytes 2, 4 [emitted] common
main.chunkhash.js 630 bytes 3, 4 [emitted] main
manifest.chunkhash.js 5.66 kB 4 [emitted] manifest
Entrypoint main = manifest.chunkhash.js common.chunkhash.js main.chunkhash.js
Entrypoint common = manifest.chunkhash.js common.chunkhash.js
chunk {0} ecd2b16a48d8b92daf31.js 28 bytes {3} [rendered]
chunk {0} d8d9958181fae97ba27d.js 29 bytes {3} [rendered]
> [3] ./example.js 4:0-25
[2] ./async2.js 28 bytes {0} [built]
System.import ./async2 [3] ./example.js 4:0-25
chunk {1} 3ab6307df46b05a2e3c3.js 28 bytes {3} [rendered]
[2] ./async2.js 29 bytes {0} [built]
import() ./async2 [3] ./example.js 4:0-25
chunk {1} 36e4c03aa77bd58b0abc.js 29 bytes {3} [rendered]
> [3] ./example.js 3:0-25
[1] ./async1.js 28 bytes {1} [built]
System.import ./async1 [3] ./example.js 3:0-25
chunk {2} common.chunkhash.js (common) 95 bytes {4} [initial] [rendered]
[1] ./async1.js 29 bytes {1} [built]
import() ./async1 [3] ./example.js 3:0-25
chunk {2} common.chunkhash.js (common) 97 bytes {4} [initial] [rendered]
> common [4] multi common
[0] ./vendor.js 67 bytes {2} [built]
[0] ./vendor.js 69 bytes {2} [built]
[exports: default]
harmony import ./vendor [3] ./example.js 1:0-30
single entry ./vendor [4] multi common
[4] multi common 28 bytes {2} [built]
chunk {3} main.chunkhash.js (main) 100 bytes {2} [initial] [rendered]
chunk {3} main.chunkhash.js (main) 104 bytes {2} [initial] [rendered]
> main [3] ./example.js
[3] ./example.js 100 bytes {3} [built]
[3] ./example.js 104 bytes {3} [built]
chunk {4} manifest.chunkhash.js (manifest) 0 bytes [entry] [rendered]
```
## Minimized (uglify-js, no zip)
```
Hash: 02d122739ca3698772e8
Version: webpack 2.1.0-beta.25
Time: 278ms
Hash: 7b7e514d1f86a946849f
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
ecd2b16a48d8b92daf31.js 40 bytes 0, 4 [emitted]
3ab6307df46b05a2e3c3.js 39 bytes 1, 4 [emitted]
common.chunkhash.js 105 bytes 2, 4 [emitted] common
main.chunkhash.js 119 bytes 3, 4 [emitted] main
manifest.chunkhash.js 1.43 kB 4 [emitted] manifest
d8d9958181fae97ba27d.js 40 bytes 0, 4 [emitted]
36e4c03aa77bd58b0abc.js 39 bytes 1, 4 [emitted]
common.chunkhash.js 154 bytes 2, 4 [emitted] common
main.chunkhash.js 168 bytes 3, 4 [emitted] main
manifest.chunkhash.js 1.48 kB 4 [emitted] manifest
Entrypoint main = manifest.chunkhash.js common.chunkhash.js main.chunkhash.js
Entrypoint common = manifest.chunkhash.js common.chunkhash.js
chunk {0} ecd2b16a48d8b92daf31.js 28 bytes {3} [rendered]
chunk {0} d8d9958181fae97ba27d.js 29 bytes {3} [rendered]
> [3] ./example.js 4:0-25
[2] ./async2.js 28 bytes {0} [built]
System.import ./async2 [3] ./example.js 4:0-25
chunk {1} 3ab6307df46b05a2e3c3.js 28 bytes {3} [rendered]
[2] ./async2.js 29 bytes {0} [built]
import() ./async2 [3] ./example.js 4:0-25
chunk {1} 36e4c03aa77bd58b0abc.js 29 bytes {3} [rendered]
> [3] ./example.js 3:0-25
[1] ./async1.js 28 bytes {1} [built]
System.import ./async1 [3] ./example.js 3:0-25
chunk {2} common.chunkhash.js (common) 95 bytes {4} [initial] [rendered]
[1] ./async1.js 29 bytes {1} [built]
import() ./async1 [3] ./example.js 3:0-25
chunk {2} common.chunkhash.js (common) 97 bytes {4} [initial] [rendered]
> common [4] multi common
[0] ./vendor.js 67 bytes {2} [built]
[0] ./vendor.js 69 bytes {2} [built]
[exports: default]
harmony import ./vendor [3] ./example.js 1:0-30
single entry ./vendor [4] multi common
[4] multi common 28 bytes {2} [built]
chunk {3} main.chunkhash.js (main) 100 bytes {2} [initial] [rendered]
chunk {3} main.chunkhash.js (main) 104 bytes {2} [initial] [rendered]
> main [3] ./example.js
[3] ./example.js 100 bytes {3} [built]
[3] ./example.js 104 bytes {3} [built]
chunk {4} manifest.chunkhash.js (manifest) 0 bytes [entry] [rendered]
```

View File

@ -66,56 +66,54 @@ body {
## Uncompressed
```
Hash: e81a3bd9b061e4a4628f
Version: webpack 2.1.0-beta.25
Time: 794ms
Hash: 69987b2d59e4b1a136b3
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
0.output.js 1.03 kB 0 [emitted]
output.js 7.65 kB 1 [emitted] main
style.css 68 bytes 1 [emitted] main
0.output.js 1.04 kB 0 [emitted]
output.js 7.84 kB 1 [emitted] main
style.css 71 bytes 1 [emitted] main
Entrypoint main = output.js style.css
chunk {0} 0.output.js 330 bytes {1} [rendered]
chunk {0} 0.output.js 337 bytes {1} [rendered]
> [2] ./example.js 2:0-20
[1] ./chunk.js 25 bytes {0} [built]
[1] ./chunk.js 26 bytes {0} [built]
amd require ./chunk [2] ./example.js 2:0-20
[4] ./style2.css 223 bytes {0} [built]
[4] ./style2.css 229 bytes {0} [built]
cjs require ./style2.css [1] ./chunk.js 1:0-23
[5] ./image2.png 82 bytes {0} [built]
cjs require ./image2.png [4] ./style2.css 6:56-79
cjs require ./image2.png [4] ./style2.css 6:58-81
chunk {1} output.js, style.css (main) 1.59 kB [entry] [rendered]
> main [2] ./example.js
[0] ./style.css 41 bytes {1} [built]
cjs require ./style.css [2] ./example.js 1:0-22
[2] ./example.js 46 bytes {1} [built]
[2] ./example.js 48 bytes {1} [built]
[3] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {1} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [4] ./style2.css 1:27-85
Child extract-text-webpack-plugin:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
chunk {0} extract-text-webpack-plugin-output-filename 1.81 kB [entry] [rendered]
chunk {0} extract-text-webpack-plugin-output-filename 1.82 kB [entry] [rendered]
> [2] (webpack)/~/css-loader!./style.css
[0] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./style.css 1:27-85
[1] ./image.png 82 bytes {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:56-78
[2] (webpack)/~/css-loader!./style.css 222 bytes {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:58-80
[2] (webpack)/~/css-loader!./style.css 228 bytes {0} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 791614886036b3a69264
Version: webpack 2.1.0-beta.25
Time: 1183ms
Hash: 1f1b0ebfddb5b6f81a44
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
0.output.js 201 bytes 0 [emitted]
output.js 1.86 kB 1 [emitted] main
output.js 1.9 kB 1 [emitted] main
style.css 61 bytes 1 [emitted] main
Entrypoint main = output.js style.css
chunk {0} 0.output.js 319 bytes {1} [rendered]
chunk {0} 0.output.js 320 bytes {1} [rendered]
> [2] ./example.js 2:0-20
[1] ./chunk.js 25 bytes {0} [built]
[1] ./chunk.js 26 bytes {0} [built]
amd require ./chunk [2] ./example.js 2:0-20
[4] ./style2.css 212 bytes {0} [built]
cjs require ./style2.css [1] ./chunk.js 1:0-23
@ -125,7 +123,7 @@ chunk {1} output.js, style.css (main) 1.59 kB [entry] [rendered]
> main [2] ./example.js
[0] ./style.css 41 bytes {1} [built]
cjs require ./style.css [2] ./example.js 1:0-22
[2] ./example.js 46 bytes {1} [built]
[2] ./example.js 48 bytes {1} [built]
[3] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {1} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [4] ./style2.css 1:27-85
Child extract-text-webpack-plugin:

View File

@ -92,6 +92,9 @@ getTemplate("b", function(b) {
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -105,12 +108,14 @@ getTemplate("b", function(b) {
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -124,11 +129,13 @@ getTemplate("b", function(b) {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -167,9 +174,9 @@ getTemplate("b", function(b) {
/***/ function(module, exports, __webpack_require__) {
function getTemplate(templateName, callback) {
__webpack_require__.e/* require */(0).catch(function(err) { __webpack_require__.oe(err); }).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../require.context/templates */ 0)("./"+templateName)]; (function(tmpl) {
__webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../require.context/templates */ 0)("./"+templateName)]; (function(tmpl) {
callback(tmpl());
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
}
getTemplate("a", function(a) {
console.log(a);
@ -268,55 +275,53 @@ module.exports = function() {
## Uncompressed
```
Hash: 3a8c6c952f4b69614cc3
Version: webpack 2.1.0-beta.25
Time: 132ms
Hash: d23825838eead1fb3004
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 1.83 kB 0 [emitted]
output.js 5.93 kB 1 [emitted] main
output.js 6.13 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 457 bytes {1} [rendered]
chunk {0} 0.output.js 463 bytes {1} [rendered]
> [1] ./example.js 2:1-4:3
[0] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
amd require context ../require.context/templates [1] ./example.js 2:1-4:3
[2] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
[2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a [0] ../require.context/templates ^\.\/.*$
context element ./a.js [0] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
[3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b [0] ../require.context/templates ^\.\/.*$
context element ./b.js [0] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
[4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c [0] ../require.context/templates ^\.\/.*$
context element ./c.js [0] ../require.context/templates ^\.\/.*$
chunk {1} output.js (main) 251 bytes [entry] [rendered]
chunk {1} output.js (main) 261 bytes [entry] [rendered]
> main [1] ./example.js
[1] ./example.js 251 bytes {1} [built]
[1] ./example.js 261 bytes {1} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 3a8c6c952f4b69614cc3
Version: webpack 2.1.0-beta.25
Time: 297ms
Hash: d23825838eead1fb3004
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 544 bytes 0 [emitted]
output.js 1.51 kB 1 [emitted] main
output.js 1.54 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 457 bytes {1} [rendered]
chunk {0} 0.output.js 463 bytes {1} [rendered]
> [1] ./example.js 2:1-4:3
[0] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
amd require context ../require.context/templates [1] ./example.js 2:1-4:3
[2] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
[2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a [0] ../require.context/templates ^\.\/.*$
context element ./a.js [0] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
[3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b [0] ../require.context/templates ^\.\/.*$
context element ./b.js [0] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
[4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c [0] ../require.context/templates ^\.\/.*$
context element ./c.js [0] ../require.context/templates ^\.\/.*$
chunk {1} output.js (main) 251 bytes [entry] [rendered]
chunk {1} output.js (main) 261 bytes [entry] [rendered]
> main [1] ./example.js
[1] ./example.js 251 bytes {1} [built]
[1] ./example.js 261 bytes {1} [built]
```

View File

@ -92,6 +92,9 @@ getTemplate("b", function(b) {
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -105,12 +108,14 @@ getTemplate("b", function(b) {
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -124,11 +129,13 @@ getTemplate("b", function(b) {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -167,9 +174,9 @@ getTemplate("b", function(b) {
/***/ function(module, exports, __webpack_require__) {
function getTemplate(templateName, callback) {
__webpack_require__.e/* nsure */(0).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
__webpack_require__.e/* require.ensure */(0).then((function(require) {
callback(__webpack_require__(/*! ../require.context/templates */ 0)("./"+templateName)());
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}
getTemplate("a", function(a) {
console.log(a);
@ -268,55 +275,53 @@ module.exports = function() {
## Uncompressed
```
Hash: 7ed28e2af847957ed18b
Version: webpack 2.1.0-beta.25
Time: 152ms
Hash: d11df36bfcb331710ba2
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 1.83 kB 0 [emitted]
output.js 5.86 kB 1 [emitted] main
output.js 6.07 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 457 bytes {1} [rendered]
chunk {0} 0.output.js 463 bytes {1} [rendered]
> [1] ./example.js 2:1-4:3
[0] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
cjs require context ../require.context/templates [1] ./example.js 3:11-64
[2] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
[2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a [0] ../require.context/templates ^\.\/.*$
context element ./a.js [0] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
[3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b [0] ../require.context/templates ^\.\/.*$
context element ./b.js [0] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
[4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c [0] ../require.context/templates ^\.\/.*$
context element ./c.js [0] ../require.context/templates ^\.\/.*$
chunk {1} output.js (main) 266 bytes [entry] [rendered]
chunk {1} output.js (main) 276 bytes [entry] [rendered]
> main [1] ./example.js
[1] ./example.js 266 bytes {1} [built]
[1] ./example.js 276 bytes {1} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 7ed28e2af847957ed18b
Version: webpack 2.1.0-beta.25
Time: 292ms
Hash: d11df36bfcb331710ba2
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 544 bytes 0 [emitted]
output.js 1.48 kB 1 [emitted] main
output.js 1.51 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 457 bytes {1} [rendered]
chunk {0} 0.output.js 463 bytes {1} [rendered]
> [1] ./example.js 2:1-4:3
[0] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
cjs require context ../require.context/templates [1] ./example.js 3:11-64
[2] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
[2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a [0] ../require.context/templates ^\.\/.*$
context element ./a.js [0] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
[3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b [0] ../require.context/templates ^\.\/.*$
context element ./b.js [0] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
[4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c [0] ../require.context/templates ^\.\/.*$
context element ./c.js [0] ../require.context/templates ^\.\/.*$
chunk {1} output.js (main) 266 bytes [entry] [rendered]
chunk {1} output.js (main) 276 bytes [entry] [rendered]
> main [1] ./example.js
[1] ./example.js 266 bytes {1} [built]
[1] ./example.js 276 bytes {1} [built]
```

View File

@ -5,7 +5,7 @@ The bundle loader is used to create a wrapper module for `file.js` that loads th
# example.js
``` javascript
require("bundle!./file.js")(function(fileJsExports) {
require("bundle-loader!./file.js")(function(fileJsExports) {
console.log(fileJsExports);
});
```
@ -95,6 +95,9 @@ module.exports = "It works";
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -108,12 +111,14 @@ module.exports = "It works";
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -127,11 +132,13 @@ module.exports = "It works";
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -174,14 +181,14 @@ module.exports = function(cb) {
if(cbs) cbs.push(cb);
else cb(data);
}
__webpack_require__.e/* nsure */(0).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
__webpack_require__.e/* require.ensure */(0).then((function(require) {
data = __webpack_require__(/*! !./file.js */ 2);
var callbacks = cbs;
cbs = null;
for(var i = 0, l = callbacks.length; i < l; i++) {
callbacks[i](data);
}
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
/***/ },
/* 1 */
@ -192,10 +199,11 @@ __webpack_require__.e/* nsure */(0).catch(function(err) { __webpack_require__.oe
\********************/
/***/ function(module, exports, __webpack_require__) {
__webpack_require__(/*! bundle!./file.js */ 0)(function(fileJsExports) {
__webpack_require__(/*! bundle-loader!./file.js */ 0)(function(fileJsExports) {
console.log(fileJsExports);
});
/***/ }
/******/ ]);
```
@ -225,41 +233,39 @@ module.exports = "It works";
## Uncompressed
```
Hash: 4934f608e3c1f4ceb008
Version: webpack 2.1.0-beta.25
Time: 145ms
Hash: 3760272aaec4944ab110
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 228 bytes 0 [emitted]
output.js 6.24 kB 1 [emitted] main
output.js 6.45 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 28 bytes {1} [rendered]
> [0] (webpack)/~/bundle-loader!./file.js 7:0-14:2
[2] ./file.js 28 bytes {0} [built]
cjs require !!./file.js [0] (webpack)/~/bundle-loader!./file.js 8:8-30
chunk {1} output.js (main) 367 bytes [entry] [rendered]
chunk {1} output.js (main) 378 bytes [entry] [rendered]
> main [1] ./example.js
[0] (webpack)/~/bundle-loader!./file.js 281 bytes {1} [built]
cjs require bundle!./file.js [1] ./example.js 1:0-27
[1] ./example.js 86 bytes {1} [built]
cjs require bundle-loader!./file.js [1] ./example.js 1:0-34
[1] ./example.js 97 bytes {1} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 4934f608e3c1f4ceb008
Version: webpack 2.1.0-beta.25
Time: 304ms
Hash: 3760272aaec4944ab110
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 58 bytes 0 [emitted]
output.js 1.54 kB 1 [emitted] main
output.js 1.57 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 28 bytes {1} [rendered]
> [0] (webpack)/~/bundle-loader!./file.js 7:0-14:2
[2] ./file.js 28 bytes {0} [built]
cjs require !!./file.js [0] (webpack)/~/bundle-loader!./file.js 8:8-30
chunk {1} output.js (main) 367 bytes [entry] [rendered]
chunk {1} output.js (main) 378 bytes [entry] [rendered]
> main [1] ./example.js
[0] (webpack)/~/bundle-loader!./file.js 281 bytes {1} [built]
cjs require bundle!./file.js [1] ./example.js 1:0-27
[1] ./example.js 86 bytes {1} [built]
cjs require bundle-loader!./file.js [1] ./example.js 1:0-34
[1] ./example.js 97 bytes {1} [built]
```

View File

@ -103,6 +103,9 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -116,12 +119,14 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -135,11 +140,13 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -231,11 +238,12 @@ webpackAsyncContext.id = 1;
/***/ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_a__ = __webpack_require__(/*! a */ 0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_a___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_a__);
__webpack_require__.e/* System.import */(2).then(__webpack_require__.bind(null, /*! b */ 4)).then(function(b) {
__webpack_require__.e/* import() */(2).then(__webpack_require__.bind(null, /*! b */ 4)).then(function(b) {
console.log("b loaded", b);
})
@ -258,14 +266,13 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
## Uncompressed
```
Hash: 4b129c7737355e51d1bd
Version: webpack 2.1.0-beta.25
Time: 151ms
Hash: a7c705649f12226cfe93
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 216 bytes 0 [emitted]
1.output.js 216 bytes 1 [emitted]
2.output.js 208 bytes 2 [emitted]
output.js 6.94 kB 3 [emitted] main
output.js 7.22 kB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 13 bytes {3} [rendered]
[3] ./~/c/2.js 13 bytes {0} [optional] [built]
@ -278,28 +285,27 @@ chunk {1} 1.output.js 13 bytes {3} [rendered]
chunk {2} 2.output.js 11 bytes {3} [rendered]
> [5] ./example.js 3:0-18
[4] ./~/b.js 11 bytes {2} [built]
System.import b [5] ./example.js 3:0-18
chunk {3} output.js (main) 427 bytes [entry] [rendered]
import() b [5] ./example.js 3:0-18
chunk {3} output.js (main) 440 bytes [entry] [rendered]
> main [5] ./example.js
[0] ./~/a.js 11 bytes {3} [built]
[no exports used]
harmony import a [5] ./example.js 1:0-18
[1] ./~/c async ^\.\/.*$ 160 bytes {3} [built]
System.import context c [5] ./example.js 8:8-34
[5] ./example.js 256 bytes {3} [built]
[5] ./example.js 269 bytes {3} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 4b129c7737355e51d1bd
Version: webpack 2.1.0-beta.25
Time: 321ms
Hash: a7c705649f12226cfe93
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 38 bytes 0 [emitted]
1.output.js 38 bytes 1 [emitted]
2.output.js 38 bytes 2 [emitted]
output.js 1.83 kB 3 [emitted] main
output.js 1.92 kB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 13 bytes {3} [rendered]
[3] ./~/c/2.js 13 bytes {0} [optional] [built]
@ -312,13 +318,13 @@ chunk {1} 1.output.js 13 bytes {3} [rendered]
chunk {2} 2.output.js 11 bytes {3} [rendered]
> [5] ./example.js 3:0-18
[4] ./~/b.js 11 bytes {2} [built]
System.import b [5] ./example.js 3:0-18
chunk {3} output.js (main) 427 bytes [entry] [rendered]
import() b [5] ./example.js 3:0-18
chunk {3} output.js (main) 440 bytes [entry] [rendered]
> main [5] ./example.js
[0] ./~/a.js 11 bytes {3} [built]
[no exports used]
harmony import a [5] ./example.js 1:0-18
[1] ./~/c async ^\.\/.*$ 160 bytes {3} [built]
System.import context c [5] ./example.js 8:8-34
[5] ./example.js 256 bytes {3} [built]
[5] ./example.js 269 bytes {3} [built]
```

View File

@ -126,12 +126,14 @@ export default foo;
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -266,14 +268,13 @@ getTemplate("baz");
## Uncompressed
```
Hash: 7808f67813880d1df93e
Version: webpack 2.1.0-beta.27
Time: 188ms
Hash: a8f8b7fb22a89feb3e0f
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 402 bytes 0 [emitted]
1.output.js 402 bytes 1 [emitted]
2.output.js 408 bytes 2 [emitted]
output.js 6.81 kB 3 [emitted] main
output.js 6.83 kB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 41 bytes {3} [rendered]
[3] ./templates/foo.js 41 bytes {0} [optional] [built]
@ -300,14 +301,13 @@ chunk {3} output.js (main) 456 bytes [entry] [rendered]
## Minimized (uglify-js, no zip)
```
Hash: 7808f67813880d1df93e
Version: webpack 2.1.0-beta.27
Time: 293ms
Hash: a8f8b7fb22a89feb3e0f
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 125 bytes 0 [emitted]
1.output.js 125 bytes 1 [emitted]
2.output.js 124 bytes 2 [emitted]
output.js 6.49 kB 3 [emitted] main
output.js 6.51 kB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 41 bytes {3} [rendered]
[3] ./templates/foo.js 41 bytes {0} [optional] [built]
@ -331,5 +331,5 @@ chunk {3} output.js (main) 456 bytes [entry] [rendered]
[4] ./example.js 296 bytes {3} [built]
ERROR in output.js from UglifyJs
SyntaxError: Unexpected token: keyword (function) [output.js:192,6]
SyntaxError: Unexpected token: keyword (function) [output.js:194,6]
```

View File

@ -114,6 +114,9 @@ require.ensure(["c"], function(require) {
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -127,12 +130,14 @@ require.ensure(["c"], function(require) {
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -146,11 +151,13 @@ require.ensure(["c"], function(require) {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -213,10 +220,10 @@ require.ensure(["c"], function(require) {
var a = __webpack_require__(/*! a */ 1);
var b = __webpack_require__(/*! b */ 0);
__webpack_require__.e/* nsure */(0).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
__webpack_require__.e/* require.ensure */(0).then((function(require) {
__webpack_require__(/*! b */ 0).xyz();
var d = __webpack_require__(/*! d */ 3);
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
/***/ }
/******/ ]);
@ -264,12 +271,11 @@ webpackJsonp([0],[,,function(n,c){},function(n,c){}]);
## Uncompressed
```
Hash: 577f55cf480fb59add7d
Version: webpack 2.1.0-beta.25
Time: 150ms
Hash: 199e267fd7f9f732d06f
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 407 bytes 0 [emitted]
output.js 6.16 kB 1 [emitted] main
output.js 6.36 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 22 bytes {1} [rendered]
> [4] ./example.js 3:0-6:2
@ -277,25 +283,24 @@ chunk {0} 0.output.js 22 bytes {1} [rendered]
require.ensure item c [4] ./example.js 3:0-6:2
[3] ./~/d.js 11 bytes {0} [built]
cjs require d [4] ./example.js 5:12-24
chunk {1} output.js (main) 161 bytes [entry] [rendered]
chunk {1} output.js (main) 166 bytes [entry] [rendered]
> main [4] ./example.js
[0] ./~/b.js 11 bytes {1} [built]
cjs require b [4] ./example.js 2:8-20
cjs require b [4] ./example.js 4:4-16
[1] ./~/a.js 11 bytes {1} [built]
cjs require a [4] ./example.js 1:8-20
[4] ./example.js 139 bytes {1} [built]
[4] ./example.js 144 bytes {1} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 577f55cf480fb59add7d
Version: webpack 2.1.0-beta.25
Time: 292ms
Hash: 199e267fd7f9f732d06f
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 54 bytes 0 [emitted]
output.js 1.44 kB 1 [emitted] main
output.js 1.47 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 22 bytes {1} [rendered]
> [4] ./example.js 3:0-6:2
@ -303,12 +308,12 @@ chunk {0} 0.output.js 22 bytes {1} [rendered]
require.ensure item c [4] ./example.js 3:0-6:2
[3] ./~/d.js 11 bytes {0} [built]
cjs require d [4] ./example.js 5:12-24
chunk {1} output.js (main) 161 bytes [entry] [rendered]
chunk {1} output.js (main) 166 bytes [entry] [rendered]
> main [4] ./example.js
[0] ./~/b.js 11 bytes {1} [built]
cjs require b [4] ./example.js 2:8-20
cjs require b [4] ./example.js 4:4-16
[1] ./~/a.js 11 bytes {1} [built]
cjs require a [4] ./example.js 1:8-20
[4] ./example.js 139 bytes {1} [built]
[4] ./example.js 144 bytes {1} [built]
```

View File

@ -67,11 +67,13 @@ module.exports = 42
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -147,11 +149,10 @@ console.log(__webpack_require__(/*! ./cup1 */ 1));
## Uncompressed
```
Hash: 0718a799b127b2e3e2e1
Version: webpack 2.1.0-beta.25
Time: 245ms
Hash: 909077149c791bec4711
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 3.25 kB 0 [emitted] main
output.js 3.32 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 206 bytes [entry] [rendered]
> main [2] ./example.js
@ -166,11 +167,10 @@ chunk {0} output.js (main) 206 bytes [entry] [rendered]
## Minimized (uglify-js, no zip)
```
Hash: 0718a799b127b2e3e2e1
Version: webpack 2.1.0-beta.25
Time: 344ms
Hash: 909077149c791bec4711
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 663 bytes 0 [emitted] main
output.js 673 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 206 bytes [entry] [rendered]
> main [2] ./example.js
@ -180,4 +180,4 @@ chunk {0} output.js (main) 206 bytes [entry] [rendered]
[1] ./cup1.coffee 118 bytes {0} [built]
cjs require ./cup1 [2] ./example.js 1:12-29
[2] ./example.js 31 bytes {0} [built]
```
```

View File

@ -143,6 +143,9 @@ module.exports = {
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -156,12 +159,14 @@ module.exports = {
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -175,11 +180,13 @@ module.exports = {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -365,15 +372,14 @@ module.exports = "pageC";
## Uncompressed
```
Hash: 811ddf3b9dbcf66e3362
Version: webpack 2.1.0-beta.25
Time: 140ms
Hash: 765ab186904b368e4ffb
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
common.js 453 bytes 0 [emitted] common
pageA.js 586 bytes 1 [emitted] pageA
pageC.js 368 bytes 2 [emitted] pageC
pageB.js 368 bytes 3 [emitted] pageB
vendor.js 6.2 kB 4 [emitted] vendor
pageA.js 589 bytes 1 [emitted] pageA
pageC.js 371 bytes 2 [emitted] pageC
pageB.js 371 bytes 3 [emitted] pageB
vendor.js 6.41 kB 4 [emitted] vendor
Entrypoint vendor = vendor.js
Entrypoint pageA = vendor.js common.js pageA.js
Entrypoint pageB = vendor.js common.js pageB.js
@ -386,17 +392,17 @@ chunk {0} common.js (common) 56 bytes {4} [initial] [rendered]
[1] ./utility3.js 28 bytes {0} [built]
cjs require ./utility3 [6] ./pageB.js 2:15-36
cjs require ./utility3 [7] ./pageC.js 2:15-36
chunk {1} pageA.js (pageA) 130 bytes {0} [initial] [rendered]
chunk {1} pageA.js (pageA) 133 bytes {0} [initial] [rendered]
> pageA [5] ./pageA.js
[2] ./utility1.js 28 bytes {1} [built]
cjs require ./utility1 [5] ./pageA.js 1:15-36
[5] ./pageA.js 102 bytes {1} [built]
chunk {2} pageC.js (pageC) 102 bytes {0} [initial] [rendered]
[5] ./pageA.js 105 bytes {1} [built]
chunk {2} pageC.js (pageC) 105 bytes {0} [initial] [rendered]
> pageC [7] ./pageC.js
[7] ./pageC.js 102 bytes {2} [built]
chunk {3} pageB.js (pageB) 102 bytes {0} [initial] [rendered]
[7] ./pageC.js 105 bytes {2} [built]
chunk {3} pageB.js (pageB) 105 bytes {0} [initial] [rendered]
> pageB [6] ./pageB.js
[6] ./pageB.js 102 bytes {3} [built]
[6] ./pageB.js 105 bytes {3} [built]
chunk {4} vendor.js (vendor) 94 bytes [entry] [rendered]
> vendor [8] multi vendor
[3] ./vendor1.js 27 bytes {4} [built]
@ -409,15 +415,14 @@ chunk {4} vendor.js (vendor) 94 bytes [entry] [rendered]
## Minimized (uglify-js, no zip)
```
Hash: 811ddf3b9dbcf66e3362
Version: webpack 2.1.0-beta.25
Time: 295ms
Hash: 765ab186904b368e4ffb
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
common.js 92 bytes 0 [emitted] common
pageA.js 109 bytes 1 [emitted] pageA
pageC.js 71 bytes 2 [emitted] pageC
pageB.js 71 bytes 3 [emitted] pageB
vendor.js 1.45 kB 4 [emitted] vendor
vendor.js 1.5 kB 4 [emitted] vendor
Entrypoint vendor = vendor.js
Entrypoint pageA = vendor.js common.js pageA.js
Entrypoint pageB = vendor.js common.js pageB.js
@ -430,17 +435,17 @@ chunk {0} common.js (common) 56 bytes {4} [initial] [rendered]
[1] ./utility3.js 28 bytes {0} [built]
cjs require ./utility3 [6] ./pageB.js 2:15-36
cjs require ./utility3 [7] ./pageC.js 2:15-36
chunk {1} pageA.js (pageA) 130 bytes {0} [initial] [rendered]
chunk {1} pageA.js (pageA) 133 bytes {0} [initial] [rendered]
> pageA [5] ./pageA.js
[2] ./utility1.js 28 bytes {1} [built]
cjs require ./utility1 [5] ./pageA.js 1:15-36
[5] ./pageA.js 102 bytes {1} [built]
chunk {2} pageC.js (pageC) 102 bytes {0} [initial] [rendered]
[5] ./pageA.js 105 bytes {1} [built]
chunk {2} pageC.js (pageC) 105 bytes {0} [initial] [rendered]
> pageC [7] ./pageC.js
[7] ./pageC.js 102 bytes {2} [built]
chunk {3} pageB.js (pageB) 102 bytes {0} [initial] [rendered]
[7] ./pageC.js 105 bytes {2} [built]
chunk {3} pageB.js (pageB) 105 bytes {0} [initial] [rendered]
> pageB [6] ./pageB.js
[6] ./pageB.js 102 bytes {3} [built]
[6] ./pageB.js 105 bytes {3} [built]
chunk {4} vendor.js (vendor) 94 bytes [entry] [rendered]
> vendor [8] multi vendor
[3] ./vendor1.js 27 bytes {4} [built]

View File

@ -79,11 +79,13 @@ exports.add = function() {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -161,35 +163,33 @@ inc(a); // 2
## Uncompressed
```
Hash: 347d551e233e017e5be5
Version: webpack 2.1.0-beta.25
Time: 114ms
Hash: e1255027e5264a895afa
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 3.33 kB 0 [emitted] main
output.js 3.42 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 318 bytes [entry] [rendered]
chunk {0} output.js (main) 329 bytes [entry] [rendered]
> main [2] ./example.js
[0] ./increment.js 95 bytes {0} [built]
[0] ./increment.js 98 bytes {0} [built]
cjs require ./increment [2] ./example.js 1:10-32
[1] ./math.js 156 bytes {0} [built]
[1] ./math.js 162 bytes {0} [built]
cjs require ./math [0] ./increment.js 1:10-27
[2] ./example.js 67 bytes {0} [built]
[2] ./example.js 69 bytes {0} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 347d551e233e017e5be5
Version: webpack 2.1.0-beta.25
Time: 219ms
Hash: e1255027e5264a895afa
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 703 bytes 0 [emitted] main
output.js 713 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 318 bytes [entry] [rendered]
chunk {0} output.js (main) 329 bytes [entry] [rendered]
> main [2] ./example.js
[0] ./increment.js 95 bytes {0} [built]
[0] ./increment.js 98 bytes {0} [built]
cjs require ./increment [2] ./example.js 1:10-32
[1] ./math.js 156 bytes {0} [built]
[1] ./math.js 162 bytes {0} [built]
cjs require ./math [0] ./increment.js 1:10-27
[2] ./example.js 67 bytes {0} [built]
```
[2] ./example.js 69 bytes {0} [built]
```

View File

@ -82,11 +82,13 @@ module.exports = {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -150,13 +152,12 @@ body {
## Uncompressed
```
Hash: db83b66cc5606ff7b225
Version: webpack 2.1.0-beta.25
Time: 762ms
Hash: 1827bb0bcfac5d6b28d3
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
output.js 2.85 kB 0 [emitted] main
style.css 67 bytes 0 [emitted] main
output.js 2.93 kB 0 [emitted] main
style.css 69 bytes 0 [emitted] main
Entrypoint main = output.js style.css
chunk {0} output.js, style.css (main) 64 bytes [entry] [rendered]
> main [1] ./example.js
@ -172,19 +173,18 @@ Child extract-text-webpack-plugin:
[0] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./style.css 1:27-85
[1] ./image.png 82 bytes {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:56-78
[2] (webpack)/~/css-loader!./style.css 220 bytes {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:58-80
[2] (webpack)/~/css-loader!./style.css 224 bytes {0} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: db83b66cc5606ff7b225
Version: webpack 2.1.0-beta.25
Time: 1038ms
Hash: 1827bb0bcfac5d6b28d3
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
output.js 527 bytes 0 [emitted] main
output.js 537 bytes 0 [emitted] main
style.css 61 bytes 0 [emitted] main
Entrypoint main = output.js style.css
chunk {0} output.js, style.css (main) 64 bytes [entry] [rendered]
@ -203,4 +203,4 @@ Child extract-text-webpack-plugin:
[1] ./image.png 82 bytes {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:50-72
[2] (webpack)/~/css-loader!./style.css 211 bytes {0} [built]
```
```

View File

@ -75,11 +75,13 @@ console.log(require("module"));
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -107,7 +109,6 @@ console.log(require("module"));
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!*********************************************!*\
!*** external "alpha_282e8826843b2bb4eeb1" ***!
\*********************************************/
@ -118,7 +119,6 @@ module.exports = alpha_282e8826843b2bb4eeb1;
/***/ },
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!********************************************!*\
!*** external "beta_282e8826843b2bb4eeb1" ***!
\********************************************/
@ -220,29 +220,51 @@ console.log(__webpack_require__(/*! module */ 7));
## Uncompressed
```
Hash: d81e078ea638f600f312
Version: webpack 2.1.0-beta.25
Time: 120ms
Hash: 98591c1a714273e72054
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 5.99 kB 0 [emitted] main
output.js 6.03 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 541 bytes [entry] [rendered]
chunk {0} output.js (main) 549 bytes [entry] [rendered]
> main [8] ./example.js
[8] ./example.js 205 bytes {0} [built]
+ 8 hidden modules
[2] delegated ./a.js from dll-reference alpha_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
cjs require ../dll/a [8] ./example.js 2:12-31
[3] delegated ./alpha.js from dll-reference alpha_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
cjs require ../dll/alpha [8] ./example.js 1:12-35
[4] delegated ./b.js from dll-reference beta_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
cjs require beta/b [8] ./example.js 5:12-29
[5] delegated ./beta.js from dll-reference beta_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
cjs require beta/beta [8] ./example.js 4:12-32
[6] delegated ./c.jsx from dll-reference beta_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
cjs require beta/c [8] ./example.js 6:12-29
[7] delegated ../node_modules/module.js from dll-reference alpha_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
cjs require module [8] ./example.js 8:12-29
[8] ./example.js 213 bytes {0} [built]
+ 2 hidden modules
```
## Minimized (uglify-js, no zip)
```
Hash: d81e078ea638f600f312
Version: webpack 2.1.0-beta.25
Time: 221ms
Hash: 98591c1a714273e72054
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 927 bytes 0 [emitted] main
output.js 937 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 541 bytes [entry] [rendered]
chunk {0} output.js (main) 549 bytes [entry] [rendered]
> main [8] ./example.js
[8] ./example.js 205 bytes {0} [built]
+ 8 hidden modules
```
[2] delegated ./a.js from dll-reference alpha_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
cjs require ../dll/a [8] ./example.js 2:12-31
[3] delegated ./alpha.js from dll-reference alpha_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
cjs require ../dll/alpha [8] ./example.js 1:12-35
[4] delegated ./b.js from dll-reference beta_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
cjs require beta/b [8] ./example.js 5:12-29
[5] delegated ./beta.js from dll-reference beta_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
cjs require beta/beta [8] ./example.js 4:12-32
[6] delegated ./c.jsx from dll-reference beta_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
cjs require beta/c [8] ./example.js 6:12-29
[7] delegated ../node_modules/module.js from dll-reference alpha_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
cjs require module [8] ./example.js 8:12-29
[8] ./example.js 213 bytes {0} [built]
+ 2 hidden modules
```

View File

@ -29,6 +29,9 @@ module.exports = {
``` javascript
var alpha_282e8826843b2bb4eeb1 =
```
<details><summary>`/******/ (function(modules) { /* webpackBootstrap */ })`</summary>
``` js
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -69,11 +72,13 @@ var alpha_282e8826843b2bb4eeb1 =
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -95,6 +100,9 @@ var alpha_282e8826843b2bb4eeb1 =
/******/ return __webpack_require__(__webpack_require__.s = 6);
/******/ })
/************************************************************************/
```
</details>
``` js
/******/ ([
/* 0 */
/* unknown exports provided */
@ -174,11 +182,10 @@ module.exports = __webpack_require__;
```
Hash: 282e8826843b2bb4eeb1
Version: webpack 2.1.0-beta.25
Time: 114ms
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
MyDll.beta.js 3.26 kB 0 [emitted] beta
MyDll.alpha.js 3.29 kB 1 [emitted] alpha
MyDll.beta.js 3.34 kB 0 [emitted] beta
MyDll.alpha.js 3.36 kB 1 [emitted] alpha
Entrypoint alpha = MyDll.alpha.js
Entrypoint beta = MyDll.beta.js
chunk {0} MyDll.beta.js (beta) 80 bytes [entry] [rendered]
@ -205,11 +212,10 @@ chunk {1} MyDll.alpha.js (alpha) 84 bytes [entry] [rendered]
```
Hash: 282e8826843b2bb4eeb1
Version: webpack 2.1.0-beta.25
Time: 241ms
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
MyDll.beta.js 643 bytes 0 [emitted] beta
MyDll.alpha.js 647 bytes 1 [emitted] alpha
MyDll.beta.js 653 bytes 0 [emitted] beta
MyDll.alpha.js 657 bytes 1 [emitted] alpha
Entrypoint alpha = MyDll.alpha.js
Entrypoint beta = MyDll.beta.js
chunk {0} MyDll.beta.js (beta) 80 bytes [entry] [rendered]
@ -230,4 +236,4 @@ chunk {1} MyDll.alpha.js (alpha) 84 bytes [entry] [rendered]
[5] ../~/module.js 26 bytes {1} [built]
single entry module [6] dll alpha
[6] dll alpha 12 bytes {1} [built]
```
```

View File

@ -44,6 +44,9 @@ module.exports = [
``` javascript
var vendor_32199746b38d6e93b44b =
```
<details><summary>`/******/ (function(modules) { /* webpackBootstrap */ })`</summary>
``` js
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -84,11 +87,13 @@ var vendor_32199746b38d6e93b44b =
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -110,6 +115,9 @@ var vendor_32199746b38d6e93b44b =
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ })
/************************************************************************/
```
</details>
``` js
/******/ ([
/* 0 */
/* unknown exports provided */
@ -149,7 +157,6 @@ module.exports = __webpack_require__;
# js/pageA.js
<details><summary>`/******/ (function(modules) { /* webpackBootstrap */ })`</summary>
``` javascript
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
@ -191,11 +198,13 @@ module.exports = __webpack_require__;
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -217,13 +226,9 @@ module.exports = __webpack_require__;
/******/ return __webpack_require__(__webpack_require__.s = 3);
/******/ })
/************************************************************************/
```
</details>
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**********************************************!*\
!*** external "vendor_32199746b38d6e93b44b" ***!
\**********************************************/
@ -264,14 +269,13 @@ module.exports = "pageA";
## Uncompressed
```
Hash: 32199746b38d6e93b44b914336663f48ecd8f351
Version: webpack 2.1.0-beta.25
Hash: 32199746b38d6e93b44b5135e2b2d565610f1fb4
Version: webpack 2.2.0-rc.2
Child vendor:
Hash: 32199746b38d6e93b44b
Version: webpack 2.1.0-beta.25
Time: 102ms
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
vendor.js 3.07 kB 0 [emitted] main
vendor.js 3.14 kB 0 [emitted] main
Entrypoint main = vendor.js
chunk {0} vendor.js (main) 65 bytes [entry] [rendered]
> main [2] dll main
@ -281,24 +285,27 @@ Child vendor:
single entry ./vendor2 [2] dll main
[2] dll main 12 bytes {0} [built]
Child app:
Hash: 914336663f48ecd8f351
Version: webpack 2.1.0-beta.25
Time: 40ms
Hash: 5135e2b2d565610f1fb4
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
pageB.js 3.41 kB 0 [emitted] pageB
pageA.js 3.4 kB 1 [emitted] pageA
pageC.js 2.59 kB 2 [emitted] pageC
pageB.js 3.46 kB 0 [emitted] pageB
pageA.js 3.45 kB 1 [emitted] pageA
pageC.js 2.66 kB 2 [emitted] pageC
Entrypoint pageA = pageA.js
Entrypoint pageB = pageB.js
Entrypoint pageC = pageC.js
chunk {0} pageB.js (pageB) 144 bytes [entry] [rendered]
chunk {0} pageB.js (pageB) 145 bytes [entry] [rendered]
> pageB [4] ./pageB.js
[4] ./pageB.js 60 bytes {0} [built]
+ 2 hidden modules
chunk {1} pageA.js (pageA) 143 bytes [entry] [rendered]
[2] delegated ./vendor2.js from dll-reference vendor_32199746b38d6e93b44b 42 bytes {0} [not cacheable] [built]
cjs require ./vendor2 [4] ./pageB.js 1:12-32
[4] ./pageB.js 61 bytes {0} [built]
+ 1 hidden modules
chunk {1} pageA.js (pageA) 144 bytes [entry] [rendered]
> pageA [3] ./pageA.js
[3] ./pageA.js 59 bytes {1} [built]
+ 2 hidden modules
[1] delegated ./vendor.js from dll-reference vendor_32199746b38d6e93b44b 42 bytes {1} [not cacheable] [built]
cjs require ./vendor [3] ./pageA.js 1:12-31
[3] ./pageA.js 60 bytes {1} [built]
+ 1 hidden modules
chunk {2} pageC.js (pageC) 25 bytes [entry] [rendered]
> pageC [5] ./pageC.js
[5] ./pageC.js 25 bytes {2} [built]
@ -307,14 +314,13 @@ Child app:
## Minimized (uglify-js, no zip)
```
Hash: 32199746b38d6e93b44b914336663f48ecd8f351
Version: webpack 2.1.0-beta.25
Hash: 32199746b38d6e93b44b5135e2b2d565610f1fb4
Version: webpack 2.2.0-rc.2
Child vendor:
Hash: 32199746b38d6e93b44b
Version: webpack 2.1.0-beta.25
Time: 190ms
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
vendor.js 618 bytes 0 [emitted] main
vendor.js 628 bytes 0 [emitted] main
Entrypoint main = vendor.js
chunk {0} vendor.js (main) 65 bytes [entry] [rendered]
> main [2] dll main
@ -324,24 +330,27 @@ Child vendor:
single entry ./vendor2 [2] dll main
[2] dll main 12 bytes {0} [built]
Child app:
Hash: 914336663f48ecd8f351
Version: webpack 2.1.0-beta.25
Time: 110ms
Hash: 5135e2b2d565610f1fb4
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
pageB.js 632 bytes 0 [emitted] pageB
pageA.js 631 bytes 1 [emitted] pageA
pageC.js 524 bytes 2 [emitted] pageC
pageB.js 642 bytes 0 [emitted] pageB
pageA.js 641 bytes 1 [emitted] pageA
pageC.js 534 bytes 2 [emitted] pageC
Entrypoint pageA = pageA.js
Entrypoint pageB = pageB.js
Entrypoint pageC = pageC.js
chunk {0} pageB.js (pageB) 144 bytes [entry] [rendered]
chunk {0} pageB.js (pageB) 145 bytes [entry] [rendered]
> pageB [4] ./pageB.js
[4] ./pageB.js 60 bytes {0} [built]
+ 2 hidden modules
chunk {1} pageA.js (pageA) 143 bytes [entry] [rendered]
[2] delegated ./vendor2.js from dll-reference vendor_32199746b38d6e93b44b 42 bytes {0} [not cacheable] [built]
cjs require ./vendor2 [4] ./pageB.js 1:12-32
[4] ./pageB.js 61 bytes {0} [built]
+ 1 hidden modules
chunk {1} pageA.js (pageA) 144 bytes [entry] [rendered]
> pageA [3] ./pageA.js
[3] ./pageA.js 59 bytes {1} [built]
+ 2 hidden modules
[1] delegated ./vendor.js from dll-reference vendor_32199746b38d6e93b44b 42 bytes {1} [not cacheable] [built]
cjs require ./vendor [3] ./pageA.js 1:12-31
[3] ./pageA.js 60 bytes {1} [built]
+ 1 hidden modules
chunk {2} pageC.js (pageC) 25 bytes [entry] [rendered]
> pageC [5] ./pageC.js
[5] ./pageC.js 25 bytes {2} [built]

View File

@ -58,6 +58,9 @@ module.exports = {
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__) {
```
<details><summary>`return /******/ (function(modules) { /* webpackBootstrap */ })`</summary>
``` js
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -98,11 +101,13 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -124,6 +129,9 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ })
/************************************************************************/
```
</details>
``` js
/******/ ([
/* 0 */
/* unknown exports provided */
@ -161,9 +169,8 @@ var subtract = __webpack_require__(/*! subtract */ 1);
exports.exampleValue = subtract(add(42, 2), 2);
/***/ }
/******/ ])
/******/ ]);
});
;
```
# Info
@ -171,29 +178,27 @@ exports.exampleValue = subtract(add(42, 2), 2);
## Uncompressed
```
Hash: 9f84bc757816705143ff
Version: webpack 2.1.0-beta.25
Time: 102ms
Hash: db7da8a5fdfceab24e67
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 4.08 kB 0 [emitted] main
output.js 4.16 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 194 bytes [entry] [rendered]
chunk {0} output.js (main) 197 bytes [entry] [rendered]
> main [2] ./example.js
[2] ./example.js 110 bytes {0} [built]
[2] ./example.js 113 bytes {0} [built]
+ 2 hidden modules
```
## Minimized (uglify-js, no zip)
```
Hash: 9f84bc757816705143ff
Version: webpack 2.1.0-beta.25
Time: 215ms
Asset Size Chunks Chunk Names
output.js 994 bytes 0 [emitted] main
Hash: db7da8a5fdfceab24e67
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 1 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 194 bytes [entry] [rendered]
chunk {0} output.js (main) 197 bytes [entry] [rendered]
> main [2] ./example.js
[2] ./example.js 110 bytes {0} [built]
[2] ./example.js 113 bytes {0} [built]
+ 2 hidden modules
```
```

View File

@ -122,6 +122,9 @@ module.exports = {
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -135,12 +138,14 @@ module.exports = {
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -154,11 +159,13 @@ module.exports = {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -196,22 +203,22 @@ module.exports = {
\********************/
/***/ function(module, exports, __webpack_require__) {
Promise.all/* require */([__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(4)]).catch(function(err) { __webpack_require__.oe(err); }).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./a */ 0), __webpack_require__(/*! ./b */ 1), __webpack_require__(/*! ./c */ 2)]; (function(a, b, c) {}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
Promise.all/* require */([__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(4)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./a */ 0), __webpack_require__(/*! ./b */ 1), __webpack_require__(/*! ./c */ 2)]; (function(a, b, c) {}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
Promise.all/* nsure */([__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(3)]).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
Promise.all/* require.ensure */([__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(3)]).then((function(require) {
__webpack_require__(/*! ./b */ 1);
__webpack_require__(/*! ./d */ 3);
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
Promise.all/* nsure */([__webpack_require__.e(1), __webpack_require__.e(2)]).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
Promise.all/* require.ensure */([__webpack_require__.e(1), __webpack_require__.e(2)]).then((function(require) {
__webpack_require__(/*! ./a */ 0);
Promise.all/* nsure */([__webpack_require__.e(0), __webpack_require__.e(6)]).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
Promise.all/* require.ensure */([__webpack_require__.e(0), __webpack_require__.e(6)]).then((function(require) {
__webpack_require__(/*! ./f */ 5);
}).bind(null, __webpack_require__));
Promise.all/* nsure */([__webpack_require__.e(0), __webpack_require__.e(5)]).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
Promise.all/* require.ensure */([__webpack_require__.e(0), __webpack_require__.e(5)]).then((function(require) {
__webpack_require__(/*! ./g */ 6);
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
/***/ }
@ -224,9 +231,8 @@ Promise.all/* nsure */([__webpack_require__.e(1), __webpack_require__.e(2)]).cat
## Uncompressed
```
Hash: 09bb2a8779c90d5320d0
Version: webpack 2.1.0-beta.25
Time: 150ms
Hash: 632a15ef6fe4372394ce
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 218 bytes 0 [emitted] async2
1.output.js 209 bytes 1 [emitted] async1
@ -235,9 +241,9 @@ Time: 150ms
4.output.js 212 bytes 4 [emitted]
5.output.js 212 bytes 5 [emitted]
6.output.js 212 bytes 6 [emitted]
output.js 6.83 kB 7 [emitted] main
output.js 6.98 kB 7 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (async2) 21 bytes {7} {2} [rendered]
chunk {0} 0.output.js (async2) 21 bytes {2} {7} [rendered]
> async commons duplicate [7] ./example.js 1:0-52
> async commons duplicate [7] ./example.js 3:0-6:2
> async commons duplicate [7] ./example.js 10:1-12:3
@ -276,17 +282,16 @@ chunk {6} 6.output.js 21 bytes {2} [rendered]
> [7] ./example.js 10:1-12:3
[5] ./f.js 21 bytes {6} [built]
cjs require ./f [7] ./example.js 11:2-16
chunk {7} output.js (main) 346 bytes [entry] [rendered]
chunk {7} output.js (main) 362 bytes [entry] [rendered]
> main [7] ./example.js
[7] ./example.js 346 bytes {7} [built]
[7] ./example.js 362 bytes {7} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 09bb2a8779c90d5320d0
Version: webpack 2.1.0-beta.25
Time: 324ms
Hash: 632a15ef6fe4372394ce
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 50 bytes 0 [emitted] async2
1.output.js 49 bytes 1 [emitted] async1
@ -295,9 +300,9 @@ Time: 324ms
4.output.js 51 bytes 4 [emitted]
5.output.js 51 bytes 5 [emitted]
6.output.js 51 bytes 6 [emitted]
output.js 1.84 kB 7 [emitted] main
output.js 1.81 kB 7 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (async2) 21 bytes {7} {2} [rendered]
chunk {0} 0.output.js (async2) 21 bytes {2} {7} [rendered]
> async commons duplicate [7] ./example.js 1:0-52
> async commons duplicate [7] ./example.js 3:0-6:2
> async commons duplicate [7] ./example.js 10:1-12:3
@ -336,7 +341,7 @@ chunk {6} 6.output.js 21 bytes {2} [rendered]
> [7] ./example.js 10:1-12:3
[5] ./f.js 21 bytes {6} [built]
cjs require ./f [7] ./example.js 11:2-16
chunk {7} output.js (main) 346 bytes [entry] [rendered]
chunk {7} output.js (main) 362 bytes [entry] [rendered]
> main [7] ./example.js
[7] ./example.js 346 bytes {7} [built]
[7] ./example.js 362 bytes {7} [built]
```

View File

@ -142,6 +142,9 @@ module.exports = {
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -155,12 +158,14 @@ module.exports = {
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -174,11 +179,13 @@ module.exports = {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -217,13 +224,13 @@ module.exports = {
/***/ function(module, exports, __webpack_require__) {
// a chunks with a, b, c
Promise.all/* require */([__webpack_require__.e(0), __webpack_require__.e(2)]).catch(function(err) { __webpack_require__.oe(err); }).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./a */ 0), __webpack_require__(/*! ./b */ 1), __webpack_require__(/*! ./c */ 2)]; (function(a, b, c) {}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
Promise.all/* require */([__webpack_require__.e(0), __webpack_require__.e(2)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./a */ 0), __webpack_require__(/*! ./b */ 1), __webpack_require__(/*! ./c */ 2)]; (function(a, b, c) {}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
// a chunk with a, b, d
Promise.all/* nsure */([__webpack_require__.e(0), __webpack_require__.e(1)]).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
Promise.all/* require.ensure */([__webpack_require__.e(0), __webpack_require__.e(1)]).then((function(require) {
__webpack_require__(/*! ./b */ 1);
__webpack_require__(/*! ./d */ 3);
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
/***/ }
@ -305,14 +312,13 @@ module.exports = "c";
## Uncompressed
```
Hash: 2697c2e890ef9a735355
Version: webpack 2.1.0-beta.25
Time: 125ms
Hash: 303428dc1404ff150977
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 397 bytes 0 [emitted]
1.output.js 212 bytes 1 [emitted]
2.output.js 212 bytes 2 [emitted]
output.js 6.13 kB 3 [emitted] main
output.js 6.32 kB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 42 bytes {3} [rendered]
> async commons [4] ./example.js 2:0-52
@ -331,22 +337,21 @@ chunk {2} 2.output.js 21 bytes {3} [rendered]
> [4] ./example.js 2:0-52
[2] ./c.js 21 bytes {2} [built]
amd require ./c [4] ./example.js 2:0-52
chunk {3} output.js (main) 186 bytes [entry] [rendered]
chunk {3} output.js (main) 194 bytes [entry] [rendered]
> main [4] ./example.js
[4] ./example.js 186 bytes {3} [built]
[4] ./example.js 194 bytes {3} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 2697c2e890ef9a735355
Version: webpack 2.1.0-beta.25
Time: 279ms
Hash: 303428dc1404ff150977
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 78 bytes 0 [emitted]
1.output.js 51 bytes 1 [emitted]
2.output.js 51 bytes 2 [emitted]
output.js 1.54 kB 3 [emitted] main
output.js 1.56 kB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 42 bytes {3} [rendered]
> async commons [4] ./example.js 2:0-52
@ -365,7 +370,7 @@ chunk {2} 2.output.js 21 bytes {3} [rendered]
> [4] ./example.js 2:0-52
[2] ./c.js 21 bytes {2} [built]
amd require ./c [4] ./example.js 2:0-52
chunk {3} output.js (main) 186 bytes [entry] [rendered]
chunk {3} output.js (main) 194 bytes [entry] [rendered]
> main [4] ./example.js
[4] ./example.js 186 bytes {3} [built]
[4] ./example.js 194 bytes {3} [built]
```

View File

@ -59,7 +59,7 @@ var namedExport = module.named;
# harmony.js
``` javascript
// just som exports
// just some exports
export default "default";
export var named = "named";
```
@ -108,11 +108,13 @@ export var named = "named";
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -204,8 +206,9 @@ var namedExport = module.named;
/***/ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(exports, "named", function() { return named; });
// just som exports
// just some exports
/* harmony default export */ exports["default"] = "default";
var named = "named";
@ -220,6 +223,7 @@ var named = "named";
/***/ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__fs__ = __webpack_require__(/*! ./fs */ 0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__fs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__fs__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__reexport_commonjs__ = __webpack_require__(/*! ./reexport-commonjs */ 2);
@ -252,57 +256,55 @@ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__reexport_commonjs__["readFile
## Uncompressed
```
Hash: 9fcf8b5e9ebb2df45bb7
Version: webpack 2.1.0-beta.25
Time: 118ms
Hash: c7c57e77df6373b61b12
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 5.84 kB 0 [emitted] main
output.js 6.08 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 1.16 kB [entry] [rendered]
chunk {0} output.js (main) 1.2 kB [entry] [rendered]
> main [4] ./example.js
[0] ./fs.js 258 bytes {0} [built]
[0] ./fs.js 265 bytes {0} [built]
[only some exports used: default, readFile]
harmony import ./fs [2] ./reexport-commonjs.js 2:0-21
harmony import ./fs [4] ./example.js 4:0-22
harmony import ./fs [4] ./example.js 5:0-32
harmony import ./fs [4] ./example.js 6:0-28
[1] ./example2.js 152 bytes {0} [built]
[1] ./example2.js 159 bytes {0} [built]
[no exports used]
harmony import ./example2 [4] ./example.js 16:0-20
[2] ./reexport-commonjs.js 301 bytes {0} [built]
[2] ./reexport-commonjs.js 308 bytes {0} [built]
[only some exports used: readFile]
harmony import ./reexport-commonjs [4] ./example.js 12:0-60
[3] ./harmony.js 74 bytes {0} [built]
[3] ./harmony.js 78 bytes {0} [built]
[exports: default, named]
cjs require ./harmony [1] ./example2.js 4:13-33
[4] ./example.js 373 bytes {0} [built]
[4] ./example.js 389 bytes {0} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 9fcf8b5e9ebb2df45bb7
Version: webpack 2.1.0-beta.25
Time: 241ms
Asset Size Chunks Chunk Names
output.js 948 bytes 0 [emitted] main
Hash: c7c57e77df6373b61b12
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 1.06 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 1.16 kB [entry] [rendered]
chunk {0} output.js (main) 1.2 kB [entry] [rendered]
> main [4] ./example.js
[0] ./fs.js 258 bytes {0} [built]
[0] ./fs.js 265 bytes {0} [built]
[only some exports used: default, readFile]
harmony import ./fs [2] ./reexport-commonjs.js 2:0-21
harmony import ./fs [4] ./example.js 4:0-22
harmony import ./fs [4] ./example.js 5:0-32
harmony import ./fs [4] ./example.js 6:0-28
[1] ./example2.js 152 bytes {0} [built]
[1] ./example2.js 159 bytes {0} [built]
[no exports used]
harmony import ./example2 [4] ./example.js 16:0-20
[2] ./reexport-commonjs.js 301 bytes {0} [built]
[2] ./reexport-commonjs.js 308 bytes {0} [built]
[only some exports used: readFile]
harmony import ./reexport-commonjs [4] ./example.js 12:0-60
[3] ./harmony.js 74 bytes {0} [built]
[3] ./harmony.js 78 bytes {0} [built]
[exports: default, named]
cjs require ./harmony [1] ./example2.js 4:13-33
[4] ./example.js 373 bytes {0} [built]
```
[4] ./example.js 389 bytes {0} [built]
```

View File

@ -91,11 +91,13 @@ export { add as reexportedAdd, multiply as reexportedMultiply } from "./math";
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -165,10 +167,10 @@ function list() {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__abc__ = __webpack_require__(/*! ./abc */ 2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__math__ = __webpack_require__(/*! ./math */ 0);
/* unused harmony reexport a */
/* unused harmony reexport b */
/* unused harmony reexport c */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__math__ = __webpack_require__(/*! ./math */ 0);
/* unused harmony reexport reexportedAdd */
/* harmony reexport (binding) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_1__math__["b"]; });
@ -201,6 +203,7 @@ function c() { console.log("c"); }
/***/ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__math__ = __webpack_require__(/*! ./math */ 0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__library__ = __webpack_require__(/*! ./library */ 1);
@ -217,7 +220,7 @@ __WEBPACK_IMPORTED_MODULE_1__library__["a" /* reexportedMultiply */](1, 2);
# js/output.js
``` javascript
!function(t){function n(e){if(r[e])return r[e].exports;var u=r[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,n),u.l=!0,u.exports}var r={};return n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,n,r){Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="js/",n(n.s=3)}([function(t,n,r){"use strict";function e(){for(var t=0,n=0,r=arguments,e=r.length;n<e;)t+=r[n++];return t}function u(){for(var t=1,n=0,r=arguments,e=r.length;n<e;)t*=r[n++];return t}n.a=e,n.b=u},function(t,n,r){"use strict";var e=(r(2),r(0));r.d(n,"a",function(){return e.b})},function(t,n,r){"use strict"},function(t,n,r){"use strict";var e=r(0),u=r(1);r.i(e.a)(1,2),u.a(1,2)}]);
!function(t){function n(e){if(r[e])return r[e].exports;var u=r[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,n),u.l=!0,u.exports}var r={};return n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="js/",n(n.s=3)}([function(t,n,r){"use strict";function e(){for(var t=0,n=0,r=arguments,e=r.length;n<e;)t+=r[n++];return t}function u(){for(var t=1,n=0,r=arguments,e=r.length;n<e;)t*=r[n++];return t}n.a=e,n.b=u},function(t,n,r){"use strict";var e=(r(2),r(0));r.d(n,"a",function(){return e.b})},function(t,n,r){"use strict"},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=r(0),u=r(1);r.i(e.a)(1,2),u.a(1,2)}]);
```
# Info
@ -225,53 +228,51 @@ __WEBPACK_IMPORTED_MODULE_1__library__["a" /* reexportedMultiply */](1, 2);
## Uncompressed
```
Hash: a5187553da983450faff
Version: webpack 2.1.0-beta.25
Time: 130ms
Asset Size Chunks Chunk Names
output.js 4.8 kB 0 [emitted] main
Hash: 204da8833c889e1354d4
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 4.97 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 698 bytes [entry] [rendered]
chunk {0} output.js (main) 726 bytes [entry] [rendered]
> main [3] ./example.js
[0] ./math.js 347 bytes {0} [built]
[0] ./math.js 366 bytes {0} [built]
[exports: add, multiply, list]
[only some exports used: add, multiply]
harmony import ./math [1] ./library.js 2:0-78
harmony import ./math [3] ./example.js 1:0-29
[1] ./library.js 111 bytes {0} [built]
[1] ./library.js 112 bytes {0} [built]
[exports: a, b, c, reexportedAdd, reexportedMultiply]
[only some exports used: reexportedMultiply]
harmony import ./library [3] ./example.js 2:0-37
[2] ./abc.js 126 bytes {0} [built]
[2] ./abc.js 129 bytes {0} [built]
[exports: a, b, c]
[no exports used]
harmony import ./abc [1] ./library.js 1:0-32
[3] ./example.js 114 bytes {0} [built]
[3] ./example.js 119 bytes {0} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: a5187553da983450faff
Version: webpack 2.1.0-beta.25
Time: 241ms
Hash: 204da8833c889e1354d4
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 866 bytes 0 [emitted] main
output.js 925 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 698 bytes [entry] [rendered]
chunk {0} output.js (main) 726 bytes [entry] [rendered]
> main [3] ./example.js
[0] ./math.js 347 bytes {0} [built]
[0] ./math.js 366 bytes {0} [built]
[exports: add, multiply, list]
[only some exports used: add, multiply]
harmony import ./math [1] ./library.js 2:0-78
harmony import ./math [3] ./example.js 1:0-29
[1] ./library.js 111 bytes {0} [built]
[1] ./library.js 112 bytes {0} [built]
[exports: a, b, c, reexportedAdd, reexportedMultiply]
[only some exports used: reexportedMultiply]
harmony import ./library [3] ./example.js 2:0-37
[2] ./abc.js 126 bytes {0} [built]
[2] ./abc.js 129 bytes {0} [built]
[exports: a, b, c]
[no exports used]
harmony import ./abc [1] ./library.js 1:0-32
[3] ./example.js 114 bytes {0} [built]
[3] ./example.js 119 bytes {0} [built]
```

View File

@ -99,6 +99,9 @@ export function increment(val) {
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -112,12 +115,14 @@ export function increment(val) {
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -131,11 +136,13 @@ export function increment(val) {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -212,13 +219,14 @@ function add() {
/***/ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__increment__ = __webpack_require__(/*! ./increment */ 0);
var a = 1;
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__increment__["a" /* increment */])(a); // 2
// async loading
__webpack_require__.e/* System.import */(0).then(__webpack_require__.bind(null, /*! ./async-loaded */ 1)).then(function(asyncLoaded) {
__webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, /*! ./async-loaded */ 1)).then(function(asyncLoaded) {
console.log(asyncLoaded);
});
@ -232,55 +240,53 @@ __webpack_require__.e/* System.import */(0).then(__webpack_require__.bind(null,
## Uncompressed
```
Hash: e89d3b015e63670afc30
Version: webpack 2.1.0-beta.25
Time: 178ms
Hash: 46d516725c4245d36ee5
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 386 bytes 0 [emitted]
output.js 6.78 kB 1 [emitted] main
0.output.js 450 bytes 0 [emitted]
output.js 7.08 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 24 bytes {1} [rendered]
chunk {0} 0.output.js 25 bytes {1} [rendered]
> [3] ./example.js 6:0-31
[1] ./async-loaded.js 24 bytes {0} [built]
[1] ./async-loaded.js 25 bytes {0} [built]
[exports: answer]
System.import ./async-loaded [3] ./example.js 6:0-31
chunk {1} output.js (main) 407 bytes [entry] [rendered]
import() ./async-loaded [3] ./example.js 6:0-31
chunk {1} output.js (main) 426 bytes [entry] [rendered]
> main [3] ./example.js
[0] ./increment.js 90 bytes {1} [built]
[0] ./increment.js 94 bytes {1} [built]
[exports: increment]
[only some exports used: increment]
harmony import ./increment [3] ./example.js 1:0-47
[2] ./math.js 135 bytes {1} [built]
[2] ./math.js 142 bytes {1} [built]
[exports: add]
[only some exports used: add]
harmony import ./math [0] ./increment.js 1:0-29
[3] ./example.js 182 bytes {1} [built]
[3] ./example.js 190 bytes {1} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: e89d3b015e63670afc30
Version: webpack 2.1.0-beta.25
Time: 264ms
Asset Size Chunks Chunk Names
0.output.js 97 bytes 0 [emitted]
output.js 1.61 kB 1 [emitted] main
Hash: 46d516725c4245d36ee5
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 146 bytes 0 [emitted]
output.js 1.71 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 24 bytes {1} [rendered]
chunk {0} 0.output.js 25 bytes {1} [rendered]
> [3] ./example.js 6:0-31
[1] ./async-loaded.js 24 bytes {0} [built]
[1] ./async-loaded.js 25 bytes {0} [built]
[exports: answer]
System.import ./async-loaded [3] ./example.js 6:0-31
chunk {1} output.js (main) 407 bytes [entry] [rendered]
import() ./async-loaded [3] ./example.js 6:0-31
chunk {1} output.js (main) 426 bytes [entry] [rendered]
> main [3] ./example.js
[0] ./increment.js 90 bytes {1} [built]
[0] ./increment.js 94 bytes {1} [built]
[exports: increment]
[only some exports used: increment]
harmony import ./increment [3] ./example.js 1:0-47
[2] ./math.js 135 bytes {1} [built]
[2] ./math.js 142 bytes {1} [built]
[exports: add]
[only some exports used: add]
harmony import ./math [0] ./increment.js 1:0-29
[3] ./example.js 182 bytes {1} [built]
```
[3] ./example.js 190 bytes {1} [built]
```

File diff suppressed because it is too large Load Diff

View File

@ -70,7 +70,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
// -> Pages are only loaded on demand
// This line may throw a exception on runtime if the page wasn't found.
var pageBundle = require("bundle!./" + name + "Page");
var pageBundle = require("bundle-loader!./" + name + "Page");
// Wait until the chunk is loaded
pageBundle(function(page) {
@ -174,6 +174,9 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".chunk.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -187,12 +190,14 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -206,11 +211,13 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -298,14 +305,14 @@ module.exports = function(cb) {
if(cbs) cbs.push(cb);
else cb(data);
}
__webpack_require__.e/* nsure */(1).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
__webpack_require__.e/* require.ensure */(1).then((function(require) {
data = __webpack_require__(/*! !./aPage.js */ 1);
var callbacks = cbs;
cbs = null;
for(var i = 0, l = callbacks.length; i < l; i++) {
callbacks[i](data);
}
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
/***/ },
/* 5 */
@ -322,14 +329,14 @@ module.exports = function(cb) {
if(cbs) cbs.push(cb);
else cb(data);
}
__webpack_require__.e/* nsure */(0).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
__webpack_require__.e/* require.ensure */(0).then((function(require) {
data = __webpack_require__(/*! !./bPage.js */ 2);
var callbacks = cbs;
cbs = null;
for(var i = 0, l = callbacks.length; i < l; i++) {
callbacks[i](data);
}
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
/***/ },
/* 6 */,
@ -359,7 +366,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
// -> Pages are only loaded on demand
// This line may throw a exception on runtime if the page wasn't found.
var pageBundle = __webpack_require__(/*! bundle!. */ 3)("./" + name + "Page");
var pageBundle = __webpack_require__(/*! bundle-loader!. */ 3)("./" + name + "Page");
// Wait until the chunk is loaded
pageBundle(function(page) {
@ -367,6 +374,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
});
}
/***/ }
/******/ ]);
```
@ -433,103 +441,101 @@ module.exports = function() {
## Uncompressed
```
Hash: 14f111c5aa1876a12091
Version: webpack 2.1.0-beta.25
Time: 210ms
Hash: b3b9aed8700890debc6a
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.chunk.js 262 bytes 0 [emitted]
1.chunk.js 268 bytes 1 [emitted]
pageB.bundle.js 598 bytes 2, 0 [emitted] pageB
pageA.bundle.js 598 bytes 3, 1 [emitted] pageA
commons.js 9.01 kB 4 [emitted] commons
0.chunk.js 264 bytes 0 [emitted]
1.chunk.js 270 bytes 1 [emitted]
pageB.bundle.js 602 bytes 2, 0 [emitted] pageB
pageA.bundle.js 602 bytes 3, 1 [emitted] pageA
commons.js 9.23 kB 4 [emitted] commons
Entrypoint pageA = commons.js pageA.bundle.js
Entrypoint pageB = commons.js pageB.bundle.js
Entrypoint commons = commons.js
chunk {0} 0.chunk.js 59 bytes {4} [rendered]
chunk {0} 0.chunk.js 61 bytes {4} [rendered]
> [5] (webpack)/~/bundle-loader!./bPage.js 7:0-14:2
[2] ./bPage.js 59 bytes {0} {2} [built]
[2] ./bPage.js 61 bytes {0} {2} [built]
cjs require !!./bPage.js [5] (webpack)/~/bundle-loader!./bPage.js 8:8-31
cjs require ./bPage [7] ./bEntry.js 3:7-25
chunk {1} 1.chunk.js 59 bytes {4} [rendered]
chunk {1} 1.chunk.js 61 bytes {4} [rendered]
> [4] (webpack)/~/bundle-loader!./aPage.js 7:0-14:2
[1] ./aPage.js 59 bytes {1} {3} [built]
[1] ./aPage.js 61 bytes {1} {3} [built]
cjs require !!./aPage.js [4] (webpack)/~/bundle-loader!./aPage.js 8:8-31
cjs require ./aPage [6] ./aEntry.js 3:7-25
chunk {2} pageB.bundle.js (pageB) 146 bytes {4} [initial] [rendered]
chunk {2} pageB.bundle.js (pageB) 150 bytes {4} [initial] [rendered]
> pageB [7] ./bEntry.js
[2] ./bPage.js 59 bytes {0} {2} [built]
[2] ./bPage.js 61 bytes {0} {2} [built]
cjs require !!./bPage.js [5] (webpack)/~/bundle-loader!./bPage.js 8:8-31
cjs require ./bPage [7] ./bEntry.js 3:7-25
[7] ./bEntry.js 87 bytes {2} [built]
chunk {3} pageA.bundle.js (pageA) 146 bytes {4} [initial] [rendered]
[7] ./bEntry.js 89 bytes {2} [built]
chunk {3} pageA.bundle.js (pageA) 150 bytes {4} [initial] [rendered]
> pageA [6] ./aEntry.js
[1] ./aPage.js 59 bytes {1} {3} [built]
[1] ./aPage.js 61 bytes {1} {3} [built]
cjs require !!./aPage.js [4] (webpack)/~/bundle-loader!./aPage.js 8:8-31
cjs require ./aPage [6] ./aEntry.js 3:7-25
[6] ./aEntry.js 87 bytes {3} [built]
chunk {4} commons.js (commons) 1.68 kB [entry] [rendered]
[6] ./aEntry.js 89 bytes {3} [built]
chunk {4} commons.js (commons) 1.71 kB [entry] [rendered]
> commons [8] ./router.js
[0] ./render.js 58 bytes {4} [built]
[0] ./render.js 60 bytes {4} [built]
cjs require ./render [6] ./aEntry.js 2:13-32
cjs require ./render [7] ./bEntry.js 2:13-32
cjs require ./render [8] ./router.js 1:13-32
[3] . (webpack)/~/bundle-loader!^\.\/.*Page$ 184 bytes {4} [built]
cjs require context bundle!. [8] ./router.js 18:18-54
cjs require context bundle-loader!. [8] ./router.js 18:18-61
[4] (webpack)/~/bundle-loader!./aPage.js 282 bytes {4} [optional] [built]
context element ./aPage [3] . (webpack)/~/bundle-loader!^\.\/.*Page$
[5] (webpack)/~/bundle-loader!./bPage.js 282 bytes {4} [optional] [built]
context element ./bPage [3] . (webpack)/~/bundle-loader!^\.\/.*Page$
[8] ./router.js 871 bytes {4} [built]
[8] ./router.js 903 bytes {4} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 14f111c5aa1876a12091
Version: webpack 2.1.0-beta.25
Time: 376ms
Hash: b3b9aed8700890debc6a
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.chunk.js 83 bytes 0 [emitted]
1.chunk.js 82 bytes 1 [emitted]
pageB.bundle.js 127 bytes 2, 0 [emitted] pageB
pageA.bundle.js 127 bytes 3, 1 [emitted] pageA
commons.js 2.15 kB 4 [emitted] commons
commons.js 2.16 kB 4 [emitted] commons
Entrypoint pageA = commons.js pageA.bundle.js
Entrypoint pageB = commons.js pageB.bundle.js
Entrypoint commons = commons.js
chunk {0} 0.chunk.js 59 bytes {4} [rendered]
chunk {0} 0.chunk.js 61 bytes {4} [rendered]
> [5] (webpack)/~/bundle-loader!./bPage.js 7:0-14:2
[2] ./bPage.js 59 bytes {0} {2} [built]
[2] ./bPage.js 61 bytes {0} {2} [built]
cjs require !!./bPage.js [5] (webpack)/~/bundle-loader!./bPage.js 8:8-31
cjs require ./bPage [7] ./bEntry.js 3:7-25
chunk {1} 1.chunk.js 59 bytes {4} [rendered]
chunk {1} 1.chunk.js 61 bytes {4} [rendered]
> [4] (webpack)/~/bundle-loader!./aPage.js 7:0-14:2
[1] ./aPage.js 59 bytes {1} {3} [built]
[1] ./aPage.js 61 bytes {1} {3} [built]
cjs require !!./aPage.js [4] (webpack)/~/bundle-loader!./aPage.js 8:8-31
cjs require ./aPage [6] ./aEntry.js 3:7-25
chunk {2} pageB.bundle.js (pageB) 146 bytes {4} [initial] [rendered]
chunk {2} pageB.bundle.js (pageB) 150 bytes {4} [initial] [rendered]
> pageB [7] ./bEntry.js
[2] ./bPage.js 59 bytes {0} {2} [built]
[2] ./bPage.js 61 bytes {0} {2} [built]
cjs require !!./bPage.js [5] (webpack)/~/bundle-loader!./bPage.js 8:8-31
cjs require ./bPage [7] ./bEntry.js 3:7-25
[7] ./bEntry.js 87 bytes {2} [built]
chunk {3} pageA.bundle.js (pageA) 146 bytes {4} [initial] [rendered]
[7] ./bEntry.js 89 bytes {2} [built]
chunk {3} pageA.bundle.js (pageA) 150 bytes {4} [initial] [rendered]
> pageA [6] ./aEntry.js
[1] ./aPage.js 59 bytes {1} {3} [built]
[1] ./aPage.js 61 bytes {1} {3} [built]
cjs require !!./aPage.js [4] (webpack)/~/bundle-loader!./aPage.js 8:8-31
cjs require ./aPage [6] ./aEntry.js 3:7-25
[6] ./aEntry.js 87 bytes {3} [built]
chunk {4} commons.js (commons) 1.68 kB [entry] [rendered]
[6] ./aEntry.js 89 bytes {3} [built]
chunk {4} commons.js (commons) 1.71 kB [entry] [rendered]
> commons [8] ./router.js
[0] ./render.js 58 bytes {4} [built]
[0] ./render.js 60 bytes {4} [built]
cjs require ./render [6] ./aEntry.js 2:13-32
cjs require ./render [7] ./bEntry.js 2:13-32
cjs require ./render [8] ./router.js 1:13-32
[3] . (webpack)/~/bundle-loader!^\.\/.*Page$ 184 bytes {4} [built]
cjs require context bundle!. [8] ./router.js 18:18-54
cjs require context bundle-loader!. [8] ./router.js 18:18-61
[4] (webpack)/~/bundle-loader!./aPage.js 282 bytes {4} [optional] [built]
context element ./aPage [3] . (webpack)/~/bundle-loader!^\.\/.*Page$
[5] (webpack)/~/bundle-loader!./bPage.js 282 bytes {4} [optional] [built]
context element ./bPage [3] . (webpack)/~/bundle-loader!^\.\/.*Page$
[8] ./router.js 871 bytes {4} [built]
[8] ./router.js 903 bytes {4} [built]
```

View File

@ -90,11 +90,13 @@ module.exports = Object.keys(languages).map(function(language) {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -116,6 +118,9 @@ module.exports = Object.keys(languages).map(function(language) {
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
```
</details>
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
@ -175,11 +180,13 @@ console.log("Missing Text");
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -201,9 +208,6 @@ console.log("Missing Text");
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
```
</details>
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
@ -225,28 +229,26 @@ console.log("Missing Text");
## Uncompressed
```
Hash: 4194dfc38a1d790c828d2b4d6ee6122bc1cc36c8
Version: webpack 2.1.0-beta.25
Hash: b61d16621736c97f557e52b4d8e68140f1345ef8
Version: webpack 2.2.0-rc.2
Child en:
Hash: 4194dfc38a1d790c828d
Version: webpack 2.1.0-beta.25
Time: 99ms
Hash: b61d16621736c97f557e
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
en.output.js 2.65 kB 0 [emitted] main
en.output.js 2.72 kB 0 [emitted] main
Entrypoint main = en.output.js
chunk {0} en.output.js (main) 64 bytes [entry] [rendered]
chunk {0} en.output.js (main) 65 bytes [entry] [rendered]
> main [0] ./example.js
[0] ./example.js 64 bytes {0} [built]
[0] ./example.js 65 bytes {0} [built]
Child de:
Hash: 2b4d6ee6122bc1cc36c8
Version: webpack 2.1.0-beta.25
Time: 84ms
Hash: 52b4d8e68140f1345ef8
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
de.output.js 2.64 kB 0 [emitted] main
de.output.js 2.72 kB 0 [emitted] main
Entrypoint main = de.output.js
chunk {0} de.output.js (main) 64 bytes [entry] [rendered]
chunk {0} de.output.js (main) 65 bytes [entry] [rendered]
> main [0] ./example.js
[0] ./example.js 64 bytes {0} [built] [1 warning]
[0] ./example.js 65 bytes {0} [built] [1 warning]
WARNING in ./example.js
Missing localization: Missing Text
@ -255,29 +257,27 @@ Child de:
## Minimized (uglify-js, no zip)
```
Hash: 4194dfc38a1d790c828d2b4d6ee6122bc1cc36c8
Version: webpack 2.1.0-beta.25
Hash: b61d16621736c97f557e52b4d8e68140f1345ef8
Version: webpack 2.2.0-rc.2
Child en:
Hash: 4194dfc38a1d790c828d
Version: webpack 2.1.0-beta.25
Time: 207ms
Hash: b61d16621736c97f557e
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
en.output.js 561 bytes 0 [emitted] main
en.output.js 571 bytes 0 [emitted] main
Entrypoint main = en.output.js
chunk {0} en.output.js (main) 64 bytes [entry] [rendered]
chunk {0} en.output.js (main) 65 bytes [entry] [rendered]
> main [0] ./example.js
[0] ./example.js 64 bytes {0} [built]
[0] ./example.js 65 bytes {0} [built]
Child de:
Hash: 2b4d6ee6122bc1cc36c8
Version: webpack 2.1.0-beta.25
Time: 191ms
Hash: 52b4d8e68140f1345ef8
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
de.output.js 560 bytes 0 [emitted] main
de.output.js 570 bytes 0 [emitted] main
Entrypoint main = de.output.js
chunk {0} de.output.js (main) 64 bytes [entry] [rendered]
chunk {0} de.output.js (main) 65 bytes [entry] [rendered]
> main [0] ./example.js
[0] ./example.js 64 bytes {0} [built] [1 warning]
[0] ./example.js 65 bytes {0} [built] [1 warning]
WARNING in ./example.js
Missing localization: Missing Text
```
```

View File

@ -25,7 +25,7 @@ module.exports = function(content) {
# test.css
```css
``` css
.some-class {
color: hotpink;
}
@ -75,11 +75,13 @@ module.exports = function(content) {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -98,7 +100,7 @@ module.exports = function(content) {
/******/ __webpack_require__.p = "js/";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ return __webpack_require__(__webpack_require__.s = 3);
/******/ })
/************************************************************************/
```
@ -108,14 +110,20 @@ module.exports = function(content) {
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!*******************************************!*\
/*!*****************************************!*\
!*** (webpack)/~/css-loader!./test.css ***!
\*******************************************/
/***/ function(module, exports) {
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(/*! ./../../~/css-loader/lib/css-base.js */ 2)();
// imports
// module
exports.push([module.i, ".some-class {\r\n\tcolor: hotpink;\r\n}\r\n", ""]);
// exports
module.exports = {
"foobar": 1234
};
/***/ },
/* 1 */
@ -133,6 +141,67 @@ exports.foo = "bar";
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!**********************************************!*\
!*** (webpack)/~/css-loader/lib/css-base.js ***!
\**********************************************/
/***/ function(module, exports) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
module.exports = function() {
var list = [];
// return the list of modules as css string
list.toString = function toString() {
var result = [];
for(var i = 0; i < this.length; i++) {
var item = this[i];
if(item[2]) {
result.push("@media " + item[2] + "{" + item[1] + "}");
} else {
result.push(item[1]);
}
}
return result.join("");
};
// import a list of modules into the list
list.i = function(modules, mediaQuery) {
if(typeof modules === "string")
modules = [[null, modules, ""]];
var alreadyImportedModules = {};
for(var i = 0; i < this.length; i++) {
var id = this[i][0];
if(typeof id === "number")
alreadyImportedModules[id] = true;
}
for(i = 0; i < modules.length; i++) {
var item = modules[i];
// skip already imported module
// this implementation is not 100% perfect for weird media query combinations
// when a module is imported multiple times with different media queries.
// I hope this will never occur (Hey this way we have smaller bundles)
if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
if(mediaQuery && !item[2]) {
item[2] = mediaQuery;
} else if(mediaQuery) {
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
}
list.push(item);
}
}
};
return list;
};
/***/ },
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
@ -145,6 +214,7 @@ console.dir(__webpack_require__(/*! ./loader!./file */ 1));
console.dir(__webpack_require__(/*! ./test.css */ 0)); // default by extension
console.dir(__webpack_require__(/*! css-loader!./test.css */ 0)); // manual
/***/ }
/******/ ]);
```
@ -164,37 +234,39 @@ Prints in node.js (`enhanced-require example.js`) and in browser:
## Uncompressed
```
Hash: 1f6b568690bccc6155af
Version: webpack 2.1.0-beta.25
Time: 141ms
Hash: 197d528d54679c3ef22f
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 3.39 kB 0 [emitted] main
output.js 5.43 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 278 bytes [entry] [rendered]
> main [2] ./example.js
[0] (webpack)/~/css-loader!./test.css 37 bytes {0} [built]
cjs require !css!./test.css [2] ./example.js 6:12-40
cjs require ./test.css [2] ./example.js 5:12-34
chunk {0} output.js (main) 1.96 kB [entry] [rendered]
> main [3] ./example.js
[0] (webpack)/~/css-loader!./test.css 202 bytes {0} [built]
cjs require !css-loader!./test.css [3] ./example.js 6:12-45
cjs require ./test.css [3] ./example.js 5:12-33
[1] ./loader.js!./file.js 41 bytes {0} [built]
cjs require ./loader!./file [2] ./example.js 2:12-38
[2] ./example.js 200 bytes {0} [built]
cjs require ./loader!./file [3] ./example.js 2:12-38
[2] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./test.css 1:27-85
[3] ./example.js 210 bytes {0} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 1f6b568690bccc6155af
Version: webpack 2.1.0-beta.25
Time: 247ms
Asset Size Chunks Chunk Names
output.js 638 bytes 0 [emitted] main
Hash: 73ca0b614fa918a99453
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 1.16 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 278 bytes [entry] [rendered]
> main [2] ./example.js
[0] (webpack)/~/css-loader!./test.css 37 bytes {0} [built]
cjs require !css-loader!./test.css [2] ./example.js 6:12-40
cjs require ./test.css [2] ./example.js 5:12-34
chunk {0} output.js (main) 1.94 kB [entry] [rendered]
> main [3] ./example.js
[0] (webpack)/~/css-loader!./test.css 185 bytes {0} [built]
cjs require !css-loader!./test.css [3] ./example.js 6:12-45
cjs require ./test.css [3] ./example.js 5:12-33
[1] ./loader.js!./file.js 41 bytes {0} [built]
cjs require ./loader!./file [2] ./example.js 2:12-38
[2] ./example.js 200 bytes {0} [built]
cjs require ./loader!./file [3] ./example.js 2:12-38
[2] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./test.css 1:27-85
[3] ./example.js 210 bytes {0} [built]
```

View File

@ -132,6 +132,9 @@ require(
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -145,12 +148,14 @@ require(
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -164,11 +169,13 @@ require(
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -227,10 +234,10 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// AMD Module Fo
module.exports = 123;
// but you can use amd style requires
Promise.resolve().catch(function(err) { __webpack_require__.oe(err); }).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./amd */ 0), __webpack_require__(/*! ./harmony */ 2)]; (function(amd1, harmony) {
Promise.resolve().then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./amd */ 0), __webpack_require__(/*! ./harmony */ 2)]; (function(amd1, harmony) {
var amd2 = __webpack_require__(/*! ./amd */ 0);
var harmony2 = __webpack_require__(/*! ./harmony */ 2);
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
/***/ },
/* 2 */
@ -242,6 +249,7 @@ Promise.resolve().catch(function(err) { __webpack_require__.oe(err); }).then(fun
/***/ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__commonjs__ = __webpack_require__(/*! ./commonjs */ 1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__commonjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__commonjs__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__amd__ = __webpack_require__(/*! ./amd */ 0);
@ -269,12 +277,12 @@ var amd1 = __webpack_require__(/*! ./amd */ 0);
var harmony1 = __webpack_require__(/*! ./harmony */ 2);
// AMD-style requires (with all webpack features)
__webpack_require__.e/* require */(0).catch(function(err) { __webpack_require__.oe(err); }).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [
__webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [
__webpack_require__(/*! ./commonjs */ 1), __webpack_require__(/*! ./amd */ 0),
__webpack_require__(/*! ../require.context/templates */ 3)("./"+amd1+".js"),
Math.random() < 0.5 ? __webpack_require__(/*! ./commonjs */ 1) : __webpack_require__(/*! ./amd */ 0)]; (function(commonjs2, amd2, template, randModule) {
// Do something with it...
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
/***/ }
@ -367,91 +375,89 @@ module.exports = function() {
## Uncompressed
```
Hash: f8476f5be92cc436186e
Version: webpack 2.1.0-beta.25
Time: 198ms
Hash: ace5df2215cddfd52d9a
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 1.83 kB 0 [emitted]
output.js 8.5 kB 1 [emitted] main
0.output.js 1.84 kB 0 [emitted]
output.js 8.76 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 433 bytes {1} [rendered]
chunk {0} 0.output.js 439 bytes {1} [rendered]
> [4] ./example.js 7:0-14:1
[3] ../require.context/templates ^\.\/.*\.js$ 193 bytes {0} [built]
amd require context ../require.context/templates [4] ./example.js 7:0-14:1
[5] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
[5] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a.js [3] ../require.context/templates ^\.\/.*\.js$
[6] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
[6] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b.js [3] ../require.context/templates ^\.\/.*\.js$
[7] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
[7] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c.js [3] ../require.context/templates ^\.\/.*\.js$
chunk {1} output.js (main) 1.01 kB [entry] [rendered]
chunk {1} output.js (main) 1.05 kB [entry] [rendered]
> main [4] ./example.js
[0] ./amd.js 298 bytes {1} [built]
[0] ./amd.js 309 bytes {1} [built]
amd require ./amd [1] ./commonjs.js 5:0-11:1
cjs require ./amd [1] ./commonjs.js 8:13-29
harmony import ./amd [2] ./harmony.js 3:0-24
cjs require ./amd [4] ./example.js 3:11-27
amd require ./amd [4] ./example.js 7:0-14:1
amd require ./amd [4] ./example.js 7:0-14:1
[1] ./commonjs.js 223 bytes {1} [built]
[1] ./commonjs.js 233 bytes {1} [built]
amd require ./commonjs [0] ./amd.js 2:0-12:1
cjs require ./commonjs [0] ./amd.js 7:18-39
harmony import ./commonjs [2] ./harmony.js 2:0-34
cjs require ./commonjs [4] ./example.js 2:16-37
amd require ./commonjs [4] ./example.js 7:0-14:1
amd require ./commonjs [4] ./example.js 7:0-14:1
[2] ./harmony.js 96 bytes {1} [built]
[2] ./harmony.js 101 bytes {1} [built]
[exports: default]
amd require ./harmony [0] ./amd.js 2:0-12:1
cjs require ./harmony [0] ./amd.js 8:17-37
amd require ./harmony [1] ./commonjs.js 5:0-11:1
cjs require ./harmony [1] ./commonjs.js 9:17-37
cjs require ./harmony [4] ./example.js 4:15-35
[4] ./example.js 396 bytes {1} [built]
[4] ./example.js 410 bytes {1} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: f8476f5be92cc436186e
Version: webpack 2.1.0-beta.25
Time: 366ms
Hash: ace5df2215cddfd52d9a
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 523 bytes 0 [emitted]
output.js 1.83 kB 1 [emitted] main
output.js 1.9 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 433 bytes {1} [rendered]
chunk {0} 0.output.js 439 bytes {1} [rendered]
> [4] ./example.js 7:0-14:1
[3] ../require.context/templates ^\.\/.*\.js$ 193 bytes {0} [built]
amd require context ../require.context/templates [4] ./example.js 7:0-14:1
[5] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
[5] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a.js [3] ../require.context/templates ^\.\/.*\.js$
[6] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
[6] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b.js [3] ../require.context/templates ^\.\/.*\.js$
[7] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
[7] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c.js [3] ../require.context/templates ^\.\/.*\.js$
chunk {1} output.js (main) 1.01 kB [entry] [rendered]
chunk {1} output.js (main) 1.05 kB [entry] [rendered]
> main [4] ./example.js
[0] ./amd.js 298 bytes {1} [built]
[0] ./amd.js 309 bytes {1} [built]
amd require ./amd [1] ./commonjs.js 5:0-11:1
cjs require ./amd [1] ./commonjs.js 8:13-29
harmony import ./amd [2] ./harmony.js 3:0-24
cjs require ./amd [4] ./example.js 3:11-27
amd require ./amd [4] ./example.js 7:0-14:1
amd require ./amd [4] ./example.js 7:0-14:1
[1] ./commonjs.js 223 bytes {1} [built]
[1] ./commonjs.js 233 bytes {1} [built]
amd require ./commonjs [0] ./amd.js 2:0-12:1
cjs require ./commonjs [0] ./amd.js 7:18-39
harmony import ./commonjs [2] ./harmony.js 2:0-34
cjs require ./commonjs [4] ./example.js 2:16-37
amd require ./commonjs [4] ./example.js 7:0-14:1
amd require ./commonjs [4] ./example.js 7:0-14:1
[2] ./harmony.js 96 bytes {1} [built]
[2] ./harmony.js 101 bytes {1} [built]
[exports: default]
amd require ./harmony [0] ./amd.js 2:0-12:1
cjs require ./harmony [0] ./amd.js 8:17-37
amd require ./harmony [1] ./commonjs.js 5:0-11:1
cjs require ./harmony [1] ./commonjs.js 9:17-37
cjs require ./harmony [4] ./example.js 4:15-35
[4] ./example.js 396 bytes {1} [built]
[4] ./example.js 410 bytes {1} [built]
```

View File

@ -83,23 +83,22 @@ module.exports = {
## Uncompressed
```
Hash: db7e340b8115120a2cdc
Version: webpack 2.1.0-beta.25
Time: 173ms
Hash: cc02f492e44f68d8c237
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.chunk.js 779 bytes 0, 1, 2, 3 [emitted]
1.chunk.js 589 bytes 1, 2, 3 [emitted]
2.chunk.js 399 bytes 2, 3 [emitted]
3.chunk.js 209 bytes 3 [emitted]
pageD.bundle.js 6.32 kB 4 [emitted] pageD
pageC.bundle.js 6.32 kB 5 [emitted] pageC
pageB.bundle.js 6.32 kB 6 [emitted] pageB
pageA.bundle.js 6.25 kB 7 [emitted] pageA
pageD.bundle.js 6.44 kB 4 [emitted] pageD
pageC.bundle.js 6.44 kB 5 [emitted] pageC
pageB.bundle.js 6.44 kB 6 [emitted] pageB
pageA.bundle.js 6.38 kB 7 [emitted] pageA
Entrypoint pageA = pageA.bundle.js
Entrypoint pageB = pageB.bundle.js
Entrypoint pageC = pageC.bundle.js
Entrypoint pageD = pageD.bundle.js
chunk {0} 0.chunk.js 84 bytes {7} {6} {5} {4} [rendered]
chunk {0} 0.chunk.js 84 bytes {4} {5} {6} {7} [rendered]
> duplicate [4] ./page.js?A 4:0-37
> duplicate [5] ./page.js?B 4:0-37
> duplicate [6] ./page.js?C 4:0-37
@ -108,7 +107,7 @@ chunk {0} 0.chunk.js 84 bytes {7} {6} {5} {4} [rendered]
[1] ./b.js 21 bytes {0} {1} {2} [built]
[2] ./c.js 21 bytes {0} {1} [built]
[3] ./d.js 21 bytes {0} [built]
chunk {1} 1.chunk.js 63 bytes {7} {6} {5} {4} [rendered]
chunk {1} 1.chunk.js 63 bytes {4} {5} {6} {7} [rendered]
> duplicate [4] ./page.js?A 3:0-30
> duplicate [5] ./page.js?B 3:0-30
> duplicate [6] ./page.js?C 3:0-30
@ -116,53 +115,52 @@ chunk {1} 1.chunk.js 63 bytes {7} {6} {5} {4} [rendered]
[0] ./a.js 21 bytes {0} {1} {2} {3} [built]
[1] ./b.js 21 bytes {0} {1} {2} [built]
[2] ./c.js 21 bytes {0} {1} [built]
chunk {2} 2.chunk.js 42 bytes {7} {6} {5} {4} [rendered]
chunk {2} 2.chunk.js 42 bytes {4} {5} {6} {7} [rendered]
> duplicate [4] ./page.js?A 2:0-23
> duplicate [5] ./page.js?B 2:0-23
> duplicate [6] ./page.js?C 2:0-23
> duplicate [7] ./page.js?D 2:0-23
[0] ./a.js 21 bytes {0} {1} {2} {3} [built]
[1] ./b.js 21 bytes {0} {1} {2} [built]
chunk {3} 3.chunk.js 21 bytes {7} {6} {5} {4} [rendered]
chunk {3} 3.chunk.js 21 bytes {4} {5} {6} {7} [rendered]
> duplicate [4] ./page.js?A 1:0-16
> duplicate [5] ./page.js?B 1:0-16
> duplicate [6] ./page.js?C 1:0-16
> duplicate [7] ./page.js?D 1:0-16
[0] ./a.js 21 bytes {0} {1} {2} {3} [built]
chunk {4} pageD.bundle.js (pageD) 114 bytes [entry] [rendered]
chunk {4} pageD.bundle.js (pageD) 118 bytes [entry] [rendered]
> pageD [7] ./page.js?D
[7] ./page.js?D 114 bytes {4} [built]
chunk {5} pageC.bundle.js (pageC) 114 bytes [entry] [rendered]
[7] ./page.js?D 118 bytes {4} [built]
chunk {5} pageC.bundle.js (pageC) 118 bytes [entry] [rendered]
> pageC [6] ./page.js?C
[6] ./page.js?C 114 bytes {5} [built]
chunk {6} pageB.bundle.js (pageB) 114 bytes [entry] [rendered]
[6] ./page.js?C 118 bytes {5} [built]
chunk {6} pageB.bundle.js (pageB) 118 bytes [entry] [rendered]
> pageB [5] ./page.js?B
[5] ./page.js?B 114 bytes {6} [built]
chunk {7} pageA.bundle.js (pageA) 114 bytes [entry] [rendered]
[5] ./page.js?B 118 bytes {6} [built]
chunk {7} pageA.bundle.js (pageA) 118 bytes [entry] [rendered]
> pageA [4] ./page.js?A
[4] ./page.js?A 114 bytes {7} [built]
[4] ./page.js?A 118 bytes {7} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: db7e340b8115120a2cdc
Version: webpack 2.1.0-beta.25
Time: 466ms
Hash: cc02f492e44f68d8c237
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.chunk.js 142 bytes 0, 1, 2, 3 [emitted]
1.chunk.js 111 bytes 1, 2, 3 [emitted]
2.chunk.js 80 bytes 2, 3 [emitted]
3.chunk.js 49 bytes 3 [emitted]
pageD.bundle.js 1.58 kB 4 [emitted] pageD
pageC.bundle.js 1.58 kB 5 [emitted] pageC
pageB.bundle.js 1.58 kB 6 [emitted] pageB
pageA.bundle.js 1.58 kB 7 [emitted] pageA
pageD.bundle.js 1.57 kB 4 [emitted] pageD
pageC.bundle.js 1.57 kB 5 [emitted] pageC
pageB.bundle.js 1.57 kB 6 [emitted] pageB
pageA.bundle.js 1.57 kB 7 [emitted] pageA
Entrypoint pageA = pageA.bundle.js
Entrypoint pageB = pageB.bundle.js
Entrypoint pageC = pageC.bundle.js
Entrypoint pageD = pageD.bundle.js
chunk {0} 0.chunk.js 84 bytes {7} {6} {5} {4} [rendered]
chunk {0} 0.chunk.js 84 bytes {4} {5} {6} {7} [rendered]
> duplicate [4] ./page.js?A 4:0-37
> duplicate [5] ./page.js?B 4:0-37
> duplicate [6] ./page.js?C 4:0-37
@ -171,7 +169,7 @@ chunk {0} 0.chunk.js 84 bytes {7} {6} {5} {4} [rendered]
[1] ./b.js 21 bytes {0} {1} {2} [built]
[2] ./c.js 21 bytes {0} {1} [built]
[3] ./d.js 21 bytes {0} [built]
chunk {1} 1.chunk.js 63 bytes {7} {6} {5} {4} [rendered]
chunk {1} 1.chunk.js 63 bytes {4} {5} {6} {7} [rendered]
> duplicate [4] ./page.js?A 3:0-30
> duplicate [5] ./page.js?B 3:0-30
> duplicate [6] ./page.js?C 3:0-30
@ -179,29 +177,29 @@ chunk {1} 1.chunk.js 63 bytes {7} {6} {5} {4} [rendered]
[0] ./a.js 21 bytes {0} {1} {2} {3} [built]
[1] ./b.js 21 bytes {0} {1} {2} [built]
[2] ./c.js 21 bytes {0} {1} [built]
chunk {2} 2.chunk.js 42 bytes {7} {6} {5} {4} [rendered]
chunk {2} 2.chunk.js 42 bytes {4} {5} {6} {7} [rendered]
> duplicate [4] ./page.js?A 2:0-23
> duplicate [5] ./page.js?B 2:0-23
> duplicate [6] ./page.js?C 2:0-23
> duplicate [7] ./page.js?D 2:0-23
[0] ./a.js 21 bytes {0} {1} {2} {3} [built]
[1] ./b.js 21 bytes {0} {1} {2} [built]
chunk {3} 3.chunk.js 21 bytes {7} {6} {5} {4} [rendered]
chunk {3} 3.chunk.js 21 bytes {4} {5} {6} {7} [rendered]
> duplicate [4] ./page.js?A 1:0-16
> duplicate [5] ./page.js?B 1:0-16
> duplicate [6] ./page.js?C 1:0-16
> duplicate [7] ./page.js?D 1:0-16
[0] ./a.js 21 bytes {0} {1} {2} {3} [built]
chunk {4} pageD.bundle.js (pageD) 114 bytes [entry] [rendered]
chunk {4} pageD.bundle.js (pageD) 118 bytes [entry] [rendered]
> pageD [7] ./page.js?D
[7] ./page.js?D 114 bytes {4} [built]
chunk {5} pageC.bundle.js (pageC) 114 bytes [entry] [rendered]
[7] ./page.js?D 118 bytes {4} [built]
chunk {5} pageC.bundle.js (pageC) 118 bytes [entry] [rendered]
> pageC [6] ./page.js?C
[6] ./page.js?C 114 bytes {5} [built]
chunk {6} pageB.bundle.js (pageB) 114 bytes [entry] [rendered]
[6] ./page.js?C 118 bytes {5} [built]
chunk {6} pageB.bundle.js (pageB) 118 bytes [entry] [rendered]
> pageB [5] ./page.js?B
[5] ./page.js?B 114 bytes {6} [built]
chunk {7} pageA.bundle.js (pageA) 114 bytes [entry] [rendered]
[5] ./page.js?B 118 bytes {6} [built]
chunk {7} pageA.bundle.js (pageA) 118 bytes [entry] [rendered]
> pageA [4] ./page.js?A
[4] ./page.js?A 114 bytes {7} [built]
[4] ./page.js?A 118 bytes {7} [built]
```

View File

@ -87,11 +87,13 @@ module.exports = [
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -113,6 +115,9 @@ module.exports = [
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
```
</details>
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
@ -174,11 +179,13 @@ console.log("Running " + "desktop" + " build");
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -200,9 +207,6 @@ console.log("Running " + "desktop" + " build");
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
```
</details>
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
@ -237,57 +241,53 @@ console.log("Running " + "mobile" + " build");
## Uncompressed
```
Hash: 4b2d49e03773278d9a9728f5d936e54472e7499c
Version: webpack 2.1.0-beta.25
Hash: 13bf2527439f032e7491cceba4bc5163d755f291
Version: webpack 2.2.0-rc.2
Child mobile:
Hash: 4b2d49e03773278d9a97
Version: webpack 2.1.0-beta.25
Time: 116ms
Hash: 13bf2527439f032e7491
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
mobile.js 2.92 kB 0 [emitted] main
mobile.js 2.99 kB 0 [emitted] main
Entrypoint main = mobile.js
chunk {0} mobile.js (main) 114 bytes [entry] [rendered]
chunk {0} mobile.js (main) 117 bytes [entry] [rendered]
> main [1] ./example.js
[0] ./mobile-stuff.js 20 bytes {0} [built]
cjs require ./mobile-stuff [1] ./example.js 2:1-26
[1] ./example.js 94 bytes {0} [built]
[1] ./example.js 97 bytes {0} [built]
Child desktop:
Hash: 28f5d936e54472e7499c
Version: webpack 2.1.0-beta.25
Time: 98ms
Hash: cceba4bc5163d755f291
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
desktop.js 2.68 kB 0 [emitted] main
desktop.js 2.75 kB 0 [emitted] main
Entrypoint main = desktop.js
chunk {0} desktop.js (main) 94 bytes [entry] [rendered]
chunk {0} desktop.js (main) 97 bytes [entry] [rendered]
> main [0] ./example.js
[0] ./example.js 94 bytes {0} [built]
[0] ./example.js 97 bytes {0} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 4b2d49e03773278d9a9728f5d936e54472e7499c
Version: webpack 2.1.0-beta.25
Hash: 13bf2527439f032e7491cceba4bc5163d755f291
Version: webpack 2.2.0-rc.2
Child mobile:
Hash: 4b2d49e03773278d9a97
Version: webpack 2.1.0-beta.25
Time: 228ms
Hash: 13bf2527439f032e7491
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
mobile.js 563 bytes 0 [emitted] main
mobile.js 573 bytes 0 [emitted] main
Entrypoint main = mobile.js
chunk {0} mobile.js (main) 114 bytes [entry] [rendered]
chunk {0} mobile.js (main) 117 bytes [entry] [rendered]
> main [1] ./example.js
[0] ./mobile-stuff.js 20 bytes {0} [built]
cjs require ./mobile-stuff [1] ./example.js 2:1-26
[1] ./example.js 94 bytes {0} [built]
[1] ./example.js 97 bytes {0} [built]
Child desktop:
Hash: 28f5d936e54472e7499c
Version: webpack 2.1.0-beta.25
Time: 211ms
Hash: cceba4bc5163d755f291
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
desktop.js 543 bytes 0 [emitted] main
desktop.js 553 bytes 0 [emitted] main
Entrypoint main = desktop.js
chunk {0} desktop.js (main) 94 bytes [entry] [rendered]
chunk {0} desktop.js (main) 97 bytes [entry] [rendered]
> main [0] ./example.js
[0] ./example.js 94 bytes {0} [built]
```
[0] ./example.js 97 bytes {0} [built]
```

View File

@ -43,6 +43,9 @@ module.exports = {
else
root["MyLibrary"] = root["MyLibrary"] || {}, root["MyLibrary"]["alpha"] = factory();
})(this, function() {
```
<details><summary>`return /******/ (function(modules) { /* webpackBootstrap */ })`</summary>
``` js
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -83,11 +86,13 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -109,6 +114,9 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
```
</details>
``` js
/******/ ([
/* 0 */
/* unknown exports provided */
@ -121,9 +129,8 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = "alpha";
/***/ }
/******/ ])
/******/ ]);
});
;
```
# js/MyLibrary.beta.js
@ -179,11 +186,13 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -218,9 +227,8 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = "beta";
/***/ }
/******/ ])
/******/ ]);
});
;
```
# Info
@ -229,11 +237,10 @@ module.exports = "beta";
```
Hash: 082bbeea226fa367215b
Version: webpack 2.1.0-beta.25
Time: 104ms
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
MyLibrary.beta.js 3.02 kB 0 [emitted] beta
MyLibrary.alpha.js 3.01 kB 1 [emitted] alpha
MyLibrary.beta.js 3.09 kB 0 [emitted] beta
MyLibrary.alpha.js 3.08 kB 1 [emitted] alpha
Entrypoint alpha = MyLibrary.alpha.js
Entrypoint beta = MyLibrary.beta.js
chunk {0} MyLibrary.beta.js (beta) 24 bytes [entry] [rendered]
@ -248,11 +255,10 @@ chunk {1} MyLibrary.alpha.js (alpha) 25 bytes [entry] [rendered]
```
Hash: 082bbeea226fa367215b
Version: webpack 2.1.0-beta.25
Time: 248ms
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
MyLibrary.beta.js 775 bytes 0 [emitted] beta
MyLibrary.alpha.js 777 bytes 1 [emitted] alpha
MyLibrary.beta.js 785 bytes 0 [emitted] beta
MyLibrary.alpha.js 787 bytes 1 [emitted] alpha
Entrypoint alpha = MyLibrary.alpha.js
Entrypoint beta = MyLibrary.beta.js
chunk {0} MyLibrary.beta.js (beta) 24 bytes [entry] [rendered]

View File

@ -158,6 +158,9 @@ module.exports = {
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -171,12 +174,14 @@ module.exports = {
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -190,11 +195,13 @@ module.exports = {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -328,26 +335,25 @@ __webpack_require__(/*! ./modules/admin */ 1);
## Uncompressed
```
Hash: f8080824b869884efe88
Version: webpack 2.1.0-beta.25
Time: 164ms
Hash: 295aa8d9fd845ec1d1b0
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
pageC.js 765 bytes 0 [emitted] pageC
pageB.js 564 bytes 1 [emitted] pageB
pageA.js 564 bytes 2 [emitted] pageA
adminPageC.js 543 bytes 3, 4 [emitted] adminPageC
pageC.js 768 bytes 0 [emitted] pageC
pageB.js 567 bytes 1 [emitted] pageB
pageA.js 567 bytes 2 [emitted] pageA
adminPageC.js 544 bytes 3, 4 [emitted] adminPageC
admin-commons.js 233 bytes 4 [emitted] admin-commons
adminPageB.js 336 bytes 5 [emitted] adminPageB
adminPageA.js 336 bytes 6 [emitted] adminPageA
commons.js 5.79 kB 7, 8 [emitted] commons
c-commons.js 5.55 kB 8 [emitted] c-commons
adminPageB.js 337 bytes 5 [emitted] adminPageB
adminPageA.js 337 bytes 6 [emitted] adminPageA
commons.js 6 kB 7, 8 [emitted] commons
c-commons.js 5.76 kB 8 [emitted] c-commons
Entrypoint pageA = commons.js pageA.js
Entrypoint pageB = commons.js pageB.js
Entrypoint pageC = c-commons.js pageC.js
Entrypoint adminPageA = commons.js admin-commons.js adminPageA.js
Entrypoint adminPageB = commons.js admin-commons.js adminPageB.js
Entrypoint adminPageC = c-commons.js adminPageC.js
chunk {0} pageC.js (pageC) 80 bytes {8} [initial] [rendered]
chunk {0} pageC.js (pageC) 83 bytes {8} [initial] [rendered]
> pageC [10] ./pageC.js
[2] ./modules/a-c.js 0 bytes {0} {2} [built]
cjs require ./modules/a-c [8] ./pageA.js 3:0-24
@ -355,37 +361,37 @@ chunk {0} pageC.js (pageC) 80 bytes {8} [initial] [rendered]
[3] ./modules/b-c.js 0 bytes {0} {1} [built]
cjs require ./modules/b-c [9] ./pageB.js 3:0-24
cjs require ./modules/b-c [10] ./pageC.js 2:0-24
[10] ./pageC.js 80 bytes {0} [built]
chunk {1} pageB.js (pageB) 80 bytes {7} [initial] [rendered]
[10] ./pageC.js 83 bytes {0} [built]
chunk {1} pageB.js (pageB) 83 bytes {7} [initial] [rendered]
> pageB [9] ./pageB.js
[3] ./modules/b-c.js 0 bytes {0} {1} [built]
cjs require ./modules/b-c [9] ./pageB.js 3:0-24
cjs require ./modules/b-c [10] ./pageC.js 2:0-24
[9] ./pageB.js 80 bytes {1} [built]
chunk {2} pageA.js (pageA) 80 bytes {7} [initial] [rendered]
[9] ./pageB.js 83 bytes {1} [built]
chunk {2} pageA.js (pageA) 83 bytes {7} [initial] [rendered]
> pageA [8] ./pageA.js
[2] ./modules/a-c.js 0 bytes {0} {2} [built]
cjs require ./modules/a-c [8] ./pageA.js 3:0-24
cjs require ./modules/a-c [10] ./pageC.js 3:0-24
[8] ./pageA.js 80 bytes {2} [built]
chunk {3} adminPageC.js (adminPageC) 55 bytes {8} [initial] [rendered]
[8] ./pageA.js 83 bytes {2} [built]
chunk {3} adminPageC.js (adminPageC) 56 bytes {8} [initial] [rendered]
> adminPageC [7] ./adminPageC.js
[1] ./modules/admin.js 0 bytes {3} {4} [built]
cjs require ./modules/admin [5] ./adminPageA.js 2:0-26
cjs require ./modules/admin [6] ./adminPageB.js 2:0-26
cjs require ./modules/admin [7] ./adminPageC.js 2:0-26
[7] ./adminPageC.js 55 bytes {3} [built]
[7] ./adminPageC.js 56 bytes {3} [built]
chunk {4} admin-commons.js (admin-commons) 0 bytes {7} [initial] [rendered]
[1] ./modules/admin.js 0 bytes {3} {4} [built]
cjs require ./modules/admin [5] ./adminPageA.js 2:0-26
cjs require ./modules/admin [6] ./adminPageB.js 2:0-26
cjs require ./modules/admin [7] ./adminPageC.js 2:0-26
chunk {5} adminPageB.js (adminPageB) 55 bytes {4} [initial] [rendered]
chunk {5} adminPageB.js (adminPageB) 56 bytes {4} [initial] [rendered]
> adminPageB [6] ./adminPageB.js
[6] ./adminPageB.js 55 bytes {5} [built]
chunk {6} adminPageA.js (adminPageA) 55 bytes {4} [initial] [rendered]
[6] ./adminPageB.js 56 bytes {5} [built]
chunk {6} adminPageA.js (adminPageA) 56 bytes {4} [initial] [rendered]
> adminPageA [5] ./adminPageA.js
[5] ./adminPageA.js 55 bytes {6} [built]
[5] ./adminPageA.js 56 bytes {6} [built]
chunk {7} commons.js (commons) 0 bytes [entry] [rendered]
[0] ./modules/a-b-c.js 0 bytes {7} {8} [built]
cjs require ./modules/a-b-c [5] ./adminPageA.js 1:0-26
@ -410,9 +416,8 @@ chunk {8} c-commons.js (c-commons) 0 bytes [entry] [rendered]
## Minimized (uglify-js, no zip)
```
Hash: f8080824b869884efe88
Version: webpack 2.1.0-beta.25
Time: 384ms
Hash: 295aa8d9fd845ec1d1b0
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
pageC.js 96 bytes 0 [emitted] pageC
pageB.js 76 bytes 1 [emitted] pageB
@ -421,15 +426,15 @@ Time: 384ms
admin-commons.js 37 bytes 4 [emitted] admin-commons
adminPageB.js 53 bytes 5 [emitted] adminPageB
adminPageA.js 53 bytes 6 [emitted] adminPageA
commons.js 1.36 kB 7, 8 [emitted] commons
c-commons.js 1.34 kB 8 [emitted] c-commons
commons.js 1.41 kB 7, 8 [emitted] commons
c-commons.js 1.39 kB 8 [emitted] c-commons
Entrypoint pageA = commons.js pageA.js
Entrypoint pageB = commons.js pageB.js
Entrypoint pageC = c-commons.js pageC.js
Entrypoint adminPageA = commons.js admin-commons.js adminPageA.js
Entrypoint adminPageB = commons.js admin-commons.js adminPageB.js
Entrypoint adminPageC = c-commons.js adminPageC.js
chunk {0} pageC.js (pageC) 80 bytes {8} [initial] [rendered]
chunk {0} pageC.js (pageC) 83 bytes {8} [initial] [rendered]
> pageC [10] ./pageC.js
[2] ./modules/a-c.js 0 bytes {0} {2} [built]
cjs require ./modules/a-c [8] ./pageA.js 3:0-24
@ -437,37 +442,37 @@ chunk {0} pageC.js (pageC) 80 bytes {8} [initial] [rendered]
[3] ./modules/b-c.js 0 bytes {0} {1} [built]
cjs require ./modules/b-c [9] ./pageB.js 3:0-24
cjs require ./modules/b-c [10] ./pageC.js 2:0-24
[10] ./pageC.js 80 bytes {0} [built]
chunk {1} pageB.js (pageB) 80 bytes {7} [initial] [rendered]
[10] ./pageC.js 83 bytes {0} [built]
chunk {1} pageB.js (pageB) 83 bytes {7} [initial] [rendered]
> pageB [9] ./pageB.js
[3] ./modules/b-c.js 0 bytes {0} {1} [built]
cjs require ./modules/b-c [9] ./pageB.js 3:0-24
cjs require ./modules/b-c [10] ./pageC.js 2:0-24
[9] ./pageB.js 80 bytes {1} [built]
chunk {2} pageA.js (pageA) 80 bytes {7} [initial] [rendered]
[9] ./pageB.js 83 bytes {1} [built]
chunk {2} pageA.js (pageA) 83 bytes {7} [initial] [rendered]
> pageA [8] ./pageA.js
[2] ./modules/a-c.js 0 bytes {0} {2} [built]
cjs require ./modules/a-c [8] ./pageA.js 3:0-24
cjs require ./modules/a-c [10] ./pageC.js 3:0-24
[8] ./pageA.js 80 bytes {2} [built]
chunk {3} adminPageC.js (adminPageC) 55 bytes {8} [initial] [rendered]
[8] ./pageA.js 83 bytes {2} [built]
chunk {3} adminPageC.js (adminPageC) 56 bytes {8} [initial] [rendered]
> adminPageC [7] ./adminPageC.js
[1] ./modules/admin.js 0 bytes {3} {4} [built]
cjs require ./modules/admin [5] ./adminPageA.js 2:0-26
cjs require ./modules/admin [6] ./adminPageB.js 2:0-26
cjs require ./modules/admin [7] ./adminPageC.js 2:0-26
[7] ./adminPageC.js 55 bytes {3} [built]
[7] ./adminPageC.js 56 bytes {3} [built]
chunk {4} admin-commons.js (admin-commons) 0 bytes {7} [initial] [rendered]
[1] ./modules/admin.js 0 bytes {3} {4} [built]
cjs require ./modules/admin [5] ./adminPageA.js 2:0-26
cjs require ./modules/admin [6] ./adminPageB.js 2:0-26
cjs require ./modules/admin [7] ./adminPageC.js 2:0-26
chunk {5} adminPageB.js (adminPageB) 55 bytes {4} [initial] [rendered]
chunk {5} adminPageB.js (adminPageB) 56 bytes {4} [initial] [rendered]
> adminPageB [6] ./adminPageB.js
[6] ./adminPageB.js 55 bytes {5} [built]
chunk {6} adminPageA.js (adminPageA) 55 bytes {4} [initial] [rendered]
[6] ./adminPageB.js 56 bytes {5} [built]
chunk {6} adminPageA.js (adminPageA) 56 bytes {4} [initial] [rendered]
> adminPageA [5] ./adminPageA.js
[5] ./adminPageA.js 55 bytes {6} [built]
[5] ./adminPageA.js 56 bytes {6} [built]
chunk {7} commons.js (commons) 0 bytes [entry] [rendered]
[0] ./modules/a-b-c.js 0 bytes {7} {8} [built]
cjs require ./modules/a-b-c [5] ./adminPageA.js 1:0-26

View File

@ -179,40 +179,39 @@ body{background:url(js/ce21cbdd9b894e6af794813eb3fdaf60.png)}.c{background:url(j
## Uncompressed
```
Hash: 76b12a0a76d4a3402d97
Version: webpack 2.1.0-beta.25
Time: 934ms
Hash: b69f00fe012298ef7773
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
C.js 2.85 kB 2 [emitted] C
C.js 2.92 kB 2 [emitted] C
d090b6fba0f6d326d282a19146ff54a7.png 120 bytes [emitted]
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
c2a2f62d69330b7d787782f5010f9d13.png 120 bytes [emitted]
B.js 531 bytes 0 [emitted] B
A.js 553 bytes 1 [emitted] A
B.js 533 bytes 0 [emitted] B
A.js 555 bytes 1 [emitted] A
16155c689e517682064c99893cb832cc.png 120 bytes [emitted]
commons.js 5.57 kB 3 [emitted] commons
A.css 66 bytes 1 [emitted] A
B.css 66 bytes 0 [emitted] B
C.css 134 bytes 2 [emitted] C
commons.css 68 bytes 3 [emitted] commons
commons.js 5.78 kB 3 [emitted] commons
A.css 69 bytes 1 [emitted] A
B.css 69 bytes 0 [emitted] B
C.css 140 bytes 2 [emitted] C
commons.css 71 bytes 3 [emitted] commons
Entrypoint A = commons.js commons.css A.js A.css
Entrypoint B = commons.js commons.css B.js B.css
Entrypoint C = C.js C.css
chunk {0} B.js, B.css (B) 90 bytes {3} [initial] [rendered]
chunk {0} B.js, B.css (B) 92 bytes {3} [initial] [rendered]
> B [5] ./b.js
[2] ./styleB.css 41 bytes {0} [built]
cjs require ./styleB.css [5] ./b.js 2:0-23
[5] ./b.js 49 bytes {0} [built]
chunk {1} A.js, A.css (A) 90 bytes {3} [initial] [rendered]
[5] ./b.js 51 bytes {0} [built]
chunk {1} A.js, A.css (A) 92 bytes {3} [initial] [rendered]
> A [4] ./a.js
[1] ./styleA.css 41 bytes {1} [built]
cjs require ./styleA.css [4] ./a.js 2:0-23
[4] ./a.js 49 bytes {1} [built]
chunk {2} C.js, C.css (C) 66 bytes [entry] [rendered]
[4] ./a.js 51 bytes {1} [built]
chunk {2} C.js, C.css (C) 67 bytes [entry] [rendered]
> C [6] ./c.js
[3] ./styleC.css 41 bytes {2} [built]
cjs require ./styleC.css [6] ./c.js 1:0-23
[6] ./c.js 25 bytes {2} [built]
[6] ./c.js 26 bytes {2} [built]
chunk {3} commons.js, commons.css (commons) 41 bytes [entry] [rendered]
[0] ./style.css 41 bytes {3} [built]
cjs require ./style.css [4] ./a.js 1:0-22
@ -224,8 +223,8 @@ Child extract-text-webpack-plugin:
[0] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./styleA.css 1:27-85
[1] ./imageA.png 82 bytes {0} [built]
cjs require ./imageA.png [2] (webpack)/~/css-loader!./styleA.css 6:54-77
[2] (webpack)/~/css-loader!./styleA.css 221 bytes {0} [built]
cjs require ./imageA.png [2] (webpack)/~/css-loader!./styleA.css 6:56-79
[2] (webpack)/~/css-loader!./styleA.css 227 bytes {0} [built]
Child extract-text-webpack-plugin:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
chunk {0} extract-text-webpack-plugin-output-filename 1.81 kB [entry] [rendered]
@ -233,48 +232,47 @@ Child extract-text-webpack-plugin:
[0] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./styleB.css 1:27-85
[1] ./imageB.png 82 bytes {0} [built]
cjs require ./imageB.png [2] (webpack)/~/css-loader!./styleB.css 6:54-77
[2] (webpack)/~/css-loader!./styleB.css 221 bytes {0} [built]
cjs require ./imageB.png [2] (webpack)/~/css-loader!./styleB.css 6:56-79
[2] (webpack)/~/css-loader!./styleB.css 227 bytes {0} [built]
Child extract-text-webpack-plugin:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
chunk {0} extract-text-webpack-plugin-output-filename 1.81 kB [entry] [rendered]
chunk {0} extract-text-webpack-plugin-output-filename 1.82 kB [entry] [rendered]
> [2] (webpack)/~/css-loader!./style.css
[0] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./style.css 1:27-85
[1] ./image.png 82 bytes {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:56-78
[2] (webpack)/~/css-loader!./style.css 222 bytes {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:58-80
[2] (webpack)/~/css-loader!./style.css 228 bytes {0} [built]
Child extract-text-webpack-plugin:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
chunk {0} extract-text-webpack-plugin-output-filename 2.19 kB [entry] [rendered]
chunk {0} extract-text-webpack-plugin-output-filename 2.21 kB [entry] [rendered]
> [4] (webpack)/~/css-loader!./styleC.css
[0] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [1] (webpack)/~/css-loader!./style.css 1:27-85
cjs require ./../../node_modules/css-loader/lib/css-base.js [4] (webpack)/~/css-loader!./styleC.css 1:27-85
[1] (webpack)/~/css-loader!./style.css 222 bytes {0} [built]
[1] (webpack)/~/css-loader!./style.css 228 bytes {0} [built]
cjs require -!./../../node_modules/css-loader/index.js!./style.css [4] (webpack)/~/css-loader!./styleC.css 3:10-75
[2] ./imageC.png 82 bytes {0} [built]
cjs require ./imageC.png [4] (webpack)/~/css-loader!./styleC.css 6:54-77
cjs require ./imageC.png [4] (webpack)/~/css-loader!./styleC.css 6:56-79
[3] ./image.png 82 bytes {0} [built]
cjs require ./image.png [1] (webpack)/~/css-loader!./style.css 6:56-78
[4] (webpack)/~/css-loader!./styleC.css 302 bytes {0} [built]
cjs require ./image.png [1] (webpack)/~/css-loader!./style.css 6:58-80
[4] (webpack)/~/css-loader!./styleC.css 308 bytes {0} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 76b12a0a76d4a3402d97
Version: webpack 2.1.0-beta.25
Time: 1287ms
Hash: b69f00fe012298ef7773
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
C.js 531 bytes 2 [emitted] C
C.js 541 bytes 2 [emitted] C
d090b6fba0f6d326d282a19146ff54a7.png 120 bytes [emitted]
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
c2a2f62d69330b7d787782f5010f9d13.png 120 bytes [emitted]
B.js 71 bytes 0 [emitted] B
A.js 70 bytes 1 [emitted] A
16155c689e517682064c99893cb832cc.png 120 bytes [emitted]
commons.js 1.34 kB 3 [emitted] commons
commons.js 1.39 kB 3 [emitted] commons
A.css 59 bytes 1 [emitted] A
B.css 59 bytes 0 [emitted] B
C.css 120 bytes 2 [emitted] C
@ -282,21 +280,21 @@ c2a2f62d69330b7d787782f5010f9d13.png 120 bytes [emitted]
Entrypoint A = commons.js commons.css A.js A.css
Entrypoint B = commons.js commons.css B.js B.css
Entrypoint C = C.js C.css
chunk {0} B.js, B.css (B) 90 bytes {3} [initial] [rendered]
chunk {0} B.js, B.css (B) 92 bytes {3} [initial] [rendered]
> B [5] ./b.js
[2] ./styleB.css 41 bytes {0} [built]
cjs require ./styleB.css [5] ./b.js 2:0-23
[5] ./b.js 49 bytes {0} [built]
chunk {1} A.js, A.css (A) 90 bytes {3} [initial] [rendered]
[5] ./b.js 51 bytes {0} [built]
chunk {1} A.js, A.css (A) 92 bytes {3} [initial] [rendered]
> A [4] ./a.js
[1] ./styleA.css 41 bytes {1} [built]
cjs require ./styleA.css [4] ./a.js 2:0-23
[4] ./a.js 49 bytes {1} [built]
chunk {2} C.js, C.css (C) 66 bytes [entry] [rendered]
[4] ./a.js 51 bytes {1} [built]
chunk {2} C.js, C.css (C) 67 bytes [entry] [rendered]
> C [6] ./c.js
[3] ./styleC.css 41 bytes {2} [built]
cjs require ./styleC.css [6] ./c.js 1:0-23
[6] ./c.js 25 bytes {2} [built]
[6] ./c.js 26 bytes {2} [built]
chunk {3} commons.js, commons.css (commons) 41 bytes [entry] [rendered]
[0] ./style.css 41 bytes {3} [built]
cjs require ./style.css [4] ./a.js 1:0-22

View File

@ -164,6 +164,9 @@ module.exports = {
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".chunk.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -177,12 +180,14 @@ module.exports = {
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -196,11 +201,13 @@ module.exports = {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -255,9 +262,9 @@ webpackJsonp([2],{
/***/ function(module, exports, __webpack_require__) {
var common = __webpack_require__(/*! ./common */ 1);
__webpack_require__.e/* require */(0).catch(function(err) { __webpack_require__.oe(err); }).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./shared */ 0)]; (function(shared) {
__webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./shared */ 0)]; (function(shared) {
shared("This is page A");
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
/***/ }
@ -278,10 +285,10 @@ webpackJsonp([1],{
/***/ function(module, exports, __webpack_require__) {
var common = __webpack_require__(/*! ./common */ 1);
__webpack_require__.e/* nsure */(0/* duplicate */).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
__webpack_require__.e/* require.ensure */(0/* duplicate */).then((function(require) {
var shared = __webpack_require__(/*! ./shared */ 0);
shared("This is page B");
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
/***/ }
@ -314,29 +321,28 @@ module.exports = function(msg) {
## Uncompressed
```
Hash: 8f412be4af558f9cbd3b
Version: webpack 2.1.0-beta.25
Time: 148ms
Hash: 8ccc79cdf2183770dc18
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.chunk.js 331 bytes 0 [emitted]
pageB.bundle.js 529 bytes 1 [emitted] pageB
pageA.bundle.js 565 bytes 2 [emitted] pageA
commons.js 5.57 kB 3 [emitted] commons
0.chunk.js 334 bytes 0 [emitted]
pageB.bundle.js 518 bytes 1 [emitted] pageB
pageA.bundle.js 544 bytes 2 [emitted] pageA
commons.js 5.78 kB 3 [emitted] commons
Entrypoint pageA = commons.js pageA.bundle.js
Entrypoint pageB = commons.js pageB.bundle.js
chunk {0} 0.chunk.js 88 bytes {2} {1} [rendered]
chunk {0} 0.chunk.js 91 bytes {1} {2} [rendered]
> duplicate [2] ./pageA.js 2:0-4:2
> duplicate [3] ./pageB.js 2:0-5:2
[0] ./shared.js 88 bytes {0} [built]
[0] ./shared.js 91 bytes {0} [built]
amd require ./shared [2] ./pageA.js 2:0-4:2
require.ensure item ./shared [3] ./pageB.js 2:0-5:2
cjs require ./shared [3] ./pageB.js 3:14-33
chunk {1} pageB.bundle.js (pageB) 148 bytes {3} [initial] [rendered]
chunk {1} pageB.bundle.js (pageB) 152 bytes {3} [initial] [rendered]
> pageB [3] ./pageB.js
[3] ./pageB.js 148 bytes {1} [built]
chunk {2} pageA.bundle.js (pageA) 105 bytes {3} [initial] [rendered]
[3] ./pageB.js 152 bytes {1} [built]
chunk {2} pageA.bundle.js (pageA) 108 bytes {3} [initial] [rendered]
> pageA [2] ./pageA.js
[2] ./pageA.js 105 bytes {2} [built]
[2] ./pageA.js 108 bytes {2} [built]
chunk {3} commons.js (commons) 26 bytes [entry] [rendered]
[1] ./common.js 26 bytes {3} [built]
cjs require ./common [0] ./shared.js 1:13-32
@ -347,29 +353,28 @@ chunk {3} commons.js (commons) 26 bytes [entry] [rendered]
## Minimized (uglify-js, no zip)
```
Hash: 8f412be4af558f9cbd3b
Version: webpack 2.1.0-beta.25
Time: 279ms
Hash: 8ccc79cdf2183770dc18
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.chunk.js 80 bytes 0 [emitted]
pageB.bundle.js 146 bytes 1 [emitted] pageB
pageA.bundle.js 163 bytes 2 [emitted] pageA
commons.js 1.37 kB 3 [emitted] commons
pageB.bundle.js 130 bytes 1 [emitted] pageB
pageA.bundle.js 147 bytes 2 [emitted] pageA
commons.js 1.41 kB 3 [emitted] commons
Entrypoint pageA = commons.js pageA.bundle.js
Entrypoint pageB = commons.js pageB.bundle.js
chunk {0} 0.chunk.js 88 bytes {2} {1} [rendered]
chunk {0} 0.chunk.js 91 bytes {1} {2} [rendered]
> duplicate [2] ./pageA.js 2:0-4:2
> duplicate [3] ./pageB.js 2:0-5:2
[0] ./shared.js 88 bytes {0} [built]
[0] ./shared.js 91 bytes {0} [built]
amd require ./shared [2] ./pageA.js 2:0-4:2
require.ensure item ./shared [3] ./pageB.js 2:0-5:2
cjs require ./shared [3] ./pageB.js 3:14-33
chunk {1} pageB.bundle.js (pageB) 148 bytes {3} [initial] [rendered]
chunk {1} pageB.bundle.js (pageB) 152 bytes {3} [initial] [rendered]
> pageB [3] ./pageB.js
[3] ./pageB.js 148 bytes {1} [built]
chunk {2} pageA.bundle.js (pageA) 105 bytes {3} [initial] [rendered]
[3] ./pageB.js 152 bytes {1} [built]
chunk {2} pageA.bundle.js (pageA) 108 bytes {3} [initial] [rendered]
> pageA [2] ./pageA.js
[2] ./pageA.js 105 bytes {2} [built]
[2] ./pageA.js 108 bytes {2} [built]
chunk {3} commons.js (commons) 26 bytes [entry] [rendered]
[1] ./common.js 26 bytes {3} [built]
cjs require ./common [0] ./shared.js 1:13-32

View File

@ -102,6 +102,9 @@ require.ensure(["b"], function(require) {
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -115,12 +118,14 @@ require.ensure(["b"], function(require) {
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -134,11 +139,13 @@ require.ensure(["b"], function(require) {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -191,24 +198,24 @@ require.ensure(["b"], function(require) {
var a = __webpack_require__(/*! a */ 2);
__webpack_require__.e/* nsure */(0/*! my own chunk */).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
__webpack_require__.e/* require.ensure */(0/*! my own chunk */).then((function(require) {
// a named chunk
var c = __webpack_require__(/*! c */ 3);
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
__webpack_require__.e/* nsure */(0/*! my own chunk */).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
__webpack_require__.e/* require.ensure */(0/*! my own chunk */).then((function(require) {
// another chunk with the same name
var d = __webpack_require__(/*! d */ 1);
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
__webpack_require__.e/* nsure */(0/*! my own chunk */).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
__webpack_require__.e/* require.ensure */(0/*! my own chunk */).then((function(require) {
// the same again
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
__webpack_require__.e/* nsure */(1).catch(function(err) { __webpack_require__.oe(err); }).then((function(require) {
__webpack_require__.e/* require.ensure */(1).then((function(require) {
// chunk without name
var d = __webpack_require__(/*! d */ 1);
}).bind(null, __webpack_require__));
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
/***/ }
@ -290,13 +297,12 @@ webpackJsonp([1],[
## Uncompressed
```
Hash: e76dc621f72ec81020de
Version: webpack 2.1.0-beta.25
Time: 162ms
Hash: 506a07f004399c29a7c8
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 584 bytes 0, 1 [emitted] my own chunk
1.output.js 389 bytes 1 [emitted]
output.js 6.6 kB 2 [emitted] main
output.js 6.77 kB 2 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (my own chunk) 33 bytes {2} [rendered]
> my own chunk [4] ./example.js 3:0-6:18
@ -320,23 +326,22 @@ chunk {1} 1.output.js 22 bytes {2} [rendered]
[1] ./~/d.js 11 bytes {0} {1} [built]
cjs require d [4] ./example.js 10:9-21
cjs require d [4] ./example.js 19:9-21
chunk {2} output.js (main) 432 bytes [entry] [rendered]
chunk {2} output.js (main) 452 bytes [entry] [rendered]
> main [4] ./example.js
[2] ./~/a.js 11 bytes {2} [built]
cjs require a [4] ./example.js 1:8-20
[4] ./example.js 421 bytes {2} [built]
[4] ./example.js 441 bytes {2} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: e76dc621f72ec81020de
Version: webpack 2.1.0-beta.25
Time: 304ms
Hash: 506a07f004399c29a7c8
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.output.js 71 bytes 0, 1 [emitted] my own chunk
1.output.js 52 bytes 1 [emitted]
output.js 1.62 kB 2 [emitted] main
output.js 1.6 kB 2 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (my own chunk) 33 bytes {2} [rendered]
> my own chunk [4] ./example.js 3:0-6:18
@ -360,9 +365,9 @@ chunk {1} 1.output.js 22 bytes {2} [rendered]
[1] ./~/d.js 11 bytes {0} {1} [built]
cjs require d [4] ./example.js 10:9-21
cjs require d [4] ./example.js 19:9-21
chunk {2} output.js (main) 432 bytes [entry] [rendered]
chunk {2} output.js (main) 452 bytes [entry] [rendered]
> main [4] ./example.js
[2] ./~/a.js 11 bytes {2} [built]
cjs require a [4] ./example.js 1:8-20
[4] ./example.js 421 bytes {2} [built]
[4] ./example.js 441 bytes {2} [built]
```

View File

@ -66,11 +66,13 @@ module.exports = function() {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -192,51 +194,49 @@ console.log(getTemplate("b"));
## Uncompressed
```
Hash: 434f1ff7c7a1ef6454f5
Version: webpack 2.1.0-beta.25
Time: 121ms
Hash: 219dcd379f9f54c00e1f
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 4.35 kB 0 [emitted] main
output.js 4.43 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 603 bytes [entry] [rendered]
chunk {0} output.js (main) 613 bytes [entry] [rendered]
> main [4] ./example.js
[0] ./templates/a.js 80 bytes {0} [optional] [built]
[0] ./templates/a.js 82 bytes {0} [optional] [built]
context element ./a [3] ./templates ^\.\/.*$
context element ./a.js [3] ./templates ^\.\/.*$
[1] ./templates/b.js 80 bytes {0} [optional] [built]
[1] ./templates/b.js 82 bytes {0} [optional] [built]
context element ./b [3] ./templates ^\.\/.*$
context element ./b.js [3] ./templates ^\.\/.*$
[2] ./templates/c.js 80 bytes {0} [optional] [built]
[2] ./templates/c.js 82 bytes {0} [optional] [built]
context element ./c [3] ./templates ^\.\/.*$
context element ./c.js [3] ./templates ^\.\/.*$
[3] ./templates ^\.\/.*$ 217 bytes {0} [built]
cjs require context ./templates [4] ./example.js 2:8-44
[4] ./example.js 146 bytes {0} [built]
[4] ./example.js 150 bytes {0} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 434f1ff7c7a1ef6454f5
Version: webpack 2.1.0-beta.25
Time: 236ms
Asset Size Chunks Chunk Names
output.js 1.1 kB 0 [emitted] main
Hash: 219dcd379f9f54c00e1f
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 1.11 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 603 bytes [entry] [rendered]
chunk {0} output.js (main) 613 bytes [entry] [rendered]
> main [4] ./example.js
[0] ./templates/a.js 80 bytes {0} [optional] [built]
[0] ./templates/a.js 82 bytes {0} [optional] [built]
context element ./a [3] ./templates ^\.\/.*$
context element ./a.js [3] ./templates ^\.\/.*$
[1] ./templates/b.js 80 bytes {0} [optional] [built]
[1] ./templates/b.js 82 bytes {0} [optional] [built]
context element ./b [3] ./templates ^\.\/.*$
context element ./b.js [3] ./templates ^\.\/.*$
[2] ./templates/c.js 80 bytes {0} [optional] [built]
[2] ./templates/c.js 82 bytes {0} [optional] [built]
context element ./c [3] ./templates ^\.\/.*$
context element ./c.js [3] ./templates ^\.\/.*$
[3] ./templates ^\.\/.*$ 217 bytes {0} [built]
cjs require context ./templates [4] ./example.js 2:8-44
[4] ./example.js 146 bytes {0} [built]
[4] ./example.js 150 bytes {0} [built]
```
# Code Splitting

View File

@ -67,11 +67,13 @@ module.exports = Math.random();
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -139,35 +141,33 @@ if(a == a2) throw new Error("Cache clear failed :(");
## Uncompressed
```
Hash: 61b465fe869dc6143477
Version: webpack 2.1.0-beta.25
Time: 108ms
Hash: 00060b879bc0621a21be
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 3.13 kB 0 [emitted] main
output.js 3.21 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 314 bytes [entry] [rendered]
chunk {0} output.js (main) 326 bytes [entry] [rendered]
> main [1] ./example.js
[0] ./a.js 31 bytes {0} [built]
cjs require ./a [1] ./example.js 1:8-22
cjs require ./a [1] ./example.js 10:9-23
require.resolve ./a.js [1] ./example.js 4:10-35
[1] ./example.js 283 bytes {0} [built]
[1] ./example.js 295 bytes {0} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 61b465fe869dc6143477
Version: webpack 2.1.0-beta.25
Time: 213ms
Hash: 00060b879bc0621a21be
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
output.js 634 bytes 0 [emitted] main
output.js 644 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 314 bytes [entry] [rendered]
chunk {0} output.js (main) 326 bytes [entry] [rendered]
> main [1] ./example.js
[0] ./a.js 31 bytes {0} [built]
cjs require ./a [1] ./example.js 1:8-22
cjs require ./a [1] ./example.js 10:9-23
require.resolve ./a.js [1] ./example.js 4:10-35
[1] ./example.js 283 bytes {0} [built]
[1] ./example.js 295 bytes {0} [built]
```

View File

@ -107,6 +107,9 @@ module.exports = {
/******/ script.async = true;
/******/ script.timeout = 120000;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = __webpack_require__.p + "" + chunkId + ".js";
/******/ var timeout = setTimeout(onScriptComplete, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
@ -120,12 +123,14 @@ module.exports = {
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ head.appendChild(script);
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ return installedChunks[chunkId][2] = promise;
/******/ installedChunks[chunkId][2] = promise;
/******/ head.appendChild(script);
/******/ return promise;
/******/ };
/******/ // expose the modules object (__webpack_modules__)
@ -139,11 +144,13 @@ module.exports = {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -264,23 +271,22 @@ __webpack_require__(/*! ./vendor2 */ 1);
## Uncompressed
```
Hash: d4f5399f44922b355b26
Version: webpack 2.1.0-beta.25
Time: 133ms
Hash: e9433f5b10cba6978ef2
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
vendor2.js 571 bytes 0 [emitted] vendor2
vendor2.js 573 bytes 0 [emitted] vendor2
pageC.js 232 bytes 1 [emitted] pageC
pageB.js 232 bytes 2 [emitted] pageB
pageA.js 336 bytes 3 [emitted] pageA
vendor1.js 5.95 kB 4 [emitted] vendor1
pageA.js 339 bytes 3 [emitted] pageA
vendor1.js 6.16 kB 4 [emitted] vendor1
Entrypoint vendor1 = vendor1.js
Entrypoint vendor2 = vendor1.js vendor2.js
Entrypoint pageA = vendor1.js vendor2.js pageA.js
Entrypoint pageB = vendor1.js vendor2.js pageB.js
Entrypoint pageC = vendor1.js vendor2.js pageC.js
chunk {0} vendor2.js (vendor2) 78 bytes {4} [initial] [rendered]
chunk {0} vendor2.js (vendor2) 80 bytes {4} [initial] [rendered]
> vendor2 [6] multi vendor2
[1] ./vendor2.js 50 bytes {0} [built]
[1] ./vendor2.js 52 bytes {0} [built]
cjs require ./vendor2 [2] ./pageA.js 3:0-20
single entry ./vendor2 [6] multi vendor2
[6] multi vendor2 28 bytes {0} [built]
@ -290,9 +296,9 @@ chunk {1} pageC.js (pageC) 25 bytes {0} [initial] [rendered]
chunk {2} pageB.js (pageB) 25 bytes {0} [initial] [rendered]
> pageB [3] ./pageB.js
[3] ./pageB.js 25 bytes {2} [built]
chunk {3} pageA.js (pageA) 70 bytes {0} [initial] [rendered]
chunk {3} pageA.js (pageA) 73 bytes {0} [initial] [rendered]
> pageA [2] ./pageA.js
[2] ./pageA.js 70 bytes {3} [built]
[2] ./pageA.js 73 bytes {3} [built]
chunk {4} vendor1.js (vendor1) 55 bytes [entry] [rendered]
> vendor1 [5] multi vendor1
[0] ./vendor1.js 27 bytes {4} [built]
@ -305,23 +311,22 @@ chunk {4} vendor1.js (vendor1) 55 bytes [entry] [rendered]
## Minimized (uglify-js, no zip)
```
Hash: d4f5399f44922b355b26
Version: webpack 2.1.0-beta.25
Time: 280ms
Hash: e9433f5b10cba6978ef2
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
vendor2.js 102 bytes 0 [emitted] vendor2
pageC.js 59 bytes 1 [emitted] pageC
pageB.js 59 bytes 2 [emitted] pageB
pageA.js 71 bytes 3 [emitted] pageA
vendor1.js 1.41 kB 4 [emitted] vendor1
vendor1.js 1.46 kB 4 [emitted] vendor1
Entrypoint vendor1 = vendor1.js
Entrypoint vendor2 = vendor1.js vendor2.js
Entrypoint pageA = vendor1.js vendor2.js pageA.js
Entrypoint pageB = vendor1.js vendor2.js pageB.js
Entrypoint pageC = vendor1.js vendor2.js pageC.js
chunk {0} vendor2.js (vendor2) 78 bytes {4} [initial] [rendered]
chunk {0} vendor2.js (vendor2) 80 bytes {4} [initial] [rendered]
> vendor2 [6] multi vendor2
[1] ./vendor2.js 50 bytes {0} [built]
[1] ./vendor2.js 52 bytes {0} [built]
cjs require ./vendor2 [2] ./pageA.js 3:0-20
single entry ./vendor2 [6] multi vendor2
[6] multi vendor2 28 bytes {0} [built]
@ -331,9 +336,9 @@ chunk {1} pageC.js (pageC) 25 bytes {0} [initial] [rendered]
chunk {2} pageB.js (pageB) 25 bytes {0} [initial] [rendered]
> pageB [3] ./pageB.js
[3] ./pageB.js 25 bytes {2} [built]
chunk {3} pageA.js (pageA) 70 bytes {0} [initial] [rendered]
chunk {3} pageA.js (pageA) 73 bytes {0} [initial] [rendered]
> pageA [2] ./pageA.js
[2] ./pageA.js 70 bytes {3} [built]
[2] ./pageA.js 73 bytes {3} [built]
chunk {4} vendor1.js (vendor1) 55 bytes [entry] [rendered]
> vendor1 [5] multi vendor1
[0] ./vendor1.js 27 bytes {4} [built]

View File

@ -65,11 +65,13 @@ onmessage = function(event) {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -91,6 +93,9 @@ onmessage = function(event) {
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
```
</details>
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
@ -113,13 +118,14 @@ module.exports = function() {
\********************/
/***/ function(module, exports, __webpack_require__) {
var Worker = __webpack_require__(/*! worker!./worker */ 0);
var Worker = __webpack_require__(/*! worker-loader!./worker */ 0);
var worker = new Worker;
worker.postMessage("b");
worker.onmessage = function(event) {
var templateB = event.data; // "This text was generated by template B"
}
/***/ }
/******/ ]);
```
@ -190,11 +196,13 @@ worker.onmessage = function(event) {
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
@ -216,9 +224,6 @@ worker.onmessage = function(event) {
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
```
</details>
``` javascript
/******/ ([
/* 0 */,
/* 1 */
@ -231,9 +236,9 @@ worker.onmessage = function(event) {
onmessage = function(event) {
var template = event.data;
__webpack_require__.e/* require */(0).catch(function(err) { __webpack_require__.oe(err); }).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../require.context/templates */ 0)("./" + event.data)]; (function(tmpl) {
__webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../require.context/templates */ 0)("./" + event.data)]; (function(tmpl) {
postMessage(tmpl());
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
}
@ -327,77 +332,75 @@ module.exports = function() {
## Uncompressed
```
Hash: e29ee95ab00f5a45ee69
Version: webpack 2.1.0-beta.25
Time: 191ms
Hash: 3f54ef4e4bc5a0766ec6
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.hash.worker.js 1.83 kB [emitted]
hash.worker.js 3.83 kB [emitted]
output.js 3.18 kB 0 [emitted] main
hash.worker.js 3.88 kB [emitted]
output.js 3.27 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 302 bytes [entry] [rendered]
> main [1] ./example.js
[0] (webpack)/~/worker-loader!./worker.js 96 bytes {0} [built]
cjs require worker!./worker [1] ./example.js 1:13-39
[1] ./example.js 201 bytes {0} [built]
chunk {0} output.js (main) 311 bytes [entry] [rendered]
> main [1] ./example.js
[0] (webpack)/~/worker-loader!./worker.js 96 bytes {0} [not cacheable] [built]
cjs require worker-loader!./worker [1] ./example.js 1:13-46
[1] ./example.js 215 bytes {0} [built]
Child worker:
Asset Size Chunks Chunk Names
0.hash.worker.js 1.83 kB 0 [emitted]
hash.worker.js 3.83 kB 1 [emitted] main
hash.worker.js 3.88 kB 1 [emitted] main
Entrypoint main = hash.worker.js
chunk {0} 0.hash.worker.js 457 bytes {1} [rendered]
chunk {0} 0.hash.worker.js 463 bytes {1} [rendered]
> [1] ./worker.js 3:1-5:3
[0] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
amd require context ../require.context/templates [1] ./worker.js 3:1-5:3
[2] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
[2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a [0] ../require.context/templates ^\.\/.*$
context element ./a.js [0] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
[3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b [0] ../require.context/templates ^\.\/.*$
context element ./b.js [0] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
[4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c [0] ../require.context/templates ^\.\/.*$
context element ./c.js [0] ../require.context/templates ^\.\/.*$
chunk {1} hash.worker.js (main) 168 bytes [entry] [rendered]
> main [1] ./worker.js
> main [1] ./worker.js
[1] ./worker.js 168 bytes {1} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: e29ee95ab00f5a45ee69
Version: webpack 2.1.0-beta.25
Time: 329ms
Hash: 3f54ef4e4bc5a0766ec6
Version: webpack 2.2.0-rc.2
Asset Size Chunks Chunk Names
0.hash.worker.js 544 bytes [emitted]
hash.worker.js 842 bytes [emitted]
output.js 655 bytes 0 [emitted] main
hash.worker.js 836 bytes [emitted]
output.js 665 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 302 bytes [entry] [rendered]
> main [1] ./example.js
[0] (webpack)/~/worker-loader!./worker.js 96 bytes {0} [built]
cjs require worker!./worker [1] ./example.js 1:13-39
[1] ./example.js 201 bytes {0} [built]
chunk {0} output.js (main) 311 bytes [entry] [rendered]
> main [1] ./example.js
[0] (webpack)/~/worker-loader!./worker.js 96 bytes {0} [not cacheable] [built]
cjs require worker-loader!./worker [1] ./example.js 1:13-46
[1] ./example.js 215 bytes {0} [built]
Child worker:
Asset Size Chunks Chunk Names
0.hash.worker.js 544 bytes 0 [emitted]
hash.worker.js 842 bytes 1 [emitted] main
hash.worker.js 836 bytes 1 [emitted] main
Entrypoint main = hash.worker.js
chunk {0} 0.hash.worker.js 457 bytes {1} [rendered]
chunk {0} 0.hash.worker.js 463 bytes {1} [rendered]
> [1] ./worker.js 3:1-5:3
[0] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
amd require context ../require.context/templates [1] ./worker.js 3:1-5:3
[2] ../require.context/templates/a.js 80 bytes {0} [optional] [built]
[2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a [0] ../require.context/templates ^\.\/.*$
context element ./a.js [0] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/b.js 80 bytes {0} [optional] [built]
[3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b [0] ../require.context/templates ^\.\/.*$
context element ./b.js [0] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates/c.js 80 bytes {0} [optional] [built]
[4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c [0] ../require.context/templates ^\.\/.*$
context element ./c.js [0] ../require.context/templates ^\.\/.*$
chunk {1} hash.worker.js (main) 168 bytes [entry] [rendered]
> main [1] ./worker.js
> main [1] ./worker.js
[1] ./worker.js 168 bytes {1} [built]
```