WXL
4 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/dependencies/ExportsInfoDependency.js
@@ -21,11 +21,13 @@
/** @typedef {import("../util/runtime").RuntimeSpec} RuntimeSpec */
/**
 * Defines the sortable set type used by this module.
 * @template T
 * @typedef {import("../util/SortableSet")<T>} SortableSet
 */
/**
 * Returns value of the property.
 * @param {ModuleGraph} moduleGraph the module graph
 * @param {Module} module the module
 * @param {ExportInfoName[] | null} exportName_ name of the export if any
@@ -89,6 +91,7 @@
class ExportsInfoDependency extends NullDependency {
   /**
    * Creates an instance of ExportsInfoDependency.
    * @param {Range} range range
    * @param {ExportInfoName[] | null} exportName export name
    * @param {string | null} property property
@@ -101,6 +104,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -112,6 +116,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    * @returns {ExportsInfoDependency} ExportsInfoDependency
    */
@@ -135,6 +140,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