JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 138
  • Score
    100M100P100Q91616F
  • License MIT

Prebuilt dithr WASM runtime for web exports

Package Exports

  • @dithrkit/wasm
  • @dithrkit/wasm/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dithrkit/wasm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@dithrkit/wasm

Prebuilt dithr WASM runtime for web exports.

This package provides the compiled WebAssembly binary and JavaScript glue code needed to run dithr carts in the browser. It is used internally by @dithrkit/sdk when exporting carts with dithrkit export --web.

Usage

const { jsPath, wasmPath } = require("@dithrkit/wasm");

Both paths point to the prebuilt files in the bin/ directory:

  • dithr.js — Emscripten-generated JavaScript loader
  • dithr.wasm — Compiled WebAssembly module

Building from source

To rebuild the WASM runtime from source you need Emscripten (>= 3.x) and Ninja:

cmake --preset wasm
cmake --build build/wasm

See docs/building.md for full build instructions.

License

MIT