Skip to content
Topazdocs
6.05.21

Search documentation

Specification 6.0

Use arrow keys to choose a result. Press Enter to open.

Type an API name, diagnostic number, rule, or project topic.

    Download

    Tools

    JavaScript and web targets in Topaz 6.0

    Topaz 5.21 builds browser packages you can call from JavaScript. The current 6.0 CLI rejects web build targets.

    Language mode
    6.0
    Product
    Not released

    Build a web package with 5.21

    Call Topaz 5.21 from JavaScript shows how to build a WebAssembly package, import its loader and call an exported function. It also covers running the call in a Worker.

    Declare a web target

    In topaz.toml, the [build] table accepts target = "web" or target = "web-worker". An omitted target defaults to native.

    What the current CLI supports

    The 6.0 runner rejects packages configured for either web target. The default runner has no topaz build command. The native development CLI provides topaz build for the native target and rejects both --target web and --target web-worker.

    See the 6.0 build command for command availability.