Creates a new ScriptModuleCompiler instance for the current ScriptAPI implementation.
OptionalisInternalConstructor: booleanA newly created ScriptModuleCompiler instance.
Determines if the compilation task is active or not.
Starts the module compilation.
Compiling modules can be an expensive operation so the implementation is free to run it asynchronously and return AsyncOp that will be fulfilled once the worker thread is done with the module compilation.
Optionalprofile: EnumValue<ScriptModuleCompilerProfile>
The type-checking profile to use for this compilation.
An AsyncOp that will be completed once the module compilation finishes.
Registers a new source file for compilation.
The file virtual path to be added.
The contents of the file.
Unregisters an existing file. Can only be called for already registered source files.
The file virtual path to be removed.
Updates an existing file with new contents. Can only be called for already registered source files.
The file virtual path to update the contents.
The new contents of the file.
Abstract class that abstracts the ScriptAPI module compiler.
The responsibility of the module compiler is to take a set of TypeScript source files and transform them into JavaScript source that can be loaded into the engine on runtime.