Class ConfiguredCompilerAbstract

A compiler that can take configuration values from the environment.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

caching: boolean = true

Whether to enable build caching. When set to false, this compiler will rebuild even when binary and checksum are both present in wasm/ directory

config: Config
id: string

Unique identifier of this compiler implementation.

Methods

  • Compile a source. @hackbg/fadroma implements dockerized and non-dockerized variants using its build.impl.mjs script.

    Parameters

    • source: string | Partial<SourceCode>
    • Rest ...args: unknown[]

    Returns Promise<CompiledCode>

  • Build multiple sources. Default implementation of buildMany is sequential. Compiler classes may override this to optimize.

    Parameters

    Returns Promise<CompiledCode[]>

Generated using TypeDoc