WXL
3 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/dependencies/ContextElementDependency.js
@@ -21,6 +21,7 @@
class ContextElementDependency extends ModuleDependency {
   /**
    * Creates an instance of ContextElementDependency.
    * @param {string} request request
    * @param {string | undefined} userRequest user request
    * @param {string | undefined} typePrefix type prefix
@@ -64,12 +65,13 @@
   }
   /**
    * Returns an identifier to merge equal requests.
    * @returns {string | null} an identifier to merge equal requests
    */
   getResourceIdentifier() {
      let str = super.getResourceIdentifier();
      if (this.attributes) {
         str += `|importAttributes${JSON.stringify(this.attributes)}`;
         str += `|attributes${JSON.stringify(this.attributes)}`;
      }
      return str;
   }
@@ -82,6 +84,7 @@
    */
   getReferencedExports(moduleGraph, runtime) {
      if (!this.referencedExports) return Dependency.EXPORTS_OBJECT_REFERENCED;
      /** @type {ReferencedExports} */
      const refs = [];
      for (const referencedExport of this.referencedExports) {
         if (
@@ -114,6 +117,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -126,6 +130,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {