WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/dependencies/ProvidedDependency.js
@@ -24,6 +24,7 @@
/** @typedef {import("../util/runtime").RuntimeSpec} RuntimeSpec */
/**
 * Returns the converted path.
 * @param {string[] | null} path the property path array
 * @returns {string} the converted path
 */
@@ -34,6 +35,7 @@
class ProvidedDependency extends ModuleDependency {
   /**
    * Creates an instance of ProvidedDependency.
    * @param {string} request request
    * @param {string} identifier identifier
    * @param {ExportInfoName[]} ids ids
@@ -44,6 +46,7 @@
      this.identifier = identifier;
      this.ids = ids;
      this.range = range;
      /** @type {undefined | string} */
      this._hashUpdate = undefined;
   }
@@ -68,7 +71,7 @@
   }
   /**
    * Update the hash
    * Updates the hash with the data contributed by this instance.
    * @param {Hash} hash hash to be updated
    * @param {UpdateHashContext} context context
    * @returns {void}
@@ -81,6 +84,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -91,6 +95,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {
@@ -108,6 +113,7 @@
class ProvidedDependencyTemplate extends ModuleDependency.Template {
   /**
    * Applies the plugin by registering its hooks on the compiler.
    * @param {Dependency} dependency the dependency for which the template should be applied
    * @param {ReplaceSource} source the current replace source which can be modified
    * @param {DependencyTemplateContext} templateContext the context object