feat: refactoring project
This commit is contained in:
12
node_modules/webpack/lib/ModuleGraphConnection.js
generated
vendored
12
node_modules/webpack/lib/ModuleGraphConnection.js
generated
vendored
@@ -73,7 +73,7 @@ class ModuleGraphConnection {
|
||||
this.resolvedModule = module;
|
||||
this.module = module;
|
||||
this.weak = weak;
|
||||
this.conditional = !!condition;
|
||||
this.conditional = Boolean(condition);
|
||||
this._active = condition !== false;
|
||||
/** @type {(function(ModuleGraphConnection, RuntimeSpec): ConnectionState) | undefined} */
|
||||
this.condition = condition || undefined;
|
||||
@@ -135,11 +135,6 @@ class ModuleGraphConnection {
|
||||
return Array.from(this.explanations).join(" ");
|
||||
}
|
||||
|
||||
// TODO webpack 5 remove
|
||||
get active() {
|
||||
throw new Error("Use getActiveState instead");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {RuntimeSpec} runtime the runtime
|
||||
* @returns {boolean} true, if the connection is active
|
||||
@@ -187,6 +182,11 @@ class ModuleGraphConnection {
|
||||
this._active = value;
|
||||
}
|
||||
|
||||
// TODO webpack 5 remove
|
||||
get active() {
|
||||
throw new Error("Use getActiveState instead");
|
||||
}
|
||||
|
||||
set active(value) {
|
||||
throw new Error("Use setActive instead");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user