| | |
| | | "use strict"; |
| | | |
| | | const makeSerializable = require("../util/makeSerializable"); |
| | | const { ExportPresenceModes } = require("./HarmonyImportDependency"); |
| | | const HarmonyImportSpecifierDependency = require("./HarmonyImportSpecifierDependency"); |
| | | const { ImportPhase } = require("./ImportPhase"); |
| | | |
| | |
| | | */ |
| | | class HarmonyEvaluatedImportSpecifierDependency extends HarmonyImportSpecifierDependency { |
| | | /** |
| | | * Creates an instance of HarmonyEvaluatedImportSpecifierDependency. |
| | | * @param {string} request the request string |
| | | * @param {number} sourceOrder source order |
| | | * @param {Ids} ids ids |
| | |
| | | ids, |
| | | name, |
| | | range, |
| | | false, |
| | | ExportPresenceModes.NONE, |
| | | ImportPhase.Evaluation, |
| | | attributes, |
| | | [] |
| | |
| | | } |
| | | |
| | | /** |
| | | * Serializes this instance into the provided serializer context. |
| | | * @param {ObjectSerializerContext} context context |
| | | */ |
| | | serialize(context) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Restores this instance from the provided deserializer context. |
| | | * @param {ObjectDeserializerContext} context context |
| | | */ |
| | | deserialize(context) { |
| | |
| | | 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 |
| | |
| | | ); |
| | | const ids = dep.getIds(moduleGraph); |
| | | |
| | | /** @type {boolean | undefined | null} */ |
| | | let value; |
| | | |
| | | const exportsType = |