WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/dependencies/ImportContextDependency.js
@@ -16,6 +16,7 @@
class ImportContextDependency extends ContextDependency {
   /**
    * Creates an instance of ImportContextDependency.
    * @param {ContextDependencyOptions} options options
    * @param {Range} range range
    * @param {Range} valueRange value range
@@ -36,19 +37,21 @@
   }
   /**
    * Returns an identifier to merge equal requests.
    * @returns {string | null} an identifier to merge equal requests
    */
   getResourceIdentifier() {
      let str = super.getResourceIdentifier();
      if (this.options.attributes) {
         str += `|importAttributes${JSON.stringify(this.options.attributes)}`;
         str += `|attributes${JSON.stringify(this.options.attributes)}`;
      }
      return str;
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -60,6 +63,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {