@@ -30,7 +30,7 @@ export default 123;
3030var path = require (" path" );
3131var webpack = require (" ../../" );
3232module .exports = {
33- mode: " production" ,
33+ // mode: "development || "production",
3434 entry: {
3535 main: " ./example" ,
3636 common: [" ./vendor" ] // optional
@@ -63,7 +63,7 @@ module.exports = {
6363
6464<!-- inlined minimized file "manifest.[chunkhash].js" -->
6565<script >
66- !function(e){function r(r){for(var n,c,i,f=r[0],s=r[1],l=r[2],p=0,d=[];p<f.length;p++)c=f[p],o[c]&&d.push(o[c][0]),o[c]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(u&&u(r);d.length;)d.shift()();for(a.push.apply(a,l||[]),p=0;p<a.length;p++){for(var h=a[p],b=!0,v=1;v<h.length;v++){var g=h[v];0!==o[g]&&(b=!1)}b&&(a.splice(p--,1),i=t(t.s=h[0]))}return i}function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={},o={4:0},a=[];t.e=function(e){function r(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}}var n=[],a=o[e];if(0!==a)if(a)n.push(a[2]);else{var c=new Promise(function(r,t){a=o[e]=[r,t]});n.push(a[2]=c);var u=document.getElementsByTagName("head")[0],i=document.createElement("script");i.charset="utf-8",i.timeout=12e4,t.nc&&i.setAttribute("nonce",t.nc),i.src=t.p+""+{0:"d384ba1bbf385fcafc99",1:"13604ac9ffd7d870f88b",2:"21bb96c534a4f1d84e54",3:"e5aa9efd1b127c0b8617"}[e]+".js";var f=setTimeout(function(){r({type:"timeout",target:i})},12e4);i.onerror=i.onload=r,u.appendChild(i)}return Promise.all(n)},t.m=e,t.c=n,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="js/",t.oe=function(e){throw console.error(e),e};var c=window.webpackJsonp=window.webpackJsonp||[],u=c.push.bind(c);c.push=r,c=c.slice();for(var i=0;i<c.length;i++)r(c[i])}([]);
66+ !function(e){function r(r){for(var n,u,i,s=r[0],l=r[1],p=r[2],f=0,d=[];f<s.length;f++)u=s[f],o[u]&&d.push(o[u][0]),o[u]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(c&&c(r);d.length;)d.shift()();for(a.push.apply(a,p||[]),f=0;f<a.length;f++){for(var b=a[f],h=!0,v=1;v<b.length;v++){var g=b[v];0!==o[g]&&(h=!1)}h&&(a.splice(f--,1),i=t(t.s=b[0]))}return i}function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={},o={4:0},a=[];t.e=function(e){var r=[],n=o[e];if(0!==n)if(n)r.push(n[2]);else{var a=new Promise(function(r,t){n=o[e]=[r,t]});r.push(n[2]=a);var u=document.getElementsByTagName("head")[0],c=document.createElement("script");c.charset="utf-8",c.timeout=12e4,t.nc&&c.setAttribute("nonce",t.nc),c.src=t.p+""+{0:"5bb7dd73af69328b52b2",1:"b8ec80633785d373ba39",2:"4940b8b48ba3c90e30eb",3:"7809203ce12a49ce1b59"}[e]+".js";var i=setTimeout(function(){s({type:"timeout",target:c})},12e4);c.onerror=c.onload=s;function s(r){c.onerror=c.onload=null,clearTimeout(i);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,u=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");u.type=n,u.request=a,t[1](u)}o[e]=void 0}}u.appendChild(c)}return Promise.all(r)},t.m=e,t.c=n,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="js/",t.oe=function(e){throw console.error(e),e};var u=window.webpackJsonp=window.webpackJsonp||[],c=u.push.bind(u);u.push=r,u=u.slice();for(var i=0;i<u.length;i++)r(u[i])}([]);
6767 </script >
6868
6969<!-- optional when using the CommonChunkPlugin for vendor modules -->
@@ -78,14 +78,13 @@ module.exports = {
7878# js/common.[ chunkhash] .js
7979
8080``` javascript
81- (window [" webpackJsonp" ] = window [" webpackJsonp" ] || []).push ([[2 ],[
82- /* 0 */
81+ (window [" webpackJsonp" ] = window [" webpackJsonp" ] || []).push ([[1 ],[
82+ /* 0 */ ,
83+ /* 1 */
8384/* !*******************!*\
8485 !*** ./vendor.js ***!
8586 \*******************/
8687/* ! exports provided: default */
87- /* ! all exports used */
88- /* ! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: multi ./vendor (referenced with single entry) */
8988/** */ (function (module , __webpack_exports__ , __webpack_require__ ) {
9089
9190" use strict" ;
@@ -95,107 +94,103 @@ __webpack_require__.r(__webpack_exports__);
9594
9695
9796/** */ }),
98- /* 1 */ ,
99- /* 2 */
97+ /* 2 */ ,
98+ /* 3 */ ,
99+ /* 4 */
100100/* !**********************!*\
101101 !*** multi ./vendor ***!
102102 \**********************/
103103/* ! no static exports found */
104- /* ! all exports used */
105- /* ! ModuleConcatenation bailout: Module is not an ECMAScript module */
106104/** */ (function (module , exports , __webpack_require__ ) {
107105
108- module .exports = __webpack_require__ (/* ! ./vendor */ 0 );
106+ module .exports = __webpack_require__ (/* ! ./vendor */ 1 );
109107
110108
111109/** */ })
112- ],[[2 ,4 ,2 ]]]);
110+ ],[[4 ,4 ,1 ]]]);
113111```
114112
115113# js/main.[ chunkhash] .js
116114
117115``` javascript
118- (window [" webpackJsonp" ] = window [" webpackJsonp" ] || []).push ([[3 ],[
119- /* 0 */ ,
120- /* 1 */
116+ (window [" webpackJsonp" ] = window [" webpackJsonp" ] || []).push ([[0 ],[
117+ /* 0 */
121118/* !********************!*\
122119 !*** ./example.js ***!
123120 \********************/
124121/* ! no exports provided */
125- /* ! all exports used */
126- /* ! ModuleConcatenation bailout: Module is an entry point */
127122/** */ (function (module , __webpack_exports__ , __webpack_require__ ) {
128123
129124" use strict" ;
130125__webpack_require__ .r (__webpack_exports__);
131- /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__ (/* ! ./vendor */ 0 );
126+ /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__ (/* ! ./vendor */ 1 );
132127
133128// some module
134- __webpack_require__ .e /* import() */ (1 ).then (function () { var module = __webpack_require__ (/* ! ./async1 */ 3 ); return typeof module === " object" && module && module .__esModule ? module : /* fake namespace object */ { " default" : module }; });
135- __webpack_require__ .e /* import() */ (0 ).then (function () { var module = __webpack_require__ (/* ! ./async2 */ 4 ); return typeof module === " object" && module && module .__esModule ? module : /* fake namespace object */ { " default" : module }; });
129+ __webpack_require__ .e /* import() */ (2 ).then (function () { var module = __webpack_require__ (/* ! ./async1 */ 2 ); return typeof module === " object" && module && module .__esModule ? module : /* fake namespace object */ { " default" : module }; });
130+ __webpack_require__ .e /* import() */ (3 ).then (function () { var module = __webpack_require__ (/* ! ./async2 */ 3 ); return typeof module === " object" && module && module .__esModule ? module : /* fake namespace object */ { " default" : module }; });
136131
137132
138133/** */ })
139- ],[[1 ,4 ,2 , 3 ]]]);
134+ ],[[0 ,4 ,1 , 0 ]]]);
140135```
141136
142137# Info
143138
144- ## Uncompressed
139+ ## Unoptimized
145140
146141```
147- Hash: 19d389fe665472aada46
142+ Hash: 0a1b2c3d4e5f6a7b8c9d
148143Version: webpack next
149144 Asset Size Chunks Chunk Names
150- d384ba1bbf385fcafc99. js 359 bytes 0 [emitted]
151- 13604ac9ffd7d870f88b. js 359 bytes 1 [emitted]
152- common.[chunkhash]. js 975 bytes 2 [emitted] common
153- main.[chunkhash]. js 1.01 KiB 3 [emitted] main
145+ main.[chunkhash]. js 937 bytes 0 [emitted] main
146+ common.[chunkhash]. js 727 bytes 1 [emitted] common
147+ 4c5791c50ea66d4b3b9c. js 264 bytes 2 [emitted]
148+ c1ddc8b0bb58306497fd. js 264 bytes 3 [emitted]
154149 manifest.[chunkhash].js 7.14 KiB 4 [emitted] manifest
155150Entrypoint main = manifest.[chunkhash].js common.[chunkhash].js main.[chunkhash].js
156151Entrypoint common = manifest.[chunkhash].js common.[chunkhash].js
157- chunk {0} d384ba1bbf385fcafc99.js 29 bytes {3} [rendered]
158- > [1] ./example.js 4:0-18
159- [4] ./async2.js 29 bytes {0} [built]
160- import() ./async2 [1] ./example.js 4:0-18
161- chunk {1} 13604ac9ffd7d870f88b.js 29 bytes {3} [rendered]
162- > [1] ./example.js 3:0-18
163- [3] ./async1.js 29 bytes {1} [built]
164- import() ./async1 [1] ./example.js 3:0-18
165- chunk {2} common.[chunkhash].js (common) 97 bytes {4} [initial] [rendered]
166- > common [2] multi ./vendor
167- [0] ./vendor.js 69 bytes {2} [built]
168- [exports: default]
169- harmony side effect evaluation ./vendor [1] ./example.js 1:0-30
170- single entry ./vendor [2] multi ./vendor common:100000
171- [2] multi ./vendor 28 bytes {2} [built]
172- multi entry
173- chunk {3} main.[chunkhash].js (main) 90 bytes {2} [initial] [rendered]
174- > main [1] ./example.js
175- [1] ./example.js 90 bytes {3} [built]
152+ chunk {0} main.[chunkhash].js (main) 90 bytes {1} [initial] [rendered]
153+ > main [0] ./example.js
154+ [0] ./example.js 90 bytes {0} [built]
176155 [no exports]
177156 single entry ./example main
157+ chunk {1} common.[chunkhash].js (common) 97 bytes {4} [initial] [rendered]
158+ > common [4] multi ./vendor
159+ [1] ./vendor.js 69 bytes {1} [built]
160+ [exports: default]
161+ harmony side effect evaluation ./vendor [0] ./example.js 1:0-30
162+ single entry ./vendor [4] multi ./vendor common:100000
163+ [4] multi ./vendor 28 bytes {1} [built]
164+ multi entry
165+ chunk {2} 4c5791c50ea66d4b3b9c.js 29 bytes {0} [rendered]
166+ > [0] ./example.js 3:0-18
167+ [2] ./async1.js 29 bytes {2} [built]
168+ import() ./async1 [0] ./example.js 3:0-18
169+ chunk {3} c1ddc8b0bb58306497fd.js 29 bytes {0} [rendered]
170+ > [0] ./example.js 4:0-18
171+ [3] ./async2.js 29 bytes {3} [built]
172+ import() ./async2 [0] ./example.js 4:0-18
178173chunk {4} manifest.[chunkhash].js (manifest) 0 bytes [entry] [rendered]
179174```
180175
181- ## Minimized (uglify-js, no zip)
176+ ## Production mode
182177
183178```
184- Hash: 19d389fe665472aada46
179+ Hash: 0a1b2c3d4e5f6a7b8c9d
185180Version: webpack next
186181 Asset Size Chunks Chunk Names
187- d384ba1bbf385fcafc99 .js 78 bytes 0 [emitted]
188- 13604ac9ffd7d870f88b .js 78 bytes 1 [emitted]
182+ 5bb7dd73af69328b52b2 .js 78 bytes 0 [emitted]
183+ b8ec80633785d373ba39 .js 78 bytes 1 [emitted]
189184 common.[chunkhash].js 154 bytes 2 [emitted] common
190185 main.[chunkhash].js 299 bytes 3 [emitted] main
191186 manifest.[chunkhash].js 1.81 KiB 4 [emitted] manifest
192187Entrypoint main = manifest.[chunkhash].js common.[chunkhash].js main.[chunkhash].js
193188Entrypoint common = manifest.[chunkhash].js common.[chunkhash].js
194- chunk {0} d384ba1bbf385fcafc99 .js 29 bytes {3} [rendered]
189+ chunk {0} 5bb7dd73af69328b52b2 .js 29 bytes {3} [rendered]
195190 > [1] ./example.js 4:0-18
196191 [4] ./async2.js 29 bytes {0} [built]
197192 import() ./async2 [1] ./example.js 4:0-18
198- chunk {1} 13604ac9ffd7d870f88b .js 29 bytes {3} [rendered]
193+ chunk {1} b8ec80633785d373ba39 .js 29 bytes {3} [rendered]
199194 > [1] ./example.js 3:0-18
200195 [3] ./async1.js 29 bytes {1} [built]
201196 import() ./async1 [1] ./example.js 3:0-18
@@ -213,4 +208,4 @@ chunk {3} main.[chunkhash].js (main) 90 bytes {2} [initial] [rendered]
213208 [no exports]
214209 single entry ./example main
215210chunk {4} manifest.[chunkhash].js (manifest) 0 bytes [entry] [rendered]
216- ```
211+ ```
0 commit comments