Merge pull request #9558 from jamesgeorge007/hotfix/fix-typo
chore: Minor typographical fixes
This commit is contained in:
commit
e62b6433de
|
@ -70,12 +70,12 @@ class ChunkGroup {
|
|||
this.chunks = [];
|
||||
/** @type {OriginRecord[]} */
|
||||
this.origins = [];
|
||||
/** Indicies in top-down order */
|
||||
/** Indices in top-down order */
|
||||
/** @private @type {Map<Module, number>} */
|
||||
this._moduleIndicies = new Map();
|
||||
/** Indicies in bottom-up order */
|
||||
this._moduleIndices = new Map();
|
||||
/** Indices in bottom-up order */
|
||||
/** @private @type {Map<Module, number>} */
|
||||
this._moduleIndicies2 = new Map();
|
||||
this._moduleIndices2 = new Map();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -174,7 +174,7 @@ class ChunkGroup {
|
|||
/**
|
||||
* add a chunk into ChunkGroup. Is pushed on or prepended
|
||||
* @param {Chunk} chunk chunk being pushed into ChunkGroupS
|
||||
* @returns {boolean} returns true if chunk addition was ssuccesful.
|
||||
* @returns {boolean} returns true if chunk addition was successful.
|
||||
*/
|
||||
pushChunk(chunk) {
|
||||
const oldIdx = this.chunks.indexOf(chunk);
|
||||
|
@ -187,8 +187,8 @@ class ChunkGroup {
|
|||
|
||||
/**
|
||||
* @param {Chunk} oldChunk chunk to be replaced
|
||||
* @param {Chunk} newChunk New chunkt that will be replaced
|
||||
* @returns {boolean} rerturns true for
|
||||
* @param {Chunk} newChunk New chunk that will be replaced with
|
||||
* @returns {boolean} returns true if the replacement was successful
|
||||
*/
|
||||
replaceChunk(oldChunk, newChunk) {
|
||||
const oldIdx = this.chunks.indexOf(oldChunk);
|
||||
|
@ -369,7 +369,7 @@ class ChunkGroup {
|
|||
|
||||
/**
|
||||
* we need to iterate again over the children
|
||||
* to remove this from the childs parents.
|
||||
* to remove this from the child's parents.
|
||||
* This can not be done in the above loop
|
||||
* as it is not guaranteed that `this._parents` contains anything.
|
||||
*/
|
||||
|
@ -460,7 +460,7 @@ class ChunkGroup {
|
|||
* @returns {void}
|
||||
*/
|
||||
setModuleIndex(module, index) {
|
||||
this._moduleIndicies.set(module, index);
|
||||
this._moduleIndices.set(module, index);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -469,7 +469,7 @@ class ChunkGroup {
|
|||
* @returns {number} index
|
||||
*/
|
||||
getModuleIndex(module) {
|
||||
return this._moduleIndicies.get(module);
|
||||
return this._moduleIndices.get(module);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -479,7 +479,7 @@ class ChunkGroup {
|
|||
* @returns {void}
|
||||
*/
|
||||
setModuleIndex2(module, index) {
|
||||
this._moduleIndicies2.set(module, index);
|
||||
this._moduleIndices2.set(module, index);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -488,7 +488,7 @@ class ChunkGroup {
|
|||
* @returns {number} index
|
||||
*/
|
||||
getModuleIndex2(module) {
|
||||
return this._moduleIndicies2.get(module);
|
||||
return this._moduleIndices2.get(module);
|
||||
}
|
||||
|
||||
checkConstraints() {
|
||||
|
|
|
@ -52,8 +52,8 @@ class Entrypoint extends ChunkGroup {
|
|||
|
||||
/**
|
||||
* @param {Chunk} oldChunk chunk to be replaced
|
||||
* @param {Chunk} newChunk New chunkt that will be replaced
|
||||
* @returns {boolean} rerturns true for
|
||||
* @param {Chunk} newChunk New chunk that will be replaced with
|
||||
* @returns {boolean} returns true if the replacement was successful
|
||||
*/
|
||||
replaceChunk(oldChunk, newChunk) {
|
||||
if (this.runtimeChunk === oldChunk) this.runtimeChunk = newChunk;
|
||||
|
|
Loading…
Reference in New Issue