WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/dependencies/ContextDependency.js
@@ -27,6 +27,7 @@
/** @typedef {{ value: string, range: Range }[]} Replaces */
/**
 * Returns stringified regexp.
 * @param {RegExp | false | null | undefined} r regexp
 * @returns {string} stringified regexp
 */
@@ -34,6 +35,7 @@
class ContextDependency extends Dependency {
   /**
    * Creates an instance of ContextDependency.
    * @param {ContextDependencyOptions} options options for the context module
    * @param {string=} context request context
    */
@@ -69,6 +71,7 @@
   }
   /**
    * Returns a request context.
    * @returns {string | undefined} a request context
    */
   getContext() {
@@ -80,6 +83,7 @@
   }
   /**
    * Could affect referencing module.
    * @returns {boolean | TRANSITIVE} true, when changes to the referenced module could affect the referencing module; TRANSITIVE, when changes to the referenced module could affect referencing modules of the referencing module
    */
   couldAffectReferencingModule() {
@@ -87,6 +91,7 @@
   }
   /**
    * Returns an identifier to merge equal requests.
    * @returns {string | null} an identifier to merge equal requests
    */
   getResourceIdentifier() {
@@ -108,7 +113,7 @@
   }
   /**
    * Returns warnings
    * Returns warnings.
    * @param {ModuleGraph} moduleGraph module graph
    * @returns {WebpackError[] | null | undefined} warnings
    */
@@ -135,6 +140,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -154,6 +160,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {