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 loaderdithr.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/wasmSee docs/building.md for full build instructions.
License
MIT