Merge pull request #1117 from kennyt/typo-fix

Fix typos
This commit is contained in:
Tobias Koppers 2015-05-27 17:04:50 +02:00
commit bac9b48bfb
4 changed files with 11 additions and 11 deletions

View File

@ -152,7 +152,7 @@ define(["amd-module", "../file"], function (amdModule, file) {
// this is async
require(["big-module/big/file"], function (big) {
// For async dependencies, webpack splits
// your application into multiple "chunks."
// your application into multiple "chunks".
// This part of your application is
// loaded on demand (code-splitting).
var stuff = require("../my/stuff");

View File

@ -2,7 +2,7 @@
## commonjs
example demonstrating a very simple programm
example demonstrating a very simple program
## code-splitting
@ -10,11 +10,11 @@ example demonstrating a very simple case of Code Splitting.
## require.resolve
example demonstrating to cache clearing of modules with `require.resolve` and `require.cache`.
example demonstrating how to cache clearing of modules with `require.resolve` and `require.cache`.
## require.context
example demonstrating to automatic creation of contexts when using variables in `require`.
example demonstrating automatic creation of contexts when using variables in `require`.
## code-splitted-require.context
@ -26,7 +26,7 @@ example demonstrating contexts in a code-split environment with AMD.
## loader
example demonstrating to usage of loaders.
example demonstrating the usage of loaders.
## coffee-script
@ -46,7 +46,7 @@ example demonstrating Labeled Modules
## mixed
example demonstrating mixing CommonJs, AMD and Labeled Modules
example demonstrating mixing CommonJs, AMD, and Labeled Modules
## web-worker
@ -62,7 +62,7 @@ example demonstrating multiple entry points with Code Splitting.
# Requests
If you think a example is missing, please report it as issue. :)
If you think an example is missing, please report it as issue. :)
# Build

View File

@ -171,7 +171,7 @@ Compilation.prototype.addModuleDependencies = function(module, dependencies, bai
for(var i = 0; i < dependencies.length; i++) {
var factory = this.dependencyFactories.get(dependencies[i][0].Class);
if(!factory) {
return callback(new Error("No module factory availible for dependency type: " + dependencies[i][0].Class.name));
return callback(new Error("No module factory available for dependency type: " + dependencies[i][0].Class.name));
}
factories[i] = [factory, dependencies[i]];
}
@ -342,7 +342,7 @@ Compilation.prototype._addModuleChain = function process(context, dependency, on
var moduleFactory = this.dependencyFactories.get(dependency.Class);
if(!moduleFactory) {
throw new Error("No dependency factory availible for this dependency type: " + dependency.Class.name);
throw new Error("No dependency factory available for this dependency type: " + dependency.Class.name);
}
moduleFactory.create(context, dependency, function(err, module) {
@ -427,7 +427,7 @@ Compilation.prototype.addEntry = function process(context, entry, name, callback
if(module) {
if(module.reasons.length > 0) {
return callback(new Error("module cannot be added as entry point, because its already in the bundle"));
return callback(new Error("module cannot be added as entry point, because it's already in the bundle"));
}
this.preparedChunks.push({
name: name,

View File

@ -107,7 +107,7 @@ NormalModule.prototype.source = function(dependencyTemplates, outputOptions, req
return this._cachedSource.source;
}
var _source = this._source;
if(!_source) return new RawSource("throw new Error('No source availible');");
if(!_source) return new RawSource("throw new Error('No source available');");
var source = new ReplaceSource(_source);
this._cachedSource = { source: source, hash: hash };
var topLevelBlock = this;