update examples

This commit is contained in:
Tobias Koppers 2017-06-05 16:12:12 +02:00
parent 463eeb52e0
commit 3455d7bb02
43 changed files with 3302 additions and 3421 deletions

View File

@ -57,13 +57,13 @@ module.exports = {
```
Hash: 75bcce350a8b5f748873
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.chunk.js 5.76 kB 0 [emitted]
1.chunk.js 401 bytes 1 [emitted]
pageB.bundle.js 6.58 kB 2 [emitted] pageB
pageA.bundle.js 6.55 kB 3 [emitted] pageA
pageC.bundle.js 6.34 kB 4 [emitted] pageC
1.chunk.js 403 bytes 1 [emitted]
pageB.bundle.js 6.42 kB 2 [emitted] pageB
pageA.bundle.js 6.39 kB 3 [emitted] pageA
pageC.bundle.js 6.18 kB 4 [emitted] pageC
Entrypoint pageA = pageA.bundle.js
Entrypoint pageB = pageB.bundle.js
Entrypoint pageC = pageC.bundle.js
@ -102,13 +102,13 @@ chunk {4} pageC.bundle.js (pageC) 70 bytes [entry] [rendered]
```
Hash: 75bcce350a8b5f748873
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.chunk.js 75 bytes 0 [emitted]
1.chunk.js 78 bytes 1 [emitted]
pageB.bundle.js 1.49 kB 2 [emitted] pageB
pageA.bundle.js 1.49 kB 3 [emitted] pageA
pageC.bundle.js 1.47 kB 4 [emitted] pageC
pageB.bundle.js 1.46 kB 2 [emitted] pageB
pageA.bundle.js 1.46 kB 3 [emitted] pageA
pageC.bundle.js 1.44 kB 4 [emitted] pageC
Entrypoint pageA = pageA.bundle.js
Entrypoint pageB = pageB.bundle.js
Entrypoint pageC = pageC.bundle.js

View File

@ -10,30 +10,25 @@ var extraArgs = "";
var targetArgs = global.NO_TARGET_ARGS ? "" : " ./example.js js/output.js";
var displayReasons = global.NO_REASONS ? "" : " --display-reasons --display-used-exports --display-provided-exports";
(function doIt(remainingTimes) {
cp.exec("node ../../bin/webpack.js" + displayReasons + " --display-chunks --display-modules --display-origins --display-entrypoints --output-public-path \"js/\" -p " + extraArgs + targetArgs, function (error, stdout, stderr) {
if(stderr && remainingTimes === 1)
cp.exec("node ../../bin/webpack.js" + displayReasons + " --display-chunks --display-modules --display-origins --display-entrypoints --output-public-path \"js/\" -p " + extraArgs + targetArgs, function(error, stdout, stderr) {
if(stderr)
console.log(stderr);
if(error !== null)
console.log(error);
try {
var readme = tc.replaceResults(fs.readFileSync(require("path").join(process.cwd(), "template.md"), "utf-8"), process.cwd(), stdout.replace(/[\r\n]*$/, ""), "min");
} catch(e) {
console.log(stderr);
throw e;
}
cp.exec("node ../../bin/webpack.js" + displayReasons + " --display-chunks --display-modules --display-origins --display-entrypoints --output-public-path \"js/\" --output-pathinfo " + extraArgs + targetArgs, function(error, stdout, stderr) {
console.log(stdout);
if(stderr)
console.log(stderr);
if (error !== null && remainingTimes === 1)
if(error !== null)
console.log(error);
try {
var readme = tc.replaceResults(fs.readFileSync(require("path").join(process.cwd(), "template.md"), "utf-8"), process.cwd(), stdout.replace(/[\r\n]*$/, ""), "min");
} catch(e) {
console.log(stderr);
throw e;
}
cp.exec("node ../../bin/webpack.js" + displayReasons + " --display-chunks --display-modules --display-origins --display-entrypoints --output-public-path \"js/\" --output-pathinfo " + extraArgs + targetArgs, function (error, stdout, stderr) {
if(remainingTimes === 1)
console.log(stdout);
if(stderr && remainingTimes === 1)
console.log(stderr);
if (error !== null && remainingTimes === 1)
console.log(error);
readme = tc.replaceResults(readme, process.cwd(), stdout.replace(/[\r\n]*$/, ""));
readme = tc.replaceBase(readme);
fs.writeFile("README.md", readme, "utf-8", function() {});
if(remainingTimes > 1)
doIt(remainingTimes - 1);
});
readme = tc.replaceResults(readme, process.cwd(), stdout.replace(/[\r\n]*$/, ""));
readme = tc.replaceBase(readme);
fs.writeFile("README.md", readme, "utf-8", function() {});
});
}(3));
});

View File

@ -62,7 +62,7 @@ module.exports = {
<!-- inlined minimized file "manifest.[chunkhash].js" -->
<script>
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,u){for(var i,a,f,s=0,l=[];s<t.length;s++)a=t[s],o[a]&&l.push(o[a][0]),o[a]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(r&&r(t,c,u);l.length;)l.shift()();if(u)for(s=0;s<u.length;s++)f=n(n.s=u[s]);return f};var t={},o={4:0},c=new Promise(function(e){e()});n.e=function(e){function r(){i.onerror=i.onload=null,clearTimeout(a);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}if(0===o[e])return c;if(o[e])return o[e][2];var t=new Promise(function(n,r){o[e]=[n,r]});o[e][2]=t;var u=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=12e4,n.nc&&i.setAttribute("nonce",n.nc),i.src=n.p+""+{0:"d1359b519c10df30787b",1:"06459c375ec851b0e2ae",2:"4d752abc2fcf569f13fc",3:"8d8564a703e7631bff4b"}[e]+".js";var a=setTimeout(r,12e4);return i.onerror=i.onload=r,u.appendChild(i),t},n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="js/",n.oe=function(e){throw console.error(e),e}}([]);
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var u,i,f,d=0,s=[];d<t.length;d++)i=t[d],o[i]&&s.push(o[i][0]),o[i]=0;for(u in c)Object.prototype.hasOwnProperty.call(c,u)&&(e[u]=c[u]);for(r&&r(t,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)f=n(n.s=a[d]);return f};var t={},o={4:0};n.e=function(e){function r(){u.onerror=u.onload=null,clearTimeout(i);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var c=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=c;var a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.type="text/javascript",u.charset="utf-8",u.async=!0,u.timeout=12e4,n.nc&&u.setAttribute("nonce",n.nc),u.src=n.p+""+{0:"3db3fdaf96bbdadce99a",1:"7c1138cf80dd374c367e",2:"543257d0ba12aefbc71b",3:"15bdf078724c793dc604"}[e]+".js";var i=setTimeout(r,12e4);return u.onerror=u.onload=r,a.appendChild(u),c},n.m=e,n.c=t,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="js/",n.oe=function(e){throw console.error(e),e}}([]);
</script>
<!-- optional when using the CommonChunkPlugin for vendor modules -->
@ -79,11 +79,11 @@ module.exports = {
``` javascript
webpackJsonp([2],[
/* 0 */
/* exports provided: default */
/* all exports used */
/*!*******************!*\
!*** ./vendor.js ***!
\*******************/
/*! exports provided: default */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -94,34 +94,32 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/***/ }),
/* 1 */,
/* 2 */,
/* 3 */,
/* 4 */
/* unknown exports provided */
/* all exports used */
/* 2 */
/*!**********************!*\
!*** multi ./vendor ***!
\**********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./vendor */0);
/***/ })
],[4]);
],[2]);
```
# js/main.[chunkhash].js
``` javascript
webpackJsonp([3],{
/***/ 3:
/* unknown exports provided */
/* all exports used */
webpackJsonp([3],[
/* 0 */,
/* 1 */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -129,13 +127,12 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__vendor__ = __webpack_require__(/*! ./vendor */ 0);
// some module
__webpack_require__.e/* import() */(1).then(__webpack_require__.bind(null, /*! ./async1 */ 1));
__webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, /*! ./async2 */ 2));
__webpack_require__.e/* import() */(1).then(__webpack_require__.bind(null, /*! ./async1 */ 3));
__webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, /*! ./async2 */ 4));
/***/ })
},[3]);
],[1]);
```
# Info
@ -143,67 +140,67 @@ __webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, /*! .
## Uncompressed
```
Hash: ea635224271deb1b32d9
Version: webpack 2.6.0
Hash: 49023fec553882c3285c
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
d1359b519c10df30787b.js 237 bytes 0 [emitted]
06459c375ec851b0e2ae.js 243 bytes 1 [emitted]
common.[chunkhash].js 747 bytes 2 [emitted] common
main.[chunkhash].js 654 bytes 3 [emitted] main
manifest.[chunkhash].js 6.05 kB 4 [emitted] manifest
3db3fdaf96bbdadce99a.js 238 bytes 0 [emitted]
7c1138cf80dd374c367e.js 238 bytes 1 [emitted]
common.[chunkhash].js 732 bytes 2 [emitted] common
main.[chunkhash].js 661 bytes 3 [emitted] main
manifest.[chunkhash].js 5.89 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} d1359b519c10df30787b.js 29 bytes {3} [rendered]
> [3] ./example.js 4:0-18
[2] ./async2.js 29 bytes {0} [built]
import() ./async2 [3] ./example.js 4:0-18
chunk {1} 06459c375ec851b0e2ae.js 29 bytes {3} [rendered]
> [3] ./example.js 3:0-18
[1] ./async1.js 29 bytes {1} [built]
import() ./async1 [3] ./example.js 3:0-18
chunk {0} 3db3fdaf96bbdadce99a.js 29 bytes {3} [rendered]
> [1] ./example.js 4:0-18
[4] ./async2.js 29 bytes {0} [built]
import() ./async2 [1] ./example.js 4:0-18
chunk {1} 7c1138cf80dd374c367e.js 29 bytes {3} [rendered]
> [1] ./example.js 3:0-18
[3] ./async1.js 29 bytes {1} [built]
import() ./async1 [1] ./example.js 3:0-18
chunk {2} common.[chunkhash].js (common) 97 bytes {4} [initial] [rendered]
> common [4] multi ./vendor
> common [2] multi ./vendor
[0] ./vendor.js 69 bytes {2} [built]
[exports: default]
harmony import ./vendor [3] ./example.js 1:0-30
single entry ./vendor [4] multi ./vendor common:100000
[4] multi ./vendor 28 bytes {2} [built]
harmony import ./vendor [1] ./example.js 1:0-30
single entry ./vendor [2] multi ./vendor common:100000
[2] multi ./vendor 28 bytes {2} [built]
chunk {3} main.[chunkhash].js (main) 90 bytes {2} [initial] [rendered]
> main [3] ./example.js
[3] ./example.js 90 bytes {3} [built]
> main [1] ./example.js
[1] ./example.js 90 bytes {3} [built]
chunk {4} manifest.[chunkhash].js (manifest) 0 bytes [entry] [rendered]
```
## Minimized (uglify-js, no zip)
```
Hash: ea635224271deb1b32d9
Version: webpack 2.6.0
Hash: 49023fec553882c3285c
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
d1359b519c10df30787b.js 38 bytes 0 [emitted]
06459c375ec851b0e2ae.js 37 bytes 1 [emitted]
common.[chunkhash].js 152 bytes 2 [emitted] common
main.[chunkhash].js 166 bytes 3 [emitted] main
manifest.[chunkhash].js 1.49 kB 4 [emitted] manifest
3db3fdaf96bbdadce99a.js 38 bytes 0 [emitted]
7c1138cf80dd374c367e.js 38 bytes 1 [emitted]
common.[chunkhash].js 150 bytes 2 [emitted] common
main.[chunkhash].js 165 bytes 3 [emitted] main
manifest.[chunkhash].js 1.46 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} d1359b519c10df30787b.js 29 bytes {3} [rendered]
> [3] ./example.js 4:0-18
[2] ./async2.js 29 bytes {0} [built]
import() ./async2 [3] ./example.js 4:0-18
chunk {1} 06459c375ec851b0e2ae.js 29 bytes {3} [rendered]
> [3] ./example.js 3:0-18
[1] ./async1.js 29 bytes {1} [built]
import() ./async1 [3] ./example.js 3:0-18
chunk {0} 3db3fdaf96bbdadce99a.js 29 bytes {3} [rendered]
> [1] ./example.js 4:0-18
[4] ./async2.js 29 bytes {0} [built]
import() ./async2 [1] ./example.js 4:0-18
chunk {1} 7c1138cf80dd374c367e.js 29 bytes {3} [rendered]
> [1] ./example.js 3:0-18
[3] ./async1.js 29 bytes {1} [built]
import() ./async1 [1] ./example.js 3:0-18
chunk {2} common.[chunkhash].js (common) 97 bytes {4} [initial] [rendered]
> common [4] multi ./vendor
> common [2] multi ./vendor
[0] ./vendor.js 69 bytes {2} [built]
[exports: default]
harmony import ./vendor [3] ./example.js 1:0-30
single entry ./vendor [4] multi ./vendor common:100000
[4] multi ./vendor 28 bytes {2} [built]
harmony import ./vendor [1] ./example.js 1:0-30
single entry ./vendor [2] multi ./vendor common:100000
[2] multi ./vendor 28 bytes {2} [built]
chunk {3} main.[chunkhash].js (main) 90 bytes {2} [initial] [rendered]
> main [3] ./example.js
[3] ./example.js 90 bytes {3} [built]
> main [1] ./example.js
[1] ./example.js 90 bytes {3} [built]
chunk {4} manifest.[chunkhash].js (manifest) 0 bytes [entry] [rendered]
```

View File

@ -66,83 +66,87 @@ body {
## Uncompressed
```
Hash: 2fbd8d3f44d15765df64
Version: webpack 2.6.0
Hash: 5e50fc342714ad0f1d72
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
0.output.js 2.24 kB 0 [emitted]
output.js 15.4 kB 1 [emitted] main
0.output.js 2.43 kB 0 [emitted]
output.js 21.2 kB 1 [emitted] main
style.css 71 bytes 1 [emitted] main
Entrypoint main = output.js style.css
chunk {0} 0.output.js 1.25 kB {1} [rendered]
> [2] ./example.js 2:0-20
[1] ./chunk.js 26 bytes {0} [built]
amd require ./chunk [2] ./example.js 2:0-20
[5] (webpack)/~/css-loader!./style2.css 227 bytes {0} [built]
chunk {0} 0.output.js 1.36 kB {1} [rendered]
> [0] ./example.js 2:0-20
[5] ./chunk.js 26 bytes {0} [built]
amd require ./chunk [0] ./example.js 2:0-20
[6] ./style2.css 1.01 kB {0} [built]
cjs require ./style2.css [5] ./chunk.js 1:0-23
[7] (webpack)/node_modules/css-loader!./style2.css 236 bytes {0} [built]
cjs require !!../../node_modules/css-loader/index.js!./style2.css [6] ./style2.css 4:14-78
[6] ./style2.css 914 bytes {0} [built]
cjs require ./style2.css [1] ./chunk.js 1:0-23
[7] ./image2.png 82 bytes {0} [built]
cjs require ./image2.png [5] (webpack)/~/css-loader!./style2.css 6:58-81
chunk {1} output.js, style.css (main) 8.5 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 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 [5] (webpack)/~/css-loader!./style2.css 1:27-83
cjs require ../../node_modules/css-loader/lib/css-base.js [8] (webpack)/~/css-loader!./style.css 1:27-83
[4] (webpack)/~/style-loader/addStyles.js 6.91 kB {1} [built]
cjs require !../../node_modules/style-loader/addStyles.js [6] ./style2.css 7:13-69
[8] ./image2.png 82 bytes {0} [built]
cjs require ./image2.png [7] (webpack)/node_modules/css-loader!./style2.css 6:58-81
chunk {1} output.js, style.css (main) 14 kB [entry] [rendered]
> main [0] ./example.js
[0] ./example.js 48 bytes {1} [built]
[1] ./style.css 41 bytes {1} [built]
cjs require ./style.css [0] ./example.js 1:0-22
[2] (webpack)/node_modules/style-loader/lib/urls.js 3.01 kB {1} [built]
cjs require ./urls [4] (webpack)/node_modules/style-loader/lib/addStyles.js 44:14-31
[3] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {1} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [7] (webpack)/node_modules/css-loader!./style2.css 1:27-83
cjs require ../../node_modules/css-loader/lib/css-base.js [9] (webpack)/node_modules/css-loader!./style.css 1:27-83
[4] (webpack)/node_modules/style-loader/lib/addStyles.js 8.66 kB {1} [built]
cjs require !../../node_modules/style-loader/lib/addStyles.js [6] ./style2.css 12:13-73
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]
> [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-83
[1] ./image.png 82 bytes {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:58-80
[2] (webpack)/~/css-loader!./style.css 226 bytes {0} [built]
chunk {0} extract-text-webpack-plugin-output-filename 2.58 kB [entry] [rendered]
> [0] (webpack)/node_modules/css-loader!./style.css
[0] (webpack)/node_modules/css-loader!./style.css 235 bytes {0} [built]
[1] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [0] (webpack)/node_modules/css-loader!./style.css 1:27-83
[2] ./image.png 82 bytes {0} [built]
cjs require ./image.png [0] (webpack)/node_modules/css-loader!./style.css 6:58-80
```
## Minimized (uglify-js, no zip)
```
Hash: 4571a05f1dfd87276cbb
Version: webpack 2.6.0
Hash: 59425fc9ef44552557cd
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
0.output.js 309 bytes 0 [emitted]
output.js 5.03 kB 1 [emitted] main
0.output.js 343 bytes 0 [emitted]
output.js 6.55 kB 1 [emitted] main
style.css 61 bytes 1 [emitted] main
Entrypoint main = output.js style.css
chunk {0} 0.output.js 1.23 kB {1} [rendered]
> [2] ./example.js 2:0-20
[1] ./chunk.js 26 bytes {0} [built]
amd require ./chunk [2] ./example.js 2:0-20
[5] (webpack)/~/css-loader!./style2.css 210 bytes {0} [built]
chunk {0} 0.output.js 1.34 kB {1} [rendered]
> [0] ./example.js 2:0-20
[5] ./chunk.js 26 bytes {0} [built]
amd require ./chunk [0] ./example.js 2:0-20
[6] ./style2.css 1.01 kB {0} [built]
cjs require ./style2.css [5] ./chunk.js 1:0-23
[7] (webpack)/node_modules/css-loader!./style2.css 219 bytes {0} [built]
cjs require !!../../node_modules/css-loader/index.js!./style2.css [6] ./style2.css 4:14-78
[6] ./style2.css 914 bytes {0} [built]
cjs require ./style2.css [1] ./chunk.js 1:0-23
[7] ./image2.png 82 bytes {0} [built]
cjs require ./image2.png [5] (webpack)/~/css-loader!./style2.css 6:50-73
chunk {1} output.js, style.css (main) 8.5 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 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 [5] (webpack)/~/css-loader!./style2.css 1:27-83
cjs require ../../node_modules/css-loader/lib/css-base.js [8] (webpack)/~/css-loader!./style.css 1:27-83
[4] (webpack)/~/style-loader/addStyles.js 6.91 kB {1} [built]
cjs require !../../node_modules/style-loader/addStyles.js [6] ./style2.css 7:13-69
[8] ./image2.png 82 bytes {0} [built]
cjs require ./image2.png [7] (webpack)/node_modules/css-loader!./style2.css 6:50-73
chunk {1} output.js, style.css (main) 14 kB [entry] [rendered]
> main [0] ./example.js
[0] ./example.js 48 bytes {1} [built]
[1] ./style.css 41 bytes {1} [built]
cjs require ./style.css [0] ./example.js 1:0-22
[2] (webpack)/node_modules/style-loader/lib/urls.js 3.01 kB {1} [built]
cjs require ./urls [4] (webpack)/node_modules/style-loader/lib/addStyles.js 44:14-31
[3] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {1} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [7] (webpack)/node_modules/css-loader!./style2.css 1:27-83
cjs require ../../node_modules/css-loader/lib/css-base.js [9] (webpack)/node_modules/css-loader!./style.css 1:27-83
[4] (webpack)/node_modules/style-loader/lib/addStyles.js 8.66 kB {1} [built]
cjs require !../../node_modules/style-loader/lib/addStyles.js [6] ./style2.css 12:13-73
Child extract-text-webpack-plugin:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
chunk {0} extract-text-webpack-plugin-output-filename 1.8 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-83
[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 209 bytes {0} [built]
chunk {0} extract-text-webpack-plugin-output-filename 2.56 kB [entry] [rendered]
> [0] (webpack)/node_modules/css-loader!./style.css
[0] (webpack)/node_modules/css-loader!./style.css 218 bytes {0} [built]
[1] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [0] (webpack)/node_modules/css-loader!./style.css 1:27-83
[2] ./image.png 82 bytes {0} [built]
cjs require ./image.png [0] (webpack)/node_modules/css-loader!./style.css 6:50-72
```

View File

@ -53,8 +53,6 @@ getTemplate("b", function(b) {
/******/ 1: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -82,20 +80,21 @@ getTemplate("b", function(b) {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -134,9 +133,6 @@ getTemplate("b", function(b) {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -177,11 +173,11 @@ getTemplate("b", function(b) {
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
function getTemplate(templateName, callback) {
@ -206,11 +202,11 @@ getTemplate("b", function(b) {
webpackJsonp([0],[
/* 0 */,
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!*********************************************!*\
!*** ../require.context/templates ^\.\/.*$ ***!
\*********************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var map = {
@ -239,11 +235,11 @@ webpackContext.id = 1;
/***/ }),
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -252,11 +248,11 @@ module.exports = function() {
/***/ }),
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -265,11 +261,11 @@ module.exports = function() {
/***/ }),
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -286,10 +282,10 @@ module.exports = function() {
```
Hash: 1c46bbe47e8b8a0ee8e2
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 1.85 kB 0 [emitted]
output.js 6.53 kB 1 [emitted] main
output.js 6.37 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 463 bytes {1} [rendered]
> [0] ./example.js 2:1-4:3
@ -302,8 +298,8 @@ chunk {0} 0.output.js 463 bytes {1} [rendered]
context element ./b [1] ../require.context/templates ^\.\/.*$ ./b
context element ./b.js [1] ../require.context/templates ^\.\/.*$ ./b.js
[4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c [1] ../require.context/templates ^\.\/.*$ ./c
context element ./c.js [1] ../require.context/templates ^\.\/.*$ ./c.js
context element ./c [1] ../require.context/templates ^\.\/.*$ ./c
chunk {1} output.js (main) 261 bytes [entry] [rendered]
> main [0] ./example.js
[0] ./example.js 261 bytes {1} [built]
@ -313,10 +309,10 @@ chunk {1} output.js (main) 261 bytes [entry] [rendered]
```
Hash: 1c46bbe47e8b8a0ee8e2
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 544 bytes 0 [emitted]
output.js 1.55 kB 1 [emitted] main
output.js 1.52 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 463 bytes {1} [rendered]
> [0] ./example.js 2:1-4:3

View File

@ -53,8 +53,6 @@ getTemplate("b", function(b) {
/******/ 1: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -82,20 +80,21 @@ getTemplate("b", function(b) {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -134,9 +133,6 @@ getTemplate("b", function(b) {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -177,11 +173,11 @@ getTemplate("b", function(b) {
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
function getTemplate(templateName, callback) {
@ -206,11 +202,11 @@ getTemplate("b", function(b) {
webpackJsonp([0],[
/* 0 */,
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!*********************************************!*\
!*** ../require.context/templates ^\.\/.*$ ***!
\*********************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var map = {
@ -239,11 +235,11 @@ webpackContext.id = 1;
/***/ }),
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -252,11 +248,11 @@ module.exports = function() {
/***/ }),
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -265,11 +261,11 @@ module.exports = function() {
/***/ }),
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -286,10 +282,10 @@ module.exports = function() {
```
Hash: f67ab883501eec17d2fb
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 1.85 kB 0 [emitted]
output.js 6.46 kB 1 [emitted] main
output.js 6.3 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 463 bytes {1} [rendered]
> [0] ./example.js 2:1-4:3
@ -313,10 +309,10 @@ chunk {1} output.js (main) 276 bytes [entry] [rendered]
```
Hash: f67ab883501eec17d2fb
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 544 bytes 0 [emitted]
output.js 1.52 kB 1 [emitted] main
output.js 1.49 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 463 bytes {1} [rendered]
> [0] ./example.js 2:1-4:3

View File

@ -56,8 +56,6 @@ module.exports = "It works";
/******/ 1: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -85,20 +83,21 @@ module.exports = "It works";
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -137,9 +136,6 @@ module.exports = "It works";
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -170,7 +166,7 @@ module.exports = "It works";
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
```
@ -180,11 +176,25 @@ module.exports = "It works";
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!*******************************************!*\
!*** (webpack)/~/bundle-loader!./file.js ***!
\*******************************************/
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! bundle-loader!./file.js */ 1)(function(fileJsExports) {
console.log(fileJsExports);
});
/***/ }),
/* 1 */
/*!******************************************************!*\
!*** (webpack)/node_modules/bundle-loader!./file.js ***!
\******************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var cbs = [],
@ -202,20 +212,6 @@ __webpack_require__.e/* require.ensure */(0).then((function(require) {
}
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! bundle-loader!./file.js */ 0)(function(fileJsExports) {
console.log(fileJsExports);
});
/***/ })
/******/ ]);
```
@ -226,11 +222,11 @@ __webpack_require__(/*! bundle-loader!./file.js */ 0)(function(fileJsExports) {
webpackJsonp([0],{
/***/ 2:
/* unknown exports provided */
/* all exports used */
/*!*****************!*\
!*** ./file.js ***!
\*****************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "It works";
@ -245,39 +241,39 @@ module.exports = "It works";
## Uncompressed
```
Hash: b569890a1f87dd375a1a
Version: webpack 2.6.0
Hash: 0f292e2adbe6929efd48
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 230 bytes 0 [emitted]
output.js 6.86 kB 1 [emitted] main
0.output.js 231 bytes 0 [emitted]
output.js 6.73 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
> [1] (webpack)/node_modules/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
cjs require !!./file.js [1] (webpack)/node_modules/bundle-loader!./file.js 8:8-30
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-loader!./file.js [1] ./example.js 1:0-34
[1] ./example.js 97 bytes {1} [built]
> main [0] ./example.js
[0] ./example.js 97 bytes {1} [built]
[1] (webpack)/node_modules/bundle-loader!./file.js 281 bytes {1} [built]
cjs require bundle-loader!./file.js [0] ./example.js 1:0-34
```
## Minimized (uglify-js, no zip)
```
Hash: b569890a1f87dd375a1a
Version: webpack 2.6.0
Hash: 0f292e2adbe6929efd48
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 58 bytes 0 [emitted]
output.js 1.58 kB 1 [emitted] main
output.js 1.55 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
> [1] (webpack)/node_modules/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
cjs require !!./file.js [1] (webpack)/node_modules/bundle-loader!./file.js 8:8-30
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-loader!./file.js [1] ./example.js 1:0-34
[1] ./example.js 97 bytes {1} [built]
> main [0] ./example.js
[0] ./example.js 97 bytes {1} [built]
[1] (webpack)/node_modules/bundle-loader!./file.js 281 bytes {1} [built]
cjs require bundle-loader!./file.js [0] ./example.js 1:0-34
```

View File

@ -64,8 +64,6 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
/******/ 3: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -93,20 +91,21 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -145,9 +144,6 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -178,7 +174,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 4);
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ })
/************************************************************************/
```
@ -187,39 +183,69 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/*!****************!*\
!*** ./~/a.js ***!
\****************/
/* 0 */,
/* 1 */,
/* 2 */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_a__ = __webpack_require__(/*! a */ 3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_a___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_a__);
__webpack_require__.e/* import() */(2).then(__webpack_require__.bind(null, /*! b */ 5)).then(function(b) {
console.log("b loaded", b);
})
function loadC(name) {
return __webpack_require__(/*! c */ 4)("./" + name);
}
Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
console.log("c/1 and c/2 loaded", arr);
});
/***/ }),
/* 3 */
/*!***************************!*\
!*** ./node_modules/a.js ***!
\***************************/
/*! no static exports found */
/***/ (function(module, exports) {
// module a
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!***************************!*\
!*** ./~/c lazy ^\.\/.*$ ***!
\***************************/
/* 4 */
/*!**************************************!*\
!*** ./node_modules/c lazy ^\.\/.*$ ***!
\**************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var map = {
"./1": [
2,
0,
1
],
"./1.js": [
2,
0,
1
],
"./2": [
3,
1,
0
],
"./2.js": [
3,
1,
0
]
};
@ -235,37 +261,7 @@ webpackAsyncContext.keys = function webpackAsyncContextKeys() {
return Object.keys(map);
};
module.exports = webpackAsyncContext;
webpackAsyncContext.id = 1;
/***/ }),
/* 2 */,
/* 3 */,
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_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/* import() */(2).then(__webpack_require__.bind(null, /*! b */ 5)).then(function(b) {
console.log("b loaded", b);
})
function loadC(name) {
return __webpack_require__(/*! c */ 1)("./" + name);
}
Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
console.log("c/1 and c/2 loaded", arr);
});
webpackAsyncContext.id = 4;
/***/ })
/******/ ]);
@ -277,65 +273,65 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
## Uncompressed
```
Hash: d615402477252ba51b19
Version: webpack 2.6.0
Hash: f2701c90a6d1597932b5
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 218 bytes 0 [emitted]
1.output.js 218 bytes 1 [emitted]
2.output.js 210 bytes 2 [emitted]
output.js 7.65 kB 3 [emitted] main
0.output.js 258 bytes 0 [emitted]
1.output.js 249 bytes 1 [emitted]
2.output.js 244 bytes 2 [emitted]
output.js 7.55 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]
context element ./2 [1] ./~/c lazy ^\.\/.*$ ./2
context element ./2.js [1] ./~/c lazy ^\.\/.*$ ./2.js
[1] ./node_modules/c/2.js 13 bytes {0} [optional] [built]
context element ./2 [4] ./node_modules/c lazy ^\.\/.*$ ./2
context element ./2.js [4] ./node_modules/c lazy ^\.\/.*$ ./2.js
chunk {1} 1.output.js 13 bytes {3} [rendered]
[2] ./~/c/1.js 13 bytes {1} [optional] [built]
context element ./1 [1] ./~/c lazy ^\.\/.*$ ./1
context element ./1.js [1] ./~/c lazy ^\.\/.*$ ./1.js
[0] ./node_modules/c/1.js 13 bytes {1} [optional] [built]
context element ./1 [4] ./node_modules/c lazy ^\.\/.*$ ./1
context element ./1.js [4] ./node_modules/c lazy ^\.\/.*$ ./1.js
chunk {2} 2.output.js 11 bytes {3} [rendered]
> [4] ./example.js 3:0-11
[5] ./~/b.js 11 bytes {2} [built]
import() b [4] ./example.js 3:0-11
> [2] ./example.js 3:0-11
[5] ./node_modules/b.js 11 bytes {2} [built]
import() b [2] ./example.js 3:0-11
chunk {3} output.js (main) 427 bytes [entry] [rendered]
> main [4] ./example.js
[0] ./~/a.js 11 bytes {3} [built]
> main [2] ./example.js
[2] ./example.js 256 bytes {3} [built]
[3] ./node_modules/a.js 11 bytes {3} [built]
[no exports used]
harmony import a [4] ./example.js 1:0-18
[1] ./~/c lazy ^\.\/.*$ 160 bytes {3} [built]
import() context lazy c [4] ./example.js 8:8-27
[4] ./example.js 256 bytes {3} [built]
harmony import a [2] ./example.js 1:0-18
[4] ./node_modules/c lazy ^\.\/.*$ 160 bytes {3} [built]
import() context lazy c [2] ./example.js 8:8-27
```
## Minimized (uglify-js, no zip)
```
Hash: d615402477252ba51b19
Version: webpack 2.6.0
Hash: f2701c90a6d1597932b5
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 38 bytes 0 [emitted]
1.output.js 38 bytes 1 [emitted]
0.output.js 37 bytes 0 [emitted]
1.output.js 36 bytes 1 [emitted]
2.output.js 38 bytes 2 [emitted]
output.js 1.93 kB 3 [emitted] main
output.js 1.9 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]
context element ./2 [1] ./~/c lazy ^\.\/.*$ ./2
context element ./2.js [1] ./~/c lazy ^\.\/.*$ ./2.js
[1] ./node_modules/c/2.js 13 bytes {0} [optional] [built]
context element ./2 [4] ./node_modules/c lazy ^\.\/.*$ ./2
context element ./2.js [4] ./node_modules/c lazy ^\.\/.*$ ./2.js
chunk {1} 1.output.js 13 bytes {3} [rendered]
[2] ./~/c/1.js 13 bytes {1} [optional] [built]
context element ./1 [1] ./~/c lazy ^\.\/.*$ ./1
context element ./1.js [1] ./~/c lazy ^\.\/.*$ ./1.js
[0] ./node_modules/c/1.js 13 bytes {1} [optional] [built]
context element ./1 [4] ./node_modules/c lazy ^\.\/.*$ ./1
context element ./1.js [4] ./node_modules/c lazy ^\.\/.*$ ./1.js
chunk {2} 2.output.js 11 bytes {3} [rendered]
> [4] ./example.js 3:0-11
[5] ./~/b.js 11 bytes {2} [built]
import() b [4] ./example.js 3:0-11
> [2] ./example.js 3:0-11
[5] ./node_modules/b.js 11 bytes {2} [built]
import() b [2] ./example.js 3:0-11
chunk {3} output.js (main) 427 bytes [entry] [rendered]
> main [4] ./example.js
[0] ./~/a.js 11 bytes {3} [built]
> main [2] ./example.js
[2] ./example.js 256 bytes {3} [built]
[3] ./node_modules/a.js 11 bytes {3} [built]
[no exports used]
harmony import a [4] ./example.js 1:0-18
[1] ./~/c lazy ^\.\/.*$ 160 bytes {3} [built]
import() context lazy c [4] ./example.js 8:8-27
[4] ./example.js 256 bytes {3} [built]
harmony import a [2] ./example.js 1:0-18
[4] ./node_modules/c lazy ^\.\/.*$ 160 bytes {3} [built]
import() context lazy c [2] ./example.js 8:8-27
```

View File

@ -71,8 +71,6 @@ export default foo;
/******/ 3: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -100,20 +98,21 @@ export default foo;
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -152,9 +151,6 @@ export default foo;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -185,7 +181,7 @@ export default foo;
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 4);
/******/ return __webpack_require__(__webpack_require__.s = 3);
/******/ })
/************************************************************************/
```
@ -194,37 +190,66 @@ export default foo;
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/* 0 */,
/* 1 */,
/* 2 */,
/* 3 */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
async function getTemplate(templateName) {
try {
let template = await __webpack_require__(/*! ./templates */ 4)(`./${templateName}`);
console.log(template);
} catch(err) {
console.error("template error");
return new Error(err);
}
}
getTemplate("foo");
getTemplate("bar");
getTemplate("baz");
/***/ }),
/* 4 */
/*!*********************************!*\
!*** ./templates lazy ^\.\/.*$ ***!
\*********************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var map = {
"./bar": [
1,
0,
2
],
"./bar.js": [
1,
0,
2
],
"./baz": [
2,
1,
1
],
"./baz.js": [
2,
1,
1
],
"./foo": [
3,
2,
0
],
"./foo.js": [
3,
2,
0
]
};
@ -240,36 +265,7 @@ webpackAsyncContext.keys = function webpackAsyncContextKeys() {
return Object.keys(map);
};
module.exports = webpackAsyncContext;
webpackAsyncContext.id = 0;
/***/ }),
/* 1 */,
/* 2 */,
/* 3 */,
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ (function(module, exports, __webpack_require__) {
async function getTemplate(templateName) {
try {
let template = await __webpack_require__(/*! ./templates */ 0)(`./${templateName}`);
console.log(template);
} catch(err) {
console.error("template error");
return new Error(err);
}
}
getTemplate("foo");
getTemplate("bar");
getTemplate("baz");
webpackAsyncContext.id = 4;
/***/ })
/******/ ]);
@ -280,68 +276,68 @@ getTemplate("baz");
## Uncompressed
```
Hash: 0d608a65d597e766b156
Version: webpack 2.6.0
Hash: 6f07710827408f86ab81
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 442 bytes 0 [emitted]
1.output.js 442 bytes 1 [emitted]
2.output.js 448 bytes 2 [emitted]
output.js 7.24 kB 3 [emitted] main
0.output.js 444 bytes 0 [emitted]
1.output.js 450 bytes 1 [emitted]
2.output.js 441 bytes 2 [emitted]
output.js 7.08 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]
[2] ./templates/foo.js 41 bytes {0} [optional] [built]
[exports: default]
context element ./foo [0] ./templates lazy ^\.\/.*$ ./foo
context element ./foo.js [0] ./templates lazy ^\.\/.*$ ./foo.js
context element ./foo [4] ./templates lazy ^\.\/.*$ ./foo
context element ./foo.js [4] ./templates lazy ^\.\/.*$ ./foo.js
chunk {1} 1.output.js 41 bytes {3} [rendered]
[2] ./templates/baz.js 41 bytes {1} [optional] [built]
[1] ./templates/baz.js 41 bytes {1} [optional] [built]
[exports: default]
context element ./baz [0] ./templates lazy ^\.\/.*$ ./baz
context element ./baz.js [0] ./templates lazy ^\.\/.*$ ./baz.js
context element ./baz [4] ./templates lazy ^\.\/.*$ ./baz
context element ./baz.js [4] ./templates lazy ^\.\/.*$ ./baz.js
chunk {2} 2.output.js 41 bytes {3} [rendered]
[1] ./templates/bar.js 41 bytes {2} [optional] [built]
[0] ./templates/bar.js 41 bytes {2} [optional] [built]
[exports: default]
context element ./bar [0] ./templates lazy ^\.\/.*$ ./bar
context element ./bar.js [0] ./templates lazy ^\.\/.*$ ./bar.js
context element ./bar [4] ./templates lazy ^\.\/.*$ ./bar
context element ./bar.js [4] ./templates lazy ^\.\/.*$ ./bar.js
chunk {3} output.js (main) 456 bytes [entry] [rendered]
> main [4] ./example.js
[0] ./templates lazy ^\.\/.*$ 160 bytes {3} [optional] [built]
import() context lazy ./templates [4] ./example.js 3:23-60
[4] ./example.js 296 bytes {3} [built]
> main [3] ./example.js
[3] ./example.js 296 bytes {3} [built]
[4] ./templates lazy ^\.\/.*$ 160 bytes {3} [optional] [built]
import() context lazy ./templates [3] ./example.js 3:23-60
```
## Minimized (uglify-js, no zip)
```
Hash: 0d608a65d597e766b156
Version: webpack 2.6.0
Hash: 6f07710827408f86ab81
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 117 bytes 0 [emitted]
1.output.js 117 bytes 1 [emitted]
2.output.js 116 bytes 2 [emitted]
output.js 6.92 kB 3 [emitted] main
1.output.js 116 bytes 1 [emitted]
2.output.js 115 bytes 2 [emitted]
output.js 6.76 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]
[2] ./templates/foo.js 41 bytes {0} [optional] [built]
[exports: default]
context element ./foo [0] ./templates lazy ^\.\/.*$ ./foo
context element ./foo.js [0] ./templates lazy ^\.\/.*$ ./foo.js
context element ./foo [4] ./templates lazy ^\.\/.*$ ./foo
context element ./foo.js [4] ./templates lazy ^\.\/.*$ ./foo.js
chunk {1} 1.output.js 41 bytes {3} [rendered]
[2] ./templates/baz.js 41 bytes {1} [optional] [built]
[1] ./templates/baz.js 41 bytes {1} [optional] [built]
[exports: default]
context element ./baz [0] ./templates lazy ^\.\/.*$ ./baz
context element ./baz.js [0] ./templates lazy ^\.\/.*$ ./baz.js
context element ./baz [4] ./templates lazy ^\.\/.*$ ./baz
context element ./baz.js [4] ./templates lazy ^\.\/.*$ ./baz.js
chunk {2} 2.output.js 41 bytes {3} [rendered]
[1] ./templates/bar.js 41 bytes {2} [optional] [built]
[0] ./templates/bar.js 41 bytes {2} [optional] [built]
[exports: default]
context element ./bar [0] ./templates lazy ^\.\/.*$ ./bar
context element ./bar.js [0] ./templates lazy ^\.\/.*$ ./bar.js
context element ./bar [4] ./templates lazy ^\.\/.*$ ./bar
context element ./bar.js [4] ./templates lazy ^\.\/.*$ ./bar.js
chunk {3} output.js (main) 456 bytes [entry] [rendered]
> main [4] ./example.js
[0] ./templates lazy ^\.\/.*$ 160 bytes {3} [optional] [built]
import() context lazy ./templates [4] ./example.js 3:23-60
[4] ./example.js 296 bytes {3} [built]
> main [3] ./example.js
[3] ./example.js 296 bytes {3} [built]
[4] ./templates lazy ^\.\/.*$ 160 bytes {3} [optional] [built]
import() context lazy ./templates [3] ./example.js 3:23-60
ERROR in output.js from UglifyJs
Unexpected token: keyword (function) [output.js:203,6]
Unexpected token: keyword (function) [output.js:155,6]
```

View File

@ -71,8 +71,6 @@ export default foo;
/******/ 3: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -100,20 +98,21 @@ export default foo;
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -152,9 +151,6 @@ export default foo;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -185,7 +181,7 @@ export default foo;
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 4);
/******/ return __webpack_require__(__webpack_require__.s = 3);
/******/ })
/************************************************************************/
```
@ -195,29 +191,57 @@ export default foo;
``` javascript
/******/ ([
/* 0 */,
/* 1 */
/* unknown exports provided */
/* all exports used */
/* 1 */,
/* 2 */,
/* 3 */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__.e/* import() */(0/*! chunk-foo */).then(__webpack_require__.bind(null, /*! ./templates/foo */ 2)).then(function(foo) {
console.log('foo:', foo);
})
__webpack_require__.e/* require.ensure */(0/*! chunk-foo1 *//* duplicate */).then((function(require) {
var foo = __webpack_require__(/*! ./templates/foo */ 2);
console.log('foo:', foo);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
var createContextVar = "r";
__webpack_require__(/*! ./templates */ 4)("./ba" + createContextVar).then(function(bar) {
console.log('bar:', bar);
})
/***/ }),
/* 4 */
/*!***********************************!*\
!*** ./templates lazy ^\.\/ba.*$ ***!
\***********************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var map = {
"./bar": [
2,
0,
2
],
"./bar.js": [
2,
0,
2
],
"./baz": [
3,
1,
1
],
"./baz.js": [
3,
1,
1
]
};
@ -233,35 +257,7 @@ webpackAsyncContext.keys = function webpackAsyncContextKeys() {
return Object.keys(map);
};
module.exports = webpackAsyncContext;
webpackAsyncContext.id = 1;
/***/ }),
/* 2 */,
/* 3 */,
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__.e/* import() */(0/*! chunk-foo */).then(__webpack_require__.bind(null, /*! ./templates/foo */ 0)).then(function(foo) {
console.log('foo:', foo);
})
__webpack_require__.e/* require.ensure */(0/*! chunk-foo1 *//* duplicate */).then((function(require) {
var foo = __webpack_require__(/*! ./templates/foo */ 0);
console.log('foo:', foo);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
var createContextVar = "r";
__webpack_require__(/*! ./templates */ 1)("./ba" + createContextVar).then(function(bar) {
console.log('bar:', bar);
})
webpackAsyncContext.id = 4;
/***/ })
/******/ ]);
@ -272,69 +268,69 @@ __webpack_require__(/*! ./templates */ 1)("./ba" + createContextVar).then(functi
## Uncompressed
```
Hash: 889feb6a8b47daf56a61
Version: webpack 2.6.0
Hash: 9d034b3ada38a1291aa9
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 439 bytes 0 [emitted] chunk-foo
1.output.js 442 bytes 1 [emitted] chunk-bar-baz2
2.output.js 442 bytes 2 [emitted] chunk-bar-baz0
output.js 7.46 kB 3 [emitted] main
0.output.js 444 bytes 0 [emitted] chunk-foo
1.output.js 450 bytes 1 [emitted] chunk-bar-baz2
2.output.js 441 bytes 2 [emitted] chunk-bar-baz0
output.js 7.3 kB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (chunk-foo) 41 bytes {3} [rendered]
> duplicate chunk-foo [4] ./example.js 1:0-62
> duplicate chunk-foo1 [4] ./example.js 5:0-8:16
[0] ./templates/foo.js 41 bytes {0} [built]
> duplicate chunk-foo [3] ./example.js 1:0-62
> duplicate chunk-foo1 [3] ./example.js 5:0-8:16
[2] ./templates/foo.js 41 bytes {0} [built]
[exports: default]
import() ./templates/foo [4] ./example.js 1:0-62
cjs require ./templates/foo [4] ./example.js 6:11-37
import() ./templates/foo [3] ./example.js 1:0-62
cjs require ./templates/foo [3] ./example.js 6:11-37
chunk {1} 1.output.js (chunk-bar-baz2) 41 bytes {3} [rendered]
[3] ./templates/baz.js 41 bytes {1} [optional] [built]
[1] ./templates/baz.js 41 bytes {1} [optional] [built]
[exports: default]
context element ./baz [1] ./templates lazy ^\.\/ba.*$ ./baz
context element ./baz.js [1] ./templates lazy ^\.\/ba.*$ ./baz.js
context element ./baz [4] ./templates lazy ^\.\/ba.*$ ./baz
context element ./baz.js [4] ./templates lazy ^\.\/ba.*$ ./baz.js
chunk {2} 2.output.js (chunk-bar-baz0) 41 bytes {3} [rendered]
[2] ./templates/bar.js 41 bytes {2} [optional] [built]
[0] ./templates/bar.js 41 bytes {2} [optional] [built]
[exports: default]
context element ./bar [1] ./templates lazy ^\.\/ba.*$ ./bar
context element ./bar.js [1] ./templates lazy ^\.\/ba.*$ ./bar.js
context element ./bar [4] ./templates lazy ^\.\/ba.*$ ./bar
context element ./bar.js [4] ./templates lazy ^\.\/ba.*$ ./bar.js
chunk {3} output.js (main) 580 bytes [entry] [rendered]
> main [4] ./example.js
[1] ./templates lazy ^\.\/ba.*$ 160 bytes {3} [built]
import() context lazy ./templates [4] ./example.js 11:0-84
[4] ./example.js 420 bytes {3} [built]
> main [3] ./example.js
[3] ./example.js 420 bytes {3} [built]
[4] ./templates lazy ^\.\/ba.*$ 160 bytes {3} [built]
import() context lazy ./templates [3] ./example.js 11:0-84
```
## Minimized (uglify-js, no zip)
```
Hash: 889feb6a8b47daf56a61
Version: webpack 2.6.0
Hash: 9d034b3ada38a1291aa9
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 115 bytes 0 [emitted] chunk-foo
1.output.js 117 bytes 1 [emitted] chunk-bar-baz2
2.output.js 117 bytes 2 [emitted] chunk-bar-baz0
output.js 1.86 kB 3 [emitted] main
0.output.js 117 bytes 0 [emitted] chunk-foo
1.output.js 116 bytes 1 [emitted] chunk-bar-baz2
2.output.js 115 bytes 2 [emitted] chunk-bar-baz0
output.js 1.83 kB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (chunk-foo) 41 bytes {3} [rendered]
> duplicate chunk-foo [4] ./example.js 1:0-62
> duplicate chunk-foo1 [4] ./example.js 5:0-8:16
[0] ./templates/foo.js 41 bytes {0} [built]
> duplicate chunk-foo [3] ./example.js 1:0-62
> duplicate chunk-foo1 [3] ./example.js 5:0-8:16
[2] ./templates/foo.js 41 bytes {0} [built]
[exports: default]
import() ./templates/foo [4] ./example.js 1:0-62
cjs require ./templates/foo [4] ./example.js 6:11-37
import() ./templates/foo [3] ./example.js 1:0-62
cjs require ./templates/foo [3] ./example.js 6:11-37
chunk {1} 1.output.js (chunk-bar-baz2) 41 bytes {3} [rendered]
[3] ./templates/baz.js 41 bytes {1} [optional] [built]
[1] ./templates/baz.js 41 bytes {1} [optional] [built]
[exports: default]
context element ./baz [1] ./templates lazy ^\.\/ba.*$ ./baz
context element ./baz.js [1] ./templates lazy ^\.\/ba.*$ ./baz.js
context element ./baz [4] ./templates lazy ^\.\/ba.*$ ./baz
context element ./baz.js [4] ./templates lazy ^\.\/ba.*$ ./baz.js
chunk {2} 2.output.js (chunk-bar-baz0) 41 bytes {3} [rendered]
[2] ./templates/bar.js 41 bytes {2} [optional] [built]
[0] ./templates/bar.js 41 bytes {2} [optional] [built]
[exports: default]
context element ./bar [1] ./templates lazy ^\.\/ba.*$ ./bar
context element ./bar.js [1] ./templates lazy ^\.\/ba.*$ ./bar.js
context element ./bar [4] ./templates lazy ^\.\/ba.*$ ./bar
context element ./bar.js [4] ./templates lazy ^\.\/ba.*$ ./bar.js
chunk {3} output.js (main) 580 bytes [entry] [rendered]
> main [4] ./example.js
[1] ./templates lazy ^\.\/ba.*$ 160 bytes {3} [built]
import() context lazy ./templates [4] ./example.js 11:0-84
[4] ./example.js 420 bytes {3} [built]
> main [3] ./example.js
[3] ./example.js 420 bytes {3} [built]
[4] ./templates lazy ^\.\/ba.*$ 160 bytes {3} [built]
import() context lazy ./templates [3] ./example.js 11:0-84
```

View File

@ -75,8 +75,6 @@ require.ensure(["c"], function(require) {
/******/ 1: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -104,20 +102,21 @@ require.ensure(["c"], function(require) {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -156,9 +155,6 @@ require.ensure(["c"], function(require) {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -189,7 +185,7 @@ require.ensure(["c"], function(require) {
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
```
@ -199,42 +195,42 @@ require.ensure(["c"], function(require) {
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!****************!*\
!*** ./~/b.js ***!
\****************/
/*!***************************!*\
!*** ./node_modules/b.js ***!
\***************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// module b
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!****************!*\
!*** ./~/a.js ***!
\****************/
/***/ (function(module, exports) {
// module a
/***/ }),
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var a = __webpack_require__(/*! a */ 1);
var a = __webpack_require__(/*! a */ 2);
var b = __webpack_require__(/*! b */ 0);
__webpack_require__.e/* require.ensure */(0).then((function(require) {
__webpack_require__(/*! b */ 0).xyz();
var d = __webpack_require__(/*! d */ 4);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
/***/ }),
/* 2 */
/*!***************************!*\
!*** ./node_modules/a.js ***!
\***************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// module a
/***/ })
/******/ ]);
```
@ -247,22 +243,22 @@ webpackJsonp([0],[
/* 1 */,
/* 2 */,
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!****************!*\
!*** ./~/c.js ***!
\****************/
/*!***************************!*\
!*** ./node_modules/c.js ***!
\***************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// module c
/***/ }),
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!****************!*\
!*** ./~/d.js ***!
\****************/
/*!***************************!*\
!*** ./node_modules/d.js ***!
\***************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// module d
@ -282,49 +278,49 @@ webpackJsonp([0],[,,,function(n,c){},function(n,c){}]);
## Uncompressed
```
Hash: 2426d9b9f5a83189d95d
Version: webpack 2.6.0
Hash: 6a2e963878a958fd1aca
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 420 bytes 0 [emitted]
output.js 6.75 kB 1 [emitted] main
0.output.js 488 bytes 0 [emitted]
output.js 6.66 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 22 bytes {1} [rendered]
> [2] ./example.js 3:0-6:2
[3] ./~/c.js 11 bytes {0} [built]
require.ensure item c [2] ./example.js 3:0-6:2
[4] ./~/d.js 11 bytes {0} [built]
cjs require d [2] ./example.js 5:12-24
> [1] ./example.js 3:0-6:2
[3] ./node_modules/c.js 11 bytes {0} [built]
require.ensure item c [1] ./example.js 3:0-6:2
[4] ./node_modules/d.js 11 bytes {0} [built]
cjs require d [1] ./example.js 5:12-24
chunk {1} output.js (main) 166 bytes [entry] [rendered]
> main [2] ./example.js
[0] ./~/b.js 11 bytes {1} [built]
cjs require b [2] ./example.js 2:8-20
cjs require b [2] ./example.js 4:4-16
[1] ./~/a.js 11 bytes {1} [built]
cjs require a [2] ./example.js 1:8-20
[2] ./example.js 144 bytes {1} [built]
> main [1] ./example.js
[0] ./node_modules/b.js 11 bytes {1} [built]
cjs require b [1] ./example.js 2:8-20
cjs require b [1] ./example.js 4:4-16
[1] ./example.js 144 bytes {1} [built]
[2] ./node_modules/a.js 11 bytes {1} [built]
cjs require a [1] ./example.js 1:8-20
```
## Minimized (uglify-js, no zip)
```
Hash: 2426d9b9f5a83189d95d
Version: webpack 2.6.0
Hash: 6a2e963878a958fd1aca
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 55 bytes 0 [emitted]
output.js 1.48 kB 1 [emitted] main
output.js 1.45 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 22 bytes {1} [rendered]
> [2] ./example.js 3:0-6:2
[3] ./~/c.js 11 bytes {0} [built]
require.ensure item c [2] ./example.js 3:0-6:2
[4] ./~/d.js 11 bytes {0} [built]
cjs require d [2] ./example.js 5:12-24
> [1] ./example.js 3:0-6:2
[3] ./node_modules/c.js 11 bytes {0} [built]
require.ensure item c [1] ./example.js 3:0-6:2
[4] ./node_modules/d.js 11 bytes {0} [built]
cjs require d [1] ./example.js 5:12-24
chunk {1} output.js (main) 166 bytes [entry] [rendered]
> main [2] ./example.js
[0] ./~/b.js 11 bytes {1} [built]
cjs require b [2] ./example.js 2:8-20
cjs require b [2] ./example.js 4:4-16
[1] ./~/a.js 11 bytes {1} [built]
cjs require a [2] ./example.js 1:8-20
[2] ./example.js 144 bytes {1} [built]
> main [1] ./example.js
[0] ./node_modules/b.js 11 bytes {1} [built]
cjs require b [1] ./example.js 2:8-20
cjs require b [1] ./example.js 4:4-16
[1] ./example.js 144 bytes {1} [built]
[2] ./node_modules/a.js 11 bytes {1} [built]
cjs require a [1] ./example.js 1:8-20
```

View File

@ -63,9 +63,6 @@ module.exports = 42
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -93,7 +90,7 @@ module.exports = 42
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
```
@ -103,11 +100,11 @@ module.exports = 42
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!*********************!*\
!*** ./cup2.coffee ***!
\*********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
console.log("yeah coffee-script");
@ -117,11 +114,22 @@ module.exports = 42;
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
console.log(__webpack_require__(/*! ./cup1 */ 2));
/***/ }),
/* 2 */
/*!*********************!*\
!*** ./cup1.coffee ***!
\*********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = {
@ -132,17 +140,6 @@ module.exports = {
};
/***/ }),
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ (function(module, exports, __webpack_require__) {
console.log(__webpack_require__(/*! ./cup1 */ 1));
/***/ })
/******/ ]);
```
@ -152,35 +149,35 @@ console.log(__webpack_require__(/*! ./cup1 */ 1));
## Uncompressed
```
Hash: 0fb81f26f70778b1c84a
Version: webpack 2.6.0
Hash: 22e68923dcce75e38966
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 3.45 kB 0 [emitted] main
output.js 3.29 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 206 bytes [entry] [rendered]
> main [2] ./example.js
> main [1] ./example.js
[0] ./cup2.coffee 57 bytes {0} [built]
cjs require ./cup2.coffee [1] ./cup1.coffee 4:12-36
cjs require ./cup2 [1] ./cup1.coffee 5:9-26
[1] ./cup1.coffee 118 bytes {0} [built]
cjs require ./cup1 [2] ./example.js 1:12-29
[2] ./example.js 31 bytes {0} [built]
cjs require ./cup2.coffee [2] ./cup1.coffee 4:12-36
cjs require ./cup2 [2] ./cup1.coffee 5:9-26
[1] ./example.js 31 bytes {0} [built]
[2] ./cup1.coffee 118 bytes {0} [built]
cjs require ./cup1 [1] ./example.js 1:12-29
```
## Minimized (uglify-js, no zip)
```
Hash: 0fb81f26f70778b1c84a
Version: webpack 2.6.0
Hash: 22e68923dcce75e38966
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 666 bytes 0 [emitted] main
output.js 640 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 206 bytes [entry] [rendered]
> main [2] ./example.js
> main [1] ./example.js
[0] ./cup2.coffee 57 bytes {0} [built]
cjs require ./cup2.coffee [1] ./cup1.coffee 4:12-36
cjs require ./cup2 [1] ./cup1.coffee 5:9-26
[1] ./cup1.coffee 118 bytes {0} [built]
cjs require ./cup1 [2] ./example.js 1:12-29
[2] ./example.js 31 bytes {0} [built]
cjs require ./cup2.coffee [2] ./cup1.coffee 4:12-36
cjs require ./cup2 [2] ./cup1.coffee 5:9-26
[1] ./example.js 31 bytes {0} [built]
[2] ./cup1.coffee 118 bytes {0} [built]
cjs require ./cup1 [1] ./example.js 1:12-29
```

View File

@ -104,8 +104,6 @@ module.exports = {
/******/ 4: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -133,20 +131,21 @@ module.exports = {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -185,9 +184,6 @@ module.exports = {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -218,7 +214,7 @@ module.exports = {
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 8);
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ })
/************************************************************************/
```
@ -226,47 +222,45 @@ module.exports = {
</details>
``` javascript
/******/ ({
/***/ 3:
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./vendor1.js ***!
\********************/
/***/ (function(module, exports) {
module.exports = "vendor1";
/***/ }),
/***/ 4:
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./vendor2.js ***!
\********************/
/***/ (function(module, exports) {
module.exports = "vendor2";
/***/ }),
/***/ 8:
/* unknown exports provided */
/* all exports used */
/******/ ([
/* 0 */,
/* 1 */,
/* 2 */
/*!*********************************!*\
!*** multi ./vendor1 ./vendor2 ***!
\*********************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ./vendor1 */3);
module.exports = __webpack_require__(/*! ./vendor2 */4);
/***/ })
/***/ }),
/* 3 */
/*!********************!*\
!*** ./vendor1.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
/******/ });
module.exports = "vendor1";
/***/ }),
/* 4 */
/*!********************!*\
!*** ./vendor2.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "vendor2";
/***/ })
/******/ ]);
```
# js/common.js
@ -274,22 +268,22 @@ module.exports = __webpack_require__(/*! ./vendor2 */4);
``` javascript
webpackJsonp([0],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!*********************!*\
!*** ./utility2.js ***!
\*********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "utility2";
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!*********************!*\
!*** ./utility3.js ***!
\*********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "utility3";
@ -303,31 +297,31 @@ module.exports = "utility3";
``` javascript
webpackJsonp([1],{
/***/ 2:
/* unknown exports provided */
/* all exports used */
/*!*********************!*\
!*** ./utility1.js ***!
\*********************/
/***/ (function(module, exports) {
module.exports = "utility1";
/***/ }),
/***/ 5:
/* unknown exports provided */
/* all exports used */
/*!******************!*\
!*** ./pageA.js ***!
\******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var utility1 = __webpack_require__(/*! ./utility1 */ 2);
var utility1 = __webpack_require__(/*! ./utility1 */ 6);
var utility2 = __webpack_require__(/*! ./utility2 */ 0);
module.exports = "pageA";
/***/ }),
/***/ 6:
/*!*********************!*\
!*** ./utility1.js ***!
\*********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "utility1";
/***/ })
},[5]);
@ -338,12 +332,12 @@ module.exports = "pageA";
``` javascript
webpackJsonp([3],{
/***/ 6:
/* unknown exports provided */
/* all exports used */
/***/ 7:
/*!******************!*\
!*** ./pageB.js ***!
\******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var utility2 = __webpack_require__(/*! ./utility2 */ 0);
@ -353,7 +347,7 @@ module.exports = "pageB";
/***/ })
},[6]);
},[7]);
```
# js/pageC.js
@ -361,12 +355,12 @@ module.exports = "pageB";
``` javascript
webpackJsonp([2],{
/***/ 7:
/* unknown exports provided */
/* all exports used */
/***/ 8:
/*!******************!*\
!*** ./pageC.js ***!
\******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var utility2 = __webpack_require__(/*! ./utility2 */ 0);
@ -376,7 +370,7 @@ module.exports = "pageC";
/***/ })
},[7]);
},[8]);
```
# Info
@ -384,14 +378,14 @@ module.exports = "pageC";
## Uncompressed
```
Hash: 03a4f8b5f1f257f40a63
Version: webpack 2.6.0
Hash: 3b80b7c17398c31e4705
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
common.js 457 bytes 0 [emitted] common
pageA.js 593 bytes 1 [emitted] pageA
pageC.js 373 bytes 2 [emitted] pageC
pageB.js 373 bytes 3 [emitted] pageB
vendor.js 6.85 kB 4 [emitted] vendor
common.js 459 bytes 0 [emitted] common
pageA.js 595 bytes 1 [emitted] pageA
pageC.js 374 bytes 2 [emitted] pageC
pageB.js 374 bytes 3 [emitted] pageB
vendor.js 6.7 kB 4 [emitted] vendor
Entrypoint vendor = vendor.js
Entrypoint pageA = vendor.js common.js pageA.js
Entrypoint pageB = vendor.js common.js pageB.js
@ -399,42 +393,42 @@ Entrypoint pageC = vendor.js common.js pageC.js
chunk {0} common.js (common) 56 bytes {4} [initial] [rendered]
[0] ./utility2.js 28 bytes {0} [built]
cjs require ./utility2 [5] ./pageA.js 2:15-36
cjs require ./utility2 [6] ./pageB.js 1:15-36
cjs require ./utility2 [7] ./pageC.js 1:15-36
cjs require ./utility2 [7] ./pageB.js 1:15-36
cjs require ./utility2 [8] ./pageC.js 1:15-36
[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
cjs require ./utility3 [7] ./pageB.js 2:15-36
cjs require ./utility3 [8] ./pageC.js 2:15-36
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 105 bytes {1} [built]
[6] ./utility1.js 28 bytes {1} [built]
cjs require ./utility1 [5] ./pageA.js 1:15-36
chunk {2} pageC.js (pageC) 105 bytes {0} [initial] [rendered]
> pageC [7] ./pageC.js
[7] ./pageC.js 105 bytes {2} [built]
> pageC [8] ./pageC.js
[8] ./pageC.js 105 bytes {2} [built]
chunk {3} pageB.js (pageB) 105 bytes {0} [initial] [rendered]
> pageB [6] ./pageB.js
[6] ./pageB.js 105 bytes {3} [built]
> pageB [7] ./pageB.js
[7] ./pageB.js 105 bytes {3} [built]
chunk {4} vendor.js (vendor) 94 bytes [entry] [rendered]
> vendor [8] multi ./vendor1 ./vendor2
> vendor [2] multi ./vendor1 ./vendor2
[2] multi ./vendor1 ./vendor2 40 bytes {4} [built]
[3] ./vendor1.js 27 bytes {4} [built]
single entry ./vendor1 [8] multi ./vendor1 ./vendor2 vendor:100000
single entry ./vendor1 [2] multi ./vendor1 ./vendor2 vendor:100000
[4] ./vendor2.js 27 bytes {4} [built]
single entry ./vendor2 [8] multi ./vendor1 ./vendor2 vendor:100001
[8] multi ./vendor1 ./vendor2 40 bytes {4} [built]
single entry ./vendor2 [2] multi ./vendor1 ./vendor2 vendor:100001
```
## Minimized (uglify-js, no zip)
```
Hash: 03a4f8b5f1f257f40a63
Version: webpack 2.6.0
Hash: 3b80b7c17398c31e4705
Version: webpack 3.0.0-rc.0
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.51 kB 4 [emitted] vendor
vendor.js 1.48 kB 4 [emitted] vendor
Entrypoint vendor = vendor.js
Entrypoint pageA = vendor.js common.js pageA.js
Entrypoint pageB = vendor.js common.js pageB.js
@ -442,27 +436,27 @@ Entrypoint pageC = vendor.js common.js pageC.js
chunk {0} common.js (common) 56 bytes {4} [initial] [rendered]
[0] ./utility2.js 28 bytes {0} [built]
cjs require ./utility2 [5] ./pageA.js 2:15-36
cjs require ./utility2 [6] ./pageB.js 1:15-36
cjs require ./utility2 [7] ./pageC.js 1:15-36
cjs require ./utility2 [7] ./pageB.js 1:15-36
cjs require ./utility2 [8] ./pageC.js 1:15-36
[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
cjs require ./utility3 [7] ./pageB.js 2:15-36
cjs require ./utility3 [8] ./pageC.js 2:15-36
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 105 bytes {1} [built]
[6] ./utility1.js 28 bytes {1} [built]
cjs require ./utility1 [5] ./pageA.js 1:15-36
chunk {2} pageC.js (pageC) 105 bytes {0} [initial] [rendered]
> pageC [7] ./pageC.js
[7] ./pageC.js 105 bytes {2} [built]
> pageC [8] ./pageC.js
[8] ./pageC.js 105 bytes {2} [built]
chunk {3} pageB.js (pageB) 105 bytes {0} [initial] [rendered]
> pageB [6] ./pageB.js
[6] ./pageB.js 105 bytes {3} [built]
> pageB [7] ./pageB.js
[7] ./pageB.js 105 bytes {3} [built]
chunk {4} vendor.js (vendor) 94 bytes [entry] [rendered]
> vendor [8] multi ./vendor1 ./vendor2
> vendor [2] multi ./vendor1 ./vendor2
[2] multi ./vendor1 ./vendor2 40 bytes {4} [built]
[3] ./vendor1.js 27 bytes {4} [built]
single entry ./vendor1 [8] multi ./vendor1 ./vendor2 vendor:100000
single entry ./vendor1 [2] multi ./vendor1 ./vendor2 vendor:100000
[4] ./vendor2.js 27 bytes {4} [built]
single entry ./vendor2 [8] multi ./vendor1 ./vendor2 vendor:100001
[8] multi ./vendor1 ./vendor2 40 bytes {4} [built]
single entry ./vendor2 [2] multi ./vendor1 ./vendor2 vendor:100001
```

View File

@ -75,9 +75,6 @@ exports.add = function() {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -105,7 +102,7 @@ exports.add = function() {
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
```
@ -115,11 +112,24 @@ exports.add = function() {
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var inc = __webpack_require__(/*! ./increment */ 1).increment;
var a = 1;
inc(a); // 2
/***/ }),
/* 1 */
/*!**********************!*\
!*** ./increment.js ***!
\**********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var add = __webpack_require__(/*! ./math */ 2).add;
@ -127,26 +137,13 @@ exports.increment = function(val) {
return add(val, 1);
};
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ (function(module, exports, __webpack_require__) {
var inc = __webpack_require__(/*! ./increment */ 0).increment;
var a = 1;
inc(a); // 2
/***/ }),
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!*****************!*\
!*** ./math.js ***!
\*****************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
exports.add = function() {
@ -166,33 +163,33 @@ exports.add = function() {
## Uncompressed
```
Hash: 1318ed7f2e042a045e6d
Version: webpack 2.6.0
Hash: 9407d8cd068b1845b368
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 3.55 kB 0 [emitted] main
output.js 3.39 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 329 bytes [entry] [rendered]
> main [1] ./example.js
[0] ./increment.js 98 bytes {0} [built]
cjs require ./increment [1] ./example.js 1:10-32
[1] ./example.js 69 bytes {0} [built]
> main [0] ./example.js
[0] ./example.js 69 bytes {0} [built]
[1] ./increment.js 98 bytes {0} [built]
cjs require ./increment [0] ./example.js 1:10-32
[2] ./math.js 162 bytes {0} [built]
cjs require ./math [0] ./increment.js 1:10-27
cjs require ./math [1] ./increment.js 1:10-27
```
## Minimized (uglify-js, no zip)
```
Hash: 1318ed7f2e042a045e6d
Version: webpack 2.6.0
Hash: 9407d8cd068b1845b368
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 698 bytes 0 [emitted] main
output.js 672 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 329 bytes [entry] [rendered]
> main [1] ./example.js
[0] ./increment.js 98 bytes {0} [built]
cjs require ./increment [1] ./example.js 1:10-32
[1] ./example.js 69 bytes {0} [built]
> main [0] ./example.js
[0] ./example.js 69 bytes {0} [built]
[1] ./increment.js 98 bytes {0} [built]
cjs require ./increment [0] ./example.js 1:10-32
[2] ./math.js 162 bytes {0} [built]
cjs require ./math [0] ./increment.js 1:10-27
cjs require ./math [1] ./increment.js 1:10-27
```

View File

@ -78,9 +78,6 @@ module.exports = {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -108,7 +105,7 @@ module.exports = {
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
```
@ -118,25 +115,25 @@ module.exports = {
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!*******************!*\
!*** ./style.css ***!
\*******************/
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ./style.css */ 0);
__webpack_require__(/*! ./style.css */ 1);
/***/ }),
/* 1 */
/*!*******************!*\
!*** ./style.css ***!
\*******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ })
/******/ ]);
@ -155,55 +152,55 @@ body {
## Uncompressed
```
Hash: a7b9259b38bc83b8ca98
Version: webpack 2.6.0
Hash: d3955970c7b0655c299a
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
output.js 3.06 kB 0 [emitted] main
output.js 2.9 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
[0] ./style.css 41 bytes {0} [built]
cjs require ./style.css [1] ./example.js 1:0-22
[1] ./example.js 23 bytes {0} [built]
> main [0] ./example.js
[0] ./example.js 23 bytes {0} [built]
[1] ./style.css 41 bytes {0} [built]
cjs require ./style.css [0] ./example.js 1:0-22
Child extract-text-webpack-plugin:
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
Entrypoint undefined = extract-text-webpack-plugin-output-filename
chunk {0} extract-text-webpack-plugin-output-filename 1.81 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-83
[1] ./image.png 82 bytes {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:58-80
[2] (webpack)/~/css-loader!./style.css 222 bytes {0} [built]
chunk {0} extract-text-webpack-plugin-output-filename 2.57 kB [entry] [rendered]
> [0] (webpack)/node_modules/css-loader!./style.css
[0] (webpack)/node_modules/css-loader!./style.css 231 bytes {0} [built]
[1] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [0] (webpack)/node_modules/css-loader!./style.css 1:27-83
[2] ./image.png 82 bytes {0} [built]
cjs require ./image.png [0] (webpack)/node_modules/css-loader!./style.css 6:58-80
```
## Minimized (uglify-js, no zip)
```
Hash: a59e06b8e4c98e831cac
Version: webpack 2.6.0
Hash: 7e35402b768b90e83df1
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
output.js 530 bytes 0 [emitted] main
output.js 504 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]
> main [1] ./example.js
[0] ./style.css 41 bytes {0} [built]
cjs require ./style.css [1] ./example.js 1:0-22
[1] ./example.js 23 bytes {0} [built]
> main [0] ./example.js
[0] ./example.js 23 bytes {0} [built]
[1] ./style.css 41 bytes {0} [built]
cjs require ./style.css [0] ./example.js 1:0-22
Child extract-text-webpack-plugin:
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
Entrypoint undefined = extract-text-webpack-plugin-output-filename
chunk {0} extract-text-webpack-plugin-output-filename 1.8 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-83
[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 209 bytes {0} [built]
chunk {0} extract-text-webpack-plugin-output-filename 2.56 kB [entry] [rendered]
> [0] (webpack)/node_modules/css-loader!./style.css
[0] (webpack)/node_modules/css-loader!./style.css 218 bytes {0} [built]
[1] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [0] (webpack)/node_modules/css-loader!./style.css 1:27-83
[2] ./image.png 82 bytes {0} [built]
cjs require ./image.png [0] (webpack)/node_modules/css-loader!./style.css 6:50-72
```

View File

@ -77,9 +77,6 @@ console.log(require("module"));
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -107,7 +104,7 @@ console.log(require("module"));
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 8);
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ })
/************************************************************************/
```
@ -117,108 +114,108 @@ console.log(require("module"));
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/*!*********************************************!*\
!*** external "alpha_282e8826843b2bb4eeb1" ***!
!*** external "alpha_457b6718a3ff9f8c2d77" ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = alpha_282e8826843b2bb4eeb1;
module.exports = alpha_457b6718a3ff9f8c2d77;
/***/ }),
/* 1 */
/* unknown exports provided */
/*!********************************************!*\
!*** external "beta_282e8826843b2bb4eeb1" ***!
!*** external "beta_457b6718a3ff9f8c2d77" ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = beta_282e8826843b2bb4eeb1;
module.exports = beta_457b6718a3ff9f8c2d77;
/***/ }),
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!**********************************************************************!*\
!*** delegated ./a.js from dll-reference alpha_282e8826843b2bb4eeb1 ***!
\**********************************************************************/
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(0))(0);
console.log(__webpack_require__(/*! ../dll/alpha */ 3));
console.log(__webpack_require__(/*! ../dll/a */ 4));
console.log(__webpack_require__(/*! beta/beta */ 5));
console.log(__webpack_require__(/*! beta/b */ 6));
console.log(__webpack_require__(/*! beta/c */ 7));
console.log(__webpack_require__(/*! module */ 8));
/***/ }),
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!**************************************************************************!*\
!*** delegated ./alpha.js from dll-reference alpha_282e8826843b2bb4eeb1 ***!
!*** delegated ./alpha.js from dll-reference alpha_457b6718a3ff9f8c2d77 ***!
\**************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(0))(1);
/***/ }),
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!*********************************************************************!*\
!*** delegated ./b.js from dll-reference beta_282e8826843b2bb4eeb1 ***!
\*********************************************************************/
/*!**********************************************************************!*\
!*** delegated ./a.js from dll-reference alpha_457b6718a3ff9f8c2d77 ***!
\**********************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(1))(2);
module.exports = (__webpack_require__(0))(2);
/***/ }),
/* 5 */
/* unknown exports provided */
/* all exports used */
/*!************************************************************************!*\
!*** delegated ./beta.js from dll-reference beta_282e8826843b2bb4eeb1 ***!
!*** delegated ./beta.js from dll-reference beta_457b6718a3ff9f8c2d77 ***!
\************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(1))(3);
module.exports = (__webpack_require__(1))(5);
/***/ }),
/* 6 */
/* unknown exports provided */
/* all exports used */
/*!**********************************************************************!*\
!*** delegated ./c.jsx from dll-reference beta_282e8826843b2bb4eeb1 ***!
\**********************************************************************/
/*!*********************************************************************!*\
!*** delegated ./b.js from dll-reference beta_457b6718a3ff9f8c2d77 ***!
\*********************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(1))(4);
module.exports = (__webpack_require__(1))(6);
/***/ }),
/* 7 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************************************************************!*\
!*** delegated ../node_modules/module.js from dll-reference alpha_282e8826843b2bb4eeb1 ***!
\*****************************************************************************************/
/*!**********************************************************************!*\
!*** delegated ./c.jsx from dll-reference beta_457b6718a3ff9f8c2d77 ***!
\**********************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(0))(5);
module.exports = (__webpack_require__(1))(7);
/***/ }),
/* 8 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*!*****************************************************************************************!*\
!*** delegated ../node_modules/module.js from dll-reference alpha_457b6718a3ff9f8c2d77 ***!
\*****************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
console.log(__webpack_require__(/*! ../dll/alpha */ 3));
console.log(__webpack_require__(/*! ../dll/a */ 2));
console.log(__webpack_require__(/*! beta/beta */ 5));
console.log(__webpack_require__(/*! beta/b */ 4));
console.log(__webpack_require__(/*! beta/c */ 6));
console.log(__webpack_require__(/*! module */ 7));
module.exports = (__webpack_require__(0))(3);
/***/ })
/******/ ]);
@ -229,51 +226,51 @@ console.log(__webpack_require__(/*! module */ 7));
## Uncompressed
```
Hash: 164f3c4abb86bb4c4462
Version: webpack 2.6.0
Hash: 1318b8d78d8bb76a968b
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 6.17 kB 0 [emitted] main
output.js 6.01 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 549 bytes [entry] [rendered]
> main [8] ./example.js
[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]
> main [2] ./example.js
[2] ./example.js 213 bytes {0} [built]
[3] delegated ./alpha.js from dll-reference alpha_457b6718a3ff9f8c2d77 42 bytes {0} [not cacheable] [built]
cjs require ../dll/alpha [2] ./example.js 1:12-35
[4] delegated ./a.js from dll-reference alpha_457b6718a3ff9f8c2d77 42 bytes {0} [not cacheable] [built]
cjs require ../dll/a [2] ./example.js 2:12-31
[5] delegated ./beta.js from dll-reference beta_457b6718a3ff9f8c2d77 42 bytes {0} [not cacheable] [built]
cjs require beta/beta [2] ./example.js 4:12-32
[6] delegated ./b.js from dll-reference beta_457b6718a3ff9f8c2d77 42 bytes {0} [not cacheable] [built]
cjs require beta/b [2] ./example.js 5:12-29
[7] delegated ./c.jsx from dll-reference beta_457b6718a3ff9f8c2d77 42 bytes {0} [not cacheable] [built]
cjs require beta/c [2] ./example.js 6:12-29
[8] delegated ../node_modules/module.js from dll-reference alpha_457b6718a3ff9f8c2d77 42 bytes {0} [not cacheable] [built]
cjs require module [2] ./example.js 8:12-29
+ 2 hidden modules
```
## Minimized (uglify-js, no zip)
```
Hash: 164f3c4abb86bb4c4462
Version: webpack 2.6.0
Hash: 1318b8d78d8bb76a968b
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 930 bytes 0 [emitted] main
output.js 904 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 549 bytes [entry] [rendered]
> main [8] ./example.js
[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]
> main [2] ./example.js
[2] ./example.js 213 bytes {0} [built]
[3] delegated ./alpha.js from dll-reference alpha_457b6718a3ff9f8c2d77 42 bytes {0} [not cacheable] [built]
cjs require ../dll/alpha [2] ./example.js 1:12-35
[4] delegated ./a.js from dll-reference alpha_457b6718a3ff9f8c2d77 42 bytes {0} [not cacheable] [built]
cjs require ../dll/a [2] ./example.js 2:12-31
[5] delegated ./beta.js from dll-reference beta_457b6718a3ff9f8c2d77 42 bytes {0} [not cacheable] [built]
cjs require beta/beta [2] ./example.js 4:12-32
[6] delegated ./b.js from dll-reference beta_457b6718a3ff9f8c2d77 42 bytes {0} [not cacheable] [built]
cjs require beta/b [2] ./example.js 5:12-29
[7] delegated ./c.jsx from dll-reference beta_457b6718a3ff9f8c2d77 42 bytes {0} [not cacheable] [built]
cjs require beta/c [2] ./example.js 6:12-29
[8] delegated ../node_modules/module.js from dll-reference alpha_457b6718a3ff9f8c2d77 42 bytes {0} [not cacheable] [built]
cjs require module [2] ./example.js 8:12-29
+ 2 hidden modules
```

View File

@ -35,7 +35,7 @@ module.exports = {
# js/MyDll.alpha.js
``` javascript
var alpha_282e8826843b2bb4eeb1 =
var alpha_457b6718a3ff9f8c2d77 =
```
<details><summary><code>/******/ (function(modules) { /* webpackBootstrap */ })</code></summary>
@ -75,9 +75,6 @@ var alpha_282e8826843b2bb4eeb1 =
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -105,7 +102,7 @@ var alpha_282e8826843b2bb4eeb1 =
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 6);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
```
@ -115,51 +112,48 @@ var alpha_282e8826843b2bb4eeb1 =
``` js
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**************!*\
!*** ./a.js ***!
\**************/
/***/ (function(module, exports) {
/*!*****************!*\
!*** dll alpha ***!
\*****************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = "a";
module.exports = __webpack_require__;
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!******************!*\
!*** ./alpha.js ***!
\******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "alpha";
/***/ }),
/* 2 */,
/* 3 */,
/* 4 */,
/* 5 */
/* unknown exports provided */
/* all exports used */
/*!**********************!*\
!*** ../~/module.js ***!
\**********************/
/* 2 */
/*!**************!*\
!*** ./a.js ***!
\**************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "a";
/***/ }),
/* 3 */
/*!*********************************!*\
!*** ../node_modules/module.js ***!
\*********************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "module";
/***/ }),
/* 6 */
/* unknown exports provided */
/* all exports used */
/*!*****************!*\
!*** dll alpha ***!
\*****************/
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__;
/***/ })
/******/ ]);
```
@ -167,7 +161,7 @@ module.exports = __webpack_require__;
# js/alpha-manifest.json
``` javascript
{"name":"alpha_282e8826843b2bb4eeb1","content":{"./a.js":{"id":0,"meta":{}},"./alpha.js":{"id":1,"meta":{}},"../node_modules/module.js":{"id":5,"meta":{}}}}
{"name":"alpha_457b6718a3ff9f8c2d77","content":{"./alpha.js":{"id":1,"meta":{}},"./a.js":{"id":2,"meta":{}},"../node_modules/module.js":{"id":3,"meta":{}}}}
```
# Info
@ -175,59 +169,59 @@ module.exports = __webpack_require__;
## Uncompressed
```
Hash: 282e8826843b2bb4eeb1
Version: webpack 2.6.0
Hash: 457b6718a3ff9f8c2d77
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
MyDll.beta.js 3.47 kB 0 [emitted] beta
MyDll.alpha.js 3.49 kB 1 [emitted] alpha
MyDll.beta.js 3.31 kB 0 [emitted] beta
MyDll.alpha.js 3.34 kB 1 [emitted] alpha
Entrypoint alpha = MyDll.alpha.js
Entrypoint beta = MyDll.beta.js
chunk {0} MyDll.beta.js (beta) 80 bytes [entry] [rendered]
> beta [7] dll beta
[2] ./b.js 21 bytes {0} [built]
single entry ./b [7] dll beta beta:1
[3] ./beta.js 24 bytes {0} [built]
single entry ./beta [7] dll beta beta:0
[4] ./c.jsx 23 bytes {0} [built]
single entry ./c [7] dll beta beta:2
[7] dll beta 12 bytes {0} [built]
> beta [4] dll beta
[4] dll beta 12 bytes {0} [built]
[5] ./beta.js 24 bytes {0} [built]
single entry ./beta [4] dll beta beta:0
[6] ./b.js 21 bytes {0} [built]
single entry ./b [4] dll beta beta:1
[7] ./c.jsx 23 bytes {0} [built]
single entry ./c [4] dll beta beta:2
chunk {1} MyDll.alpha.js (alpha) 84 bytes [entry] [rendered]
> alpha [6] dll alpha
[0] ./a.js 21 bytes {1} [built]
single entry ./a [6] dll alpha alpha:1
> alpha [0] dll alpha
[0] dll alpha 12 bytes {1} [built]
[1] ./alpha.js 25 bytes {1} [built]
single entry ./alpha [6] dll alpha alpha:0
[5] ../~/module.js 26 bytes {1} [built]
single entry module [6] dll alpha alpha:2
[6] dll alpha 12 bytes {1} [built]
single entry ./alpha [0] dll alpha alpha:0
[2] ./a.js 21 bytes {1} [built]
single entry ./a [0] dll alpha alpha:1
[3] ../node_modules/module.js 26 bytes {1} [built]
single entry module [0] dll alpha alpha:2
```
## Minimized (uglify-js, no zip)
```
Hash: 282e8826843b2bb4eeb1
Version: webpack 2.6.0
Hash: 457b6718a3ff9f8c2d77
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
MyDll.beta.js 653 bytes 0 [emitted] beta
MyDll.alpha.js 657 bytes 1 [emitted] alpha
MyDll.beta.js 627 bytes 0 [emitted] beta
MyDll.alpha.js 628 bytes 1 [emitted] alpha
Entrypoint alpha = MyDll.alpha.js
Entrypoint beta = MyDll.beta.js
chunk {0} MyDll.beta.js (beta) 80 bytes [entry] [rendered]
> beta [7] dll beta
[2] ./b.js 21 bytes {0} [built]
single entry ./b [7] dll beta beta:1
[3] ./beta.js 24 bytes {0} [built]
single entry ./beta [7] dll beta beta:0
[4] ./c.jsx 23 bytes {0} [built]
single entry ./c [7] dll beta beta:2
[7] dll beta 12 bytes {0} [built]
> beta [4] dll beta
[4] dll beta 12 bytes {0} [built]
[5] ./beta.js 24 bytes {0} [built]
single entry ./beta [4] dll beta beta:0
[6] ./b.js 21 bytes {0} [built]
single entry ./b [4] dll beta beta:1
[7] ./c.jsx 23 bytes {0} [built]
single entry ./c [4] dll beta beta:2
chunk {1} MyDll.alpha.js (alpha) 84 bytes [entry] [rendered]
> alpha [6] dll alpha
[0] ./a.js 21 bytes {1} [built]
single entry ./a [6] dll alpha alpha:1
> alpha [0] dll alpha
[0] dll alpha 12 bytes {1} [built]
[1] ./alpha.js 25 bytes {1} [built]
single entry ./alpha [6] dll alpha alpha:0
[5] ../~/module.js 26 bytes {1} [built]
single entry module [6] dll alpha alpha:2
[6] dll alpha 12 bytes {1} [built]
single entry ./alpha [0] dll alpha alpha:0
[2] ./a.js 21 bytes {1} [built]
single entry ./a [0] dll alpha alpha:1
[3] ../node_modules/module.js 26 bytes {1} [built]
single entry module [0] dll alpha alpha:2
```

View File

@ -43,7 +43,7 @@ module.exports = [
# js/vendor.js
``` javascript
var vendor_32199746b38d6e93b44b =
var vendor_3e23dee019354f6a37c0 =
```
<details><summary><code>/******/ (function(modules) { /* webpackBootstrap */ })</code></summary>
@ -83,9 +83,6 @@ var vendor_32199746b38d6e93b44b =
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -113,7 +110,7 @@ var vendor_32199746b38d6e93b44b =
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
```
@ -123,37 +120,37 @@ var vendor_32199746b38d6e93b44b =
``` js
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!****************!*\
!*** dll main ***!
\****************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__;
/***/ }),
/* 1 */
/*!*******************!*\
!*** ./vendor.js ***!
\*******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "Vendor";
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/* 2 */
/*!********************!*\
!*** ./vendor2.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "Vendor2";
/***/ }),
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!****************!*\
!*** dll main ***!
\****************/
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__;
/***/ })
/******/ ]);
```
@ -196,9 +193,6 @@ module.exports = __webpack_require__;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -226,43 +220,42 @@ module.exports = __webpack_require__;
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 3);
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/* unknown exports provided */
/*!**********************************************!*\
!*** external "vendor_32199746b38d6e93b44b" ***!
!*** external "vendor_3e23dee019354f6a37c0" ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = vendor_32199746b38d6e93b44b;
module.exports = vendor_3e23dee019354f6a37c0;
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!****************************************************************************!*\
!*** delegated ./vendor.js from dll-reference vendor_32199746b38d6e93b44b ***!
\****************************************************************************/
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(0))(0);
/***/ }),
/* 2 */,
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!******************!*\
!*** ./pageA.js ***!
\******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
console.log(__webpack_require__(/*! ./vendor */ 1));
console.log(__webpack_require__(/*! ./vendor */ 2));
module.exports = "pageA";
/***/ }),
/* 2 */
/*!****************************************************************************!*\
!*** delegated ./vendor.js from dll-reference vendor_3e23dee019354f6a37c0 ***!
\****************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = (__webpack_require__(0))(1);
/***/ })
/******/ ]);
```
@ -272,41 +265,41 @@ module.exports = "pageA";
## Uncompressed
```
Hash: 32199746b38d6e93b44ba8c4dfdaf5a935b1ed38
Version: webpack 2.6.0
Hash: 3e23dee019354f6a37c0e00b94aa49141c55de0a
Version: webpack 3.0.0-rc.0
Child vendor:
Hash: 32199746b38d6e93b44b
Hash: 3e23dee019354f6a37c0
Asset Size Chunks Chunk Names
vendor.js 3.27 kB 0 [emitted] main
vendor.js 3.11 kB 0 [emitted] main
Entrypoint main = vendor.js
chunk {0} vendor.js (main) 65 bytes [entry] [rendered]
> main [2] dll main
[0] ./vendor.js 26 bytes {0} [built]
single entry ./vendor [2] dll main main:0
[1] ./vendor2.js 27 bytes {0} [built]
single entry ./vendor2 [2] dll main main:1
[2] dll main 12 bytes {0} [built]
> main [0] dll main
[0] dll main 12 bytes {0} [built]
[1] ./vendor.js 26 bytes {0} [built]
single entry ./vendor [0] dll main main:0
[2] ./vendor2.js 27 bytes {0} [built]
single entry ./vendor2 [0] dll main main:1
Child app:
Hash: a8c4dfdaf5a935b1ed38
Hash: e00b94aa49141c55de0a
Asset Size Chunks Chunk Names
pageB.js 3.59 kB 0 [emitted] pageB
pageA.js 3.58 kB 1 [emitted] pageA
pageC.js 2.79 kB 2 [emitted] pageC
pageB.js 3.43 kB 0 [emitted] pageB
pageA.js 3.41 kB 1 [emitted] pageA
pageC.js 2.63 kB 2 [emitted] pageC
Entrypoint pageA = pageA.js
Entrypoint pageB = pageB.js
Entrypoint pageC = pageC.js
chunk {0} pageB.js (pageB) 145 bytes [entry] [rendered]
> pageB [4] ./pageB.js
[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
> pageB [3] ./pageB.js
[3] ./pageB.js 61 bytes {0} [built]
[4] delegated ./vendor2.js from dll-reference vendor_3e23dee019354f6a37c0 42 bytes {0} [not cacheable] [built]
cjs require ./vendor2 [3] ./pageB.js 1:12-32
+ 1 hidden module
chunk {1} pageA.js (pageA) 144 bytes [entry] [rendered]
> pageA [3] ./pageA.js
[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
> pageA [1] ./pageA.js
[1] ./pageA.js 60 bytes {1} [built]
[2] delegated ./vendor.js from dll-reference vendor_3e23dee019354f6a37c0 42 bytes {1} [not cacheable] [built]
cjs require ./vendor [1] ./pageA.js 1:12-31
+ 1 hidden module
chunk {2} pageC.js (pageC) 25 bytes [entry] [rendered]
> pageC [5] ./pageC.js
[5] ./pageC.js 25 bytes {2} [built]
@ -315,41 +308,41 @@ Child app:
## Minimized (uglify-js, no zip)
```
Hash: 32199746b38d6e93b44ba8c4dfdaf5a935b1ed38
Version: webpack 2.6.0
Hash: 3e23dee019354f6a37c0e00b94aa49141c55de0a
Version: webpack 3.0.0-rc.0
Child vendor:
Hash: 32199746b38d6e93b44b
Hash: 3e23dee019354f6a37c0
Asset Size Chunks Chunk Names
vendor.js 628 bytes 0 [emitted] main
vendor.js 602 bytes 0 [emitted] main
Entrypoint main = vendor.js
chunk {0} vendor.js (main) 65 bytes [entry] [rendered]
> main [2] dll main
[0] ./vendor.js 26 bytes {0} [built]
single entry ./vendor [2] dll main main:0
[1] ./vendor2.js 27 bytes {0} [built]
single entry ./vendor2 [2] dll main main:1
[2] dll main 12 bytes {0} [built]
> main [0] dll main
[0] dll main 12 bytes {0} [built]
[1] ./vendor.js 26 bytes {0} [built]
single entry ./vendor [0] dll main main:0
[2] ./vendor2.js 27 bytes {0} [built]
single entry ./vendor2 [0] dll main main:1
Child app:
Hash: a8c4dfdaf5a935b1ed38
Hash: e00b94aa49141c55de0a
Asset Size Chunks Chunk Names
pageB.js 635 bytes 0 [emitted] pageB
pageA.js 634 bytes 1 [emitted] pageA
pageC.js 527 bytes 2 [emitted] pageC
pageB.js 609 bytes 0 [emitted] pageB
pageA.js 607 bytes 1 [emitted] pageA
pageC.js 501 bytes 2 [emitted] pageC
Entrypoint pageA = pageA.js
Entrypoint pageB = pageB.js
Entrypoint pageC = pageC.js
chunk {0} pageB.js (pageB) 145 bytes [entry] [rendered]
> pageB [4] ./pageB.js
[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
> pageB [3] ./pageB.js
[3] ./pageB.js 61 bytes {0} [built]
[4] delegated ./vendor2.js from dll-reference vendor_3e23dee019354f6a37c0 42 bytes {0} [not cacheable] [built]
cjs require ./vendor2 [3] ./pageB.js 1:12-32
+ 1 hidden module
chunk {1} pageA.js (pageA) 144 bytes [entry] [rendered]
> pageA [3] ./pageA.js
[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
> pageA [1] ./pageA.js
[1] ./pageA.js 60 bytes {1} [built]
[2] delegated ./vendor.js from dll-reference vendor_3e23dee019354f6a37c0 42 bytes {1} [not cacheable] [built]
cjs require ./vendor [1] ./pageA.js 1:12-31
+ 1 hidden module
chunk {2} pageC.js (pageC) 25 bytes [entry] [rendered]
> pageC [5] ./pageC.js
[5] ./pageC.js 25 bytes {2} [built]

View File

@ -57,7 +57,7 @@ module.exports = {
var a = typeof exports === 'object' ? factory(require("add"), require("./math")["subtract"]) : factory(root["add"], root["subtract"]);
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__) {
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_2__) {
```
<details><summary><code>return /******/ (function(modules) { /* webpackBootstrap */ })</code></summary>
@ -97,9 +97,6 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -127,7 +124,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
```
@ -137,39 +134,39 @@ return /******/ (function(modules) { // webpackBootstrap
``` js
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**********************!*\
!*** external "add" ***!
\**********************/
/***/ (function(module, exports) {
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __WEBPACK_EXTERNAL_MODULE_0__;
var add = __webpack_require__(/*! add */ 1);
var subtract = __webpack_require__(/*! subtract */ 2);
exports.exampleValue = subtract(add(42, 2), 2);
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!***************************************************************************************************************!*\
!*** external {"root":"subtract","commonjs2":"./subtract","commonjs":["./math","subtract"],"amd":"subtract"} ***!
\***************************************************************************************************************/
/*!**********************!*\
!*** external "add" ***!
\**********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_1__;
/***/ }),
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ (function(module, exports, __webpack_require__) {
/*!***************************************************************************************************************!*\
!*** external {"root":"subtract","commonjs2":"./subtract","commonjs":["./math","subtract"],"amd":"subtract"} ***!
\***************************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
var add = __webpack_require__(/*! add */ 0);
var subtract = __webpack_require__(/*! subtract */ 1);
exports.exampleValue = subtract(add(42, 2), 2);
module.exports = __WEBPACK_EXTERNAL_MODULE_2__;
/***/ })
/******/ ]);
@ -181,27 +178,27 @@ exports.exampleValue = subtract(add(42, 2), 2);
## Uncompressed
```
Hash: 0b46eba3c061e1157fa9
Version: webpack 2.6.0
Hash: b21d422ed5d9ade3ed36
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 4.29 kB 0 [emitted] main
output.js 4.13 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 197 bytes [entry] [rendered]
> main [2] ./example.js
[2] ./example.js 113 bytes {0} [built]
> main [0] ./example.js
[0] ./example.js 113 bytes {0} [built]
+ 2 hidden modules
```
## Minimized (uglify-js, no zip)
```
Hash: 0b46eba3c061e1157fa9
Version: webpack 2.6.0
Asset Size Chunks Chunk Names
output.js 1 kB 0 [emitted] main
Hash: b21d422ed5d9ade3ed36
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 978 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 197 bytes [entry] [rendered]
> main [2] ./example.js
[2] ./example.js 113 bytes {0} [built]
> main [0] ./example.js
[0] ./example.js 113 bytes {0} [built]
+ 2 hidden modules
```

View File

@ -83,8 +83,6 @@ module.exports = {
/******/ 7: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -112,20 +110,21 @@ module.exports = {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -164,9 +163,6 @@ module.exports = {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -197,7 +193,7 @@ module.exports = {
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 5);
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ })
/************************************************************************/
```
@ -207,27 +203,27 @@ module.exports = {
``` javascript
/******/ ({
/***/ 5:
/* unknown exports provided */
/* all exports used */
/***/ 2:
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
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/* require */([__webpack_require__.e(4), __webpack_require__.e(0), __webpack_require__.e(1)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./a */ 0), __webpack_require__(/*! ./b */ 1), __webpack_require__(/*! ./c */ 3)]; (function(a, b, c) {}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
Promise.all/* require.ensure */([__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(3)]).then((function(require) {
Promise.all/* require.ensure */([__webpack_require__.e(3), __webpack_require__.e(0), __webpack_require__.e(1)]).then((function(require) {
__webpack_require__(/*! ./b */ 1);
__webpack_require__(/*! ./d */ 3);
__webpack_require__(/*! ./d */ 4);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
Promise.all/* require.ensure */([__webpack_require__.e(1), __webpack_require__.e(2)]).then((function(require) {
Promise.all/* require.ensure */([__webpack_require__.e(2), __webpack_require__.e(1)]).then((function(require) {
__webpack_require__(/*! ./a */ 0);
Promise.all/* require.ensure */([__webpack_require__.e(0), __webpack_require__.e(6)]).then((function(require) {
Promise.all/* require.ensure */([__webpack_require__.e(6), __webpack_require__.e(0)]).then((function(require) {
__webpack_require__(/*! ./f */ 6);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
Promise.all/* require.ensure */([__webpack_require__.e(0), __webpack_require__.e(5)]).then((function(require) {
Promise.all/* require.ensure */([__webpack_require__.e(5), __webpack_require__.e(0)]).then((function(require) {
__webpack_require__(/*! ./g */ 7);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
@ -243,67 +239,67 @@ Promise.all/* require.ensure */([__webpack_require__.e(1), __webpack_require__.e
## Uncompressed
```
Hash: fcd85928f3d638b2b3af
Version: webpack 2.6.0
Hash: 37a3748d37b36bc162d0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 220 bytes 0 [emitted] async2
1.output.js 211 bytes 1 [emitted] async1
2.output.js 214 bytes 2 [emitted]
3.output.js 214 bytes 3 [emitted]
4.output.js 214 bytes 4 [emitted]
5.output.js 214 bytes 5 [emitted]
6.output.js 214 bytes 6 [emitted]
output.js 7.38 kB 7 [emitted] main
0.output.js 221 bytes 0 [emitted] async2
1.output.js 212 bytes 1 [emitted] async1
2.output.js 215 bytes 2 [emitted]
3.output.js 215 bytes 3 [emitted]
4.output.js 215 bytes 4 [emitted]
5.output.js 215 bytes 5 [emitted]
6.output.js 215 bytes 6 [emitted]
output.js 7.22 kB 7 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (async2) 21 bytes {2} {7} [rendered]
> async commons duplicate [5] ./example.js 1:0-52
> async commons duplicate [5] ./example.js 3:0-6:2
> async commons duplicate [5] ./example.js 10:1-12:3
> async commons duplicate [5] ./example.js 13:1-15:3
> async commons duplicate [2] ./example.js 1:0-52
> async commons duplicate [2] ./example.js 3:0-6:2
> async commons duplicate [2] ./example.js 10:1-12:3
> async commons duplicate [2] ./example.js 13:1-15:3
[1] ./b.js 21 bytes {0} [built]
amd require ./b [5] ./example.js 1:0-52
cjs require ./b [5] ./example.js 4:1-15
require.ensure item ./b [5] ./example.js 10:1-12:3
require.ensure item ./b [5] ./example.js 13:1-15:3
amd require ./b [2] ./example.js 1:0-52
cjs require ./b [2] ./example.js 4:1-15
require.ensure item ./b [2] ./example.js 10:1-12:3
require.ensure item ./b [2] ./example.js 13:1-15:3
chunk {1} 1.output.js (async1) 21 bytes {7} [rendered]
> async commons [5] ./example.js 1:0-52
> async commons [5] ./example.js 3:0-6:2
> async commons [5] ./example.js 8:0-16:2
> async commons [2] ./example.js 1:0-52
> async commons [2] ./example.js 3:0-6:2
> async commons [2] ./example.js 8:0-16:2
[0] ./a.js 21 bytes {1} [built]
amd require ./a [5] ./example.js 1:0-52
require.ensure item ./a [5] ./example.js 3:0-6:2
require.ensure item ./a [5] ./example.js 8:0-16:2
cjs require ./a [5] ./example.js 9:1-15
amd require ./a [2] ./example.js 1:0-52
require.ensure item ./a [2] ./example.js 3:0-6:2
require.ensure item ./a [2] ./example.js 8:0-16:2
cjs require ./a [2] ./example.js 9:1-15
chunk {2} 2.output.js 21 bytes {7} [rendered]
> [5] ./example.js 8:0-16:2
[4] ./e.js 21 bytes {2} [built]
require.ensure item ./e [5] ./example.js 8:0-16:2
> [2] ./example.js 8:0-16:2
[5] ./e.js 21 bytes {2} [built]
require.ensure item ./e [2] ./example.js 8:0-16:2
chunk {3} 3.output.js 21 bytes {7} [rendered]
> [5] ./example.js 3:0-6:2
[3] ./d.js 21 bytes {3} [built]
cjs require ./d [5] ./example.js 5:1-15
> [2] ./example.js 3:0-6:2
[4] ./d.js 21 bytes {3} [built]
cjs require ./d [2] ./example.js 5:1-15
chunk {4} 4.output.js 21 bytes {7} [rendered]
> [5] ./example.js 1:0-52
[2] ./c.js 21 bytes {4} [built]
amd require ./c [5] ./example.js 1:0-52
> [2] ./example.js 1:0-52
[3] ./c.js 21 bytes {4} [built]
amd require ./c [2] ./example.js 1:0-52
chunk {5} 5.output.js 21 bytes {2} [rendered]
> [5] ./example.js 13:1-15:3
> [2] ./example.js 13:1-15:3
[7] ./g.js 21 bytes {5} [built]
cjs require ./g [5] ./example.js 14:2-16
cjs require ./g [2] ./example.js 14:2-16
chunk {6} 6.output.js 21 bytes {2} [rendered]
> [5] ./example.js 10:1-12:3
> [2] ./example.js 10:1-12:3
[6] ./f.js 21 bytes {6} [built]
cjs require ./f [5] ./example.js 11:2-16
cjs require ./f [2] ./example.js 11:2-16
chunk {7} output.js (main) 362 bytes [entry] [rendered]
> main [5] ./example.js
[5] ./example.js 362 bytes {7} [built]
> main [2] ./example.js
[2] ./example.js 362 bytes {7} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: fcd85928f3d638b2b3af
Version: webpack 2.6.0
Hash: 37a3748d37b36bc162d0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 50 bytes 0 [emitted] async2
1.output.js 49 bytes 1 [emitted] async1
@ -312,48 +308,48 @@ Version: webpack 2.6.0
4.output.js 51 bytes 4 [emitted]
5.output.js 51 bytes 5 [emitted]
6.output.js 51 bytes 6 [emitted]
output.js 1.82 kB 7 [emitted] main
output.js 1.79 kB 7 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (async2) 21 bytes {2} {7} [rendered]
> async commons duplicate [5] ./example.js 1:0-52
> async commons duplicate [5] ./example.js 3:0-6:2
> async commons duplicate [5] ./example.js 10:1-12:3
> async commons duplicate [5] ./example.js 13:1-15:3
> async commons duplicate [2] ./example.js 1:0-52
> async commons duplicate [2] ./example.js 3:0-6:2
> async commons duplicate [2] ./example.js 10:1-12:3
> async commons duplicate [2] ./example.js 13:1-15:3
[1] ./b.js 21 bytes {0} [built]
amd require ./b [5] ./example.js 1:0-52
cjs require ./b [5] ./example.js 4:1-15
require.ensure item ./b [5] ./example.js 10:1-12:3
require.ensure item ./b [5] ./example.js 13:1-15:3
amd require ./b [2] ./example.js 1:0-52
cjs require ./b [2] ./example.js 4:1-15
require.ensure item ./b [2] ./example.js 10:1-12:3
require.ensure item ./b [2] ./example.js 13:1-15:3
chunk {1} 1.output.js (async1) 21 bytes {7} [rendered]
> async commons [5] ./example.js 1:0-52
> async commons [5] ./example.js 3:0-6:2
> async commons [5] ./example.js 8:0-16:2
> async commons [2] ./example.js 1:0-52
> async commons [2] ./example.js 3:0-6:2
> async commons [2] ./example.js 8:0-16:2
[0] ./a.js 21 bytes {1} [built]
amd require ./a [5] ./example.js 1:0-52
require.ensure item ./a [5] ./example.js 3:0-6:2
require.ensure item ./a [5] ./example.js 8:0-16:2
cjs require ./a [5] ./example.js 9:1-15
amd require ./a [2] ./example.js 1:0-52
require.ensure item ./a [2] ./example.js 3:0-6:2
require.ensure item ./a [2] ./example.js 8:0-16:2
cjs require ./a [2] ./example.js 9:1-15
chunk {2} 2.output.js 21 bytes {7} [rendered]
> [5] ./example.js 8:0-16:2
[4] ./e.js 21 bytes {2} [built]
require.ensure item ./e [5] ./example.js 8:0-16:2
> [2] ./example.js 8:0-16:2
[5] ./e.js 21 bytes {2} [built]
require.ensure item ./e [2] ./example.js 8:0-16:2
chunk {3} 3.output.js 21 bytes {7} [rendered]
> [5] ./example.js 3:0-6:2
[3] ./d.js 21 bytes {3} [built]
cjs require ./d [5] ./example.js 5:1-15
> [2] ./example.js 3:0-6:2
[4] ./d.js 21 bytes {3} [built]
cjs require ./d [2] ./example.js 5:1-15
chunk {4} 4.output.js 21 bytes {7} [rendered]
> [5] ./example.js 1:0-52
[2] ./c.js 21 bytes {4} [built]
amd require ./c [5] ./example.js 1:0-52
> [2] ./example.js 1:0-52
[3] ./c.js 21 bytes {4} [built]
amd require ./c [2] ./example.js 1:0-52
chunk {5} 5.output.js 21 bytes {2} [rendered]
> [5] ./example.js 13:1-15:3
> [2] ./example.js 13:1-15:3
[7] ./g.js 21 bytes {5} [built]
cjs require ./g [5] ./example.js 14:2-16
cjs require ./g [2] ./example.js 14:2-16
chunk {6} 6.output.js 21 bytes {2} [rendered]
> [5] ./example.js 10:1-12:3
> [2] ./example.js 10:1-12:3
[6] ./f.js 21 bytes {6} [built]
cjs require ./f [5] ./example.js 11:2-16
cjs require ./f [2] ./example.js 11:2-16
chunk {7} output.js (main) 362 bytes [entry] [rendered]
> main [5] ./example.js
[5] ./example.js 362 bytes {7} [built]
> main [2] ./example.js
[2] ./example.js 362 bytes {7} [built]
```

View File

@ -103,8 +103,6 @@ module.exports = {
/******/ 3: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -132,20 +130,21 @@ module.exports = {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -184,9 +183,6 @@ module.exports = {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -217,7 +213,7 @@ module.exports = {
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 4);
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ })
/************************************************************************/
```
@ -227,21 +223,21 @@ module.exports = {
``` javascript
/******/ ({
/***/ 4:
/* unknown exports provided */
/* all exports used */
/***/ 2:
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
// a chunks with a, b, c
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);
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 */ 3)]; (function(a, b, c) {}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
// a chunk with a, b, d
Promise.all/* require.ensure */([__webpack_require__.e(0), __webpack_require__.e(1)]).then((function(require) {
__webpack_require__(/*! ./b */ 1);
__webpack_require__(/*! ./d */ 3);
__webpack_require__(/*! ./d */ 4);
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
@ -255,22 +251,22 @@ Promise.all/* require.ensure */([__webpack_require__.e(0), __webpack_require__.e
``` javascript
webpackJsonp([0],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**************!*\
!*** ./a.js ***!
\**************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "a";
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!**************!*\
!*** ./b.js ***!
\**************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "b";
@ -284,12 +280,12 @@ module.exports = "b";
``` javascript
webpackJsonp([1],{
/***/ 3:
/* unknown exports provided */
/* all exports used */
/***/ 4:
/*!**************!*\
!*** ./d.js ***!
\**************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "d";
@ -304,12 +300,12 @@ module.exports = "d";
``` javascript
webpackJsonp([2],{
/***/ 2:
/* unknown exports provided */
/* all exports used */
/***/ 3:
/*!**************!*\
!*** ./c.js ***!
\**************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "c";
@ -324,65 +320,65 @@ module.exports = "c";
## Uncompressed
```
Hash: 87946ef95f806aa2da0f
Version: webpack 2.6.0
Hash: ca87dc9e54fc3309c0fd
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 401 bytes 0 [emitted]
1.output.js 214 bytes 1 [emitted]
2.output.js 214 bytes 2 [emitted]
output.js 6.72 kB 3 [emitted] main
0.output.js 403 bytes 0 [emitted]
1.output.js 215 bytes 1 [emitted]
2.output.js 215 bytes 2 [emitted]
output.js 6.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
> async commons [4] ./example.js 5:0-8:2
> async commons [2] ./example.js 2:0-52
> async commons [2] ./example.js 5:0-8:2
[0] ./a.js 21 bytes {0} [built]
amd require ./a [4] ./example.js 2:0-52
require.ensure item ./a [4] ./example.js 5:0-8:2
amd require ./a [2] ./example.js 2:0-52
require.ensure item ./a [2] ./example.js 5:0-8:2
[1] ./b.js 21 bytes {0} [built]
amd require ./b [4] ./example.js 2:0-52
cjs require ./b [4] ./example.js 6:1-15
amd require ./b [2] ./example.js 2:0-52
cjs require ./b [2] ./example.js 6:1-15
chunk {1} 1.output.js 21 bytes {3} [rendered]
> [4] ./example.js 5:0-8:2
[3] ./d.js 21 bytes {1} [built]
cjs require ./d [4] ./example.js 7:1-15
> [2] ./example.js 5:0-8:2
[4] ./d.js 21 bytes {1} [built]
cjs require ./d [2] ./example.js 7:1-15
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
> [2] ./example.js 2:0-52
[3] ./c.js 21 bytes {2} [built]
amd require ./c [2] ./example.js 2:0-52
chunk {3} output.js (main) 194 bytes [entry] [rendered]
> main [4] ./example.js
[4] ./example.js 194 bytes {3} [built]
> main [2] ./example.js
[2] ./example.js 194 bytes {3} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 87946ef95f806aa2da0f
Version: webpack 2.6.0
Hash: ca87dc9e54fc3309c0fd
Version: webpack 3.0.0-rc.0
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.57 kB 3 [emitted] main
output.js 1.54 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
> async commons [4] ./example.js 5:0-8:2
> async commons [2] ./example.js 2:0-52
> async commons [2] ./example.js 5:0-8:2
[0] ./a.js 21 bytes {0} [built]
amd require ./a [4] ./example.js 2:0-52
require.ensure item ./a [4] ./example.js 5:0-8:2
amd require ./a [2] ./example.js 2:0-52
require.ensure item ./a [2] ./example.js 5:0-8:2
[1] ./b.js 21 bytes {0} [built]
amd require ./b [4] ./example.js 2:0-52
cjs require ./b [4] ./example.js 6:1-15
amd require ./b [2] ./example.js 2:0-52
cjs require ./b [2] ./example.js 6:1-15
chunk {1} 1.output.js 21 bytes {3} [rendered]
> [4] ./example.js 5:0-8:2
[3] ./d.js 21 bytes {1} [built]
cjs require ./d [4] ./example.js 7:1-15
> [2] ./example.js 5:0-8:2
[4] ./d.js 21 bytes {1} [built]
cjs require ./d [2] ./example.js 7:1-15
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
> [2] ./example.js 2:0-52
[3] ./c.js 21 bytes {2} [built]
amd require ./c [2] ./example.js 2:0-52
chunk {3} output.js (main) 194 bytes [entry] [rendered]
> main [4] ./example.js
[4] ./example.js 194 bytes {3} [built]
> main [2] ./example.js
[2] ./example.js 194 bytes {3} [built]
```

View File

@ -104,9 +104,6 @@ export var named = "named";
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -134,7 +131,7 @@ export var named = "named";
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 3);
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
```
@ -144,11 +141,11 @@ export var named = "named";
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* exports used: default, readFile */
/*!***************!*\
!*** ./fs.js ***!
\***************/
/*! no static exports found */
/*! exports used: default, readFile */
/***/ (function(module, exports) {
// an example CommonJs module
@ -162,28 +159,45 @@ exports.readFile = function() {};
/***/ }),
/* 1 */
/* unknown exports provided */
/*!*********************!*\
!*** ./example2.js ***!
\*********************/
/***/ (function(module, exports, __webpack_require__) {
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
// CommonJs module
"use strict";
Object.defineProperty(__webpack_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);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__example2__ = __webpack_require__(/*! ./example2 */ 3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__example2___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__example2__);
// harmony module
// require a harmony module
var module = __webpack_require__(/*! ./harmony */ 4);
// import from CommonJs module
__WEBPACK_IMPORTED_MODULE_0__fs___default.a.readFile("file");
__WEBPACK_IMPORTED_MODULE_0__fs__["readFile"]("file");
__WEBPACK_IMPORTED_MODULE_0__fs__["readFile"]("file");
// import from harmony module
__WEBPACK_IMPORTED_MODULE_1__reexport_commonjs__["readFile"]("file");
// import a CommonJs module for sideeffects
var defaultExport = module.default;
var namedExport = module.named;
/***/ }),
/* 2 */
/* unknown exports provided */
/* exports used: readFile */
/*!******************************!*\
!*** ./reexport-commonjs.js ***!
\******************************/
/*! no static exports found */
/*! exports used: readFile */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -201,45 +215,28 @@ var namedExport = module.named;
/***/ }),
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ (function(module, __webpack_exports__, __webpack_require__) {
/*!*********************!*\
!*** ./example2.js ***!
\*********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_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);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__example2__ = __webpack_require__(/*! ./example2 */ 1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__example2___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__example2__);
// harmony module
// CommonJs module
// import from CommonJs module
__WEBPACK_IMPORTED_MODULE_0__fs___default.a.readFile("file");
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__fs__["readFile"])("file");
__WEBPACK_IMPORTED_MODULE_0__fs__["readFile"]("file");
// import from harmony module
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__reexport_commonjs__["readFile"])("file");
// import a CommonJs module for sideeffects
// require a harmony module
var module = __webpack_require__(/*! ./harmony */ 4);
var defaultExport = module.default;
var namedExport = module.named;
/***/ }),
/* 4 */
/* exports provided: default, named */
/* all exports used */
/*!********************!*\
!*** ./harmony.js ***!
\********************/
/*! exports provided: default, named */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -259,55 +256,55 @@ var named = "named";
## Uncompressed
```
Hash: b21ca1313d330370bf98
Version: webpack 2.6.0
Hash: 756e5e3b676506d280a4
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 6.32 kB 0 [emitted] main
output.js 6.11 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 1.2 kB [entry] [rendered]
> main [3] ./example.js
> main [1] ./example.js
[0] ./fs.js 265 bytes {0} [built]
[only some exports used: default, readFile]
harmony import ./fs [1] ./example.js 4:0-22
harmony import ./fs [1] ./example.js 5:0-32
harmony import ./fs [1] ./example.js 6:0-28
harmony import ./fs [2] ./reexport-commonjs.js 2:0-21
harmony import ./fs [3] ./example.js 4:0-22
harmony import ./fs [3] ./example.js 5:0-32
harmony import ./fs [3] ./example.js 6:0-28
[1] ./example2.js 159 bytes {0} [built]
[no exports used]
harmony import ./example2 [3] ./example.js 16:0-20
[1] ./example.js 389 bytes {0} [built]
[2] ./reexport-commonjs.js 308 bytes {0} [built]
[only some exports used: readFile]
harmony import ./reexport-commonjs [3] ./example.js 12:0-60
[3] ./example.js 389 bytes {0} [built]
harmony import ./reexport-commonjs [1] ./example.js 12:0-60
[3] ./example2.js 159 bytes {0} [built]
[no exports used]
harmony import ./example2 [1] ./example.js 16:0-20
[4] ./harmony.js 78 bytes {0} [built]
[exports: default, named]
cjs require ./harmony [1] ./example2.js 4:13-33
cjs require ./harmony [3] ./example2.js 4:13-33
```
## Minimized (uglify-js, no zip)
```
Hash: b21ca1313d330370bf98
Version: webpack 2.6.0
Hash: 756e5e3b676506d280a4
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 1.05 kB 0 [emitted] main
output.js 1.01 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 1.2 kB [entry] [rendered]
> main [3] ./example.js
> main [1] ./example.js
[0] ./fs.js 265 bytes {0} [built]
[only some exports used: default, readFile]
harmony import ./fs [1] ./example.js 4:0-22
harmony import ./fs [1] ./example.js 5:0-32
harmony import ./fs [1] ./example.js 6:0-28
harmony import ./fs [2] ./reexport-commonjs.js 2:0-21
harmony import ./fs [3] ./example.js 4:0-22
harmony import ./fs [3] ./example.js 5:0-32
harmony import ./fs [3] ./example.js 6:0-28
[1] ./example2.js 159 bytes {0} [built]
[no exports used]
harmony import ./example2 [3] ./example.js 16:0-20
[1] ./example.js 389 bytes {0} [built]
[2] ./reexport-commonjs.js 308 bytes {0} [built]
[only some exports used: readFile]
harmony import ./reexport-commonjs [3] ./example.js 12:0-60
[3] ./example.js 389 bytes {0} [built]
harmony import ./reexport-commonjs [1] ./example.js 12:0-60
[3] ./example2.js 159 bytes {0} [built]
[no exports used]
harmony import ./example2 [1] ./example.js 16:0-20
[4] ./harmony.js 78 bytes {0} [built]
[exports: default, named]
cjs require ./harmony [1] ./example2.js 4:13-33
cjs require ./harmony [3] ./example2.js 4:13-33
```

View File

@ -65,9 +65,6 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -105,11 +102,11 @@ return /******/ (function(modules) { // webpackBootstrap
``` js
/******/ ([
/* 0 */
/* exports provided: value, increment, default */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! exports provided: value, increment, default */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -134,9 +131,9 @@ function increment() {
```
Hash: 313bc0b3685e952e6c32
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
MyLibrary.umd.js 3.61 kB 0 [emitted] main
MyLibrary.umd.js 3.45 kB 0 [emitted] main
Entrypoint main = MyLibrary.umd.js
chunk {0} MyLibrary.umd.js (main) 97 bytes [entry] [rendered]
> main [0] ./example.js
@ -148,9 +145,9 @@ chunk {0} MyLibrary.umd.js (main) 97 bytes [entry] [rendered]
```
Hash: 313bc0b3685e952e6c32
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
MyLibrary.umd.js 898 bytes 0 [emitted] main
MyLibrary.umd.js 872 bytes 0 [emitted] main
Entrypoint main = MyLibrary.umd.js
chunk {0} MyLibrary.umd.js (main) 97 bytes [entry] [rendered]
> main [0] ./example.js

View File

@ -87,9 +87,6 @@ export { add as reexportedAdd, multiply as reexportedMultiply } from "./math";
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -117,7 +114,7 @@ export { add as reexportedAdd, multiply as reexportedMultiply } from "./math";
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 3);
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
```
@ -127,11 +124,11 @@ export { add as reexportedAdd, multiply as reexportedMultiply } from "./math";
``` javascript
/******/ ([
/* 0 */
/* exports provided: add, multiply, list */
/* exports used: add, multiply */
/*!*****************!*\
!*** ./math.js ***!
\*****************/
/*! exports provided: add, multiply, list */
/*! exports used: add, multiply */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -161,15 +158,35 @@ function list() {
/***/ }),
/* 1 */
/* exports provided: a, b, c, reexportedAdd, reexportedMultiply */
/* exports used: reexportedMultiply */
/*!********************!*\
!*** ./library.js ***!
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__abc__ = __webpack_require__(/*! ./abc */ 2);
Object.defineProperty(__webpack_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 */ 2);
__WEBPACK_IMPORTED_MODULE_0__math__["a" /* add */](1, 2);
__WEBPACK_IMPORTED_MODULE_1__library__["a" /* reexportedMultiply */](1, 2);
/***/ }),
/* 2 */
/*!********************!*\
!*** ./library.js ***!
\********************/
/*! exports provided: a, b, c, reexportedAdd, reexportedMultiply */
/*! exports used: reexportedMultiply */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__abc__ = __webpack_require__(/*! ./abc */ 3);
/* unused harmony reexport a */
/* unused harmony reexport b */
/* unused harmony reexport c */
@ -180,11 +197,11 @@ function list() {
/***/ }),
/* 2 */
/* exports provided: a, b, c */
/* 3 */
/*!****************!*\
!*** ./abc.js ***!
\****************/
/*! exports provided: a, b, c */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -196,26 +213,6 @@ function b() { console.log("b"); }
function c() { console.log("c"); }
/***/ }),
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_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);
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__math__["a" /* add */])(1, 2);
__WEBPACK_IMPORTED_MODULE_1__library__["a" /* reexportedMultiply */](1, 2);
/***/ })
/******/ ]);
```
@ -223,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={};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)}]);
!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={};n.m=t,n.c=r,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=1)}([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";Object.defineProperty(n,"__esModule",{value:!0});var e=r(0),u=r(2);e.a(1,2),u.a(1,2)},function(t,n,r){"use strict";var e=(r(3),r(0));r.d(n,"a",function(){return e.b})},function(t,n,r){"use strict"}]);
```
# Info
@ -231,51 +228,51 @@ __WEBPACK_IMPORTED_MODULE_1__library__["a" /* reexportedMultiply */](1, 2);
## Uncompressed
```
Hash: 3b24f63cc56b55f0e254
Version: webpack 2.6.0
Asset Size Chunks Chunk Names
output.js 5.2 kB 0 [emitted] main
Hash: 4cac4181f66e42d03af9
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 5.02 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 726 bytes [entry] [rendered]
> main [3] ./example.js
> main [1] ./example.js
[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 112 bytes {0} [built]
harmony import ./math [1] ./example.js 1:0-29
harmony import ./math [2] ./library.js 2:0-78
[1] ./example.js 119 bytes {0} [built]
[2] ./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 129 bytes {0} [built]
harmony import ./library [1] ./example.js 2:0-37
[3] ./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 119 bytes {0} [built]
harmony import ./abc [2] ./library.js 1:0-32
```
## Minimized (uglify-js, no zip)
```
Hash: 3b24f63cc56b55f0e254
Version: webpack 2.6.0
Hash: 4cac4181f66e42d03af9
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 918 bytes 0 [emitted] main
output.js 887 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 726 bytes [entry] [rendered]
> main [3] ./example.js
> main [1] ./example.js
[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 112 bytes {0} [built]
harmony import ./math [1] ./example.js 1:0-29
harmony import ./math [2] ./library.js 2:0-78
[1] ./example.js 119 bytes {0} [built]
[2] ./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 129 bytes {0} [built]
harmony import ./library [1] ./example.js 2:0-37
[3] ./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 119 bytes {0} [built]
harmony import ./abc [2] ./library.js 1:0-32
```

View File

@ -60,8 +60,6 @@ export function increment(val) {
/******/ 1: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -89,20 +87,21 @@ export function increment(val) {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -141,9 +140,6 @@ export function increment(val) {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -174,7 +170,7 @@ export function increment(val) {
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
```
@ -184,52 +180,51 @@ export function increment(val) {
``` javascript
/******/ ([
/* 0 */
/* exports provided: increment */
/* exports used: increment */
/*!**********************!*\
!*** ./increment.js ***!
\**********************/
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (immutable) */ __webpack_exports__["a"] = increment;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__math__ = __webpack_require__(/*! ./math */ 3);
function increment(val) {
return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__math__["a" /* add */])(val, 1);
};
/***/ }),
/* 1 */,
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__increment__ = __webpack_require__(/*! ./increment */ 0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__increment__ = __webpack_require__(/*! ./increment */ 1);
var a = 1;
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__increment__["a" /* increment */])(a); // 2
__WEBPACK_IMPORTED_MODULE_0__increment__["a" /* increment */](a); // 2
// async loading
__webpack_require__.e/* 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 */ 3)).then(function(asyncLoaded) {
console.log(asyncLoaded);
});
/***/ }),
/* 3 */
/* exports provided: add */
/* exports used: add */
/* 1 */
/*!**********************!*\
!*** ./increment.js ***!
\**********************/
/*! exports provided: increment */
/*! exports used: increment */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (immutable) */ __webpack_exports__["a"] = increment;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__math__ = __webpack_require__(/*! ./math */ 2);
function increment(val) {
return __WEBPACK_IMPORTED_MODULE_0__math__["a" /* add */](val, 1);
};
/***/ }),
/* 2 */
/*!*****************!*\
!*** ./math.js ***!
\*****************/
/*! exports provided: add */
/*! exports used: add */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -252,53 +247,53 @@ function add() {
## Uncompressed
```
Hash: 26e1ac7210bb6f6b7623
Version: webpack 2.6.0
Hash: f5982ea38c08a86ed265
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 488 bytes 0 [emitted]
output.js 7.56 kB 1 [emitted] main
0.output.js 484 bytes 0 [emitted]
output.js 7.35 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 25 bytes {1} [rendered]
> [2] ./example.js 6:0-24
[1] ./async-loaded.js 25 bytes {0} [built]
> [0] ./example.js 6:0-24
[3] ./async-loaded.js 25 bytes {0} [built]
[exports: answer]
import() ./async-loaded [2] ./example.js 6:0-24
import() ./async-loaded [0] ./example.js 6:0-24
chunk {1} output.js (main) 419 bytes [entry] [rendered]
> main [2] ./example.js
[0] ./increment.js 94 bytes {1} [built]
> main [0] ./example.js
[0] ./example.js 183 bytes {1} [built]
[1] ./increment.js 94 bytes {1} [built]
[exports: increment]
[only some exports used: increment]
harmony import ./increment [2] ./example.js 1:0-47
[2] ./example.js 183 bytes {1} [built]
[3] ./math.js 142 bytes {1} [built]
harmony import ./increment [0] ./example.js 1:0-47
[2] ./math.js 142 bytes {1} [built]
[exports: add]
[only some exports used: add]
harmony import ./math [0] ./increment.js 1:0-29
harmony import ./math [1] ./increment.js 1:0-29
```
## Minimized (uglify-js, no zip)
```
Hash: 26e1ac7210bb6f6b7623
Version: webpack 2.6.0
Hash: f5982ea38c08a86ed265
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 146 bytes 0 [emitted]
output.js 1.71 kB 1 [emitted] main
0.output.js 147 bytes 0 [emitted]
output.js 1.66 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 25 bytes {1} [rendered]
> [2] ./example.js 6:0-24
[1] ./async-loaded.js 25 bytes {0} [built]
> [0] ./example.js 6:0-24
[3] ./async-loaded.js 25 bytes {0} [built]
[exports: answer]
import() ./async-loaded [2] ./example.js 6:0-24
import() ./async-loaded [0] ./example.js 6:0-24
chunk {1} output.js (main) 419 bytes [entry] [rendered]
> main [2] ./example.js
[0] ./increment.js 94 bytes {1} [built]
> main [0] ./example.js
[0] ./example.js 183 bytes {1} [built]
[1] ./increment.js 94 bytes {1} [built]
[exports: increment]
[only some exports used: increment]
harmony import ./increment [2] ./example.js 1:0-47
[2] ./example.js 183 bytes {1} [built]
[3] ./math.js 142 bytes {1} [built]
harmony import ./increment [0] ./example.js 1:0-47
[2] ./math.js 142 bytes {1} [built]
[exports: add]
[only some exports used: add]
harmony import ./math [0] ./increment.js 1:0-29
harmony import ./math [1] ./increment.js 1:0-29
```

File diff suppressed because it is too large Load Diff

View File

@ -135,8 +135,6 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
/******/ 4: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -164,20 +162,21 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -216,9 +215,6 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -249,7 +245,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 6);
/******/ return __webpack_require__(__webpack_require__.s = 5);
/******/ })
/************************************************************************/
```
@ -259,11 +255,11 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!*******************!*\
!*** ./render.js ***!
\*******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function(page) {
@ -273,12 +269,49 @@ module.exports = function(page) {
/***/ }),
/* 1 */,
/* 2 */,
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!*************************************************!*\
!*** . (webpack)/~/bundle-loader! ^\.\/.*Page$ ***!
\*************************************************/
/* 3 */,
/* 4 */,
/* 5 */
/*!*******************!*\
!*** ./router.js ***!
\*******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var render = __webpack_require__(/*! ./render */ 0);
// Event when another page should be opened
// Maybe hook click on links, hashchange or popstate
window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
// require the page with a dynamic require
// It's important that this require only matches the pages
// elsewise there is blood in the bundle. Here this is done with a
// specific file prefix. It's also possible to use a directory,
// overwriting the RegExp with the ContextReplacementPlugin, or
// using the require.context method.
// The bundle-loader is used to create a chunk from the page
// -> 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-loader!. */ 6)("./" + name + "Page");
// Wait until the chunk is loaded
pageBundle(function(page) {
render(page);
});
}
/***/ }),
/* 6 */
/*!************************************************************!*\
!*** . (webpack)/node_modules/bundle-loader! ^\.\/.*Page$ ***!
\************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var map = {
@ -299,52 +332,15 @@ webpackContext.keys = function webpackContextKeys() {
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 3;
/***/ }),
/* 4 */,
/* 5 */,
/* 6 */
/* unknown exports provided */
/* all exports used */
/*!*******************!*\
!*** ./router.js ***!
\*******************/
/***/ (function(module, exports, __webpack_require__) {
var render = __webpack_require__(/*! ./render */ 0);
// Event when another page should be opened
// Maybe hook click on links, hashchange or popstate
window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
// require the page with a dynamic require
// It's important that this require only matches the pages
// elsewise there is blood in the bundle. Here this is done with a
// specific file prefix. It's also possible to use a directory,
// overwriting the RegExp with the ContextReplacementPlugin, or
// using the require.context method.
// The bundle-loader is used to create a chunk from the page
// -> 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-loader!. */ 3)("./" + name + "Page");
// Wait until the chunk is loaded
pageBundle(function(page) {
render(page);
});
}
webpackContext.id = 6;
/***/ }),
/* 7 */
/* unknown exports provided */
/* all exports used */
/*!********************************************!*\
!*** (webpack)/~/bundle-loader!./aPage.js ***!
\********************************************/
/*!*******************************************************!*\
!*** (webpack)/node_modules/bundle-loader!./aPage.js ***!
\*******************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var cbs = [],
@ -364,11 +360,11 @@ __webpack_require__.e/* require.ensure */(1).then((function(require) {
/***/ }),
/* 8 */
/* unknown exports provided */
/* all exports used */
/*!********************************************!*\
!*** (webpack)/~/bundle-loader!./bPage.js ***!
\********************************************/
/*!*******************************************************!*\
!*** (webpack)/node_modules/bundle-loader!./bPage.js ***!
\*******************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var cbs = [],
@ -396,11 +392,11 @@ __webpack_require__.e/* require.ensure */(0).then((function(require) {
webpackJsonp([3,1],[
/* 0 */,
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!******************!*\
!*** ./aPage.js ***!
\******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -409,13 +405,12 @@ module.exports = function() {
/***/ }),
/* 2 */,
/* 3 */,
/* 4 */
/* unknown exports provided */
/* all exports used */
/* 3 */
/*!*******************!*\
!*** ./aEntry.js ***!
\*******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
// Just show the page "a"
@ -423,7 +418,7 @@ var render = __webpack_require__(/*! ./render */ 0);
render(__webpack_require__(/*! ./aPage */ 1));
/***/ })
],[4]);
],[3]);
```
# js/1.chunk.js
@ -432,11 +427,11 @@ render(__webpack_require__(/*! ./aPage */ 1));
webpackJsonp([1],[
/* 0 */,
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!******************!*\
!*** ./aPage.js ***!
\******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -452,101 +447,101 @@ module.exports = function() {
## Uncompressed
```
Hash: 4b84e80c971540cd022b
Version: webpack 2.6.0
Hash: 4b00bdf84d7923f55b44
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.chunk.js 266 bytes 0 [emitted]
1.chunk.js 272 bytes 1 [emitted]
pageB.bundle.js 606 bytes 2, 0 [emitted] pageB
pageA.bundle.js 628 bytes 3, 1 [emitted] pageA
commons.js 9.65 kB 4 [emitted] commons
0.chunk.js 267 bytes 0 [emitted]
1.chunk.js 273 bytes 1 [emitted]
pageB.bundle.js 630 bytes 2, 0 [emitted] pageB
pageA.bundle.js 621 bytes 3, 1 [emitted] pageA
commons.js 9.59 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 61 bytes {4} [rendered]
> [8] (webpack)/~/bundle-loader!./bPage.js 7:0-14:2
> [8] (webpack)/node_modules/bundle-loader!./bPage.js 7:0-14:2
[2] ./bPage.js 61 bytes {0} {2} [built]
cjs require ./bPage [5] ./bEntry.js 3:7-25
cjs require !!./bPage.js [8] (webpack)/~/bundle-loader!./bPage.js 8:8-31
cjs require ./bPage [4] ./bEntry.js 3:7-25
cjs require !!./bPage.js [8] (webpack)/node_modules/bundle-loader!./bPage.js 8:8-31
chunk {1} 1.chunk.js 61 bytes {4} [rendered]
> [7] (webpack)/~/bundle-loader!./aPage.js 7:0-14:2
> [7] (webpack)/node_modules/bundle-loader!./aPage.js 7:0-14:2
[1] ./aPage.js 61 bytes {1} {3} [built]
cjs require ./aPage [4] ./aEntry.js 3:7-25
cjs require !!./aPage.js [7] (webpack)/~/bundle-loader!./aPage.js 8:8-31
cjs require ./aPage [3] ./aEntry.js 3:7-25
cjs require !!./aPage.js [7] (webpack)/node_modules/bundle-loader!./aPage.js 8:8-31
chunk {2} pageB.bundle.js (pageB) 150 bytes {4} [initial] [rendered]
> pageB [5] ./bEntry.js
> pageB [4] ./bEntry.js
[2] ./bPage.js 61 bytes {0} {2} [built]
cjs require ./bPage [5] ./bEntry.js 3:7-25
cjs require !!./bPage.js [8] (webpack)/~/bundle-loader!./bPage.js 8:8-31
[5] ./bEntry.js 89 bytes {2} [built]
cjs require ./bPage [4] ./bEntry.js 3:7-25
cjs require !!./bPage.js [8] (webpack)/node_modules/bundle-loader!./bPage.js 8:8-31
[4] ./bEntry.js 89 bytes {2} [built]
chunk {3} pageA.bundle.js (pageA) 150 bytes {4} [initial] [rendered]
> pageA [4] ./aEntry.js
> pageA [3] ./aEntry.js
[1] ./aPage.js 61 bytes {1} {3} [built]
cjs require ./aPage [4] ./aEntry.js 3:7-25
cjs require !!./aPage.js [7] (webpack)/~/bundle-loader!./aPage.js 8:8-31
[4] ./aEntry.js 89 bytes {3} [built]
cjs require ./aPage [3] ./aEntry.js 3:7-25
cjs require !!./aPage.js [7] (webpack)/node_modules/bundle-loader!./aPage.js 8:8-31
[3] ./aEntry.js 89 bytes {3} [built]
chunk {4} commons.js (commons) 1.71 kB [entry] [rendered]
> commons [6] ./router.js
> commons [5] ./router.js
[0] ./render.js 60 bytes {4} [built]
cjs require ./render [4] ./aEntry.js 2:13-32
cjs require ./render [5] ./bEntry.js 2:13-32
cjs require ./render [6] ./router.js 1:13-32
[3] . (webpack)/~/bundle-loader! ^\.\/.*Page$ 184 bytes {4} [built]
cjs require context bundle-loader!. [6] ./router.js 18:18-61
[6] ./router.js 903 bytes {4} [built]
[7] (webpack)/~/bundle-loader!./aPage.js 282 bytes {4} [optional] [built]
context element ./aPage [3] . (webpack)/~/bundle-loader! ^\.\/.*Page$ ./aPage
[8] (webpack)/~/bundle-loader!./bPage.js 282 bytes {4} [optional] [built]
context element ./bPage [3] . (webpack)/~/bundle-loader! ^\.\/.*Page$ ./bPage
cjs require ./render [3] ./aEntry.js 2:13-32
cjs require ./render [4] ./bEntry.js 2:13-32
cjs require ./render [5] ./router.js 1:13-32
[5] ./router.js 903 bytes {4} [built]
[6] . (webpack)/node_modules/bundle-loader! ^\.\/.*Page$ 184 bytes {4} [built]
cjs require context bundle-loader!. [5] ./router.js 18:18-61
[7] (webpack)/node_modules/bundle-loader!./aPage.js 282 bytes {4} [optional] [built]
context element ./aPage [6] . (webpack)/node_modules/bundle-loader! ^\.\/.*Page$ ./aPage
[8] (webpack)/node_modules/bundle-loader!./bPage.js 282 bytes {4} [optional] [built]
context element ./bPage [6] . (webpack)/node_modules/bundle-loader! ^\.\/.*Page$ ./bPage
```
## Minimized (uglify-js, no zip)
```
Hash: 4b84e80c971540cd022b
Version: webpack 2.6.0
Hash: 4b00bdf84d7923f55b44
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.chunk.js 83 bytes 0 [emitted]
1.chunk.js 82 bytes 1 [emitted]
pageB.bundle.js 119 bytes 2, 0 [emitted] pageB
pageA.bundle.js 118 bytes 3, 1 [emitted] pageA
commons.js 2.16 kB 4 [emitted] commons
pageB.bundle.js 118 bytes 2, 0 [emitted] pageB
pageA.bundle.js 117 bytes 3, 1 [emitted] pageA
commons.js 2.13 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 61 bytes {4} [rendered]
> [8] (webpack)/~/bundle-loader!./bPage.js 7:0-14:2
> [8] (webpack)/node_modules/bundle-loader!./bPage.js 7:0-14:2
[2] ./bPage.js 61 bytes {0} {2} [built]
cjs require ./bPage [5] ./bEntry.js 3:7-25
cjs require !!./bPage.js [8] (webpack)/~/bundle-loader!./bPage.js 8:8-31
cjs require ./bPage [4] ./bEntry.js 3:7-25
cjs require !!./bPage.js [8] (webpack)/node_modules/bundle-loader!./bPage.js 8:8-31
chunk {1} 1.chunk.js 61 bytes {4} [rendered]
> [7] (webpack)/~/bundle-loader!./aPage.js 7:0-14:2
> [7] (webpack)/node_modules/bundle-loader!./aPage.js 7:0-14:2
[1] ./aPage.js 61 bytes {1} {3} [built]
cjs require ./aPage [4] ./aEntry.js 3:7-25
cjs require !!./aPage.js [7] (webpack)/~/bundle-loader!./aPage.js 8:8-31
cjs require ./aPage [3] ./aEntry.js 3:7-25
cjs require !!./aPage.js [7] (webpack)/node_modules/bundle-loader!./aPage.js 8:8-31
chunk {2} pageB.bundle.js (pageB) 150 bytes {4} [initial] [rendered]
> pageB [5] ./bEntry.js
> pageB [4] ./bEntry.js
[2] ./bPage.js 61 bytes {0} {2} [built]
cjs require ./bPage [5] ./bEntry.js 3:7-25
cjs require !!./bPage.js [8] (webpack)/~/bundle-loader!./bPage.js 8:8-31
[5] ./bEntry.js 89 bytes {2} [built]
cjs require ./bPage [4] ./bEntry.js 3:7-25
cjs require !!./bPage.js [8] (webpack)/node_modules/bundle-loader!./bPage.js 8:8-31
[4] ./bEntry.js 89 bytes {2} [built]
chunk {3} pageA.bundle.js (pageA) 150 bytes {4} [initial] [rendered]
> pageA [4] ./aEntry.js
> pageA [3] ./aEntry.js
[1] ./aPage.js 61 bytes {1} {3} [built]
cjs require ./aPage [4] ./aEntry.js 3:7-25
cjs require !!./aPage.js [7] (webpack)/~/bundle-loader!./aPage.js 8:8-31
[4] ./aEntry.js 89 bytes {3} [built]
cjs require ./aPage [3] ./aEntry.js 3:7-25
cjs require !!./aPage.js [7] (webpack)/node_modules/bundle-loader!./aPage.js 8:8-31
[3] ./aEntry.js 89 bytes {3} [built]
chunk {4} commons.js (commons) 1.71 kB [entry] [rendered]
> commons [6] ./router.js
> commons [5] ./router.js
[0] ./render.js 60 bytes {4} [built]
cjs require ./render [4] ./aEntry.js 2:13-32
cjs require ./render [5] ./bEntry.js 2:13-32
cjs require ./render [6] ./router.js 1:13-32
[3] . (webpack)/~/bundle-loader! ^\.\/.*Page$ 184 bytes {4} [built]
cjs require context bundle-loader!. [6] ./router.js 18:18-61
[6] ./router.js 903 bytes {4} [built]
[7] (webpack)/~/bundle-loader!./aPage.js 282 bytes {4} [optional] [built]
context element ./aPage [3] . (webpack)/~/bundle-loader! ^\.\/.*Page$ ./aPage
[8] (webpack)/~/bundle-loader!./bPage.js 282 bytes {4} [optional] [built]
context element ./bPage [3] . (webpack)/~/bundle-loader! ^\.\/.*Page$ ./bPage
cjs require ./render [3] ./aEntry.js 2:13-32
cjs require ./render [4] ./bEntry.js 2:13-32
cjs require ./render [5] ./router.js 1:13-32
[5] ./router.js 903 bytes {4} [built]
[6] . (webpack)/node_modules/bundle-loader! ^\.\/.*Page$ 184 bytes {4} [built]
cjs require context bundle-loader!. [5] ./router.js 18:18-61
[7] (webpack)/node_modules/bundle-loader!./aPage.js 282 bytes {4} [optional] [built]
context element ./aPage [6] . (webpack)/node_modules/bundle-loader! ^\.\/.*Page$ ./aPage
[8] (webpack)/node_modules/bundle-loader!./bPage.js 282 bytes {4} [optional] [built]
context element ./bPage [6] . (webpack)/node_modules/bundle-loader! ^\.\/.*Page$ ./bPage
```

View File

@ -86,9 +86,6 @@ module.exports = Object.keys(languages).map(function(language) {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -126,11 +123,11 @@ module.exports = Object.keys(languages).map(function(language) {
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
console.log("Hallo Welt");
@ -178,9 +175,6 @@ console.log("Missing Text");
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -213,11 +207,11 @@ console.log("Missing Text");
/************************************************************************/
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
console.log("Hello World");
@ -233,11 +227,11 @@ console.log("Missing Text");
```
Hash: b61d16621736c97f557e52b4d8e68140f1345ef8
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Child en:
Hash: b61d16621736c97f557e
Asset Size Chunks Chunk Names
en.output.js 2.85 kB 0 [emitted] main
en.output.js 2.69 kB 0 [emitted] main
Entrypoint main = en.output.js
chunk {0} en.output.js (main) 65 bytes [entry] [rendered]
> main [0] ./example.js
@ -245,7 +239,7 @@ Child en:
Child de:
Hash: 52b4d8e68140f1345ef8
Asset Size Chunks Chunk Names
de.output.js 2.85 kB 0 [emitted] main
de.output.js 2.69 kB 0 [emitted] main
Entrypoint main = de.output.js
chunk {0} de.output.js (main) 65 bytes [entry] [rendered]
> main [0] ./example.js
@ -259,11 +253,11 @@ Child de:
```
Hash: b61d16621736c97f557e52b4d8e68140f1345ef8
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Child en:
Hash: b61d16621736c97f557e
Asset Size Chunks Chunk Names
en.output.js 564 bytes 0 [emitted] main
en.output.js 538 bytes 0 [emitted] main
Entrypoint main = en.output.js
chunk {0} en.output.js (main) 65 bytes [entry] [rendered]
> main [0] ./example.js
@ -271,7 +265,7 @@ Child en:
Child de:
Hash: 52b4d8e68140f1345ef8
Asset Size Chunks Chunk Names
de.output.js 563 bytes 0 [emitted] main
de.output.js 537 bytes 0 [emitted] main
Entrypoint main = de.output.js
chunk {0} de.output.js (main) 65 bytes [entry] [rendered]
> main [0] ./example.js

View File

@ -71,9 +71,6 @@ module.exports = function(content) {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -101,7 +98,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 = 1);
/******/ })
/************************************************************************/
```
@ -111,14 +108,14 @@ module.exports = function(content) {
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** (webpack)/~/css-loader!./test.css ***!
\*****************************************/
/*!****************************************************!*\
!*** (webpack)/node_modules/css-loader!./test.css ***!
\****************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(/*! ../../~/css-loader/lib/css-base.js */ 3)();
exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/lib/css-base.js */ 3)(undefined);
// imports
@ -130,40 +127,40 @@ exports.push([module.i, ".some-class {\r\n\tcolor: hotpink;\r\n}\r\n", ""]);
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!*****************************!*\
!*** ./loader.js!./file.js ***!
\*****************************/
/***/ (function(module, exports) {
exports.answer = 42;
exports.foo = "bar";
/***/ }),
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
// use our loader
console.dir(__webpack_require__(/*! ./loader!./file */ 1));
console.dir(__webpack_require__(/*! ./loader!./file */ 2));
// use buildin css loader
console.dir(__webpack_require__(/*! ./test.css */ 0)); // default by extension
console.dir(__webpack_require__(/*! css-loader!./test.css */ 0)); // manual
/***/ }),
/* 2 */
/*!*****************************!*\
!*** ./loader.js!./file.js ***!
\*****************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
exports.answer = 42;
exports.foo = "bar";
/***/ }),
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!**********************************************!*\
!*** (webpack)/~/css-loader/lib/css-base.js ***!
\**********************************************/
/*!*********************************************************!*\
!*** (webpack)/node_modules/css-loader/lib/css-base.js ***!
\*********************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
/*
@ -171,21 +168,19 @@ console.dir(__webpack_require__(/*! css-loader!./test.css */ 0)); // manual
Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
module.exports = function() {
module.exports = function(useSourceMap) {
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];
return this.map(function (item) {
var content = cssWithMappingToString(item, useSourceMap);
if(item[2]) {
result.push("@media " + item[2] + "{" + item[1] + "}");
return "@media " + item[2] + "{" + content + "}";
} else {
result.push(item[1]);
return content;
}
}
return result.join("");
}).join("");
};
// import a list of modules into the list
@ -217,6 +212,34 @@ module.exports = function() {
return list;
};
function cssWithMappingToString(item, useSourceMap) {
var content = item[1] || '';
var cssMapping = item[3];
if (!cssMapping) {
return content;
}
if (useSourceMap && typeof btoa === 'function') {
var sourceMapping = toComment(cssMapping);
var sourceURLs = cssMapping.sources.map(function (source) {
return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
});
return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
}
return [content].join('\n');
}
// Adapted from convert-source-map (MIT)
function toComment(sourceMap) {
// eslint-disable-next-line no-undef
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
return '/*# ' + data + ' */';
}
/***/ })
/******/ ]);
@ -237,39 +260,39 @@ Prints in node.js (`enhanced-require example.js`) and in browser:
## Uncompressed
```
Hash: 122940bedb7c52974923
Version: webpack 2.6.0
Hash: c15a21a2e67111e1cd94
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 5.56 kB 0 [emitted] main
output.js 6.24 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 1.96 kB [entry] [rendered]
> main [2] ./example.js
[0] (webpack)/~/css-loader!./test.css 200 bytes {0} [built]
cjs require !css-loader!./test.css [2] ./example.js 6:12-45
cjs require ./test.css [2] ./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 210 bytes {0} [built]
[3] (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-83
chunk {0} output.js (main) 2.72 kB [entry] [rendered]
> main [1] ./example.js
[0] (webpack)/node_modules/css-loader!./test.css 209 bytes {0} [built]
cjs require !css-loader!./test.css [1] ./example.js 6:12-45
cjs require ./test.css [1] ./example.js 5:12-33
[1] ./example.js 210 bytes {0} [built]
[2] ./loader.js!./file.js 41 bytes {0} [built]
cjs require ./loader!./file [1] ./example.js 2:12-38
[3] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [0] (webpack)/node_modules/css-loader!./test.css 1:27-83
```
## Minimized (uglify-js, no zip)
```
Hash: 9605bb0c7b03c2e56bef
Version: webpack 2.6.0
Hash: 1848e785d8b4fe1c67d0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 1.16 kB 0 [emitted] main
output.js 1.48 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 1.94 kB [entry] [rendered]
> main [2] ./example.js
[0] (webpack)/~/css-loader!./test.css 183 bytes {0} [built]
cjs require !css-loader!./test.css [2] ./example.js 6:12-45
cjs require ./test.css [2] ./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 210 bytes {0} [built]
[3] (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-83
chunk {0} output.js (main) 2.7 kB [entry] [rendered]
> main [1] ./example.js
[0] (webpack)/node_modules/css-loader!./test.css 192 bytes {0} [built]
cjs require !css-loader!./test.css [1] ./example.js 6:12-45
cjs require ./test.css [1] ./example.js 5:12-33
[1] ./example.js 210 bytes {0} [built]
[2] ./loader.js!./file.js 41 bytes {0} [built]
cjs require ./loader!./file [1] ./example.js 2:12-38
[3] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [0] (webpack)/node_modules/css-loader!./test.css 1:27-83
```

