Skip to content

Commit 08d9d87

Browse files
committed
Fix typos
1 parent 38086ed commit 08d9d87

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/Compilation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Compilation.prototype.addModuleDependencies = function(module, dependencies, bai
171171
for(var i = 0; i < dependencies.length; i++) {
172172
var factory = this.dependencyFactories.get(dependencies[i][0].Class);
173173
if(!factory) {
174-
return callback(new Error("No module factory availible for dependency type: " + dependencies[i][0].Class.name));
174+
return callback(new Error("No module factory available for dependency type: " + dependencies[i][0].Class.name));
175175
}
176176
factories[i] = [factory, dependencies[i]];
177177
}
@@ -342,7 +342,7 @@ Compilation.prototype._addModuleChain = function process(context, dependency, on
342342

343343
var moduleFactory = this.dependencyFactories.get(dependency.Class);
344344
if(!moduleFactory) {
345-
throw new Error("No dependency factory availible for this dependency type: " + dependency.Class.name);
345+
throw new Error("No dependency factory available for this dependency type: " + dependency.Class.name);
346346
}
347347

348348
moduleFactory.create(context, dependency, function(err, module) {
@@ -427,7 +427,7 @@ Compilation.prototype.addEntry = function process(context, entry, name, callback
427427

428428
if(module) {
429429
if(module.reasons.length > 0) {
430-
return callback(new Error("module cannot be added as entry point, because its already in the bundle"));
430+
return callback(new Error("module cannot be added as entry point, because it's already in the bundle"));
431431
}
432432
this.preparedChunks.push({
433433
name: name,

lib/NormalModule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ NormalModule.prototype.source = function(dependencyTemplates, outputOptions, req
107107
return this._cachedSource.source;
108108
}
109109
var _source = this._source;
110-
if(!_source) return new RawSource("throw new Error('No source availible');");
110+
if(!_source) return new RawSource("throw new Error('No source available');");
111111
var source = new ReplaceSource(_source);
112112
this._cachedSource = { source: source, hash: hash };
113113
var topLevelBlock = this;

0 commit comments

Comments
 (0)