Skip to content

Commit 6a9e011

Browse files
author
Fernando Correia
committed
Fix typo: named chunks
1 parent 5caa8fb commit 6a9e011

File tree

10 files changed

+49
-49
lines changed

10 files changed

+49
-49
lines changed

examples/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ example demonstrating code written in coffee-script.
3636

3737
example demonstrating Code Splitting through the builder loader
3838

39-
## names-chucks
39+
## names-chunks
4040

41-
example demonstrating merging of chucks with named chucks
41+
example demonstrating merging of chunks with named chunks
4242

4343
## labeled-modules
4444

@@ -67,4 +67,4 @@ If you think a example is missing, please report it as issue. :)
6767
# Build
6868

6969
There is a `build.js` file in each example directory.
70-
Run it with node in the example directory to compile it and the README.md file.
70+
Run it with node in the example directory to compile it and the README.md file.
Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
var a = require("a");
55

66
require.ensure(["b"], function(require) {
7-
// a named chuck
7+
// a named chunk
88
var c = require("c");
9-
}, "my own chuck");
9+
}, "my own chunk");
1010

1111
require.ensure(["b"], function(require) {
12-
// another chuck with the same name
12+
// another chunk with the same name
1313
var d = require("d");
14-
}, "my own chuck");
14+
}, "my own chunk");
1515

1616
require.ensure([], function(require) {
1717
// the same again
18-
}, "my own chuck");
18+
}, "my own chunk");
1919

2020
require.ensure(["b"], function(require) {
21-
// chuck without name
21+
// chunk without name
2222
var d = require("d");
2323
});
2424
```
@@ -28,47 +28,47 @@ require.ensure(["b"], function(require) {
2828

2929
``` javascript
3030
/******/ (function(modules) { // webpackBootstrap
31-
/******/
31+
/******/
3232
/******/ // The module cache
3333
/******/ var installedModules = {};
34-
/******/
34+
/******/
3535
/******/ // object to store loaded and loading chunks
3636
/******/ // "0" means "already loaded"
3737
/******/ // Array means "loading", array contains callbacks
3838
/******/ var installedChunks = {
3939
/******/ 0:0
4040
/******/ };
41-
/******/
41+
/******/
4242
/******/ // The require function
4343
/******/ function require(moduleId) {
4444
/******/ // Check if module is in cache
4545
/******/ if(installedModules[moduleId])
4646
/******/ return installedModules[moduleId].exports;
47-
/******/
47+
/******/
4848
/******/ // Create a new module (and put it into the cache)
4949
/******/ var module = installedModules[moduleId] = {
5050
/******/ exports: {},
5151
/******/ id: moduleId,
5252
/******/ loaded: false
5353
/******/ };
54-
/******/
54+
/******/
5555
/******/ // Execute the module function
5656
/******/ modules[moduleId].call(module.exports, module, module.exports, require);
57-
/******/
57+
/******/
5858
/******/ // Flag the module as loaded
5959
/******/ module.loaded = true;
60-
/******/
60+
/******/
6161
/******/ // Return the exports of the module
6262
/******/ return module.exports;
6363
/******/ }
64-
/******/
64+
/******/
6565
/******/ // This file contains only the entry chunk.
6666
/******/ // The chunk loading function for additional chunks
6767
/******/ require.e = function requireEnsure(chunkId, callback) {
6868
/******/ // "0" is the signal for "already loaded"
6969
/******/ if(installedChunks[chunkId] === 0)
7070
/******/ return callback.call(null, require);
71-
/******/
71+
/******/
7272
/******/ // an array means "currently loading".
7373
/******/ if(installedChunks[chunkId] !== undefined) {
7474
/******/ installedChunks[chunkId].push(callback);
@@ -83,16 +83,16 @@ require.ensure(["b"], function(require) {
8383
/******/ head.appendChild(script);
8484
/******/ }
8585
/******/ };
86-
/******/
86+
/******/
8787
/******/ // expose the modules object (__webpack_modules__)
8888
/******/ require.modules = modules;
89-
/******/
89+
/******/
9090
/******/ // expose the module cache
9191
/******/ require.cache = installedModules;
92-
/******/
92+
/******/
9393
/******/ // __webpack_public_path__
9494
/******/ require.p = "js/";
95-
/******/
95+
/******/
9696
/******/ // install a JSONP callback for chunk loading
9797
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
9898
/******/ // add "moreModules" to the modules object,
@@ -109,9 +109,9 @@ require.ensure(["b"], function(require) {
109109
/******/ }
110110
/******/ while(callbacks.length)
111111
/******/ callbacks.shift().call(null, require);
112-
/******/
112+
/******/
113113
/******/ };
114-
/******/
114+
/******/
115115
/******/ // Load entry module and return exports
116116
/******/ return require(0);
117117
/******/ })
@@ -126,21 +126,21 @@ require.ensure(["b"], function(require) {
126126
var a = require(/*! a */ 3);
127127

128128
require.e/*nsure*/(1, function(require) {
129-
// a named chuck
129+
// a named chunk
130130
var c = require(/*! c */ 4);
131-
}, /*! my own chuck */ 0);
131+
}, /*! my own chunk */ 0);
132132

133133
require.e/*nsure*/(1, function(require) {
134-
// another chuck with the same name
134+
// another chunk with the same name
135135
var d = require(/*! d */ 2);
136-
}, /*! my own chuck */ 0);
136+
}, /*! my own chunk */ 0);
137137

