Skip to content

Commit 485c167

Browse files
committed
fix typo: explaination -> explanation
1 parent 8149c5e commit 485c167

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

lib/FlagInitialModulesAsUsedPlugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"use strict";
66

77
class FlagInitialModulesAsUsedPlugin {
8-
constructor(explaination) {
9-
this.explaination = explaination;
8+
constructor(explanation) {
9+
this.explanation = explanation;
1010
}
1111

1212
apply(compiler) {
@@ -19,7 +19,7 @@ class FlagInitialModulesAsUsedPlugin {
1919
chunk.forEachModule((module) => {
2020
module.used = true;
2121
module.usedExports = true;
22-
module.addReason(null, null, this.explaination);
22+
module.addReason(null, null, this.explanation);
2323
});
2424
});
2525
});

lib/Module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ class Module extends DependenciesBlock {
180180
}
181181
}
182182

183-
addReason(module, dependency, explaination) {
184-
this.reasons.push(new ModuleReason(module, dependency, explaination));
183+
addReason(module, dependency, explanation) {
184+
this.reasons.push(new ModuleReason(module, dependency, explanation));
185185
}
186186

187187
removeReason(module, dependency) {

lib/ModuleReason.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
const util = require("util");
88

99
class ModuleReason {
10-
constructor(module, dependency, explaination) {
10+
constructor(module, dependency, explanation) {
1111
this.module = module;
1212
this.dependency = dependency;
13-
this.explaination = explaination;
13+
this.explanation = explanation;
1414
this._chunks = null;
1515
}
1616

lib/optimize/ModuleConcatenationPlugin.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ class ModuleConcatenationPlugin {
8787
const nonHarmonyReasons = module.reasons.filter(reason => !reason.dependency || !(reason.dependency instanceof HarmonyImportDependency));
8888
if(nonHarmonyReasons.length > 0) {
8989
const importingModules = new Set(nonHarmonyReasons.map(r => r.module).filter(Boolean));
90-
const importingExplainations = new Set(nonHarmonyReasons.map(r => r.explaination).filter(Boolean));
90+
const importingExplanations = new Set(nonHarmonyReasons.map(r => r.explanation).filter(Boolean));
9191
const importingModuleTypes = new Map(Array.from(importingModules).map(m => [m, new Set(nonHarmonyReasons.filter(r => r.module === m).map(r => r.dependency.type).sort())]));
9292
setBailoutReason(module, (requestShortener) => {
9393
const names = Array.from(importingModules).map(m => `${m.readableIdentifier(requestShortener)} (referenced with ${Array.from(importingModuleTypes.get(m)).join(", ")})`).sort();
94-
const explainations = Array.from(importingExplainations).sort();
95-
if(names.length > 0 && explainations.length === 0)
94+
const explanations = Array.from(importingExplanations).sort();
95+
if(names.length > 0 && explanations.length === 0)
9696
return `Module is referenced from these modules with unsupported syntax: ${names.join(", ")}`;
97-
else if(names.length === 0 && explainations.length > 0)
98-
return `Module is referenced by: ${explainations.join(", ")}`;
99-
else if(names.length > 0 && explainations.length > 0)
100-
return `Module is referenced from these modules with unsupported syntax: ${names.join(", ")} and by: ${explainations.join(", ")}`;
97+
else if(names.length === 0 && explanations.length > 0)
98+
return `Module is referenced by: ${explanations.join(", ")}`;
99+
else if(names.length > 0 && explanations.length > 0)
100+
return `Module is referenced from these modules with unsupported syntax: ${names.join(", ")} and by: ${explanations.join(", ")}`;
101101
else
102102
return "Module is referenced in a unsupported way";
103103
});

0 commit comments

Comments
 (0)