WXL
3 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/dependencies/RuntimeRequirementsDependency.js
@@ -19,16 +19,18 @@
class RuntimeRequirementsDependency extends NullDependency {
   /**
    * Creates an instance of RuntimeRequirementsDependency.
    * @param {RawRuntimeRequirements} runtimeRequirements runtime requirements
    */
   constructor(runtimeRequirements) {
      super();
      this.runtimeRequirements = new Set(runtimeRequirements);
      /** @type {undefined | string} */
      this._hashUpdate = undefined;
   }
   /**
    * 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}
@@ -41,6 +43,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -50,6 +53,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {
@@ -68,6 +72,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