Compiler

The result of creating a synchronous compiler. Returned by initCompiler.

Hierarchy

  • Compiler

Constructors

Methods

Constructors

Methods

  • The compile method exposed through a Compiler instance while it is active. If this is called after dispose on the Compiler instance, an error will be thrown.

    During the Compiler instance's lifespan, given the same input, this will return an identical result to the compile method exposed at the module root.

    Parameters

    • path: string
    • Optional options: Options<"sync">

    Returns CompileResult

  • Ends the lifespan of this Compiler instance. After this is invoked, all calls to the Compiler instance's compile or compileString methods will result in an error.

    Returns void