CreateContextOptions
[<Interface>]
type CreateContextOptions =
abstract member codeGeneration: ContextCodeGeneration option with get, set
abstract member importModuleDynamically: U2<float,ImportModuleDynamically> option with get, set
abstract member microtaskMode: string option with get, set
abstract member name: string option with get, set
abstract member origin: string option with get, set
static member Create (?name: string, ?origin: string, ?codeGeneration: ContextCodeGeneration, ?microtaskMode: string, ?importModuleDynamically: U2<float,ImportModuleDynamically>) : CreateContextOptions| Assembly | Xantham.Fable.Node |
| Attributes | [<Interface>] |
Declared inside
ImportModuleDynamically |
Properties
abstract member codeGeneration: ContextCodeGeneration option with get, setabstract member importModuleDynamically: U2<float,ImportModuleDynamically> option with get, set
abstract member importModuleDynamically: U2<float,ImportModuleDynamically> option with get, setUsed 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 microtaskMode: string option with get, set
abstract member microtaskMode: string option with get, setIf set to afterEvaluate, microtasks will be run immediately after the script has run.
abstract member origin: string option with get, set
abstract member origin: string option with get, setCorresponds to the newly created context for display purposes. The origin should be formatted like a URL, but with only the scheme, host, and port (if necessary), like the value of the url.origin property of a URL object. Most notably, this string should omit the trailing slash, as that denotes a path.
Methods
static member Create (?name: string, ?origin: string, ?codeGeneration: ContextCodeGeneration, ?microtaskMode: string, ?importModuleDynamically: U2<float,ImportModuleDynamically>) : CreateContextOptions