abla/wasm/build

Generated from source.

Import with import "abla/wasm/build".

Source: abla/wasm/build/entry.ab

wasm32Target (compile.fun)

compile fun wasm32Target(): bool

WebAssembly target policy belongs to this library, not to the compiler's built-in target registry. The compiler consumes only the bounded format and toolchain descriptor.

wasmBuildModule (compile.fun)

compile fun wasmBuildModule(
    name: string,
    entry: string,
    output: string,
    fast: bool,
    cache: bool
): bool

Registers the freestanding Wasm target and builds entry as standalone module name at output. Pass fast for fast compilation and cache to allow reuse. Returns true when the compiler accepts both the target and build node.

IndependentModule.emitWasm (extension compile.fun)

compile fun IndependentModule.emitWasm(
    output: string,
    fast: bool = false,
    cache: bool = true
): bool

Emits a standalone module assembled through compiler.newModule(). Target registration stays owned by the Wasm package while selection, generated declarations, annotations, and exports stay on the generic builder.

Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.