View File

@ -93,8 +93,6 @@ require(
/******/ 1: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -122,20 +120,21 @@ require(
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -174,9 +173,6 @@ require(
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -217,55 +213,55 @@ require(
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!*********************!*\
!*** ./commonjs.js ***!
\*********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
// CommonJs Module Format
module.exports = 123;
// but you can use amd style requires
new Promise(function(resolve) { resolve(); }).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./amd */ 1), __webpack_require__(/*! ./harmony */ 2)]; (function(amd1, harmony) {
var amd2 = __webpack_require__(/*! ./amd */ 1);
var harmony2 = __webpack_require__(/*! ./harmony */ 2);
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
/***/ }),
/* 1 */
/*!****************!*\
!*** ./amd.js ***!
\****************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// AMD Module Format
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./commonjs */ 1), __webpack_require__(/*! ./harmony */ 2)], __WEBPACK_AMD_DEFINE_RESULT__ = function(commonjs1, harmony1) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./commonjs */ 0), __webpack_require__(/*! ./harmony */ 2)], __WEBPACK_AMD_DEFINE_RESULT__ = function(commonjs1, harmony1) {
// but you can use CommonJs-style requires:
var commonjs2 = __webpack_require__(/*! ./commonjs */ 1);
var commonjs2 = __webpack_require__(/*! ./commonjs */ 0);
var harmony2 = __webpack_require__(/*! ./harmony */ 2);
// Do something...
return 456;
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!*********************!*\
!*** ./commonjs.js ***!
\*********************/
/***/ (function(module, exports, __webpack_require__) {
// CommonJs Module Format
module.exports = 123;
// but you can use amd style requires
new Promise(function(resolve) { 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__));}).catch(__webpack_require__.oe);
/***/ }),
/* 2 */
/* exports provided: default */
/* all exports used */
/*!********************!*\
!*** ./harmony.js ***!
\********************/
/*! exports provided: default */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__commonjs__ = __webpack_require__(/*! ./commonjs */ 1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__commonjs__ = __webpack_require__(/*! ./commonjs */ 0);
/* 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);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__amd__ = __webpack_require__(/*! ./amd */ 1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__amd___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__amd__);
// ES6 Modules
@ -276,23 +272,23 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/***/ }),
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
// CommonJs-style requires
var commonjs1 = __webpack_require__(/*! ./commonjs */ 1);
var amd1 = __webpack_require__(/*! ./amd */ 0);
var commonjs1 = __webpack_require__(/*! ./commonjs */ 0);
var amd1 = __webpack_require__(/*! ./amd */ 1);
var harmony1 = __webpack_require__(/*! ./harmony */ 2);
// AMD-style requires (with all webpack features)
__webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [
__webpack_require__(/*! ./commonjs */ 1), __webpack_require__(/*! ./amd */ 0),
__webpack_require__(/*! ./commonjs */ 0), __webpack_require__(/*! ./amd */ 1),
__webpack_require__(/*! ../require.context/templates */ 4)("./"+amd1+".js"),
Math.random() < 0.5 ? __webpack_require__(/*! ./commonjs */ 1) : __webpack_require__(/*! ./amd */ 0)]; (function(commonjs2, amd2, template, randModule) {
Math.random() < 0.5 ? __webpack_require__(/*! ./commonjs */ 0) : __webpack_require__(/*! ./amd */ 1)]; (function(commonjs2, amd2, template, randModule) {
// Do something with it...
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
@ -310,11 +306,11 @@ webpackJsonp([0],[
/* 2 */,
/* 3 */,
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!*************************************************!*\
!*** ../require.context/templates ^\.\/.*\.js$ ***!
\*************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var map = {
@ -340,11 +336,11 @@ webpackContext.id = 4;
/***/ }),
/* 5 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -353,11 +349,11 @@ module.exports = function() {
/***/ }),
/* 6 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -366,11 +362,11 @@ module.exports = function() {
/***/ }),
/* 7 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -386,11 +382,11 @@ module.exports = function() {
## Uncompressed
```
Hash: 9de04164c6e05168d4d0
Version: webpack 2.6.0
Hash: ec4ce5e31af3a13d93fa
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 1.85 kB 0 [emitted]
output.js 9.24 kB 1 [emitted] main
0.output.js 1.86 kB 0 [emitted]
output.js 9.08 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 439 bytes {1} [rendered]
> [3] ./example.js 7:0-14:1
@ -404,26 +400,26 @@ chunk {0} 0.output.js 439 bytes {1} [rendered]
context element ./c.js [4] ../require.context/templates ^\.\/.*\.js$ ./c.js
chunk {1} output.js (main) 1.05 kB [entry] [rendered]
> main [3] ./example.js
[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 [3] ./example.js 3:11-27
amd require ./amd [3] ./example.js 7:0-14:1
amd require ./amd [3] ./example.js 7:0-14:1
[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
[0] ./commonjs.js 233 bytes {1} [built]
amd require ./commonjs [1] ./amd.js 2:0-12:1
cjs require ./commonjs [1] ./amd.js 7:18-39
harmony import ./commonjs [2] ./harmony.js 2:0-34
cjs require ./commonjs [3] ./example.js 2:16-37
amd require ./commonjs [3] ./example.js 7:0-14:1
amd require ./commonjs [3] ./example.js 7:0-14:1
[1] ./amd.js 309 bytes {1} [built]
amd require ./amd [0] ./commonjs.js 5:0-11:1
cjs require ./amd [0] ./commonjs.js 8:13-29
harmony import ./amd [2] ./harmony.js 3:0-24
cjs require ./amd [3] ./example.js 3:11-27
amd require ./amd [3] ./example.js 7:0-14:1
amd require ./amd [3] ./example.js 7:0-14:1
[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
amd require ./harmony [0] ./commonjs.js 5:0-11:1
cjs require ./harmony [0] ./commonjs.js 9:17-37
amd require ./harmony [1] ./amd.js 2:0-12:1
cjs require ./harmony [1] ./amd.js 8:17-37
cjs require ./harmony [3] ./example.js 4:15-35
[3] ./example.js 410 bytes {1} [built]
```
@ -431,11 +427,11 @@ chunk {1} output.js (main) 1.05 kB [entry] [rendered]
## Minimized (uglify-js, no zip)
```
Hash: 9de04164c6e05168d4d0
Version: webpack 2.6.0
Hash: ec4ce5e31af3a13d93fa
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 523 bytes 0 [emitted]
output.js 1.92 kB 1 [emitted] main
output.js 1.89 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 439 bytes {1} [rendered]
> [3] ./example.js 7:0-14:1
@ -449,26 +445,26 @@ chunk {0} 0.output.js 439 bytes {1} [rendered]
context element ./c.js [4] ../require.context/templates ^\.\/.*\.js$ ./c.js
chunk {1} output.js (main) 1.05 kB [entry] [rendered]
> main [3] ./example.js
[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 [3] ./example.js 3:11-27
amd require ./amd [3] ./example.js 7:0-14:1
amd require ./amd [3] ./example.js 7:0-14:1
[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
[0] ./commonjs.js 233 bytes {1} [built]
amd require ./commonjs [1] ./amd.js 2:0-12:1
cjs require ./commonjs [1] ./amd.js 7:18-39
harmony import ./commonjs [2] ./harmony.js 2:0-34
cjs require ./commonjs [3] ./example.js 2:16-37
amd require ./commonjs [3] ./example.js 7:0-14:1
amd require ./commonjs [3] ./example.js 7:0-14:1
[1] ./amd.js 309 bytes {1} [built]
amd require ./amd [0] ./commonjs.js 5:0-11:1
cjs require ./amd [0] ./commonjs.js 8:13-29
harmony import ./amd [2] ./harmony.js 3:0-24
cjs require ./amd [3] ./example.js 3:11-27
amd require ./amd [3] ./example.js 7:0-14:1
amd require ./amd [3] ./example.js 7:0-14:1
[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
amd require ./harmony [0] ./commonjs.js 5:0-11:1
cjs require ./harmony [0] ./commonjs.js 9:17-37
amd require ./harmony [1] ./amd.js 2:0-12:1
cjs require ./harmony [1] ./amd.js 8:17-37
cjs require ./harmony [3] ./example.js 4:15-35
[3] ./example.js 410 bytes {1} [built]
```

View File

@ -105,193 +105,193 @@ module.exports = [{
## Uncompressed
```
Hash: 92649f18837fbb021129ea807ff9294488030e7d297a4b5e23527060dcf866a6fc0a7d0ef06171d3
Version: webpack 2.6.0
Hash: 32754229c1b49aaf5dd3020f354a206f830a17560d92a3529fe0380101f3e2c85f80fcddae09adcf
Version: webpack 3.0.0-rc.0
Child page:
Hash: 92649f18837fbb021129
Hash: 32754229c1b49aaf5dd3
Asset Size Chunks Chunk Names
0.chunk.js 787 bytes 0, 1, 2, 3 [emitted]
1.chunk.js 595 bytes 1, 2, 3 [emitted]
2.chunk.js 403 bytes 2, 3 [emitted]
3.chunk.js 211 bytes 3 [emitted]
page.bundle.js 6.78 kB 4 [emitted] page
0.chunk.js 800 bytes 0, 1, 2, 3 [emitted]
1.chunk.js 598 bytes 1, 2, 3 [emitted]
2.chunk.js 405 bytes 2, 3 [emitted]
3.chunk.js 212 bytes 3 [emitted]
page.bundle.js 6.62 kB 4 [emitted] page
Entrypoint page = page.bundle.js
chunk {0} 0.chunk.js 84 bytes {4} [rendered]
> [4] ./page.js 4:0-37
> [3] ./page.js 4:0-37
[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]
[3] ./d.js 21 bytes {0} [built]
[4] ./d.js 21 bytes {0} [built]
chunk {1} 1.chunk.js 63 bytes {4} [rendered]
> [4] ./page.js 3:0-30
> [3] ./page.js 3:0-30
[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 {4} [rendered]
> [4] ./page.js 2:0-23
> [3] ./page.js 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 {4} [rendered]
> [4] ./page.js 1:0-16
> [3] ./page.js 1:0-16
[0] ./a.js 21 bytes {0} {1} {2} {3} [built]
chunk {4} page.bundle.js (page) 118 bytes [entry] [rendered]
> page [4] ./page.js
[4] ./page.js 118 bytes {4} [built]
> page [3] ./page.js
[3] ./page.js 118 bytes {4} [built]
Child pageA:
Hash: ea807ff9294488030e7d
Hash: 020f354a206f830a1756
Asset Size Chunks Chunk Names
0.chunk.js 604 bytes 0, 1, 2 [emitted]
1.chunk.js 412 bytes 1, 2 [emitted]
2.chunk.js 220 bytes 2 [emitted]
pageA.bundle.js 7 kB 3 [emitted] pageA
0.chunk.js 616 bytes 0, 1, 2 [emitted]
1.chunk.js 414 bytes 1, 2 [emitted]
2.chunk.js 221 bytes 2 [emitted]
pageA.bundle.js 6.83 kB 3 [emitted] pageA
Entrypoint pageA = pageA.bundle.js
chunk {0} 0.chunk.js 63 bytes {3} [rendered]
> [4] ./page.js 4:0-37
> [3] ./page.js 4:0-37
[1] ./b.js 21 bytes {0} {1} {2} [built]
[2] ./c.js 21 bytes {0} {1} [built]
[3] ./d.js 21 bytes {0} [built]
[4] ./d.js 21 bytes {0} [built]
chunk {1} 1.chunk.js 42 bytes {3} [rendered]
> [4] ./page.js 3:0-30
> [3] ./page.js 3:0-30
[1] ./b.js 21 bytes {0} {1} {2} [built]
[2] ./c.js 21 bytes {0} {1} [built]
chunk {2} 2.chunk.js 21 bytes {3} [rendered]
> [4] ./page.js 2:0-23
> [3] ./page.js 2:0-23
[1] ./b.js 21 bytes {0} {1} {2} [built]
chunk {3} pageA.bundle.js (pageA) 139 bytes [entry] [rendered]
> pageA [4] ./page.js
> pageA [3] ./page.js
[0] ./a.js 21 bytes {3} [built]
[4] ./page.js 118 bytes {3} [built]
[3] ./page.js 118 bytes {3} [built]
Child pageB:
Hash: 297a4b5e23527060dcf8
Hash: 0d92a3529fe0380101f3
Asset Size Chunks Chunk Names
0.chunk.js 421 bytes 0, 1 [emitted]
1.chunk.js 214 bytes 1 [emitted]
pageB.bundle.js 7.19 kB 2 [emitted] pageB
0.chunk.js 432 bytes 0, 1 [emitted]
1.chunk.js 215 bytes 1 [emitted]
pageB.bundle.js 7.02 kB 2 [emitted] pageB
Entrypoint pageB = pageB.bundle.js
chunk {0} 0.chunk.js 42 bytes {2} [rendered]
> [4] ./page.js 4:0-37
> [3] ./page.js 4:0-37
[2] ./c.js 21 bytes {0} {1} [built]
[3] ./d.js 21 bytes {0} [built]
[4] ./d.js 21 bytes {0} [built]
chunk {1} 1.chunk.js 21 bytes {2} [rendered]
> [4] ./page.js 3:0-30
> [3] ./page.js 3:0-30
[2] ./c.js 21 bytes {0} {1} [built]
chunk {2} pageB.bundle.js (pageB) 160 bytes [entry] [rendered]
> pageB [4] ./page.js
> pageB [3] ./page.js
[0] ./a.js 21 bytes {2} [built]
[1] ./b.js 21 bytes {2} [built]
[4] ./page.js 118 bytes {2} [built]
[3] ./page.js 118 bytes {2} [built]
Child pageC:
Hash: 66a6fc0a7d0ef06171d3
Hash: e2c85f80fcddae09adcf
Asset Size Chunks Chunk Names
0.chunk.js 220 bytes 0 [emitted]
pageC.bundle.js 7.39 kB 1 [emitted] pageC
0.chunk.js 221 bytes 0 [emitted]
pageC.bundle.js 7.23 kB 1 [emitted] pageC
Entrypoint pageC = pageC.bundle.js
chunk {0} 0.chunk.js 21 bytes {1} [rendered]
> duplicate [4] ./page.js 2:0-23
> duplicate [4] ./page.js 3:0-30
> duplicate [4] ./page.js 4:0-37
> duplicate [3] ./page.js 2:0-23
> duplicate [3] ./page.js 3:0-30
> duplicate [3] ./page.js 4:0-37
[1] ./b.js 21 bytes {0} [built]
chunk {1} pageC.bundle.js (pageC) 181 bytes [entry] [rendered]
> pageC [4] ./page.js
> pageC [3] ./page.js
[0] ./a.js 21 bytes {1} [built]
[2] ./c.js 21 bytes {1} [built]
[3] ./d.js 21 bytes {1} [built]
[4] ./page.js 118 bytes {1} [built]
[3] ./page.js 118 bytes {1} [built]
[4] ./d.js 21 bytes {1} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 92649f18837fbb021129ea807ff9294488030e7d297a4b5e23527060dcf866a6fc0a7d0ef06171d3
Version: webpack 2.6.0
Hash: 32754229c1b49aaf5dd3020f354a206f830a17560d92a3529fe0380101f3e2c85f80fcddae09adcf
Version: webpack 3.0.0-rc.0
Child page:
Hash: 92649f18837fbb021129
Hash: 32754229c1b49aaf5dd3
Asset Size Chunks Chunk Names
0.chunk.js 142 bytes 0, 1, 2, 3 [emitted]
0.chunk.js 143 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]
page.bundle.js 1.57 kB 4 [emitted] page
page.bundle.js 1.54 kB 4 [emitted] page
Entrypoint page = page.bundle.js
chunk {0} 0.chunk.js 84 bytes {4} [rendered]
> [4] ./page.js 4:0-37
> [3] ./page.js 4:0-37
[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]
[3] ./d.js 21 bytes {0} [built]
[4] ./d.js 21 bytes {0} [built]
chunk {1} 1.chunk.js 63 bytes {4} [rendered]
> [4] ./page.js 3:0-30
> [3] ./page.js 3:0-30
[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 {4} [rendered]
> [4] ./page.js 2:0-23
> [3] ./page.js 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 {4} [rendered]
> [4] ./page.js 1:0-16
> [3] ./page.js 1:0-16
[0] ./a.js 21 bytes {0} {1} {2} {3} [built]
chunk {4} page.bundle.js (page) 118 bytes [entry] [rendered]
> page [4] ./page.js
[4] ./page.js 118 bytes {4} [built]
> page [3] ./page.js
[3] ./page.js 118 bytes {4} [built]
Child pageA:
Hash: ea807ff9294488030e7d
Hash: 020f354a206f830a1756
Asset Size Chunks Chunk Names
0.chunk.js 112 bytes 0, 1, 2 [emitted]
0.chunk.js 113 bytes 0, 1, 2 [emitted]
1.chunk.js 81 bytes 1, 2 [emitted]
2.chunk.js 50 bytes 2 [emitted]
pageA.bundle.js 1.62 kB 3 [emitted] pageA
pageA.bundle.js 1.59 kB 3 [emitted] pageA
Entrypoint pageA = pageA.bundle.js
chunk {0} 0.chunk.js 63 bytes {3} [rendered]
> [4] ./page.js 4:0-37
> [3] ./page.js 4:0-37
[1] ./b.js 21 bytes {0} {1} {2} [built]
[2] ./c.js 21 bytes {0} {1} [built]
[3] ./d.js 21 bytes {0} [built]
[4] ./d.js 21 bytes {0} [built]
chunk {1} 1.chunk.js 42 bytes {3} [rendered]
> [4] ./page.js 3:0-30
> [3] ./page.js 3:0-30
[1] ./b.js 21 bytes {0} {1} {2} [built]
[2] ./c.js 21 bytes {0} {1} [built]
chunk {2} 2.chunk.js 21 bytes {3} [rendered]
> [4] ./page.js 2:0-23
> [3] ./page.js 2:0-23
[1] ./b.js 21 bytes {0} {1} {2} [built]
chunk {3} pageA.bundle.js (pageA) 139 bytes [entry] [rendered]
> pageA [4] ./page.js
> pageA [3] ./page.js
[0] ./a.js 21 bytes {3} [built]
[4] ./page.js 118 bytes {3} [built]
[3] ./page.js 118 bytes {3} [built]
Child pageB:
Hash: 297a4b5e23527060dcf8
Hash: 0d92a3529fe0380101f3
Asset Size Chunks Chunk Names
0.chunk.js 82 bytes 0, 1 [emitted]
0.chunk.js 83 bytes 0, 1 [emitted]
1.chunk.js 51 bytes 1 [emitted]
pageB.bundle.js 1.67 kB 2 [emitted] pageB
pageB.bundle.js 1.64 kB 2 [emitted] pageB
Entrypoint pageB = pageB.bundle.js
chunk {0} 0.chunk.js 42 bytes {2} [rendered]
> [4] ./page.js 4:0-37
> [3] ./page.js 4:0-37
[2] ./c.js 21 bytes {0} {1} [built]
[3] ./d.js 21 bytes {0} [built]
[4] ./d.js 21 bytes {0} [built]
chunk {1} 1.chunk.js 21 bytes {2} [rendered]
> [4] ./page.js 3:0-30
> [3] ./page.js 3:0-30
[2] ./c.js 21 bytes {0} {1} [built]
chunk {2} pageB.bundle.js (pageB) 160 bytes [entry] [rendered]
> pageB [4] ./page.js
> pageB [3] ./page.js
[0] ./a.js 21 bytes {2} [built]
[1] ./b.js 21 bytes {2} [built]
[4] ./page.js 118 bytes {2} [built]
[3] ./page.js 118 bytes {2} [built]
Child pageC:
Hash: 66a6fc0a7d0ef06171d3
Hash: e2c85f80fcddae09adcf
Asset Size Chunks Chunk Names
0.chunk.js 50 bytes 0 [emitted]
pageC.bundle.js 1.68 kB 1 [emitted] pageC
pageC.bundle.js 1.65 kB 1 [emitted] pageC
Entrypoint pageC = pageC.bundle.js
chunk {0} 0.chunk.js 21 bytes {1} [rendered]
> duplicate [4] ./page.js 2:0-23
> duplicate [4] ./page.js 3:0-30
> duplicate [4] ./page.js 4:0-37
> duplicate [3] ./page.js 2:0-23
> duplicate [3] ./page.js 3:0-30
> duplicate [3] ./page.js 4:0-37
[1] ./b.js 21 bytes {0} [built]
chunk {1} pageC.bundle.js (pageC) 181 bytes [entry] [rendered]
> pageC [4] ./page.js
> pageC [3] ./page.js
[0] ./a.js 21 bytes {1} [built]
[2] ./c.js 21 bytes {1} [built]
[3] ./d.js 21 bytes {1} [built]
[4] ./page.js 118 bytes {1} [built]
[3] ./page.js 118 bytes {1} [built]
[4] ./d.js 21 bytes {1} [built]
```

View File

@ -83,9 +83,6 @@ module.exports = [
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -123,11 +120,11 @@ module.exports = [
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
if(false) {
@ -177,9 +174,6 @@ console.log("Running " + "desktop" + " build");
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -207,34 +201,34 @@ console.log("Running " + "desktop" + " build");
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!*************************!*\
!*** ./mobile-stuff.js ***!
\*************************/
/***/ (function(module, exports) {
// mobile only stuff
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
if(true) {
__webpack_require__(/*! ./mobile-stuff */ 0);
__webpack_require__(/*! ./mobile-stuff */ 1);
}
console.log("Running " + "mobile" + " build");
/***/ }),
/* 1 */
/*!*************************!*\
!*** ./mobile-stuff.js ***!
\*************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// mobile only stuff
/***/ })
/******/ ]);
```
@ -244,22 +238,22 @@ console.log("Running " + "mobile" + " build");
## Uncompressed
```
Hash: f70659afcc9f62694e35cceba4bc5163d755f291
Version: webpack 2.6.0
Hash: a201abd2de73265dd538cceba4bc5163d755f291
Version: webpack 3.0.0-rc.0
Child mobile:
Hash: f70659afcc9f62694e35
Hash: a201abd2de73265dd538
Asset Size Chunks Chunk Names
mobile.js 3.12 kB 0 [emitted] main
mobile.js 2.96 kB 0 [emitted] main
Entrypoint main = mobile.js
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 97 bytes {0} [built]
> main [0] ./example.js
[0] ./example.js 97 bytes {0} [built]
[1] ./mobile-stuff.js 20 bytes {0} [built]
cjs require ./mobile-stuff [0] ./example.js 2:1-26
Child desktop:
Hash: cceba4bc5163d755f291
Asset Size Chunks Chunk Names
desktop.js 2.88 kB 0 [emitted] main
desktop.js 2.72 kB 0 [emitted] main
Entrypoint main = desktop.js
chunk {0} desktop.js (main) 97 bytes [entry] [rendered]
> main [0] ./example.js
@ -269,22 +263,22 @@ Child desktop:
## Minimized (uglify-js, no zip)
```
Hash: f70659afcc9f62694e35cceba4bc5163d755f291
Version: webpack 2.6.0
Hash: a201abd2de73265dd538cceba4bc5163d755f291
Version: webpack 3.0.0-rc.0
Child mobile:
Hash: f70659afcc9f62694e35
Hash: a201abd2de73265dd538
Asset Size Chunks Chunk Names
mobile.js 566 bytes 0 [emitted] main
mobile.js 540 bytes 0 [emitted] main
Entrypoint main = mobile.js
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 97 bytes {0} [built]
> main [0] ./example.js
[0] ./example.js 97 bytes {0} [built]
[1] ./mobile-stuff.js 20 bytes {0} [built]
cjs require ./mobile-stuff [0] ./example.js 2:1-26
Child desktop:
Hash: cceba4bc5163d755f291
Asset Size Chunks Chunk Names
desktop.js 546 bytes 0 [emitted] main
desktop.js 520 bytes 0 [emitted] main
Entrypoint main = desktop.js
chunk {0} desktop.js (main) 97 bytes [entry] [rendered]
> main [0] ./example.js

View File

@ -82,9 +82,6 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -122,11 +119,11 @@ return /******/ (function(modules) { // webpackBootstrap
``` js
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!******************!*\
!*** ./alpha.js ***!
\******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "alpha";
@ -184,9 +181,6 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -220,11 +214,11 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ ([
/* 0 */,
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!*****************!*\
!*** ./beta.js ***!
\*****************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "beta";
@ -240,10 +234,10 @@ module.exports = "beta";
```
Hash: 082bbeea226fa367215b
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
MyLibrary.beta.js 3.22 kB 0 [emitted] beta
MyLibrary.alpha.js 3.21 kB 1 [emitted] alpha
MyLibrary.beta.js 3.06 kB 0 [emitted] beta
MyLibrary.alpha.js 3.05 kB 1 [emitted] alpha
Entrypoint alpha = MyLibrary.alpha.js
Entrypoint beta = MyLibrary.beta.js
chunk {0} MyLibrary.beta.js (beta) 24 bytes [entry] [rendered]
@ -258,10 +252,10 @@ chunk {1} MyLibrary.alpha.js (alpha) 25 bytes [entry] [rendered]
```
Hash: 082bbeea226fa367215b
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
MyLibrary.beta.js 785 bytes 0 [emitted] beta
MyLibrary.alpha.js 787 bytes 1 [emitted] alpha
MyLibrary.beta.js 759 bytes 0 [emitted] beta
MyLibrary.alpha.js 761 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

@ -119,8 +119,6 @@ module.exports = {
/******/ 8: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -148,20 +146,21 @@ module.exports = {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -200,9 +199,6 @@ module.exports = {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -240,11 +236,11 @@ module.exports = {
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**************************!*\
!*** ./modules/a-b-c.js ***!
\**************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
@ -254,11 +250,11 @@ module.exports = {
/* 2 */,
/* 3 */,
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!************************!*\
!*** ./modules/a-b.js ***!
\************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
@ -273,23 +269,23 @@ module.exports = {
webpackJsonp([2],{
/***/ 2:
/* unknown exports provided */
/* all exports used */
/*!************************!*\
!*** ./modules/a-c.js ***!
\************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
/***/ }),
/***/ 8:
/* unknown exports provided */
/* all exports used */
/***/ 5:
/*!******************!*\
!*** ./pageA.js ***!
\******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ./modules/a-b-c */ 0);
@ -299,7 +295,7 @@ __webpack_require__(/*! ./modules/a-c */ 2);
/***/ })
},[8]);
},[5]);
```
# js/admin-commons.js
@ -308,11 +304,11 @@ __webpack_require__(/*! ./modules/a-c */ 2);
webpackJsonp([4],[
/* 0 */,
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!**************************!*\
!*** ./modules/admin.js ***!
\**************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
@ -326,12 +322,12 @@ webpackJsonp([4],[
``` javascript
webpackJsonp([6],{
/***/ 5:
/* unknown exports provided */
/* all exports used */
/***/ 8:
/*!***********************!*\
!*** ./adminPageA.js ***!
\***********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ./modules/a-b-c */ 0);
@ -339,7 +335,7 @@ __webpack_require__(/*! ./modules/admin */ 1);
/***/ })
},[5]);
},[8]);
```
# Info
@ -347,18 +343,18 @@ __webpack_require__(/*! ./modules/admin */ 1);
## Uncompressed
```
Hash: 8813e8cc41a26866a673
Version: webpack 2.6.0
Hash: 3ef8f91b150be0e10937
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
pageC.js 774 bytes 0 [emitted] pageC
pageB.js 571 bytes 1 [emitted] pageB
pageA.js 571 bytes 2 [emitted] pageA
adminPageC.js 548 bytes 3, 4 [emitted] adminPageC
admin-commons.js 235 bytes 4 [emitted] admin-commons
adminPageB.js 339 bytes 5 [emitted] adminPageB
adminPageA.js 339 bytes 6 [emitted] adminPageA
commons.js 6.4 kB 7, 8 [emitted] commons
c-commons.js 6.15 kB 8 [emitted] c-commons
pageC.js 813 bytes 0 [emitted] pageC
pageB.js 573 bytes 1 [emitted] pageB
pageA.js 573 bytes 2 [emitted] pageA
adminPageC.js 552 bytes 3, 4 [emitted] adminPageC
admin-commons.js 236 bytes 4 [emitted] admin-commons
adminPageB.js 340 bytes 5 [emitted] adminPageB
adminPageA.js 340 bytes 6 [emitted] adminPageA
commons.js 6.24 kB 7, 8 [emitted] commons
c-commons.js 5.99 kB 8 [emitted] c-commons
Entrypoint pageA = commons.js pageA.js
Entrypoint pageB = commons.js pageB.js
Entrypoint pageC = c-commons.js pageC.js
@ -366,80 +362,80 @@ 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) 83 bytes {8} [initial] [rendered]
> pageC [10] ./pageC.js
> pageC [7] ./pageC.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
cjs require ./modules/a-c [5] ./pageA.js 3:0-24
cjs require ./modules/a-c [7] ./pageC.js 3:0-24
[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 83 bytes {0} [built]
cjs require ./modules/b-c [6] ./pageB.js 3:0-24
cjs require ./modules/b-c [7] ./pageC.js 2:0-24
[7] ./pageC.js 83 bytes {0} [built]
chunk {1} pageB.js (pageB) 83 bytes {7} [initial] [rendered]
> pageB [9] ./pageB.js
> pageB [6] ./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 83 bytes {1} [built]
cjs require ./modules/b-c [6] ./pageB.js 3:0-24
cjs require ./modules/b-c [7] ./pageC.js 2:0-24
[6] ./pageB.js 83 bytes {1} [built]
chunk {2} pageA.js (pageA) 83 bytes {7} [initial] [rendered]
> pageA [8] ./pageA.js
> pageA [5] ./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 83 bytes {2} [built]
cjs require ./modules/a-c [5] ./pageA.js 3:0-24
cjs require ./modules/a-c [7] ./pageC.js 3:0-24
[5] ./pageA.js 83 bytes {2} [built]
chunk {3} adminPageC.js (adminPageC) 56 bytes {8} [initial] [rendered]
> adminPageC [7] ./adminPageC.js
> adminPageC [10] ./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 56 bytes {3} [built]
cjs require ./modules/admin [8] ./adminPageA.js 2:0-26
cjs require ./modules/admin [9] ./adminPageB.js 2:0-26
cjs require ./modules/admin [10] ./adminPageC.js 2:0-26
[10] ./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
cjs require ./modules/admin [8] ./adminPageA.js 2:0-26
cjs require ./modules/admin [9] ./adminPageB.js 2:0-26
cjs require ./modules/admin [10] ./adminPageC.js 2:0-26
chunk {5} adminPageB.js (adminPageB) 56 bytes {4} [initial] [rendered]
> adminPageB [6] ./adminPageB.js
[6] ./adminPageB.js 56 bytes {5} [built]
> adminPageB [9] ./adminPageB.js
[9] ./adminPageB.js 56 bytes {5} [built]
chunk {6} adminPageA.js (adminPageA) 56 bytes {4} [initial] [rendered]
> adminPageA [5] ./adminPageA.js
[5] ./adminPageA.js 56 bytes {6} [built]
> adminPageA [8] ./adminPageA.js
[8] ./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
cjs require ./modules/a-b-c [6] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [7] ./adminPageC.js 1:0-26
cjs require ./modules/a-b-c [8] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [9] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [10] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [5] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [6] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [7] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [8] ./adminPageA.js 1:0-26
cjs require ./modules/a-b-c [9] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [10] ./adminPageC.js 1:0-26
[4] ./modules/a-b.js 0 bytes {7} [built]
cjs require ./modules/a-b [8] ./pageA.js 2:0-24
cjs require ./modules/a-b [9] ./pageB.js 2:0-24
cjs require ./modules/a-b [5] ./pageA.js 2:0-24
cjs require ./modules/a-b [6] ./pageB.js 2:0-24
chunk {8} c-commons.js (c-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
cjs require ./modules/a-b-c [6] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [7] ./adminPageC.js 1:0-26
cjs require ./modules/a-b-c [8] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [9] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [10] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [5] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [6] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [7] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [8] ./adminPageA.js 1:0-26
cjs require ./modules/a-b-c [9] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [10] ./adminPageC.js 1:0-26
```
## Minimized (uglify-js, no zip)
```
Hash: 8813e8cc41a26866a673
Version: webpack 2.6.0
Hash: 3ef8f91b150be0e10937
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
pageC.js 96 bytes 0 [emitted] pageC
pageC.js 93 bytes 0 [emitted] pageC
pageB.js 76 bytes 1 [emitted] pageB
pageA.js 76 bytes 2 [emitted] pageA
adminPageC.js 73 bytes 3, 4 [emitted] adminPageC
adminPageC.js 75 bytes 3, 4 [emitted] adminPageC
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.43 kB 7, 8 [emitted] commons
c-commons.js 1.4 kB 8 [emitted] c-commons
commons.js 1.4 kB 7, 8 [emitted] commons
c-commons.js 1.38 kB 8 [emitted] c-commons
Entrypoint pageA = commons.js pageA.js
Entrypoint pageB = commons.js pageB.js
Entrypoint pageC = c-commons.js pageC.js
@ -447,61 +443,61 @@ 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) 83 bytes {8} [initial] [rendered]
> pageC [10] ./pageC.js
> pageC [7] ./pageC.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
cjs require ./modules/a-c [5] ./pageA.js 3:0-24
cjs require ./modules/a-c [7] ./pageC.js 3:0-24
[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 83 bytes {0} [built]
cjs require ./modules/b-c [6] ./pageB.js 3:0-24
cjs require ./modules/b-c [7] ./pageC.js 2:0-24
[7] ./pageC.js 83 bytes {0} [built]
chunk {1} pageB.js (pageB) 83 bytes {7} [initial] [rendered]
> pageB [9] ./pageB.js
> pageB [6] ./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 83 bytes {1} [built]
cjs require ./modules/b-c [6] ./pageB.js 3:0-24
cjs require ./modules/b-c [7] ./pageC.js 2:0-24
[6] ./pageB.js 83 bytes {1} [built]
chunk {2} pageA.js (pageA) 83 bytes {7} [initial] [rendered]
> pageA [8] ./pageA.js
> pageA [5] ./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 83 bytes {2} [built]
cjs require ./modules/a-c [5] ./pageA.js 3:0-24
cjs require ./modules/a-c [7] ./pageC.js 3:0-24
[5] ./pageA.js 83 bytes {2} [built]
chunk {3} adminPageC.js (adminPageC) 56 bytes {8} [initial] [rendered]
> adminPageC [7] ./adminPageC.js
> adminPageC [10] ./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 56 bytes {3} [built]
cjs require ./modules/admin [8] ./adminPageA.js 2:0-26
cjs require ./modules/admin [9] ./adminPageB.js 2:0-26
cjs require ./modules/admin [10] ./adminPageC.js 2:0-26
[10] ./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
cjs require ./modules/admin [8] ./adminPageA.js 2:0-26
cjs require ./modules/admin [9] ./adminPageB.js 2:0-26
cjs require ./modules/admin [10] ./adminPageC.js 2:0-26
chunk {5} adminPageB.js (adminPageB) 56 bytes {4} [initial] [rendered]
> adminPageB [6] ./adminPageB.js
[6] ./adminPageB.js 56 bytes {5} [built]
> adminPageB [9] ./adminPageB.js
[9] ./adminPageB.js 56 bytes {5} [built]
chunk {6} adminPageA.js (adminPageA) 56 bytes {4} [initial] [rendered]
> adminPageA [5] ./adminPageA.js
[5] ./adminPageA.js 56 bytes {6} [built]
> adminPageA [8] ./adminPageA.js
[8] ./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
cjs require ./modules/a-b-c [6] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [7] ./adminPageC.js 1:0-26
cjs require ./modules/a-b-c [8] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [9] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [10] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [5] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [6] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [7] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [8] ./adminPageA.js 1:0-26
cjs require ./modules/a-b-c [9] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [10] ./adminPageC.js 1:0-26
[4] ./modules/a-b.js 0 bytes {7} [built]
cjs require ./modules/a-b [8] ./pageA.js 2:0-24
cjs require ./modules/a-b [9] ./pageB.js 2:0-24
cjs require ./modules/a-b [5] ./pageA.js 2:0-24
cjs require ./modules/a-b [6] ./pageB.js 2:0-24
chunk {8} c-commons.js (c-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
cjs require ./modules/a-b-c [6] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [7] ./adminPageC.js 1:0-26
cjs require ./modules/a-b-c [8] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [9] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [10] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [5] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [6] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [7] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [8] ./adminPageA.js 1:0-26
cjs require ./modules/a-b-c [9] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [10] ./adminPageC.js 1:0-26
```

View File

@ -99,32 +99,30 @@ module.exports = {
webpackJsonp([1],[
/* 0 */,
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!**************!*\
!*** ./a.js ***!
\**************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ./style.css */ 0);
__webpack_require__(/*! ./styleA.css */ 2);
/***/ }),
/* 2 */
/*!********************!*\
!*** ./styleA.css ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/* 2 */,
/* 3 */,
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!**************!*\
!*** ./a.js ***!
\**************/
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ./style.css */ 0);
__webpack_require__(/*! ./styleA.css */ 1);
/***/ })
],[4]);
],[1]);
```
# js/commons.css
@ -179,17 +177,17 @@ body{background:url(js/ce21cbdd9b894e6af794813eb3fdaf60.png)}.c{background:url(j
## Uncompressed
```
Hash: 82bd95dca40b04e5c383
Version: webpack 2.6.0
Hash: b6d05f310264e74bb969
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
C.js 3.05 kB 2 [emitted] C
C.js 2.89 kB 2 [emitted] C
d090b6fba0f6d326d282a19146ff54a7.png 120 bytes [emitted]
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
c2a2f62d69330b7d787782f5010f9d13.png 120 bytes [emitted]
B.js 537 bytes 0 [emitted] B
A.js 559 bytes 1 [emitted] A
B.js 561 bytes 0 [emitted] B
A.js 543 bytes 1 [emitted] A
16155c689e517682064c99893cb832cc.png 120 bytes [emitted]
commons.js 6.17 kB 3 [emitted] commons
commons.js 6.01 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
@ -198,81 +196,81 @@ 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) 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 51 bytes {0} [built]
> B [3] ./b.js
[3] ./b.js 51 bytes {0} [built]
[4] ./styleB.css 41 bytes {0} [built]
cjs require ./styleB.css [3] ./b.js 2:0-23
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 51 bytes {1} [built]
> A [1] ./a.js
[1] ./a.js 51 bytes {1} [built]
[2] ./styleA.css 41 bytes {1} [built]
cjs require ./styleA.css [1] ./a.js 2:0-23
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 26 bytes {2} [built]
> C [5] ./c.js
[5] ./c.js 26 bytes {2} [built]
[6] ./styleC.css 41 bytes {2} [built]
cjs require ./styleC.css [5] ./c.js 1:0-23
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
cjs require ./style.css [5] ./b.js 1:0-22
cjs require ./style.css [1] ./a.js 1:0-22
cjs require ./style.css [3] ./b.js 1:0-22
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]
> [2] (webpack)/~/css-loader!./styleA.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!./styleA.css 1:27-83
[1] ./imageA.png 82 bytes {0} [built]
cjs require ./imageA.png [2] (webpack)/~/css-loader!./styleA.css 6:56-79
[2] (webpack)/~/css-loader!./styleA.css 225 bytes {0} [built]
chunk {0} extract-text-webpack-plugin-output-filename 2.58 kB [entry] [rendered]
> [0] (webpack)/node_modules/css-loader!./styleA.css
[0] (webpack)/node_modules/css-loader!./styleA.css 234 bytes {0} [built]
[1] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [0] (webpack)/node_modules/css-loader!./styleA.css 1:27-83
[2] ./imageA.png 82 bytes {0} [built]
cjs require ./imageA.png [0] (webpack)/node_modules/css-loader!./styleA.css 6:56-79
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]
> [2] (webpack)/~/css-loader!./styleB.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!./styleB.css 1:27-83
[1] ./imageB.png 82 bytes {0} [built]
cjs require ./imageB.png [2] (webpack)/~/css-loader!./styleB.css 6:56-79
[2] (webpack)/~/css-loader!./styleB.css 225 bytes {0} [built]
chunk {0} extract-text-webpack-plugin-output-filename 2.58 kB [entry] [rendered]
> [0] (webpack)/node_modules/css-loader!./styleB.css
[0] (webpack)/node_modules/css-loader!./styleB.css 234 bytes {0} [built]
[1] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [0] (webpack)/node_modules/css-loader!./styleB.css 1:27-83
[2] ./imageB.png 82 bytes {0} [built]
cjs require ./imageB.png [0] (webpack)/node_modules/css-loader!./styleB.css 6:56-79
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]
> [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-83
[1] ./image.png 82 bytes {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 6:58-80
[2] (webpack)/~/css-loader!./style.css 226 bytes {0} [built]
chunk {0} extract-text-webpack-plugin-output-filename 2.58 kB [entry] [rendered]
> [0] (webpack)/node_modules/css-loader!./style.css
[0] (webpack)/node_modules/css-loader!./style.css 235 bytes {0} [built]
[1] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [0] (webpack)/node_modules/css-loader!./style.css 1:27-83
[2] ./image.png 82 bytes {0} [built]
cjs require ./image.png [0] (webpack)/node_modules/css-loader!./style.css 6:58-80
Child extract-text-webpack-plugin:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
chunk {0} extract-text-webpack-plugin-output-filename 2.2 kB [entry] [rendered]
> [3] (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-83
cjs require ../../node_modules/css-loader/lib/css-base.js [3] (webpack)/~/css-loader!./styleC.css 1:27-83
[1] (webpack)/~/css-loader!./style.css 226 bytes {0} [built]
cjs require -!../../node_modules/css-loader/index.js!./style.css [3] (webpack)/~/css-loader!./styleC.css 3:10-73
[2] ./imageC.png 82 bytes {0} [built]
cjs require ./imageC.png [3] (webpack)/~/css-loader!./styleC.css 6:56-79
[3] (webpack)/~/css-loader!./styleC.css 304 bytes {0} [built]
[4] ./image.png 82 bytes {0} [built]
cjs require ./image.png [1] (webpack)/~/css-loader!./style.css 6:58-80
chunk {0} extract-text-webpack-plugin-output-filename 2.97 kB [entry] [rendered]
> [1] (webpack)/node_modules/css-loader!./styleC.css
[0] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [1] (webpack)/node_modules/css-loader!./styleC.css 1:27-83
cjs require ../../node_modules/css-loader/lib/css-base.js [2] (webpack)/node_modules/css-loader!./style.css 1:27-83
[1] (webpack)/node_modules/css-loader!./styleC.css 313 bytes {0} [built]
[2] (webpack)/node_modules/css-loader!./style.css 235 bytes {0} [built]
cjs require -!../../node_modules/css-loader/index.js!./style.css [1] (webpack)/node_modules/css-loader!./styleC.css 3:10-73
[3] ./image.png 82 bytes {0} [built]
cjs require ./image.png [2] (webpack)/node_modules/css-loader!./style.css 6:58-80
[4] ./imageC.png 82 bytes {0} [built]
cjs require ./imageC.png [1] (webpack)/node_modules/css-loader!./styleC.css 6:56-79
```
## Minimized (uglify-js, no zip)
```
Hash: 58c46b8115ae51be12b7
Version: webpack 2.6.0
Hash: 71684330ef0116733460
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
C.js 534 bytes 2 [emitted] C
C.js 508 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
B.js 70 bytes 0 [emitted] B
A.js 68 bytes 1 [emitted] A
16155c689e517682064c99893cb832cc.png 120 bytes [emitted]
commons.js 1.4 kB 3 [emitted] commons
commons.js 1.38 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
@ -281,63 +279,63 @@ 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) 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 51 bytes {0} [built]
> B [3] ./b.js
[3] ./b.js 51 bytes {0} [built]
[4] ./styleB.css 41 bytes {0} [built]
cjs require ./styleB.css [3] ./b.js 2:0-23
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 51 bytes {1} [built]
> A [1] ./a.js
[1] ./a.js 51 bytes {1} [built]
[2] ./styleA.css 41 bytes {1} [built]
cjs require ./styleA.css [1] ./a.js 2:0-23
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 26 bytes {2} [built]
> C [5] ./c.js
[5] ./c.js 26 bytes {2} [built]
[6] ./styleC.css 41 bytes {2} [built]
cjs require ./styleC.css [5] ./c.js 1:0-23
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
cjs require ./style.css [5] ./b.js 1:0-22
cjs require ./style.css [1] ./a.js 1:0-22
cjs require ./style.css [3] ./b.js 1:0-22
Child extract-text-webpack-plugin:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
chunk {0} extract-text-webpack-plugin-output-filename 1.8 kB [entry] [rendered]
> [2] (webpack)/~/css-loader!./styleA.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!./styleA.css 1:27-83
[1] ./imageA.png 82 bytes {0} [built]
cjs require ./imageA.png [2] (webpack)/~/css-loader!./styleA.css 6:48-71
[2] (webpack)/~/css-loader!./styleA.css 208 bytes {0} [built]
chunk {0} extract-text-webpack-plugin-output-filename 2.56 kB [entry] [rendered]
> [0] (webpack)/node_modules/css-loader!./styleA.css
[0] (webpack)/node_modules/css-loader!./styleA.css 217 bytes {0} [built]
[1] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [0] (webpack)/node_modules/css-loader!./styleA.css 1:27-83
[2] ./imageA.png 82 bytes {0} [built]
cjs require ./imageA.png [0] (webpack)/node_modules/css-loader!./styleA.css 6:48-71
Child extract-text-webpack-plugin:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
chunk {0} extract-text-webpack-plugin-output-filename 1.8 kB [entry] [rendered]
> [2] (webpack)/~/css-loader!./styleB.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!./styleB.css 1:27-83
[1] ./imageB.png 82 bytes {0} [built]
cjs require ./imageB.png [2] (webpack)/~/css-loader!./styleB.css 6:48-71
[2] (webpack)/~/css-loader!./styleB.css 208 bytes {0} [built]
chunk {0} extract-text-webpack-plugin-output-filename 2.56 kB [entry] [rendered]
> [0] (webpack)/node_modules/css-loader!./styleB.css
[0] (webpack)/node_modules/css-loader!./styleB.css 217 bytes {0} [built]
[1] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [0] (webpack)/node_modules/css-loader!./styleB.css 1:27-83
[2] ./imageB.png 82 bytes {0} [built]
cjs require ./imageB.png [0] (webpack)/node_modules/css-loader!./styleB.css 6:48-71
Child extract-text-webpack-plugin:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
chunk {0} extract-text-webpack-plugin-output-filename 1.8 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-83
[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 209 bytes {0} [built]
chunk {0} extract-text-webpack-plugin-output-filename 2.56 kB [entry] [rendered]
> [0] (webpack)/node_modules/css-loader!./style.css
[0] (webpack)/node_modules/css-loader!./style.css 218 bytes {0} [built]
[1] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [0] (webpack)/node_modules/css-loader!./style.css 1:27-83
[2] ./image.png 82 bytes {0} [built]
cjs require ./image.png [0] (webpack)/node_modules/css-loader!./style.css 6:50-72
Child extract-text-webpack-plugin:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
chunk {0} extract-text-webpack-plugin-output-filename 2.17 kB [entry] [rendered]
> [3] (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-83
cjs require ../../node_modules/css-loader/lib/css-base.js [3] (webpack)/~/css-loader!./styleC.css 1:27-83
[1] (webpack)/~/css-loader!./style.css 209 bytes {0} [built]
cjs require -!../../node_modules/css-loader/index.js!./style.css [3] (webpack)/~/css-loader!./styleC.css 3:10-73
[2] ./imageC.png 82 bytes {0} [built]
cjs require ./imageC.png [3] (webpack)/~/css-loader!./styleC.css 6:48-71
[3] (webpack)/~/css-loader!./styleC.css 287 bytes {0} [built]
[4] ./image.png 82 bytes {0} [built]
cjs require ./image.png [1] (webpack)/~/css-loader!./style.css 6:50-72
chunk {0} extract-text-webpack-plugin-output-filename 2.94 kB [entry] [rendered]
> [1] (webpack)/node_modules/css-loader!./styleC.css
[0] (webpack)/node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
cjs require ../../node_modules/css-loader/lib/css-base.js [1] (webpack)/node_modules/css-loader!./styleC.css 1:27-83
cjs require ../../node_modules/css-loader/lib/css-base.js [2] (webpack)/node_modules/css-loader!./style.css 1:27-83
[1] (webpack)/node_modules/css-loader!./styleC.css 296 bytes {0} [built]
[2] (webpack)/node_modules/css-loader!./style.css 218 bytes {0} [built]
cjs require -!../../node_modules/css-loader/index.js!./style.css [1] (webpack)/node_modules/css-loader!./styleC.css 3:10-73
[3] ./image.png 82 bytes {0} [built]
cjs require ./image.png [2] (webpack)/node_modules/css-loader!./style.css 6:50-72
[4] ./imageC.png 82 bytes {0} [built]
cjs require ./imageC.png [1] (webpack)/node_modules/css-loader!./styleC.css 6:48-71
```

View File

@ -125,8 +125,6 @@ module.exports = {
/******/ 3: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -154,20 +152,21 @@ module.exports = {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -206,9 +205,6 @@ module.exports = {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -245,13 +241,12 @@ module.exports = {
``` javascript
/******/ ([
/* 0 */,
/* 1 */
/* unknown exports provided */
/* all exports used */
/* 0 */
/*!*******************!*\
!*** ./common.js ***!
\*******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "Common";
@ -266,15 +261,15 @@ module.exports = "Common";
webpackJsonp([2],{
/***/ 2:
/* unknown exports provided */
/* all exports used */
/*!******************!*\
!*** ./pageA.js ***!
\******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var common = __webpack_require__(/*! ./common */ 1);
__webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./shared */ 0)]; (function(shared) {
var common = __webpack_require__(/*! ./common */ 0);
__webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./shared */ 1)]; (function(shared) {
shared("This is page A");
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
@ -289,16 +284,16 @@ __webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIR
webpackJsonp([1],{
/***/ 3:
/* unknown exports provided */
/* all exports used */
/*!******************!*\
!*** ./pageB.js ***!
\******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var common = __webpack_require__(/*! ./common */ 1);
var common = __webpack_require__(/*! ./common */ 0);
__webpack_require__.e/* require.ensure */(0/* duplicate */).then((function(require) {
var shared = __webpack_require__(/*! ./shared */ 0);
var shared = __webpack_require__(/*! ./shared */ 1);
shared("This is page B");
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
@ -311,15 +306,16 @@ __webpack_require__.e/* require.ensure */(0/* duplicate */).then((function(requi
``` javascript
webpackJsonp([0],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/* 0 */,
/* 1 */
/*!*******************!*\
!*** ./shared.js ***!
\*******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var common = __webpack_require__(/*! ./common */ 1);
var common = __webpack_require__(/*! ./common */ 0);
module.exports = function(msg) {
console.log(msg);
};
@ -333,19 +329,19 @@ module.exports = function(msg) {
## Uncompressed
```
Hash: 6f1a02fdead6a9246eeb
Version: webpack 2.6.0
Hash: 4f8af9066e2b5dda0f23
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.chunk.js 336 bytes 0 [emitted]
pageB.bundle.js 520 bytes 1 [emitted] pageB
pageA.bundle.js 546 bytes 2 [emitted] pageA
commons.js 6.17 kB 3 [emitted] commons
0.chunk.js 346 bytes 0 [emitted]
pageB.bundle.js 521 bytes 1 [emitted] pageB
pageA.bundle.js 547 bytes 2 [emitted] pageA
commons.js 6 kB 3 [emitted] commons
Entrypoint pageA = commons.js pageA.bundle.js
Entrypoint pageB = commons.js pageB.bundle.js
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 91 bytes {0} [built]
[1] ./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
@ -356,8 +352,8 @@ chunk {2} pageA.bundle.js (pageA) 108 bytes {3} [initial] [rendered]
> pageA [2] ./pageA.js
[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
[0] ./common.js 26 bytes {3} [built]
cjs require ./common [1] ./shared.js 1:13-32
cjs require ./common [2] ./pageA.js 1:13-32
cjs require ./common [3] ./pageB.js 1:13-32
```
@ -365,19 +361,19 @@ chunk {3} commons.js (commons) 26 bytes [entry] [rendered]
## Minimized (uglify-js, no zip)
```
Hash: 6f1a02fdead6a9246eeb
Version: webpack 2.6.0
Hash: 4f8af9066e2b5dda0f23
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.chunk.js 80 bytes 0 [emitted]
0.chunk.js 81 bytes 0 [emitted]
pageB.bundle.js 122 bytes 1 [emitted] pageB
pageA.bundle.js 147 bytes 2 [emitted] pageA
commons.js 1.43 kB 3 [emitted] commons
commons.js 1.4 kB 3 [emitted] commons
Entrypoint pageA = commons.js pageA.bundle.js
Entrypoint pageB = commons.js pageB.bundle.js
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 91 bytes {0} [built]
[1] ./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
@ -388,8 +384,8 @@ chunk {2} pageA.bundle.js (pageA) 108 bytes {3} [initial] [rendered]
> pageA [2] ./pageA.js
[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
[0] ./common.js 26 bytes {3} [built]
cjs require ./common [1] ./shared.js 1:13-32
cjs require ./common [2] ./pageA.js 1:13-32
cjs require ./common [3] ./pageB.js 1:13-32
```

View File

@ -63,8 +63,6 @@ require.ensure(["b"], function(require) {
/******/ 2: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -92,20 +90,21 @@ require.ensure(["b"], function(require) {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -144,9 +143,6 @@ require.ensure(["b"], function(require) {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -177,7 +173,7 @@ require.ensure(["b"], function(require) {
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 3);
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ })
/************************************************************************/
```
@ -189,25 +185,14 @@ require.ensure(["b"], function(require) {
/* 0 */,
/* 1 */,
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!****************!*\
!*** ./~/a.js ***!
\****************/
/***/ (function(module, exports) {
// module a
/***/ }),
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var a = __webpack_require__(/*! a */ 2);
var a = __webpack_require__(/*! a */ 3);
__webpack_require__.e/* require.ensure */(0/*! my own chunk */).then((function(require) {
// a named chunk
@ -229,6 +214,17 @@ __webpack_require__.e/* require.ensure */(1).then((function(require) {
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
/***/ }),
/* 3 */
/*!***************************!*\
!*** ./node_modules/a.js ***!
\***************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// module a
/***/ })
/******/ ]);
```
@ -238,22 +234,22 @@ __webpack_require__.e/* require.ensure */(1).then((function(require) {
``` javascript
webpackJsonp([0,1],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!****************!*\
!*** ./~/b.js ***!
\****************/
/*!***************************!*\
!*** ./node_modules/b.js ***!
\***************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// module b
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!****************!*\
!*** ./~/d.js ***!
\****************/
/*!***************************!*\
!*** ./node_modules/d.js ***!
\***************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// module d
@ -262,11 +258,11 @@ webpackJsonp([0,1],[
/* 2 */,
/* 3 */,
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!****************!*\
!*** ./~/c.js ***!
\****************/
/*!***************************!*\
!*** ./node_modules/c.js ***!
\***************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// module c
@ -280,22 +276,22 @@ webpackJsonp([0,1],[
``` javascript
webpackJsonp([1],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!****************!*\
!*** ./~/b.js ***!
\****************/
/*!***************************!*\
!*** ./node_modules/b.js ***!
\***************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// module b
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!****************!*\
!*** ./~/d.js ***!
\****************/
/*!***************************!*\
!*** ./node_modules/d.js ***!
\***************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
// module d
@ -309,77 +305,77 @@ webpackJsonp([1],[
## Uncompressed
```
Hash: 32e44c81729dc14e3f5a
Version: webpack 2.6.0
Hash: 1e92144469a06ecc61e5
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 599 bytes 0, 1 [emitted] my own chunk
1.output.js 393 bytes 1 [emitted]
output.js 7.17 kB 2 [emitted] main
0.output.js 701 bytes 0, 1 [emitted] my own chunk
1.output.js 461 bytes 1 [emitted]
output.js 7.04 kB 2 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (my own chunk) 33 bytes {2} [rendered]
> my own chunk [3] ./example.js 3:0-6:18
> my own chunk [3] ./example.js 8:0-11:18
> my own chunk [3] ./example.js 13:0-15:18
[0] ./~/b.js 11 bytes {0} {1} [built]
require.ensure item b [3] ./example.js 3:0-6:18
require.ensure item b [3] ./example.js 8:0-11:18
require.ensure item b [3] ./example.js 17:0-20:2
[1] ./~/d.js 11 bytes {0} {1} [built]
cjs require d [3] ./example.js 10:9-21
cjs require d [3] ./example.js 19:9-21
[4] ./~/c.js 11 bytes {0} [built]
cjs require c [3] ./example.js 5:9-21
> my own chunk [2] ./example.js 3:0-6:18
> my own chunk [2] ./example.js 8:0-11:18
> my own chunk [2] ./example.js 13:0-15:18
[0] ./node_modules/b.js 11 bytes {0} {1} [built]
require.ensure item b [2] ./example.js 3:0-6:18
require.ensure item b [2] ./example.js 8:0-11:18
require.ensure item b [2] ./example.js 17:0-20:2
[1] ./node_modules/d.js 11 bytes {0} {1} [built]
cjs require d [2] ./example.js 10:9-21
cjs require d [2] ./example.js 19:9-21
[4] ./node_modules/c.js 11 bytes {0} [built]
cjs require c [2] ./example.js 5:9-21
chunk {1} 1.output.js 22 bytes {2} [rendered]
> [3] ./example.js 17:0-20:2
[0] ./~/b.js 11 bytes {0} {1} [built]
require.ensure item b [3] ./example.js 3:0-6:18
require.ensure item b [3] ./example.js 8:0-11:18
require.ensure item b [3] ./example.js 17:0-20:2
[1] ./~/d.js 11 bytes {0} {1} [built]
cjs require d [3] ./example.js 10:9-21
cjs require d [3] ./example.js 19:9-21
> [2] ./example.js 17:0-20:2
[0] ./node_modules/b.js 11 bytes {0} {1} [built]
require.ensure item b [2] ./example.js 3:0-6:18
require.ensure item b [2] ./example.js 8:0-11:18
require.ensure item b [2] ./example.js 17:0-20:2
[1] ./node_modules/d.js 11 bytes {0} {1} [built]
cjs require d [2] ./example.js 10:9-21
cjs require d [2] ./example.js 19:9-21
chunk {2} output.js (main) 452 bytes [entry] [rendered]
> main [3] ./example.js
[2] ./~/a.js 11 bytes {2} [built]
cjs require a [3] ./example.js 1:8-20
[3] ./example.js 441 bytes {2} [built]
> main [2] ./example.js
[2] ./example.js 441 bytes {2} [built]
[3] ./node_modules/a.js 11 bytes {2} [built]
cjs require a [2] ./example.js 1:8-20
```
## Minimized (uglify-js, no zip)
```
Hash: 32e44c81729dc14e3f5a
Version: webpack 2.6.0
Hash: 1e92144469a06ecc61e5
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 72 bytes 0, 1 [emitted] my own chunk
1.output.js 52 bytes 1 [emitted]
output.js 1.61 kB 2 [emitted] main
output.js 1.58 kB 2 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (my own chunk) 33 bytes {2} [rendered]
> my own chunk [3] ./example.js 3:0-6:18
> my own chunk [3] ./example.js 8:0-11:18
> my own chunk [3] ./example.js 13:0-15:18
[0] ./~/b.js 11 bytes {0} {1} [built]
require.ensure item b [3] ./example.js 3:0-6:18
require.ensure item b [3] ./example.js 8:0-11:18
require.ensure item b [3] ./example.js 17:0-20:2
[1] ./~/d.js 11 bytes {0} {1} [built]
cjs require d [3] ./example.js 10:9-21
cjs require d [3] ./example.js 19:9-21
[4] ./~/c.js 11 bytes {0} [built]
cjs require c [3] ./example.js 5:9-21
> my own chunk [2] ./example.js 3:0-6:18
> my own chunk [2] ./example.js 8:0-11:18
> my own chunk [2] ./example.js 13:0-15:18
[0] ./node_modules/b.js 11 bytes {0} {1} [built]
require.ensure item b [2] ./example.js 3:0-6:18
require.ensure item b [2] ./example.js 8:0-11:18
require.ensure item b [2] ./example.js 17:0-20:2
[1] ./node_modules/d.js 11 bytes {0} {1} [built]
cjs require d [2] ./example.js 10:9-21
cjs require d [2] ./example.js 19:9-21
[4] ./node_modules/c.js 11 bytes {0} [built]
cjs require c [2] ./example.js 5:9-21
chunk {1} 1.output.js 22 bytes {2} [rendered]
> [3] ./example.js 17:0-20:2
[0] ./~/b.js 11 bytes {0} {1} [built]
require.ensure item b [3] ./example.js 3:0-6:18
require.ensure item b [3] ./example.js 8:0-11:18
require.ensure item b [3] ./example.js 17:0-20:2
[1] ./~/d.js 11 bytes {0} {1} [built]
cjs require d [3] ./example.js 10:9-21
cjs require d [3] ./example.js 19:9-21
> [2] ./example.js 17:0-20:2
[0] ./node_modules/b.js 11 bytes {0} {1} [built]
require.ensure item b [2] ./example.js 3:0-6:18
require.ensure item b [2] ./example.js 8:0-11:18
require.ensure item b [2] ./example.js 17:0-20:2
[1] ./node_modules/d.js 11 bytes {0} {1} [built]
cjs require d [2] ./example.js 10:9-21
cjs require d [2] ./example.js 19:9-21
chunk {2} output.js (main) 452 bytes [entry] [rendered]
> main [3] ./example.js
[2] ./~/a.js 11 bytes {2} [built]
cjs require a [3] ./example.js 1:8-20
[3] ./example.js 441 bytes {2} [built]
> main [2] ./example.js
[2] ./example.js 441 bytes {2} [built]
[3] ./node_modules/a.js 11 bytes {2} [built]
cjs require a [2] ./example.js 1:8-20
```

View File

@ -62,9 +62,6 @@ module.exports = function() {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -92,7 +89,7 @@ module.exports = function() {
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 4);
/******/ return __webpack_require__(__webpack_require__.s = 3);
/******/ })
/************************************************************************/
```
@ -102,11 +99,11 @@ module.exports = function() {
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!************************!*\
!*** ./templates/a.js ***!
\************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -115,11 +112,11 @@ module.exports = function() {
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!************************!*\
!*** ./templates/b.js ***!
\************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -128,11 +125,11 @@ module.exports = function() {
/***/ }),
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!************************!*\
!*** ./templates/c.js ***!
\************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -141,11 +138,26 @@ module.exports = function() {
/***/ }),
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
function getTemplate(templateName) {
return __webpack_require__(/*! ./templates */ 4)("./"+templateName);
}
console.log(getTemplate("a"));
console.log(getTemplate("b"));
/***/ }),
/* 4 */
/*!****************************!*\
!*** ./templates ^\.\/.*$ ***!
\****************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var map = {
@ -170,22 +182,7 @@ webpackContext.keys = function webpackContextKeys() {
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 3;
/***/ }),
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/***/ (function(module, exports, __webpack_require__) {
function getTemplate(templateName) {
return __webpack_require__(/*! ./templates */ 3)("./"+templateName);
}
console.log(getTemplate("a"));
console.log(getTemplate("b"));
webpackContext.id = 4;
/***/ })
/******/ ]);
@ -196,49 +193,49 @@ console.log(getTemplate("b"));
## Uncompressed
```
Hash: 219dcd379f9f54c00e1f
Version: webpack 2.6.0
Hash: acf02a400c4d02cc105a
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 4.58 kB 0 [emitted] main
output.js 4.42 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 613 bytes [entry] [rendered]
> main [4] ./example.js
> main [3] ./example.js
[0] ./templates/a.js 82 bytes {0} [optional] [built]
context element ./a [3] ./templates ^\.\/.*$ ./a
context element ./a.js [3] ./templates ^\.\/.*$ ./a.js
context element ./a [4] ./templates ^\.\/.*$ ./a
context element ./a.js [4] ./templates ^\.\/.*$ ./a.js
[1] ./templates/b.js 82 bytes {0} [optional] [built]
context element ./b [3] ./templates ^\.\/.*$ ./b
context element ./b.js [3] ./templates ^\.\/.*$ ./b.js
context element ./b [4] ./templates ^\.\/.*$ ./b
context element ./b.js [4] ./templates ^\.\/.*$ ./b.js
[2] ./templates/c.js 82 bytes {0} [optional] [built]
context element ./c [3] ./templates ^\.\/.*$ ./c
context element ./c.js [3] ./templates ^\.\/.*$ ./c.js
[3] ./templates ^\.\/.*$ 217 bytes {0} [built]
cjs require context ./templates [4] ./example.js 2:8-44
[4] ./example.js 150 bytes {0} [built]
context element ./c [4] ./templates ^\.\/.*$ ./c
context element ./c.js [4] ./templates ^\.\/.*$ ./c.js
[3] ./example.js 150 bytes {0} [built]
[4] ./templates ^\.\/.*$ 217 bytes {0} [built]
cjs require context ./templates [3] ./example.js 2:8-44
```
## Minimized (uglify-js, no zip)
```
Hash: 219dcd379f9f54c00e1f
Version: webpack 2.6.0
Hash: acf02a400c4d02cc105a
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 1.11 kB 0 [emitted] main
output.js 1.08 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 613 bytes [entry] [rendered]
> main [4] ./example.js
> main [3] ./example.js
[0] ./templates/a.js 82 bytes {0} [optional] [built]
context element ./a [3] ./templates ^\.\/.*$ ./a
context element ./a.js [3] ./templates ^\.\/.*$ ./a.js
context element ./a [4] ./templates ^\.\/.*$ ./a
context element ./a.js [4] ./templates ^\.\/.*$ ./a.js
[1] ./templates/b.js 82 bytes {0} [optional] [built]
context element ./b [3] ./templates ^\.\/.*$ ./b
context element ./b.js [3] ./templates ^\.\/.*$ ./b.js
context element ./b [4] ./templates ^\.\/.*$ ./b
context element ./b.js [4] ./templates ^\.\/.*$ ./b.js
[2] ./templates/c.js 82 bytes {0} [optional] [built]
context element ./c [3] ./templates ^\.\/.*$ ./c
context element ./c.js [3] ./templates ^\.\/.*$ ./c.js
[3] ./templates ^\.\/.*$ 217 bytes {0} [built]
cjs require context ./templates [4] ./example.js 2:8-44
[4] ./example.js 150 bytes {0} [built]
context element ./c [4] ./templates ^\.\/.*$ ./c
context element ./c.js [4] ./templates ^\.\/.*$ ./c.js
[3] ./example.js 150 bytes {0} [built]
[4] ./templates ^\.\/.*$ 217 bytes {0} [built]
cjs require context ./templates [3] ./example.js 2:8-44
```
# Code Splitting

View File

@ -63,9 +63,6 @@ module.exports = Math.random();
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -103,22 +100,22 @@ module.exports = Math.random();
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**************!*\
!*** ./a.js ***!
\**************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = Math.random();
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var a = __webpack_require__(/*! ./a */ 0);
@ -145,9 +142,9 @@ if(a == a2) throw new Error("Cache clear failed :(");
```
Hash: 4ed342adc60583d992ab
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 3.34 kB 0 [emitted] main
output.js 3.18 kB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 326 bytes [entry] [rendered]
> main [1] ./example.js
@ -162,9 +159,9 @@ chunk {0} output.js (main) 326 bytes [entry] [rendered]
```
Hash: 4ed342adc60583d992ab
Version: webpack 2.6.0
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
output.js 625 bytes 0 [emitted] main
output.js 599 bytes 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 326 bytes [entry] [rendered]
> main [1] ./example.js

View File

@ -152,8 +152,6 @@ module.exports = {
/******/ 1: 0
/******/ };
/******/
/******/ var resolvedPromise = new Promise(function(resolve) { resolve(); });
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
@ -181,20 +179,21 @@ module.exports = {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0) {
/******/ return resolvedPromise;
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -233,9 +232,6 @@ module.exports = {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -266,7 +262,7 @@ module.exports = {
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
```
@ -276,54 +272,21 @@ module.exports = {
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!********************************!*\
!*** ./example.js + 2 modules ***!
\********************************/
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// CONCATENAMED MODULE: ./node_modules/a.js
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_shared__ = __webpack_require__(/*! shared */ 1);
// module a
var a = "a";
// CONCATENAMED MODULE: ./node_modules/b.js
// module b
function b_js_a() {
return "b";
};
// CONCATENAMED MODULE: ./example.js
__webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, /*! ./lazy */ 2)).then(function(lazy) {
console.log(a, b_js_a(), __WEBPACK_IMPORTED_MODULE_0_shared__["a"], __WEBPACK_IMPORTED_MODULE_0_shared__["b"], lazy.c, lazy.d.a, lazy.x, lazy.y);
});
/***/ }),
/* 1 */
/* exports provided: x, y */
/* exports used: x, y */
/*!********************************************!*\
!*** ./node_modules/shared.js + 1 modules ***!
\********************************************/
/*! exports provided: x, y */
/*! exports used: x, y */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
// CONCATENAMED MODULE: ./node_modules/shared2.js
// CONCATENATED MODULE: ./node_modules/shared2.js
// shared2 module
var y = "y";
// CONCATENAMED MODULE: ./node_modules/shared.js
// CONCATENATED MODULE: ./node_modules/shared.js
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return x; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "b", function() { return y; });
// shared module
@ -331,6 +294,40 @@ var x = "x";
/***/ }),
/* 1 */
/*!********************************!*\
!*** ./example.js + 2 modules ***!
\********************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation (inner): module is an entrypoint */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
// CONCATENATED MODULE: ./node_modules/a.js
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_shared__ = __webpack_require__(/*! shared */ 0);
// module a
var a = "a";
// CONCATENATED MODULE: ./node_modules/b.js
// module b
function b_js_a() {
return "b";
};
// CONCATENATED MODULE: ./example.js
__webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, /*! ./lazy */ 3)).then(function(lazy) {
console.log(a, b_js_a(), __WEBPACK_IMPORTED_MODULE_0_shared__["a"], __WEBPACK_IMPORTED_MODULE_0_shared__["b"], lazy.c, lazy.d.a, lazy.x, lazy.y);
});
/***/ })
/******/ ]);
```
@ -342,20 +339,34 @@ webpackJsonp([0],[
/* 0 */,
/* 1 */,
/* 2 */
/* exports provided: d, c, x, y */
/* all exports used */
/*!*****************************!*\
!*** ./node_modules/cjs.js ***!
\*****************************/
/*! no static exports found */
/*! exports used: c */
/***/ (function(module, exports) {
// module cjs (commonjs)
exports.c = "e";
/***/ }),
/* 3 */
/*!*****************************!*\
!*** ./lazy.js + 2 modules ***!
\*****************************/
/*! exports provided: d, c, x, y */
/*! all exports used */
/*! ModuleConcatenation (inner): module is used with non-harmony imports from ./example.js */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
// CONCATENAMED MODULE: ./node_modules/c.js
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_cjs__ = __webpack_require__(/*! cjs */ 3);
// CONCATENATED MODULE: ./node_modules/c.js
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_cjs__ = __webpack_require__(/*! cjs */ 2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_cjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_cjs__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_shared__ = __webpack_require__(/*! shared */ 1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_shared__ = __webpack_require__(/*! shared */ 0);
// module c
@ -363,13 +374,13 @@ var c = String.fromCharCode(__WEBPACK_IMPORTED_MODULE_0_cjs__["c"].charCodeAt(0)
// CONCATENAMED MODULE: ./node_modules/d.js
// CONCATENATED MODULE: ./node_modules/d.js
var d_js_namespaceObject = {};
__webpack_require__.d(d_js_namespaceObject, "a", function() { return a; });
// module d
var a = "d";
// CONCATENAMED MODULE: ./lazy.js
// CONCATENATED MODULE: ./lazy.js
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "c", function() { return c; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "x", function() { return __WEBPACK_IMPORTED_MODULE_1_shared__["a"]; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "y", function() { return __WEBPACK_IMPORTED_MODULE_1_shared__["b"]; });
@ -379,19 +390,6 @@ var a = "d";
/***/ }),
/* 3 */
/* unknown exports provided */
/* exports used: c */
/*!*****************************!*\
!*** ./node_modules/cjs.js ***!
\*****************************/
/***/ (function(module, exports) {
// module cjs (commonjs)
exports.c = "e";
/***/ })
]);
```
@ -399,7 +397,7 @@ exports.c = "e";
Minimized
``` javascript
webpackJsonp([0],[,,function(n,r,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=t(3),u=(t.n(e),t(1)),c=String.fromCharCode(e.c.charCodeAt(0)-2),o={};t.d(o,"a",function(){return d});var d="d";t.d(r,"c",function(){return c}),t.d(r,"x",function(){return u.a}),t.d(r,"y",function(){return u.b}),t.d(r,"d",function(){return o})},function(n,r){r.c="e"}]);
webpackJsonp([0],[,,function(n,r){r.c="e"},function(n,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var e=t(2),u=(t.n(e),t(0)),c=String.fromCharCode(e.c.charCodeAt(0)-2),o={};t.d(o,"a",function(){return d});var d="d";t.d(r,"c",function(){return c}),t.d(r,"x",function(){return u.a}),t.d(r,"y",function(){return u.b}),t.d(r,"d",function(){return o})}]);
```
# Info
@ -407,53 +405,53 @@ webpackJsonp([0],[,,function(n,r,t){"use strict";Object.defineProperty(exports,"
## Uncompressed
```
Hash: 4091e96718e53f8b98fd
Version: webpack 2.5.1
Hash: 26f89d6006fb6c5a1fa1
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 1.85 kB 0 [emitted]
output.js 7.53 kB 1 [emitted] main
0.output.js 1.96 kB 0 [emitted]
output.js 7.46 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 276 bytes {1} [rendered]
> [4] 4:0-16
[2] ./lazy.js + 2 modules 232 bytes {0} [built]
[exports: d, c, x, y]
import() ./lazy [4] ./example.js 4:0-16
[3] ./node_modules/cjs.js 44 bytes {0} [built]
> [] 4:0-16
[2] ./node_modules/cjs.js 44 bytes {0} [built]
[only some exports used: c]
harmony import cjs [8] ./node_modules/c.js 2:0-29
harmony import cjs [3] ./lazy.js + 2 modules 2:0-29
[3] ./lazy.js + 2 modules 232 bytes {0} [built]
[exports: d, c, x, y]
import() ./lazy [] ./example.js 4:0-16
chunk {1} output.js (main) 385 bytes [entry] [rendered]
> main [4]
[0] ./example.js + 2 modules 280 bytes {1} [built]
[1] ./node_modules/shared.js + 1 modules 105 bytes {1} [built]
> main []
[0] ./node_modules/shared.js + 1 modules 105 bytes {1} [built]
[exports: x, y]
[only some exports used: x, y]
harmony import shared [6] ./node_modules/a.js 3:0-23
harmony import shared [8] ./node_modules/c.js 6:0-30
harmony import shared [1] ./example.js + 2 modules 3:0-23
harmony import shared [3] ./lazy.js + 2 modules 6:0-30
[1] ./example.js + 2 modules 280 bytes {1} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 4091e96718e53f8b98fd
Version: webpack 2.5.1
Hash: 26f89d6006fb6c5a1fa1
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.output.js 379 bytes 0 [emitted]
output.js 1.73 kB 1 [emitted] main
0.output.js 373 bytes 0 [emitted]
output.js 1.66 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 276 bytes {1} [rendered]
> [4] 4:0-16
[2] ./lazy.js + 2 modules 232 bytes {0} [built]
[exports: d, c, x, y]
import() ./lazy [4] ./example.js 4:0-16
[3] ./node_modules/cjs.js 44 bytes {0} [built]
> [] 4:0-16
[2] ./node_modules/cjs.js 44 bytes {0} [built]
[only some exports used: c]
harmony import cjs [8] ./node_modules/c.js 2:0-29
harmony import cjs [3] ./lazy.js + 2 modules 2:0-29
[3] ./lazy.js + 2 modules 232 bytes {0} [built]
[exports: d, c, x, y]
import() ./lazy [] ./example.js 4:0-16
chunk {1} output.js (main) 385 bytes [entry] [rendered]
> main [4]
[0] ./example.js + 2 modules 280 bytes {1} [built]
[1] ./node_modules/shared.js + 1 modules 105 bytes {1} [built]
> main []
[0] ./node_modules/shared.js + 1 modules 105 bytes {1} [built]
[exports: x, y]
[only some exports used: x, y]
harmony import shared [6] ./node_modules/a.js 3:0-23
harmony import shared [8] ./node_modules/c.js 6:0-30
harmony import shared [1] ./example.js + 2 modules 3:0-23
harmony import shared [3] ./lazy.js + 2 modules 6:0-30
[1] ./example.js + 2 modules 280 bytes {1} [built]
```

View File

@ -54,11 +54,11 @@ module.exports = [
``` javascript
webpackJsonp([0],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**************************************************!*\
!*** (webpack)/~/coffee-loader!./example.coffee ***!
\**************************************************/
/*!*************************************************************!*\
!*** (webpack)/node_modules/coffee-loader!./example.coffee ***!
\*************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
var math, race,
@ -85,18 +85,18 @@ race = function() {
```
``` javascript
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAGA;EAAA;;AAAA,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX,CAFR;;;AAKF,OAAO;AACL;EADM,uBAAQ;SACd,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-source-map.js","sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n\n\n\n// WEBPACK FOOTER //\n// ./example.coffee"],"sourceRoot":""}
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAGA;EAAA;;AAAA,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX,CAFR;;;AAKF,OAAO;AACL;EADM,uBAAQ;SACd,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-source-map.js","sourcesContent":["# Taken from http://coffeescript.org/\r\n\r\n# Objects:\r\nmath =\r\n root: Math.sqrt\r\n square: square\r\n cube: (x) -> x * square x\r\n\r\n# Splats:\r\nrace = (winner, runners...) ->\r\n print winner, runners\r\n\n\n\n// WEBPACK FOOTER //\n// ./example.coffee"],"sourceRoot":""}
```
## hidden-source-map.js and hidden-source-map.js.map
``` javascript
webpackJsonp([0],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**************************************************!*\
!*** (webpack)/~/coffee-loader!./example.coffee ***!
\**************************************************/
/*!*************************************************************!*\
!*** (webpack)/node_modules/coffee-loader!./example.coffee ***!
\*************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
var math, race,
@ -122,18 +122,18 @@ race = function() {
```
``` javascript
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAGA;EAAA;;AAAA,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX,CAFR;;;AAKF,OAAO;AACL;EADM,uBAAQ;SACd,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-hidden-source-map.js","sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n\n\n\n// WEBPACK FOOTER //\n// ./example.coffee"],"sourceRoot":""}
{"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAGA;EAAA;;AAAA,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX,CAFR;;;AAKF,OAAO;AACL;EADM,uBAAQ;SACd,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-hidden-source-map.js","sourcesContent":["# Taken from http://coffeescript.org/\r\n\r\n# Objects:\r\nmath =\r\n root: Math.sqrt\r\n square: square\r\n cube: (x) -> x * square x\r\n\r\n# Splats:\r\nrace = (winner, runners...) ->\r\n print winner, runners\r\n\n\n\n// WEBPACK FOOTER //\n// ./example.coffee"],"sourceRoot":""}
```
## inline-source-map.js
``` javascript
webpackJsonp([0],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**************************************************!*\
!*** (webpack)/~/coffee-loader!./example.coffee ***!
\**************************************************/
/*!*************************************************************!*\
!*** (webpack)/node_modules/coffee-loader!./example.coffee ***!
\*************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
var math, race,
@ -156,7 +156,7 @@ race = function() {
/***/ })
],[0]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9leGFtcGxlLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFHQTtFQUFBOztBQUFBLE9BQ0U7RUFBQSxNQUFRLElBQUksQ0FBQyxJQUFiO0VBQ0EsUUFBUSxNQURSO0VBRUEsTUFBUSxTQUFDLENBQUQ7V0FBTyxJQUFJLE9BQU8sQ0FBUDtFQUFYLENBRlI7OztBQUtGLE9BQU87QUFDTDtFQURNLHVCQUFRO1NBQ2QsTUFBTSxNQUFOLEVBQWMsT0FBZDtBQURLIiwiZmlsZSI6Ii4vYnVuZGxlLWlubGluZS1zb3VyY2UtbWFwLmpzIiwic291cmNlc0NvbnRlbnQiOlsiIyBUYWtlbiBmcm9tIGh0dHA6Ly9jb2ZmZWVzY3JpcHQub3JnL1xuXG4jIE9iamVjdHM6XG5tYXRoID1cbiAgcm9vdDogICBNYXRoLnNxcnRcbiAgc3F1YXJlOiBzcXVhcmVcbiAgY3ViZTogICAoeCkgLT4geCAqIHNxdWFyZSB4XG5cbiMgU3BsYXRzOlxucmFjZSA9ICh3aW5uZXIsIHJ1bm5lcnMuLi4pIC0+XG4gIHByaW50IHdpbm5lciwgcnVubmVyc1xuXG5cblxuLy8gV0VCUEFDSyBGT09URVIgLy9cbi8vIC4vZXhhbXBsZS5jb2ZmZWUiXSwic291cmNlUm9vdCI6IiJ9
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9leGFtcGxlLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFHQTtFQUFBOztBQUFBLE9BQ0U7RUFBQSxNQUFRLElBQUksQ0FBQyxJQUFiO0VBQ0EsUUFBUSxNQURSO0VBRUEsTUFBUSxTQUFDLENBQUQ7V0FBTyxJQUFJLE9BQU8sQ0FBUDtFQUFYLENBRlI7OztBQUtGLE9BQU87QUFDTDtFQURNLHVCQUFRO1NBQ2QsTUFBTSxNQUFOLEVBQWMsT0FBZDtBQURLIiwiZmlsZSI6Ii4vYnVuZGxlLWlubGluZS1zb3VyY2UtbWFwLmpzIiwic291cmNlc0NvbnRlbnQiOlsiIyBUYWtlbiBmcm9tIGh0dHA6Ly9jb2ZmZWVzY3JpcHQub3JnL1xyXG5cclxuIyBPYmplY3RzOlxyXG5tYXRoID1cclxuICByb290OiAgIE1hdGguc3FydFxyXG4gIHNxdWFyZTogc3F1YXJlXHJcbiAgY3ViZTogICAoeCkgLT4geCAqIHNxdWFyZSB4XHJcblxyXG4jIFNwbGF0czpcclxucmFjZSA9ICh3aW5uZXIsIHJ1bm5lcnMuLi4pIC0+XHJcbiAgcHJpbnQgd2lubmVyLCBydW5uZXJzXHJcblxuXG5cbi8vIFdFQlBBQ0sgRk9PVEVSIC8vXG4vLyAuL2V4YW1wbGUuY29mZmVlIl0sInNvdXJjZVJvb3QiOiIifQ==
```
## nosources-source-map.js.map
@ -168,14 +168,14 @@ race = function() {
``` javascript
webpackJsonp([0],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**************************************************!*\
!*** (webpack)/~/coffee-loader!./example.coffee ***!
\**************************************************/
/*!*************************************************************!*\
!*** (webpack)/node_modules/coffee-loader!./example.coffee ***!
\*************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\nrace = function() {\n var runners, winner;\n winner = arguments[0], runners = 2 <= arguments.length ? slice.call(arguments, 1) : [];\n return print(winner, runners);\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9leGFtcGxlLmNvZmZlZT85MWU1Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBO0VBQUE7O0FBQUEsT0FDRTtFQUFBLE1BQVEsSUFBSSxDQUFDLElBQWI7RUFDQSxRQUFRLE1BRFI7RUFFQSxNQUFRLFNBQUMsQ0FBRDtXQUFPLElBQUksT0FBTyxDQUFQO0VBQVgsQ0FGUjs7O0FBS0YsT0FBTztBQUNMO0VBRE0sdUJBQVE7U0FDZCxNQUFNLE1BQU4sRUFBYyxPQUFkO0FBREsiLCJmaWxlIjoiMC5qcyIsInNvdXJjZXNDb250ZW50IjpbIiMgVGFrZW4gZnJvbSBodHRwOi8vY29mZmVlc2NyaXB0Lm9yZy9cblxuIyBPYmplY3RzOlxubWF0aCA9XG4gIHJvb3Q6ICAgTWF0aC5zcXJ0XG4gIHNxdWFyZTogc3F1YXJlXG4gIGN1YmU6ICAgKHgpIC0+IHggKiBzcXVhcmUgeFxuXG4jIFNwbGF0czpcbnJhY2UgPSAod2lubmVyLCBydW5uZXJzLi4uKSAtPlxuICBwcmludCB3aW5uZXIsIHJ1bm5lcnNcblxuXG5cbi8vIFdFQlBBQ0sgRk9PVEVSIC8vXG4vLyAuL2V4YW1wbGUuY29mZmVlIl0sInNvdXJjZVJvb3QiOiIifQ==");
eval("var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\nrace = function() {\n var runners, winner;\n winner = arguments[0], runners = 2 <= arguments.length ? slice.call(arguments, 1) : [];\n return print(winner, runners);\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9leGFtcGxlLmNvZmZlZT85MWU1Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBO0VBQUE7O0FBQUEsT0FDRTtFQUFBLE1BQVEsSUFBSSxDQUFDLElBQWI7RUFDQSxRQUFRLE1BRFI7RUFFQSxNQUFRLFNBQUMsQ0FBRDtXQUFPLElBQUksT0FBTyxDQUFQO0VBQVgsQ0FGUjs7O0FBS0YsT0FBTztBQUNMO0VBRE0sdUJBQVE7U0FDZCxNQUFNLE1BQU4sRUFBYyxPQUFkO0FBREsiLCJmaWxlIjoiMC5qcyIsInNvdXJjZXNDb250ZW50IjpbIiMgVGFrZW4gZnJvbSBodHRwOi8vY29mZmVlc2NyaXB0Lm9yZy9cclxuXHJcbiMgT2JqZWN0czpcclxubWF0aCA9XHJcbiAgcm9vdDogICBNYXRoLnNxcnRcclxuICBzcXVhcmU6IHNxdWFyZVxyXG4gIGN1YmU6ICAgKHgpIC0+IHggKiBzcXVhcmUgeFxyXG5cclxuIyBTcGxhdHM6XHJcbnJhY2UgPSAod2lubmVyLCBydW5uZXJzLi4uKSAtPlxyXG4gIHByaW50IHdpbm5lciwgcnVubmVyc1xyXG5cblxuXG4vLyBXRUJQQUNLIEZPT1RFUiAvL1xuLy8gLi9leGFtcGxlLmNvZmZlZSJdLCJzb3VyY2VSb290IjoiIn0=");
/***/ })
],[0]);
@ -185,14 +185,14 @@ eval("var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n sq
``` javascript
webpackJsonp([0],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**************************************************!*\
!*** (webpack)/~/coffee-loader!./example.coffee ***!
\**************************************************/
/*!*************************************************************!*\
!*** (webpack)/node_modules/coffee-loader!./example.coffee ***!
\*************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\nrace = function() {\n var runners, winner;\n winner = arguments[0], runners = 2 <= arguments.length ? slice.call(arguments, 1) : [];\n return print(winner, runners);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/~/coffee-loader!./example.coffee\n// module id = 0\n// module chunks = 0\n\n//# sourceURL=webpack:///./example.coffee?(webpack)/~/coffee-loader");
eval("var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\nrace = function() {\n var runners, winner;\n winner = arguments[0], runners = 2 <= arguments.length ? slice.call(arguments, 1) : [];\n return print(winner, runners);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/node_modules/coffee-loader!./example.coffee\n// module id = 0\n// module chunks = 0\n\n//# sourceURL=webpack:///./example.coffee?(webpack)/node_modules/coffee-loader");
/***/ })
],[0]);
@ -202,14 +202,14 @@ eval("var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n sq
``` javascript
webpackJsonp([0],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**************************************************!*\
!*** (webpack)/~/coffee-loader!./example.coffee ***!
\**************************************************/
/*!*************************************************************!*\
!*** (webpack)/node_modules/coffee-loader!./example.coffee ***!
\*************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\nrace = function() {\n var runners, winner;\n winner = arguments[0], runners = 2 <= arguments.length ? slice.call(arguments, 1) : [];\n return print(winner, runners);\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2V4YW1wbGUuY29mZmVlPzkzZTEiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIG1hdGgsIHJhY2UsXG4gIHNsaWNlID0gW10uc2xpY2U7XG5cbm1hdGggPSB7XG4gIHJvb3Q6IE1hdGguc3FydCxcbiAgc3F1YXJlOiBzcXVhcmUsXG4gIGN1YmU6IGZ1bmN0aW9uKHgpIHtcbiAgICByZXR1cm4geCAqIHNxdWFyZSh4KTtcbiAgfVxufTtcblxucmFjZSA9IGZ1bmN0aW9uKCkge1xuICB2YXIgcnVubmVycywgd2lubmVyO1xuICB3aW5uZXIgPSBhcmd1bWVudHNbMF0sIHJ1bm5lcnMgPSAyIDw9IGFyZ3VtZW50cy5sZW5ndGggPyBzbGljZS5jYWxsKGFyZ3VtZW50cywgMSkgOiBbXTtcbiAgcmV0dXJuIHByaW50KHdpbm5lciwgcnVubmVycyk7XG59O1xuXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gKHdlYnBhY2spL34vY29mZmVlLWxvYWRlciEuL2V4YW1wbGUuY29mZmVlXG4vLyBtb2R1bGUgaWQgPSAwXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9");
eval("var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\nrace = function() {\n var runners, winner;\n winner = arguments[0], runners = 2 <= arguments.length ? slice.call(arguments, 1) : [];\n return print(winner, runners);\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2V4YW1wbGUuY29mZmVlPzA5MjciXSwic291cmNlc0NvbnRlbnQiOlsidmFyIG1hdGgsIHJhY2UsXG4gIHNsaWNlID0gW10uc2xpY2U7XG5cbm1hdGggPSB7XG4gIHJvb3Q6IE1hdGguc3FydCxcbiAgc3F1YXJlOiBzcXVhcmUsXG4gIGN1YmU6IGZ1bmN0aW9uKHgpIHtcbiAgICByZXR1cm4geCAqIHNxdWFyZSh4KTtcbiAgfVxufTtcblxucmFjZSA9IGZ1bmN0aW9uKCkge1xuICB2YXIgcnVubmVycywgd2lubmVyO1xuICB3aW5uZXIgPSBhcmd1bWVudHNbMF0sIHJ1bm5lcnMgPSAyIDw9IGFyZ3VtZW50cy5sZW5ndGggPyBzbGljZS5jYWxsKGFyZ3VtZW50cywgMSkgOiBbXTtcbiAgcmV0dXJuIHByaW50KHdpbm5lciwgcnVubmVycyk7XG59O1xuXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gKHdlYnBhY2spL25vZGVfbW9kdWxlcy9jb2ZmZWUtbG9hZGVyIS4vZXhhbXBsZS5jb2ZmZWVcbi8vIG1vZHVsZSBpZCA9IDBcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=");
/***/ })
],[0]);
@ -219,14 +219,14 @@ eval("var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n sq
``` javascript
webpackJsonp([0],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!**************************************************!*\
!*** (webpack)/~/coffee-loader!./example.coffee ***!
\**************************************************/
/*!*************************************************************!*\
!*** (webpack)/node_modules/coffee-loader!./example.coffee ***!
\*************************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
eval("var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\nrace = function() {\n var runners, winner;\n winner = arguments[0], runners = 2 <= arguments.length ? slice.call(arguments, 1) : [];\n return print(winner, runners);\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2V4YW1wbGUuY29mZmVlPzkxZTUiXSwic291cmNlc0NvbnRlbnQiOlsiIyBUYWtlbiBmcm9tIGh0dHA6Ly9jb2ZmZWVzY3JpcHQub3JnL1xuXG4jIE9iamVjdHM6XG5tYXRoID1cbiAgcm9vdDogICBNYXRoLnNxcnRcbiAgc3F1YXJlOiBzcXVhcmVcbiAgY3ViZTogICAoeCkgLT4geCAqIHNxdWFyZSB4XG5cbiMgU3BsYXRzOlxucmFjZSA9ICh3aW5uZXIsIHJ1bm5lcnMuLi4pIC0+XG4gIHByaW50IHdpbm5lciwgcnVubmVyc1xuXG5cblxuLy8gV0VCUEFDSyBGT09URVIgLy9cbi8vIC4vZXhhbXBsZS5jb2ZmZWUiXSwibWFwcGluZ3MiOiJBQUdBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTs7O0FBR0E7QUFDQTtBQURBO0FBQ0E7QUFEQTsiLCJzb3VyY2VSb290IjoiIn0=");
eval("var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\nrace = function() {\n var runners, winner;\n winner = arguments[0], runners = 2 <= arguments.length ? slice.call(arguments, 1) : [];\n return print(winner, runners);\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2V4YW1wbGUuY29mZmVlPzkxZTUiXSwic291cmNlc0NvbnRlbnQiOlsiIyBUYWtlbiBmcm9tIGh0dHA6Ly9jb2ZmZWVzY3JpcHQub3JnL1xyXG5cclxuIyBPYmplY3RzOlxyXG5tYXRoID1cclxuICByb290OiAgIE1hdGguc3FydFxyXG4gIHNxdWFyZTogc3F1YXJlXHJcbiAgY3ViZTogICAoeCkgLT4geCAqIHNxdWFyZSB4XHJcblxyXG4jIFNwbGF0czpcclxucmFjZSA9ICh3aW5uZXIsIHJ1bm5lcnMuLi4pIC0+XHJcbiAgcHJpbnQgd2lubmVyLCBydW5uZXJzXHJcblxuXG5cbi8vIFdFQlBBQ0sgRk9PVEVSIC8vXG4vLyAuL2V4YW1wbGUuY29mZmVlIl0sIm1hcHBpbmdzIjoiQUFHQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7OztBQUdBO0FBQ0E7QUFEQTtBQUNBO0FBREE7Iiwic291cmNlUm9vdCI6IiJ9");
/***/ })
],[0]);
@ -234,127 +234,127 @@ eval("var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n sq
## cheap-module-source-map.js.map
``` javascript
{"version":3,"file":"./bundle-cheap-module-source-map.js","sources":["webpack:///./example.coffee"],"sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n\n\n\n// WEBPACK FOOTER //\n// ./example.coffee"],"mappings":";;;;;;;;;AAGA;AAAA;AACA;AADA;AACA;AACA;AACA;AAAA;AAAA;;;AAGA;AACA;AADA;AACA;AADA;;;;A","sourceRoot":""}
{"version":3,"file":"./bundle-cheap-module-source-map.js","sources":["webpack:///./example.coffee"],"sourcesContent":["# Taken from http://coffeescript.org/\r\n\r\n# Objects:\r\nmath =\r\n root: Math.sqrt\r\n square: square\r\n cube: (x) -> x * square x\r\n\r\n# Splats:\r\nrace = (winner, runners...) ->\r\n print winner, runners\r\n\n\n\n// WEBPACK FOOTER //\n// ./example.coffee"],"mappings":";;;;;;;;;AAGA;AAAA;AACA;AADA;AACA;AACA;AACA;AAAA;AAAA;;;AAGA;AACA;AADA;AACA;AADA;;;;A","sourceRoot":""}
```
## cheap-source-map.js.map
``` javascript
{"version":3,"file":"./bundle-cheap-source-map.js","sources":["webpack:///./example.coffee"],"sourcesContent":["var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\nrace = function() {\n var runners, winner;\n winner = arguments[0], runners = 2 <= arguments.length ? slice.call(arguments, 1) : [];\n return print(winner, runners);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/~/coffee-loader!./example.coffee\n// module id = 0\n// module chunks = 0"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;A","sourceRoot":""}
{"version":3,"file":"./bundle-cheap-source-map.js","sources":["webpack:///./example.coffee"],"sourcesContent":["var math, race,\n slice = [].slice;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\nrace = function() {\n var runners, winner;\n winner = arguments[0], runners = 2 <= arguments.length ? slice.call(arguments, 1) : [];\n return print(winner, runners);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/node_modules/coffee-loader!./example.coffee\n// module id = 0\n// module chunks = 0"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;A","sourceRoot":""}
```
# webpack output
```
Hash: e1eee77b6825ec38ac89465a726503b90d318f915f9e187528736f9dd586ad053259eb9ee4cf69b5354b67e68d715d903c312f2150aa82ec45caa3f79d388dea6bd43ac605cdd4e103e888cf20eaf6f75dc2d2924e3fdc22d6889086c1479edc2c87f028
Version: webpack 2.3.3
Version: webpack 3.0.0-rc.0
Child
Hash: e1eee77b6825ec38ac89
Asset Size Chunks Chunk Names
./bundle-cheap-eval-source-map.js 1.58 kB 0 [emitted] bundle
./manifest-cheap-eval-source-map.js 5.88 kB 1 [emitted] manifest
./bundle-cheap-eval-source-map.js 1.63 kB 0 [emitted] bundle
./manifest-cheap-eval-source-map.js 5.8 kB 1 [emitted] manifest
Entrypoint bundle = ./manifest-cheap-eval-source-map.js ./bundle-cheap-eval-source-map.js
chunk {0} ./bundle-cheap-eval-source-map.js (bundle) 308 bytes {1} [initial] [rendered]
> bundle [0] (webpack)/~/coffee-loader!./example.coffee
[0] (webpack)/~/coffee-loader!./example.coffee 308 bytes {0} [built]
> bundle [0] (webpack)/node_modules/coffee-loader!./example.coffee
[0] (webpack)/node_modules/coffee-loader!./example.coffee 308 bytes {0} [built]
chunk {1} ./manifest-cheap-eval-source-map.js (manifest) 0 bytes [entry] [rendered]
Child
Hash: 465a726503b90d318f91
Asset Size Chunks Chunk Names
./bundle-cheap-module-eval-source-map.js 1.29 kB 0 [emitted] bundle
./manifest-cheap-module-eval-source-map.js 5.88 kB 1 [emitted] manifest
./bundle-cheap-module-eval-source-map.js 1.36 kB 0 [emitted] bundle
./manifest-cheap-module-eval-source-map.js 5.81 kB 1 [emitted] manifest
Entrypoint bundle = ./manifest-cheap-module-eval-source-map.js ./bundle-cheap-module-eval-source-map.js
chunk {0} ./bundle-cheap-module-eval-source-map.js (bundle) 308 bytes {1} [initial] [rendered]
> bundle [0] (webpack)/~/coffee-loader!./example.coffee
[0] (webpack)/~/coffee-loader!./example.coffee 308 bytes {0} [built]
> bundle [0] (webpack)/node_modules/coffee-loader!./example.coffee
[0] (webpack)/node_modules/coffee-loader!./example.coffee 308 bytes {0} [built]
chunk {1} ./manifest-cheap-module-eval-source-map.js (manifest) 0 bytes [entry] [rendered]
Child
Hash: 5f9e187528736f9dd586
Asset Size Chunks Chunk Names
./bundle-cheap-module-source-map.js 669 bytes 0 [emitted] bundle
./manifest-cheap-module-source-map.js 5.94 kB 1 [emitted] manifest
./bundle-cheap-module-source-map.js.map 485 bytes 0 [emitted] bundle
./manifest-cheap-module-source-map.js.map 5.97 kB 1 [emitted] manifest
./bundle-cheap-module-source-map.js 703 bytes 0 [emitted] bundle
./manifest-cheap-module-source-map.js 5.87 kB 1 [emitted] manifest
./bundle-cheap-module-source-map.js.map 507 bytes 0 [emitted] bundle
./manifest-cheap-module-source-map.js.map 5.9 kB 1 [emitted] manifest
Entrypoint bundle = ./manifest-cheap-module-source-map.js ./manifest-cheap-module-source-map.js.map ./bundle-cheap-module-source-map.js ./bundle-cheap-module-source-map.js.map
chunk {0} ./bundle-cheap-module-source-map.js, ./bundle-cheap-module-source-map.js.map (bundle) 308 bytes {1} [initial] [rendered]
> bundle [0] (webpack)/~/coffee-loader!./example.coffee
[0] (webpack)/~/coffee-loader!./example.coffee 308 bytes {0} [built]
> bundle [0] (webpack)/node_modules/coffee-loader!./example.coffee
[0] (webpack)/node_modules/coffee-loader!./example.coffee 308 bytes {0} [built]
chunk {1} ./manifest-cheap-module-source-map.js, ./manifest-cheap-module-source-map.js.map (manifest) 0 bytes [entry] [rendered]
Child
Hash: ad053259eb9ee4cf69b5
Asset Size Chunks Chunk Names
./bundle-cheap-source-map.js 662 bytes 0 [emitted] bundle
./manifest-cheap-source-map.js 5.93 kB 1 [emitted] manifest
./bundle-cheap-source-map.js.map 692 bytes 0 [emitted] bundle
./manifest-cheap-source-map.js.map 5.95 kB 1 [emitted] manifest
./bundle-cheap-source-map.js 696 bytes 0 [emitted] bundle
./manifest-cheap-source-map.js 5.85 kB 1 [emitted] manifest
./bundle-cheap-source-map.js.map 703 bytes 0 [emitted] bundle
./manifest-cheap-source-map.js.map 5.88 kB 1 [emitted] manifest
Entrypoint bundle = ./manifest-cheap-source-map.js ./manifest-cheap-source-map.js.map ./bundle-cheap-source-map.js ./bundle-cheap-source-map.js.map
chunk {0} ./bundle-cheap-source-map.js, ./bundle-cheap-source-map.js.map (bundle) 308 bytes {1} [initial] [rendered]
> bundle [0] (webpack)/~/coffee-loader!./example.coffee
[0] (webpack)/~/coffee-loader!./example.coffee 308 bytes {0} [built]
> bundle [0] (webpack)/node_modules/coffee-loader!./example.coffee
[0] (webpack)/node_modules/coffee-loader!./example.coffee 308 bytes {0} [built]
chunk {1} ./manifest-cheap-source-map.js, ./manifest-cheap-source-map.js.map (manifest) 0 bytes [entry] [rendered]
Child
Hash: 354b67e68d715d903c31
Asset Size Chunks Chunk Names
./bundle-eval.js 834 bytes 0 [emitted] bundle
./manifest-eval.js 5.86 kB 1 [emitted] manifest
./bundle-eval.js 890 bytes 0 [emitted] bundle
./manifest-eval.js 5.79 kB 1 [emitted] manifest
Entrypoint bundle = ./manifest-eval.js ./bundle-eval.js
chunk {0} ./bundle-eval.js (bundle) 308 bytes {1} [initial] [rendered]
> bundle [0] (webpack)/~/coffee-loader!./example.coffee
[0] (webpack)/~/coffee-loader!./example.coffee 308 bytes {0} [built]
> bundle [0] (webpack)/node_modules/coffee-loader!./example.coffee
[0] (webpack)/node_modules/coffee-loader!./example.coffee 308 bytes {0} [built]
chunk {1} ./manifest-eval.js (manifest) 0 bytes [entry] [rendered]
Child
Hash: 2f2150aa82ec45caa3f7
Asset Size Chunks Chunk Names
./bundle-eval-source-map.js 1.44 kB 0 [emitted] bundle
./manifest-eval-source-map.js 5.87 kB 1 [emitted] manifest
Asset Size Chunks Chunk Names
./bundle-eval-source-map.js 1.5 kB 0 [emitted] bundle
./manifest-eval-source-map.js 5.8 kB 1 [emitted] manifest
Entrypoint bundle = ./manifest-eval-source-map.js ./bundle-eval-source-map.js
chunk {0} ./bundle-eval-source-map.js (bundle) 308 bytes {1} [initial] [rendered]
> bundle [0] (webpack)/~/coffee-loader!./example.coffee
[0] (webpack)/~/coffee-loader!./example.coffee 308 bytes {0} [built]
> bundle [0] (webpack)/node_modules/coffee-loader!./example.coffee
[0] (webpack)/node_modules/coffee-loader!./example.coffee 308 bytes {0} [built]
chunk {1} ./manifest-eval-source-map.js (manifest) 0 bytes [entry] [rendered]
Child
Hash: 9d388dea6bd43ac605cd
Asset Size Chunks Chunk Names
./bundle-hidden-source-map.js 610 bytes 0 [emitted] bundle
./manifest-hidden-source-map.js 5.87 kB 1 [emitted] manifest
./bundle-hidden-source-map.js.map 582 bytes 0 [emitted] bundle
./manifest-hidden-source-map.js.map 6 kB 1 [emitted] manifest
./bundle-hidden-source-map.js 644 bytes 0 [emitted] bundle
./manifest-hidden-source-map.js 5.8 kB 1 [emitted] manifest
./bundle-hidden-source-map.js.map 604 bytes 0 [emitted] bundle
./manifest-hidden-source-map.js.map 5.93 kB 1 [emitted] manifest
Entrypoint bundle = ./manifest-hidden-source-map.js ./manifest-hidden-source-map.js.map ./bundle-hidden-source-map.js ./bundle-hidden-source-map.js.map
chunk {0} ./bundle-hidden-source-map.js, ./bundle-hidden-source-map.js.map (bundle) 308 bytes {1} [initial] [rendered]
> bundle [0] (webpack)/~/coffee-loader!./example.coffee
[0] (webpack)/~/coffee-loader!./example.coffee 308 bytes {0} [built]
> bundle [0] (webpack)/node_modules/coffee-loader!./example.coffee
[0] (webpack)/node_modules/coffee-loader!./example.coffee 308 bytes {0} [built]
chunk {1} ./manifest-hidden-source-map.js, ./manifest-hidden-source-map.js.map (manifest) 0 bytes [entry] [rendered]
Child
Hash: d4e103e888cf20eaf6f7
Asset Size Chunks Chunk Names
./bundle-inline-source-map.js 1.45 kB 0 [emitted] bundle
./manifest-inline-source-map.js 13.9 kB 1 [emitted] manifest
./bundle-inline-source-map.js 1.52 kB 0 [emitted] bundle
./manifest-inline-source-map.js 13.8 kB 1 [emitted] manifest
Entrypoint bundle = ./manifest-inline-source-map.js ./bundle-inline-source-map.js
chunk {0} ./bundle-inline-source-map.js (bundle) 308 bytes {1} [initial] [rendered]
> bundle [0] (webpack)/~/coffee-loader!./example.coffee
[0] (webpack)/~/coffee-loader!./example.coffee 308 bytes {0} [built]
> bundle [0] (webpack)/node_modules/coffee-loader!./example.coffee
[0] (webpack)/node_modules/coffee-loader!./example.coffee 308 bytes {0} [built]
chunk {1} ./manifest-inline-source-map.js (manifest) 0 bytes [entry] [rendered]
Child
Hash: 5dc2d2924e3fdc22d688
Asset Size Chunks Chunk Names
./bundle-nosources-source-map.js 666 bytes 0 [emitted] bundle
./manifest-nosources-source-map.js 5.93 kB 1 [emitted] manifest
./bundle-nosources-source-map.js 700 bytes 0 [emitted] bundle
./manifest-nosources-source-map.js 5.86 kB 1 [emitted] manifest
./bundle-nosources-source-map.js.map 315 bytes 0 [emitted] bundle
./manifest-nosources-source-map.js.map 936 bytes 1 [emitted] manifest
./manifest-nosources-source-map.js.map 935 bytes 1 [emitted] manifest
Entrypoint bundle = ./manifest-nosources-source-map.js ./manifest-nosources-source-map.js.map ./bundle-nosources-source-map.js ./bundle-nosources-source-map.js.map
chunk {0} ./bundle-nosources-source-map.js, ./bundle-nosources-source-map.js.map (bundle) 308 bytes {1} [initial] [rendered]
> bundle [0] (webpack)/~/coffee-loader!./example.coffee
[0] (webpack)/~/coffee-loader!./example.coffee 308 bytes {0} [built]
> bundle [0] (webpack)/node_modules/coffee-loader!./example.coffee
[0] (webpack)/node_modules/coffee-loader!./example.coffee 308 bytes {0} [built]
chunk {1} ./manifest-nosources-source-map.js, ./manifest-nosources-source-map.js.map (manifest) 0 bytes [entry] [rendered]
Child
Hash: 9086c1479edc2c87f028
Asset Size Chunks Chunk Names
./bundle-source-map.js 656 bytes 0 [emitted] bundle
./manifest-source-map.js 5.91 kB 1 [emitted] manifest
./bundle-source-map.js.map 575 bytes 0 [emitted] bundle
./manifest-source-map.js.map 5.98 kB 1 [emitted] manifest
./bundle-source-map.js 690 bytes 0 [emitted] bundle
./manifest-source-map.js 5.84 kB 1 [emitted] manifest
./bundle-source-map.js.map 597 bytes 0 [emitted] bundle
./manifest-source-map.js.map 5.92 kB 1 [emitted] manifest
Entrypoint bundle = ./manifest-source-map.js ./manifest-source-map.js.map ./bundle-source-map.js ./bundle-source-map.js.map
chunk {0} ./bundle-source-map.js, ./bundle-source-map.js.map (bundle) 308 bytes {1} [initial] [rendered]
> bundle [0] (webpack)/~/coffee-loader!./example.coffee
[0] (webpack)/~/coffee-loader!./example.coffee 308 bytes {0} [built]
> bundle [0] (webpack)/node_modules/coffee-loader!./example.coffee
[0] (webpack)/node_modules/coffee-loader!./example.coffee 308 bytes {0} [built]
chunk {1} ./manifest-source-map.js, ./manifest-source-map.js.map (manifest) 0 bytes [entry] [rendered]
```

View File

@ -38,8 +38,9 @@ module.exports = {
/******/ var moduleId, chunkId, i = 0, resolves = [], result;
/******/ for(;i < chunkIds.length; i++) {
/******/ chunkId = chunkIds[i];
/******/ if(installedChunks[chunkId])
/******/ if(installedChunks[chunkId]) {
/******/ resolves.push(installedChunks[chunkId][0]);
/******/ }
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ for(moduleId in moreModules) {
@ -48,8 +49,9 @@ module.exports = {
/******/ }
/******/ }
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);
/******/ while(resolves.length)
/******/ while(resolves.length) {
/******/ resolves.shift()();
/******/ }
/******/ if(executeModules) {
/******/ for(i=0; i < executeModules.length; i++) {
/******/ result = __webpack_require__(__webpack_require__.s = executeModules[i]);
@ -70,9 +72,9 @@ module.exports = {
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
@ -93,19 +95,21 @@ module.exports = {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ if(installedChunks[chunkId] === 0)
/******/ return Promise.resolve();
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData === 0) {
/******/ return new Promise(function(resolve) { resolve(); });
/******/ }
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunks[chunkId]) {
/******/ return installedChunks[chunkId][2];
/******/ if(installedChunkData) {
/******/ return installedChunkData[2];
/******/ }
/******/
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunks[chunkId] = [resolve, reject];
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ installedChunks[chunkId][2] = promise;
/******/ installedChunkData[2] = promise;
/******/
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
@ -127,7 +131,9 @@ module.exports = {
/******/ clearTimeout(timeout);
/******/ var chunk = installedChunks[chunkId];
/******/ if(chunk !== 0) {
/******/ if(chunk) chunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));
/******/ if(chunk) {
/******/ chunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));
/******/ }
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
@ -142,9 +148,6 @@ module.exports = {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -175,7 +178,7 @@ module.exports = {
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 5);
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ })
/************************************************************************/
```
@ -183,47 +186,45 @@ module.exports = {
</details>
``` javascript
/******/ ({
/***/ 0:
/* unknown exports provided */
/* all exports used */
/******/ ([
/* 0 */
/*!********************!*\
!*** ./vendor1.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = "Vendor1";
/***/ }),
/***/ 5:
/* unknown exports provided */
/* all exports used */
/* 1 */,
/* 2 */
/*!***********************!*\
!*** multi ./vendor1 ***!
\***********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./vendor1 */0);
/***/ })
/******/ });
/******/ ]);
```
# js/vendor2.js
``` javascript
webpackJsonp([0],{
/***/ 1:
/* unknown exports provided */
/* all exports used */
webpackJsonp([0],[
/* 0 */,
/* 1 */
/*!********************!*\
!*** ./vendor2.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = "Vendor2";
@ -231,21 +232,20 @@ __webpack_require__(/*! ./vendor1 */ 0);
/***/ }),
/***/ 6:
/* unknown exports provided */
/* all exports used */
/* 2 */,
/* 3 */
/*!***********************!*\
!*** multi ./vendor2 ***!
\***********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./vendor2 */1);
/***/ })
},[6]);
],[3]);
```
# js/pageA.js
@ -253,12 +253,12 @@ module.exports = __webpack_require__(/*! ./vendor2 */1);
``` javascript
webpackJsonp([3],{
/***/ 2:
/* unknown exports provided */
/* all exports used */
/***/ 4:
/*!******************!*\
!*** ./pageA.js ***!
\******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = "pageA";
@ -268,7 +268,7 @@ __webpack_require__(/*! ./vendor2 */ 1);
/***/ })
},[2]);
},[4]);
```
# Info
@ -276,79 +276,79 @@ __webpack_require__(/*! ./vendor2 */ 1);
## Uncompressed
```
Hash: 62391146f04ad7bbf99c
Version: webpack 2.3.2
Hash: 87020004ae57cbfa3361
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
vendor2.js 583 bytes 0 [emitted] vendor2
pageC.js 234 bytes 1 [emitted] pageC
pageB.js 234 bytes 2 [emitted] pageB
pageA.js 341 bytes 3 [emitted] pageA
vendor1.js 6.4 kB 4 [emitted] vendor1
vendor2.js 598 bytes 0 [emitted] vendor2
pageC.js 235 bytes 1 [emitted] pageC
pageB.js 235 bytes 2 [emitted] pageB
pageA.js 342 bytes 3 [emitted] pageA
vendor1.js 6.41 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) 80 bytes {4} [initial] [rendered]
> vendor2 [6] multi ./vendor2
> vendor2 [3] multi ./vendor2
[1] ./vendor2.js 52 bytes {0} [built]
cjs require ./vendor2 [2] ./pageA.js 3:0-20
single entry ./vendor2 [6] multi ./vendor2 vendor2:100000
[6] multi ./vendor2 28 bytes {0} [built]
single entry ./vendor2 [3] multi ./vendor2 vendor2:100000
cjs require ./vendor2 [4] ./pageA.js 3:0-20
[3] multi ./vendor2 28 bytes {0} [built]
chunk {1} pageC.js (pageC) 25 bytes {0} [initial] [rendered]
> pageC [4] ./pageC.js
[4] ./pageC.js 25 bytes {1} [built]
> pageC [6] ./pageC.js
[6] ./pageC.js 25 bytes {1} [built]
chunk {2} pageB.js (pageB) 25 bytes {0} [initial] [rendered]
> pageB [3] ./pageB.js
[3] ./pageB.js 25 bytes {2} [built]
> pageB [5] ./pageB.js
[5] ./pageB.js 25 bytes {2} [built]
chunk {3} pageA.js (pageA) 73 bytes {0} [initial] [rendered]
> pageA [2] ./pageA.js
[2] ./pageA.js 73 bytes {3} [built]
> pageA [4] ./pageA.js
[4] ./pageA.js 73 bytes {3} [built]
chunk {4} vendor1.js (vendor1) 55 bytes [entry] [rendered]
> vendor1 [5] multi ./vendor1
> vendor1 [2] multi ./vendor1
[0] ./vendor1.js 27 bytes {4} [built]
cjs require ./vendor1 [1] ./vendor2.js 2:0-20
cjs require ./vendor1 [2] ./pageA.js 2:0-20
single entry ./vendor1 [5] multi ./vendor1 vendor1:100000
[5] multi ./vendor1 28 bytes {4} [built]
single entry ./vendor1 [2] multi ./vendor1 vendor1:100000
cjs require ./vendor1 [4] ./pageA.js 2:0-20
[2] multi ./vendor1 28 bytes {4} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 62391146f04ad7bbf99c
Version: webpack 2.3.2
Hash: 87020004ae57cbfa3361
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
vendor2.js 102 bytes 0 [emitted] vendor2
vendor2.js 100 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.46 kB 4 [emitted] vendor1
vendor1.js 1.44 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) 80 bytes {4} [initial] [rendered]
> vendor2 [6] multi ./vendor2
> vendor2 [3] multi ./vendor2
[1] ./vendor2.js 52 bytes {0} [built]
cjs require ./vendor2 [2] ./pageA.js 3:0-20
single entry ./vendor2 [6] multi ./vendor2 vendor2:100000
[6] multi ./vendor2 28 bytes {0} [built]
single entry ./vendor2 [3] multi ./vendor2 vendor2:100000
cjs require ./vendor2 [4] ./pageA.js 3:0-20
[3] multi ./vendor2 28 bytes {0} [built]
chunk {1} pageC.js (pageC) 25 bytes {0} [initial] [rendered]
> pageC [4] ./pageC.js
[4] ./pageC.js 25 bytes {1} [built]
> pageC [6] ./pageC.js
[6] ./pageC.js 25 bytes {1} [built]
chunk {2} pageB.js (pageB) 25 bytes {0} [initial] [rendered]
> pageB [3] ./pageB.js
[3] ./pageB.js 25 bytes {2} [built]
> pageB [5] ./pageB.js
[5] ./pageB.js 25 bytes {2} [built]
chunk {3} pageA.js (pageA) 73 bytes {0} [initial] [rendered]
> pageA [2] ./pageA.js
[2] ./pageA.js 73 bytes {3} [built]
> pageA [4] ./pageA.js
[4] ./pageA.js 73 bytes {3} [built]
chunk {4} vendor1.js (vendor1) 55 bytes [entry] [rendered]
> vendor1 [5] multi ./vendor1
> vendor1 [2] multi ./vendor1
[0] ./vendor1.js 27 bytes {4} [built]
cjs require ./vendor1 [1] ./vendor2.js 2:0-20
cjs require ./vendor1 [2] ./pageA.js 2:0-20
single entry ./vendor1 [5] multi ./vendor1 vendor1:100000
[5] multi ./vendor1 28 bytes {4} [built]
single entry ./vendor1 [2] multi ./vendor1 vendor1:100000
cjs require ./vendor1 [4] ./pageA.js 2:0-20
[2] multi ./vendor1 28 bytes {4} [built]
```

View File

@ -34,9 +34,9 @@ onmessage = function(event) {
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
@ -61,9 +61,6 @@ onmessage = function(event) {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -91,7 +88,7 @@ onmessage = function(event) {
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
```
@ -101,27 +98,14 @@ onmessage = function(event) {
``` javascript
/******/ ([
/* 0 */
/* unknown exports provided */
/* all exports used */
/*!*********************************************!*\
!*** (webpack)/~/worker-loader!./worker.js ***!
\*********************************************/
/***/ (function(module, exports, __webpack_require__) {
module.exports = function() {
return new Worker(__webpack_require__.p + "hash.worker.js");
};
/***/ }),
/* 1 */
/* unknown exports provided */
/* all exports used */
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var Worker = __webpack_require__(/*! worker-loader!./worker */ 0);
var Worker = __webpack_require__(/*! worker-loader!./worker */ 1);
var worker = new Worker;
worker.postMessage("b");
worker.onmessage = function(event) {
@ -129,6 +113,19 @@ worker.onmessage = function(event) {
}
/***/ }),
/* 1 */
/*!********************************************************!*\
!*** (webpack)/node_modules/worker-loader!./worker.js ***!
\********************************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
module.exports = function() {
return new Worker(__webpack_require__.p + "hash.worker.js");
};
/***/ })
/******/ ]);
```
@ -158,9 +155,9 @@ worker.onmessage = function(event) {
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
@ -181,11 +178,13 @@ worker.onmessage = function(event) {
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ // "1" is the signal for "already loaded"
/******/ if(!installedChunks[chunkId]) {
/******/ importScripts("" + chunkId + ".hash.worker.js");
/******/ }
/******/ return Promise.resolve();
/******/ return new Promise(function(resolve) {
/******/ // "1" is the signal for "already loaded"
/******/ if(!installedChunks[chunkId]) {
/******/ importScripts("" + chunkId + ".hash.worker.js");
/******/ }
/******/ resolve();
/******/ });
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
@ -194,9 +193,6 @@ worker.onmessage = function(event) {
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
@ -224,22 +220,21 @@ worker.onmessage = function(event) {
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */,
/* 1 */
/* unknown exports provided */
/* all exports used */
/* 0 */
/*!*******************!*\
!*** ./worker.js ***!
\*******************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
onmessage = function(event) {
var template = event.data;
__webpack_require__.e/* require */(0).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 */ 1)("./" + event.data)]; (function(tmpl) {
postMessage(tmpl());
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
}
@ -253,12 +248,13 @@ onmessage = function(event) {
``` javascript
webpackChunk([0],[
/* 0 */
/* unknown exports provided */
/* all exports used */
/* 0 */,
/* 1 */
/*!*********************************************!*\
!*** ../require.context/templates ^\.\/.*$ ***!
\*********************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {
var map = {
@ -283,16 +279,15 @@ webpackContext.keys = function webpackContextKeys() {
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 0;
webpackContext.id = 1;
/***/ }),
/* 1 */,
/* 2 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -301,11 +296,11 @@ module.exports = function() {
/***/ }),
/* 3 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -314,11 +309,11 @@ module.exports = function() {
/***/ }),
/* 4 */
/* unknown exports provided */
/* all exports used */
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/*! no static exports found */
/*! all exports used */
/***/ (function(module, exports) {
module.exports = function() {
@ -334,75 +329,75 @@ module.exports = function() {
## Uncompressed
```
Hash: 80e12ebf70d24b1c169d
Version: webpack 2.3.2
Hash: de5e6c34dad6f90c6640
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.hash.worker.js 1.85 kB [emitted]
hash.worker.js 4.02 kB [emitted]
output.js 3.4 kB 0 [emitted] main
hash.worker.js 3.91 kB [emitted]
output.js 3.27 kB 0 [emitted] main
Entrypoint main = output.js
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]
> main [0] ./example.js
[0] ./example.js 215 bytes {0} [built]
[1] (webpack)/node_modules/worker-loader!./worker.js 96 bytes {0} [not cacheable] [built]
cjs require worker-loader!./worker [0] ./example.js 1:13-46
Child worker:
Asset Size Chunks Chunk Names
0.hash.worker.js 1.85 kB 0 [emitted]
hash.worker.js 4.02 kB 1 [emitted] main
hash.worker.js 3.91 kB 1 [emitted] main
Entrypoint main = hash.worker.js
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
> [0] ./worker.js 3:1-5:3
[1] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
amd require context ../require.context/templates [0] ./worker.js 3:1-5:3
[2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a [0] ../require.context/templates ^\.\/.*$ ./a
context element ./a.js [0] ../require.context/templates ^\.\/.*$ ./a.js
context element ./a [1] ../require.context/templates ^\.\/.*$ ./a
context element ./a.js [1] ../require.context/templates ^\.\/.*$ ./a.js
[3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b [0] ../require.context/templates ^\.\/.*$ ./b
context element ./b.js [0] ../require.context/templates ^\.\/.*$ ./b.js
context element ./b [1] ../require.context/templates ^\.\/.*$ ./b
context element ./b.js [1] ../require.context/templates ^\.\/.*$ ./b.js
[4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c [0] ../require.context/templates ^\.\/.*$ ./c
context element ./c.js [0] ../require.context/templates ^\.\/.*$ ./c.js
context element ./c [1] ../require.context/templates ^\.\/.*$ ./c
context element ./c.js [1] ../require.context/templates ^\.\/.*$ ./c.js
chunk {1} hash.worker.js (main) 168 bytes [entry] [rendered]
> main [1] ./worker.js
[1] ./worker.js 168 bytes {1} [built]
> main [0] ./worker.js
[0] ./worker.js 168 bytes {1} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 80e12ebf70d24b1c169d
Version: webpack 2.3.2
Hash: de5e6c34dad6f90c6640
Version: webpack 3.0.0-rc.0
Asset Size Chunks Chunk Names
0.hash.worker.js 544 bytes [emitted]
hash.worker.js 833 bytes [emitted]
output.js 665 bytes 0 [emitted] main
hash.worker.js 811 bytes [emitted]
output.js 632 bytes 0 [emitted] main
Entrypoint main = output.js
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]
> main [0] ./example.js
[0] ./example.js 215 bytes {0} [built]
[1] (webpack)/node_modules/worker-loader!./worker.js 96 bytes {0} [not cacheable] [built]
cjs require worker-loader!./worker [0] ./example.js 1:13-46
Child worker:
Asset Size Chunks Chunk Names
0.hash.worker.js 544 bytes 0 [emitted]
hash.worker.js 833 bytes 1 [emitted] main
hash.worker.js 811 bytes 1 [emitted] main
Entrypoint main = hash.worker.js
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
> [0] ./worker.js 3:1-5:3
[1] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
amd require context ../require.context/templates [0] ./worker.js 3:1-5:3
[2] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a [0] ../require.context/templates ^\.\/.*$ ./a
context element ./a.js [0] ../require.context/templates ^\.\/.*$ ./a.js
context element ./a [1] ../require.context/templates ^\.\/.*$ ./a
context element ./a.js [1] ../require.context/templates ^\.\/.*$ ./a.js
[3] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b [0] ../require.context/templates ^\.\/.*$ ./b
context element ./b.js [0] ../require.context/templates ^\.\/.*$ ./b.js
context element ./b [1] ../require.context/templates ^\.\/.*$ ./b
context element ./b.js [1] ../require.context/templates ^\.\/.*$ ./b.js
[4] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c [0] ../require.context/templates ^\.\/.*$ ./c
context element ./c.js [0] ../require.context/templates ^\.\/.*$ ./c.js
context element ./c [1] ../require.context/templates ^\.\/.*$ ./c
context element ./c.js [1] ../require.context/templates ^\.\/.*$ ./c.js
chunk {1} hash.worker.js (main) 168 bytes [entry] [rendered]
> main [1] ./worker.js
[1] ./worker.js 168 bytes {1} [built]
> main [0] ./worker.js
[0] ./worker.js 168 bytes {1} [built]
```