WXL
3 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/dependencies/JsonExportsDependency.js
@@ -19,6 +19,7 @@
/** @typedef {import("../util/Hash")} Hash */
/**
 * Defines the get exports from data fn callback.
 * @callback GetExportsFromDataFn
 * @param {JsonValue} data raw json data
 * @param {number=} curDepth current depth
@@ -26,6 +27,7 @@
 */
/**
 * Gets exports with depth.
 * @param {number} exportsDepth exportsDepth
 * @returns {GetExportsFromDataFn} value
 */
@@ -71,6 +73,7 @@
class JsonExportsDependency extends NullDependency {
   /**
    * Creates an instance of JsonExportsDependency.
    * @param {JsonData} data json data
    * @param {number} exportsDepth the depth of json exports to analyze
    */
@@ -99,7 +102,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}
@@ -109,6 +112,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -119,6 +123,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {