Skip to content

Commit aee139b

Browse files
committed
added hybrid-routing example, updated examples
1 parent e8206d0 commit aee139b

File tree

31 files changed

+826
-234
lines changed

31 files changed

+826
-234
lines changed

examples/code-splitted-dedupe/README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ require(["../dedupe/b"]);
1515

1616
``` javascript
1717
/******/ (function(modules) { // webpackBootstrap
18+
/******/ // shortcut for better minimizing
19+
/******/ var exports = "exports";
1820
/******/
1921
/******/ // The module cache
2022
/******/ var installedModules = {};
@@ -30,7 +32,7 @@ require(["../dedupe/b"]);
3032
/******/ function require(moduleId) {
3133
/******/ // Check if module is in cache
3234
/******/ if(installedModules[moduleId])
33-
/******/ return installedModules[moduleId].exports;
35+
/******/ return installedModules[moduleId][exports];
3436
/******/
3537
/******/ // Create a new module (and put it into the cache)
3638
/******/ var module = installedModules[moduleId] = {
@@ -40,13 +42,13 @@ require(["../dedupe/b"]);
4042
/******/ };
4143
/******/
4244
/******/ // Execute the module function
43-
/******/ modules[moduleId].call(module.exports, module, module.exports, require);
45+
/******/ modules[moduleId].call(module[exports], module, module[exports], require);
4446
/******/
4547
/******/ // Flag the module as loaded
4648
/******/ module.loaded = true;
4749
/******/
4850
/******/ // Return the exports of the module
49-
/******/ return module.exports;
51+
/******/ return module[exports];
5052
/******/ }
5153
/******/
5254
/******/ // This file contains only the entry chunk.
@@ -357,10 +359,10 @@ webpackJsonp([4],[
357359

358360
```
359361
Hash: 77ef390609ebb4d64a0c
360-
Version: webpack 1.0.0-beta8
361-
Time: 100ms
362+
Version: webpack 1.0.0-rc1
363+
Time: 102ms
362364
Asset Size Chunks Chunk Names
363-
output.js 5041 0 [emitted] main
365+
output.js 5124 0 [emitted] main
364366
1.output.js 1464 1, 3 [emitted]
365367
2.output.js 902 2, 4 [emitted]
366368
3.output.js 873 3 [emitted]
@@ -424,10 +426,10 @@ chunk {4} 4.output.js 167 {1} [rendered]
424426

