WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/dependencies/ModuleDecoratorDependency.js
@@ -23,6 +23,7 @@
class ModuleDecoratorDependency extends NullDependency {
   /**
    * Creates an instance of ModuleDecoratorDependency.
    * @param {string} decorator the decorator requirement
    * @param {boolean} allowExportsAccess allow to access exports from module
    */
@@ -30,10 +31,12 @@
      super();
      this.decorator = decorator;
      this.allowExportsAccess = allowExportsAccess;
      /** @type {undefined | string} */
      this._hashUpdate = undefined;
   }
   /**
    * Returns a display name for the type of dependency.
    * @returns {string} a display name for the type of dependency
    */
   get type() {
@@ -45,6 +48,7 @@
   }
   /**
    * Returns an identifier to merge equal requests.
    * @returns {string | null} an identifier to merge equal requests
    */
   getResourceIdentifier() {
@@ -64,7 +68,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}
@@ -77,6 +81,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -87,6 +92,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {
@@ -106,6 +112,7 @@
   NullDependency.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