WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
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) {