interface VirtualModuleSource {
    exports: string[];
    imports: string[];
    execute(exportsTarget: Record<string, any>, compartment: Compartment, resolvedImports: Record<string, string>): void;
}

Properties

Methods

Properties

exports: string[]
imports: string[]

Methods

  • Note that this value does not contain any numeric or symbol property keys, which can theoretically be members of exports in a CommonJS module.

    Parameters

    • exportsTarget: Record<string, any>
    • compartment: Compartment
    • resolvedImports: Record<string, string>

    Returns void