425427
```
426428
Hash: 19041a7eb5dca6ef83d5
427-
Version: webpack 1.0.0-beta8
428-
Time: 268ms
429+
Version: webpack 1.0.0-rc1
430+
Time: 245ms
429431
Asset Size Chunks Chunk Names
430-
output.js 1158 0 [emitted] main
432+
output.js 1150 0 [emitted] main
431433
1.output.js 286 1, 3 [emitted]
432434
2.output.js 206 2, 4 [emitted]
433435
3.output.js 201 3 [emitted]

examples/code-splitted-require.context-amd/README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ getTemplate("b", function(b) {
1818

1919
``` javascript
2020
/******/ (function(modules) { // webpackBootstrap
21+
/******/ // shortcut for better minimizing
22+
/******/ var exports = "exports";
2123
/******/
2224
/******/ // The module cache
2325
/******/ var installedModules = {};
@@ -33,7 +35,7 @@ getTemplate("b", function(b) {
3335
/******/ function require(moduleId) {
3436
/******/ // Check if module is in cache
3537
/******/ if(installedModules[moduleId])
36-
/******/ return installedModules[moduleId].exports;
38+
/******/ return installedModules[moduleId][exports];
3739
/******/
3840
/******/ // Create a new module (and put it into the cache)
3941
/******/ var module = installedModules[moduleId] = {
@@ -43,13 +45,13 @@ getTemplate("b", function(b) {
4345
/******/ };
4446
/******/
4547
/******/ // Execute the module function
46-
/******/ modules[moduleId].call(module.exports, module, module.exports, require);
48+
/******/ modules[moduleId].call(module[exports], module, module[exports], require);
4749
/******/
4850
/******/ // Flag the module as loaded
4951
/******/ module.loaded = true;
5052
/******/
5153
/******/ // Return the exports of the module
52-
/******/ return module.exports;
54+
/******/ return module[exports];
5355
/******/ }
5456
/******/
5557
/******/ // This file contains only the entry chunk.
@@ -204,10 +206,10 @@ webpackJsonp([1],[
204206

205207
```
206208
Hash: f7f9035da2cc820ac9d3
207-
Version: webpack 1.0.0-beta8
208-
Time: 77ms
209+
Version: webpack 1.0.0-rc1
210+
Time: 70ms
209211
Asset Size Chunks Chunk Names
210-
output.js 3908 0 [emitted] main
212+
output.js 3991 0 [emitted] main
211213
1.output.js 1593 1 [emitted]
212214
chunk {0} output.js (main) 261 [rendered]
213215
> main [0] ./example.js
@@ -231,10 +233,10 @@ chunk {1} 1.output.js 463 {0} [rendered]
231233

232234
```
233235
Hash: f5f1118ea490c1df2ba7
234-
Version: webpack 1.0.0-beta8
235-
Time: 177ms
236+
Version: webpack 1.0.0-rc1
237+
Time: 175ms
236238
Asset Size Chunks Chunk Names
237-
output.js 838 0 [emitted] main
239+
output.js 830 0 [emitted] main
238240
1.output.js 528 1 [emitted]
239241
chunk {0} output.js (main) 261 [rendered]
240242
> main [0] ./example.js

examples/code-splitted-require.context/README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ getTemplate("b", function(b) {
1818

1919
``` javascript
2020
/******/ (function(modules) { // webpackBootstrap
21+
/******/ // shortcut for better minimizing
22+
/******/ var exports = "exports";
2123
/******/
2224
/******/ // The module cache
2325
/******/ var installedModules = {};
@@ -33,7 +35,7 @@ getTemplate("b", function(b) {
3335
/******/ function require(moduleId) {
3436
/******/ // Check if module is in cache
3537
/******/ if(installedModules[moduleId])
36-
/******/ return installedModules[moduleId].exports;
38+
/******/ return installedModules[moduleId][exports];
3739
/******/
3840
/******/ // Create a new module (and put it into the cache)
3941
/******/ var module = installedModules[moduleId] = {
@@ -43,13 +45,13 @@ getTemplate("b", function(b) {
4345
/******/ };
4446
/******/
4547
/******/ // Execute the module function
46-
/******/ modules[moduleId].call(module.exports, module, module.exports, require);
48+
/******/ modules[moduleId].call(module[exports], module, module[exports], require);
4749
/******/
4850
/******/ // Flag the module as loaded
4951
/******/ module.loaded = true;
5052
/******/
5153
/******/ // Return the exports of the module
52-
/******/ return module.exports;
54+
/******/ return module[exports];
5355
/******/ }
5456
/******/
5557
/******/ // This file contains only the entry chunk.
@@ -204,10 +206,10 @@ webpackJsonp([1],[
204206

205207
```
206208
Hash: 7548e3b0166c8c95d587
207-
Version: webpack 1.0.0-beta8
208-
Time: 83ms
209+
Version: webpack 1.0.0-rc1
210+
Time: 76ms
209211
Asset Size Chunks Chunk Names
210-
output.js 3796 0 [emitted] main
212+
output.js 3879 0 [emitted] main
211213
1.output.js 1593 1 [emitted]
212214
chunk {0} output.js (main) 276 [rendered]
213215
> main [0] ./example.js
@@ -231,10 +233,10 @@ chunk {1} 1.output.js 463 {0} [rendered]
231233

232234
```
233235
Hash: 8f939da6680c76bca24d
234-
Version: webpack 1.0.0-beta8
235-
Time: 184ms
236+
Version: webpack 1.0.0-rc1
237+
Time: 177ms
236238
Asset Size Chunks Chunk Names
237-
output.js 799 0 [emitted] main
239+
output.js 791 0 [emitted] main
238240
1.output.js 528 1 [emitted]
239241
chunk {0} output.js (main) 276 [rendered]
240242
> main [0] ./example.js

examples/code-splitting-bundle-loader/README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ module.exports = "It works";
1717

1818
``` javascript
1919
/******/ (function(modules) { // webpackBootstrap
20+
/******/ // shortcut for better minimizing
21+
/******/ var exports = "exports";
2022
/******/
2123
/******/ // The module cache
2224
/******/ var installedModules = {};
@@ -32,7 +34,7 @@ module.exports = "It works";
3234
/******/ function require(moduleId) {
3335
/******/ // Check if module is in cache
3436
/******/ if(installedModules[moduleId])
35-
/******/ return installedModules[moduleId].exports;
37+
/******/ return installedModules[moduleId][exports];
3638
/******/
3739
/******/ // Create a new module (and put it into the cache)
3840
/******/ var module = installedModules[moduleId] = {
@@ -42,13 +44,13 @@ module.exports = "It works";
4244
/******/ };
4345
/******/
4446
/******/ // Execute the module function
45-
/******/ modules[moduleId].call(module.exports, module, module.exports, require);
47+
/******/ modules[moduleId].call(module[exports], module, module[exports], require);
4648
/******/
4749
/******/ // Flag the module as loaded
4850
/******/ module.loaded = true;
4951
/******/
5052
/******/ // Return the exports of the module
51-
/******/ return module.exports;
53+
/******/ return module[exports];
5254
/******/ }
5355
/******/
5456
/******/ // This file contains only the entry chunk.
@@ -166,10 +168,10 @@ webpackJsonp([1],[
166168

167169
```
168170
Hash: b48eaa219fe67eefd271
169-
Version: webpack 1.0.0-beta8
170-
Time: 83ms
171+
Version: webpack 1.0.0-rc1
172+
Time: 86ms
171173
Asset Size Chunks Chunk Names
172-
output.js 4114 0 [emitted] main
174+
output.js 4197 0 [emitted] main
173175
1.output.js 189 1 [emitted]
174176
chunk {0} output.js (main) 458 [rendered]
175177
> main [0] ./example.js
@@ -186,10 +188,10 @@ chunk {1} 1.output.js 28 {0} [rendered]
186188

187189
```
188190
Hash: 64de800a2a6968acaf66
189-
Version: webpack 1.0.0-beta8
190-
Time: 197ms
191+
Version: webpack 1.0.0-rc1
192+
Time: 174ms
191193
Asset Size Chunks Chunk Names
192-
output.js 859 0 [emitted] main
194+
output.js 851 0 [emitted] main
193195
1.output.js 55 1 [emitted]
194196
chunk {0} output.js (main) 458 [rendered]
195197
> main [0] ./example.js

examples/code-splitting/README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ require.ensure(["c"], function(require) {
1414

1515
``` javascript
1616
/******/ (function(modules) { // webpackBootstrap
17+
/******/ // shortcut for better minimizing
18+
/******/ var exports = "exports";
1719
/******/
1820
/******/ // The module cache
1921
/******/ var installedModules = {};
@@ -29,7 +31,7 @@ require.ensure(["c"], function(require) {
2931
/******/ function require(moduleId) {
3032
/******/ // Check if module is in cache
3133
/******/ if(installedModules[moduleId])
32-
/******/ return installedModules[moduleId].exports;
34+
/******/ return installedModules[moduleId][exports];
3335
/******/
3436
/******/ // Create a new module (and put it into the cache)
3537
/******/ var module = installedModules[moduleId] = {
@@ -39,13 +41,13 @@ require.ensure(["c"], function(require) {
3941
/******/ };
4042
/******/
4143
/******/ // Execute the module function
42-
/******/ modules[moduleId].call(module.exports, module, module.exports, require);
44+
/******/ modules[moduleId].call(module[exports], module, module[exports], require);
4345
/******/
4446
/******/ // Flag the module as loaded
4547
/******/ module.loaded = true;
4648
/******/
4749
/******/ // Return the exports of the module
48-
/******/ return module.exports;
50+
/******/ return module[exports];
4951
/******/ }
5052
/******/
5153
/******/ // This file contains only the entry chunk.
@@ -178,10 +180,10 @@ webpackJsonp([1],[,,,function(){},function(){}]);
178180

179181
```
180182
Hash: 51eb9c135b6c6fe4e444
181-
Version: webpack 1.0.0-beta8
182-
Time: 82ms
183+
Version: webpack 1.0.0-rc1
184+
Time: 69ms
183185
Asset Size Chunks Chunk Names
184-
output.js 3952 0 [emitted] main
186+
output.js 4035 0 [emitted] main
185187
1.output.js 327 1 [emitted]
186188
chunk {0} output.js (main) 166 [rendered]
187189
> main [0] ./example.js
@@ -203,10 +205,10 @@ chunk {1} 1.output.js 22 {0} [rendered]
203205

204206
```
205207
Hash: 0b0f0366fa1aab3ebbc4
206-
Version: webpack 1.0.0-beta8
207-
Time: 172ms
208+
Version: webpack 1.0.0-rc1
209+
Time: 161ms
208210
Asset Size Chunks Chunk Names
209-
output.js 747 0 [emitted] main
211+
output.js 739 0 [emitted] main
210212
1.output.js 49 1 [emitted]
211213
chunk {0} output.js (main) 166 [rendered]
212214
> main [0] ./example.js

examples/coffee-script/README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ module.exports = 42
2727

2828
``` javascript
2929
/******/ (function(modules) { // webpackBootstrap
30+
/******/ // shortcut for better minimizing
31+
/******/ var exports = "exports";
3032
/******/
3133
/******/ // The module cache
3234
/******/ var installedModules = {};
@@ -35,7 +37,7 @@ module.exports = 42
3537
/******/ function require(moduleId) {
3638
/******/ // Check if module is in cache
3739
/******/ if(installedModules[moduleId])
38-
/******/ return installedModules[moduleId].exports;
40+
/******/ return installedModules[moduleId][exports];
3941
/******/
4042
/******/ // Create a new module (and put it into the cache)
4143
/******/ var module = installedModules[moduleId] = {
@@ -45,19 +47,15 @@ module.exports = 42
4547
/******/ };
4648
/******/
4749
/******/ // Execute the module function
48-
/******/ modules[moduleId].call(module.exports, module, module.exports, require);
50+
/******/ modules[moduleId].call(module[exports], module, module[exports], require);
4951
/******/
5052
/******/ // Flag the module as loaded
5153
/******/ module.loaded = true;
5254
/******/
5355
/******/ // Return the exports of the module
54-
/******/ return module.exports;
56+
/******/ return module[exports];
5557
/******/ }
5658
/******/
57-
/******/ // The bundle contains no chunks. A empty chunk loading function.
58-
/******/ require.e = function requireEnsure(_, callback) {
59-
/******/ callback.call(null, this);
60-
/******/ };
6159
/******/
6260
/******/ // expose the modules object (__webpack_modules__)
6361
/******/ require.modules = modules;
@@ -119,10 +117,10 @@ module.exports = 42
119117

120118
```
121119
Hash: c0e41294caebebf740e1
122-
Version: webpack 1.0.0-beta8
123-
Time: 169ms
120+
Version: webpack 1.0.0-rc1
121+
Time: 158ms
124122
Asset Size Chunks Chunk Names
125-
output.js 2247 0 [emitted] main
123+
output.js 2143 0 [emitted] main
126124
chunk {0} output.js (main) 206 [rendered]
127125
> main [0] ./example.js
128126
[0] ./example.js 31 {0} [built]
@@ -137,10 +135,10 @@ chunk {0} output.js (main) 206 [rendered]
137135

138136
```
139137
Hash: 5aad8c5ad018219d8bf0
140-
Version: webpack 1.0.0-beta8
141-
Time: 213ms
138+
Version: webpack 1.0.0-rc1
139+
Time: 207ms
142140
Asset Size Chunks Chunk Names
143-
output.js 424 0 [emitted] main
141+
output.js 379 0 [emitted] main
144142
chunk {0} output.js (main) 206 [rendered]
145143
> main [0] ./example.js
146144
[0] ./example.js 31 {0} [built]

0 commit comments

Comments
 (0)