WXL
3 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js
@@ -6,6 +6,7 @@
"use strict";
const makeSerializable = require("../util/makeSerializable");
const { ExportPresenceModes } = require("./HarmonyImportDependency");
const HarmonyImportSpecifierDependency = require("./HarmonyImportSpecifierDependency");
const { ImportPhase } = require("./ImportPhase");
@@ -29,6 +30,7 @@
 */
class HarmonyEvaluatedImportSpecifierDependency extends HarmonyImportSpecifierDependency {
   /**
    * Creates an instance of HarmonyEvaluatedImportSpecifierDependency.
    * @param {string} request the request string
    * @param {number} sourceOrder source order
    * @param {Ids} ids ids
@@ -44,7 +46,7 @@
         ids,
         name,
         range,
         false,
         ExportPresenceModes.NONE,
         ImportPhase.Evaluation,
         attributes,
         []
@@ -57,6 +59,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -66,6 +69,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {
@@ -84,6 +88,7 @@
   HarmonyImportSpecifierDependency.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
@@ -103,6 +108,7 @@
      );
      const ids = dep.getIds(moduleGraph);
      /** @type {boolean | undefined | null} */
      let value;
      const exportsType =