Skip to content

SourceTextModuleOptions

[<Interface>]
type SourceTextModuleOptions =
    abstract member context: Context option with get, set
    abstract member identifier: string option with get, set
    abstract member importModuleDynamically: ImportModuleDynamically option with get, set
    abstract member initializeImportMeta: InitializeImportMeta option with get, set
    static member Create (?identifier: string, ?context: Context, ?initializeImportMeta: InitializeImportMeta, ?importModuleDynamically: ImportModuleDynamically, ?lineOffset: float, ?columnOffset: float, ?cachedData: U12<BigInt64Array<U2<ArrayBuffer,SharedArrayBuffer>>,BigUint64Array<U2<ArrayBuffer,SharedArrayBuffer>>,DataView<U2<ArrayBuffer,SharedArrayBuffer>>,Float32Array<U2<ArrayBuffer,SharedArrayBuffer>>,Float64Array<U2<ArrayBuffer,SharedArrayBuffer>>,Int16Array<U2<ArrayBuffer,SharedArrayBuffer>>,Int32Array<U2<ArrayBuffer,SharedArrayBuffer>>,Int8Array<U2<ArrayBuffer,SharedArrayBuffer>>,Uint16Array<U2<ArrayBuffer,SharedArrayBuffer>>,Uint32Array<U2<ArrayBuffer,SharedArrayBuffer>>,Uint8Array<U2<ArrayBuffer,SharedArrayBuffer>>,Uint8ClampedArray<U2<ArrayBuffer,SharedArrayBuffer>>>) : SourceTextModuleOptions
AssemblyXantham.Fable.Node
ImplementsBase
Attributes[<Interface>]

Declared inside

Base
ImportModuleDynamically
InitializeImportMeta

Properties

abstract member context: Context option with get, set
abstract member identifier: string option with get, set

String used in stack traces.

abstract member importModuleDynamically: ImportModuleDynamically option with get, set

Used to specify how the modules should be loaded during the evaluation of this script when import() is called. This option is part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see Support of dynamic import() in compilation APIs.

abstract member initializeImportMeta: InitializeImportMeta option with get, set

Called during evaluation of this module to initialize the import.meta.

Methods

static member Create (?identifier: string, ?context: Context, ?initializeImportMeta: InitializeImportMeta, ?importModuleDynamically: ImportModuleDynamically, ?lineOffset: float, ?columnOffset: float, ?cachedData: U12<BigInt64Array<U2<ArrayBuffer,SharedArrayBuffer>>,BigUint64Array<U2<ArrayBuffer,SharedArrayBuffer>>,DataView<U2<ArrayBuffer,SharedArrayBuffer>>,Float32Array<U2<ArrayBuffer,SharedArrayBuffer>>,Float64Array<U2<ArrayBuffer,SharedArrayBuffer>>,Int16Array<U2<ArrayBuffer,SharedArrayBuffer>>,Int32Array<U2<ArrayBuffer,SharedArrayBuffer>>,Int8Array<U2<ArrayBuffer,SharedArrayBuffer>>,Uint16Array<U2<ArrayBuffer,SharedArrayBuffer>>,Uint32Array<U2<ArrayBuffer,SharedArrayBuffer>>,Uint8Array<U2<ArrayBuffer,SharedArrayBuffer>>,Uint8ClampedArray<U2<ArrayBuffer,SharedArrayBuffer>>>) : SourceTextModuleOptions