Skip to content

Commit 6525d79

Browse files
committed
updated examples
1 parent 2f43986 commit 6525d79

File tree

19 files changed

+669
-598
lines changed

19 files changed

+669
-598
lines changed

examples/code-splitted-dedupe/README.md

Lines changed: 60 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ require(["../dedupe/b"]);
1515

1616
``` javascript
1717
/******/ (function(modules) { // webpackBootstrap
18+
/******/
1819
/******/ // The module cache
1920
/******/ var installedModules = {};
2021
/******/
2122
/******/ // object to store loaded and loading chunks
2223
/******/ // "0" means "already loaded"
2324
/******/ // Array means "loading", array contains callbacks
24-
/******/ var installedChunks = {0:0};
25+
/******/ var installedChunks = {
26+
/******/ 0:0
27+
/******/ };
2528
/******/
2629
/******/ // The require function
2730
/******/ function require(moduleId) {
@@ -63,7 +66,7 @@ require(["../dedupe/b"]);
6366
/******/ var script = document.createElement('script');
6467
/******/ script.type = 'text/javascript';
6568
/******/ script.charset = 'utf-8';
66-
/******/ script.src = modules.c + "" + chunkId + ".output.js";
69+
/******/ script.src = require.p + "" + chunkId + ".output.js";
6770
/******/ head.appendChild(script);
6871
/******/ }
6972
/******/ };
@@ -74,6 +77,9 @@ require(["../dedupe/b"]);
7477
/******/ // expose the module cache
7578
/******/ require.cache = installedModules;
7679
/******/
80+
/******/ // __webpack_public_path__
81+
/******/ require.p = "";
82+
/******/
7783
/******/ // install a JSONP callback for chunk loading
7884
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
7985
/******/ // add "moreModules" to the modules object,
@@ -99,7 +105,7 @@ require(["../dedupe/b"]);
99105
/******/ modules[moduleId] = (function(_m) {
100106
/******/ var args = _m.slice(1), fn = modules[_m[0]];
101107
/******/ return function (a,b,c) {
102-
/******/ fn.apply(null, [a,b,c].concat(args));
108+
/******/ fn.apply(this, [a,b,c].concat(args));
103109
/******/ };
104110
/******/ }(_m));
105111
/******/ break;
@@ -135,11 +141,8 @@ require(["../dedupe/b"]);
135141
}
136142
}
137143
return modules;
138-
}({
139-
/******/ // __webpack_public_path__
140-
/******/ c: "",
141-
142-
/***/ 0:
144+
}([
145+
/* 0 */
143146
/*!********************!*\
144147
!*** ./example.js ***!
145148
\********************/
@@ -154,19 +157,18 @@ require(["../dedupe/b"]);
154157

155158

156159
/***/ }
157-
/******/ })))
160+
/******/ ])))
158161
```
159162

160163
# js/1.output.js
161164

162165
``` javascript
163-
webpackJsonp([1,3],
164-
{
165-
166-
/***/ 1:
166+
webpackJsonp([1,3],[
167+
/* 0 */,
168+
/* 1 */
167169
[9, 5, 6],
168-
169-
/***/ 3:
170+
/* 2 */,
171+
/* 3 */
170172
/*!****************************************************************************************************!*\
171173
!*** (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js ***!
172174
\****************************************************************************************************/
@@ -179,8 +181,7 @@ webpackJsonp([1,3],
179181
}
180182

181183
/***/ },
182-
183-
/***/ 4:
184+
/* 4 */
184185
/*!**********************!*\
185186
!*** ../dedupe/z.js ***!
186187
\**********************/
@@ -189,8 +190,7 @@ webpackJsonp([1,3],
189190
module.exports = {"this is": "z"};
190191

191192
/***/ },
192-
193-
/***/ 5:
193+
/* 5 */
194194
/*!************************!*\
195195
!*** ../dedupe/a/x.js ***!
196196
\************************/
@@ -199,8 +199,7 @@ webpackJsonp([1,3],
199199
module.exports = {"this is": "x"};
200200

201201
/***/ },
202-
203-
/***/ 6:
202+
/* 6 */
204203
/*!************************!*\
205204
!*** ../dedupe/a/y.js ***!
206205
\************************/
@@ -209,8 +208,9 @@ webpackJsonp([1,3],
209208
module.exports = {"this is": "y", "but in": "a"};
210209

211210
/***/ },
212-
213-
/***/ 9:
211+
/* 7 */,
212+
/* 8 */,
213+
/* 9 */
214214
/*!***********************************!*\
215215
!*** template of 1 referencing 4 ***!
216216
\***********************************/
@@ -223,18 +223,16 @@ webpackJsonp([1,3],
223223
}
224224

225225
/***/ }
226-
227-
}
228-
)
226+
])
229227
```
230228

231229
# js/2.output.js
232230