138138
require.e/*nsure*/(1, function(require) {
139139
// the same again
140-
}, /*! my own chuck */ 0);
140+
}, /*! my own chunk */ 0);
141141

142142
require.e/*nsure*/(2, function(require) {
143-
// chuck without name
143+
// chunk without name
144144
var d = require(/*! d */ 2);
145145
});
146146

@@ -229,16 +229,16 @@ webpackJsonp([2],[
229229
Hash: ef2dd48d55e44a03afbf
230230
Version: webpack 1.0.0-beta2
231231
Time: 62ms
232-
Asset Size Chunks Chunk Names
233-
output.js 4159 0 [emitted] main
234-
1.output.js 460 1, 2 [emitted] my own chuck
235-
my own chuck.js 460 1, 2 [emitted] my own chuck
236-
2.output.js 309 2 [emitted]
232+
Asset Size Chunks Chunk Names
233+
output.js 4159 0 [emitted] main
234+
1.output.js 460 1, 2 [emitted] my own chunk
235+
my own chunk.js 460 1, 2 [emitted] my own chunk
236+
2.output.js 309 2 [emitted]
237237
chunk {0} output.js (main) 450 [rendered]
238238
[0] ./example.js 439 {0} [built]
239239
[3] ./~/a.js 11 {0} [built]
240240
cjs require a [0] ./example.js 1:8-20
241-
chunk {1} 1.output.js, my own chuck.js (my own chuck) 33 {0} [rendered]
241+
chunk {1} 1.output.js, my own chunk.js (my own chunk) 33 {0} [rendered]
242242
[1] ./~/b.js 11 {1} {2} [built]
243243
require.ensure item b [0] ./example.js 3:0-6:18
244244
require.ensure item b [0] ./example.js 8:0-11:18
@@ -264,16 +264,16 @@ chunk {2} 2.output.js 22 {0} [rendered]
264264
Hash: beec9bc49f67d6526e39
265265
Version: webpack 1.0.0-beta2
266266
Time: 178ms
267-
Asset Size Chunks Chunk Names
268-
output.js 796 0 [emitted] main
269-
1.output.js 63 1, 2 [emitted] my own chuck
270-
my own chuck.js 63 1, 2 [emitted] my own chuck
271-
2.output.js 47 2 [emitted]
267+
Asset Size Chunks Chunk Names
268+
output.js 796 0 [emitted] main
269+
1.output.js 63 1, 2 [emitted] my own chunk
270+
my own chunk.js 63 1, 2 [emitted] my own chunk
271+
2.output.js 47 2 [emitted]
272272
chunk {0} output.js (main) 450 [rendered]
273273
[0] ./example.js 439 {0} [built]
274274
[3] ./~/a.js 11 {0} [built]
275275
cjs require a [0] ./example.js 1:8-20
276-
chunk {1} 1.output.js, my own chuck.js (my own chuck) 33 {0} [rendered]
276+
chunk {1} 1.output.js, my own chunk.js (my own chunk) 33 {0} [rendered]
277277
[1] ./~/b.js 11 {1} {2} [built]
278278
require.ensure item b [0] ./example.js 3:0-6:18
279279
require.ensure item b [0] ./example.js 8:0-11:18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
var a = require("a");
22

33
require.ensure(["b"], function(require) {
4-
// a named chuck
4+
// a named chunk
55
var c = require("c");
6-
}, "my own chuck");
6+
}, "my own chunk");
77

88
require.ensure(["b"], function(require) {
9-
// another chuck with the same name
9+
// another chunk with the same name
1010
var d = require("d");
11-
}, "my own chuck");
11+
}, "my own chunk");
1212

1313
require.ensure([], function(require) {
1414
// the same again
15-
}, "my own chuck");
15+
}, "my own chunk");
1616

1717
require.ensure(["b"], function(require) {
18-
// chuck without name
18+
// chunk without name
1919
var d = require("d");
20-
});
20+
});
File renamed without changes.

0 commit comments

Comments
 (0)