@@ -30,7 +30,7 @@ export default 123;
30
30
var path = require (" path" );
31
31
var webpack = require (" ../../" );
32
32
module .exports = {
33
- mode: " production" ,
33
+ // mode: "development || "production",
34
34
entry: {
35
35
main: " ./example" ,
36
36
common: [" ./vendor" ] // optional
@@ -63,7 +63,7 @@ module.exports = {
63
63
64
64
<!-- inlined minimized file "manifest.[chunkhash].js" -->
65
65
<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])}([]);
67
67
</script >
68
68
69
69
<!-- optional when using the CommonChunkPlugin for vendor modules -->
@@ -78,14 +78,13 @@ module.exports = {
78
78
# js/common.[ chunkhash] .js
79
79
80
80
``` javascript
81
- (window [" webpackJsonp" ] = window [" webpackJsonp" ] || []).push ([[2 ],[
82
- /* 0 */
81
+ (window [" webpackJsonp" ] = window [" webpackJsonp" ] || []).push ([[1 ],[
82
+ /* 0 */ ,
83
+ /* 1 */
83
84
/* !*******************!*\
84
85
!*** ./vendor.js ***!
85
86
\*******************/
86
87
/* ! 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) */
89
88
/** */ (function (module , __webpack_exports__ , __webpack_require__ ) {
90
89
91
90
" use strict" ;
@@ -95,107 +94,103 @@ __webpack_require__.r(__webpack_exports__);
95
94
96
95
97
96
/** */ }),
98
- /* 1 */ ,
99
- /* 2 */
97
+ /* 2 */ ,
98
+ /* 3 */ ,
99
+ /* 4 */
100
100
/* !**********************!*\
101
101
!*** multi ./vendor ***!
102
102
\**********************/
103
103
/* ! no static exports found */
104
- /* ! all exports used */
105
- /* ! ModuleConcatenation bailout: Module is not an ECMAScript module */
106
104
/** */ (function (module , exports , __webpack_require__ ) {
107
105
108
- module .exports = __webpack_require__ (/* ! ./vendor */ 0 );
106
+ module .exports = __webpack_require__ (/* ! ./vendor */ 1 );
109
107
110
108
111
109
/** */ })
112
- ],[[2 ,4 ,2 ]]]);
110
+ ],[[4 ,4 ,1 ]]]);
113
111
```
114
112
115
113
# js/main.[ chunkhash] .js
116
114
117
115
``` javascript
118
- (window [" webpackJsonp" ] = window [" webpackJsonp" ] || []).push ([[3 ],[
119
- /* 0 */ ,
120
- /* 1 */
116
+ (window [" webpackJsonp" ] = window [" webpackJsonp" ] || []).push ([[0 ],[
117
+ /* 0 */
121
118
/* !********************!*\
122
119
!*** ./example.js ***!
123
120
\********************/
124
121
/* ! no exports provided */
125
- /* ! all exports used */
126
- /* ! ModuleConcatenation bailout: Module is an entry point */
127
122
/** */ (function (module , __webpack_exports__ , __webpack_require__ ) {
128
123
129
124
" use strict" ;
130
125
__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 );
132
127
133
128
// 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 }; });
136
131
137
132
138
133
/** */ })
139
- ],[[1 ,4 ,2 , 3 ]]]);
134
+ ],[[0 ,4 ,1 , 0 ]]]);
140
135
```
141
136
142
137
# Info
143
138
144
- ## Uncompressed
139
+ ## Unoptimized
145
140
146
141
```
147
- Hash: 19d389fe665472aada46
142
+ Hash: 0a1b2c3d4e5f6a7b8c9d
148
143
Version: webpack next
149
144
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]
154
149
manifest.[chunkhash].js 7.14 KiB 4 [emitted] manifest
155
150
Entrypoint main = manifest.[chunkhash].js common.[chunkhash].js main.[chunkhash].js
156
151
Entrypoint 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]
176
155
[no exports]
177
156
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
178
173
chunk {4} manifest.[chunkhash].js (manifest) 0 bytes [entry] [rendered]
179
174
```
180
175
181
- ## Minimized (uglify-js, no zip)
176
+ ## Production mode
182
177
183
178
```
184
- Hash: 19d389fe665472aada46
179
+ Hash: 0a1b2c3d4e5f6a7b8c9d
185
180
Version: webpack next
186
181
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]
189
184
common.[chunkhash].js 154 bytes 2 [emitted] common
190
185
main.[chunkhash].js 299 bytes 3 [emitted] main
191
186
manifest.[chunkhash].js 1.81 KiB 4 [emitted] manifest
192
187
Entrypoint main = manifest.[chunkhash].js common.[chunkhash].js main.[chunkhash].js
193
188
Entrypoint 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]
195
190
> [1] ./example.js 4:0-18
196
191
[4] ./async2.js 29 bytes {0} [built]
197
192
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]
199
194
> [1] ./example.js 3:0-18
200
195
[3] ./async1.js 29 bytes {1} [built]
201
196
import() ./async1 [1] ./example.js 3:0-18
@@ -213,4 +208,4 @@ chunk {3} main.[chunkhash].js (main) 90 bytes {2} [initial] [rendered]
213
208
[no exports]
214
209
single entry ./example main
215
210
chunk {4} manifest.[chunkhash].js (manifest) 0 bytes [entry] [rendered]
216
- ```
211
+ ```
0 commit comments