233231
``` javascript
234-
webpackJsonp([2,4],
235-
{
236-
237-
/***/ 2:
232+
webpackJsonp([2,4],[
233+
/* 0 */,
234+
/* 1 */,
235+
/* 2 */
238236
/*!****************************!*\
239237
!*** ../dedupe/b/index.js ***!
240238
\****************************/
@@ -247,8 +245,8 @@ webpackJsonp([2,4],
247245
}
248246

249247
/***/ },
250-
251-
/***/ 4:
248+
/* 3 */,
249+
/* 4 */
252250
/*!**********************!*\
253251
!*** ../dedupe/z.js ***!
254252
\**********************/
@@ -257,8 +255,9 @@ webpackJsonp([2,4],
257255
module.exports = {"this is": "z"};
258256

259257
/***/ },
260-
261-
/***/ 7:
258+
/* 5 */,
259+
/* 6 */,
260+
/* 7 */
262261
/*!************************!*\
263262
!*** ../dedupe/b/x.js ***!
264263
\************************/
@@ -267,8 +266,7 @@ webpackJsonp([2,4],
267266
module.exports = {"this is": "x"};
268267

269268
/***/ },
270-
271-
/***/ 8:
269+
/* 8 */
272270
/*!************************!*\
273271
!*** ../dedupe/b/y.js ***!
274272
\************************/
@@ -277,18 +275,15 @@ webpackJsonp([2,4],
277275
module.exports = {"this is": "y", "but in": "b"};
278276

279277
/***/ }
280-
281-
}
282-
)
278+
])
283279
```
284280

285281
# js/3.output.js
286282

287283
``` javascript
288-
webpackJsonp([3],
289-
{
290-
291-
/***/ 1:
284+
webpackJsonp([3],[
285+
/* 0 */,
286+
/* 1 */
292287
/*!****************************!*\
293288
!*** ../dedupe/a/index.js ***!
294289
\****************************/
@@ -301,8 +296,9 @@ webpackJsonp([3],
301296
}
302297

303298
/***/ },
304-
305-
/***/ 4:
299+
/* 2 */,
300+
/* 3 */,
301+
/* 4 */
306302
/*!**********************!*\
307303
!*** ../dedupe/z.js ***!
308304
\**********************/
@@ -311,8 +307,7 @@ webpackJsonp([3],
311307
module.exports = {"this is": "z"};
312308

313309
/***/ },
314-
315-
/***/ 5:
310+
/* 5 */
316311
/*!************************!*\
317312
!*** ../dedupe/a/x.js ***!
318313
\************************/
@@ -321,8 +316,7 @@ webpackJsonp([3],
321316
module.exports = {"this is": "x"};
322317

323318
/***/ },
324-
325-
/***/ 6:
319+
/* 6 */
326320
/*!************************!*\
327321
!*** ../dedupe/a/y.js ***!
328322
\************************/
@@ -331,16 +325,13 @@ webpackJsonp([3],
331325
module.exports = {"this is": "y", "but in": "a"};
332326

333327
/***/ }
334-
335-
}
336-
)
328+
])
337329
```
338330

339331
# js/4.output.js
340332

341333
``` javascript
342-
webpackJsonp([4],
343-
{
334+
webpackJsonp([4],{
344335

345336
/***/ 2:
346337
[9, 7, 8],
@@ -358,24 +349,23 @@ webpackJsonp([4],
358349

359350
/***/ }
360351

361-
}
362-
)
352+
})
363353
```
364354

365355
# Info
366356

367357
## Uncompressed
368358

369359
```
370-
Hash: cc4c2068ad94e7144df4
371-
Version: webpack 0.11.0
372-
Time: 91ms
360+
Hash: 4348fc3315b090ade366
361+
Version: webpack 0.11.14
362+
Time: 83ms
373363
Asset Size Chunks Chunk Names
374-
output.js 4980 0 [emitted] main
375-
1.output.js 1566 1, 3 [emitted]
376-
2.output.js 877 2, 4 [emitted]
377-
3.output.js 875 3 [emitted]
378-
4.output.js 261 4 [emitted]
364+
output.js 5034 0 [emitted] main
365+
1.output.js 1587 1, 3 [emitted]
366+
2.output.js 911 2, 4 [emitted]
367+
3.output.js 891 3 [emitted]
368+
4.output.js 259 4 [emitted]
379369
chunk {0} output.js (main) 197 [rendered]
380370
[0] ./example.js 197 {0} [built]
381371
chunk {1} 1.output.js 492 {0} [rendered]
@@ -429,14 +419,14 @@ chunk {4} 4.output.js 167 {1} [rendered]
429419
## Minimized (uglify-js, no zip)
430420

431421
```
432-
Hash: e315623b9358082f9178
433-
Version: webpack 0.11.0
434-
Time: 260ms
422+
Hash: 9092d3c15f6e51b1d0fe
423+
Version: webpack 0.11.14
424+
Time: 244ms
435425
Asset Size Chunks Chunk Names
436426
output.js 1155 0 [emitted] main
437-
1.output.js 294 1, 3 [emitted]
438-
2.output.js 210 2, 4 [emitted]
439-
3.output.js 208 3 [emitted]
427+
1.output.js 286 1, 3 [emitted]
428+
2.output.js 207 2, 4 [emitted]
429+
3.output.js 203 3 [emitted]
440430
4.output.js 88 4 [emitted]
441431
chunk {0} output.js (main) 197 [rendered]
442432
[0] ./example.js 197 {0} [built]

0 commit comments

Comments
 (0)