Uses: @esmbly/transformer-jsdoc
, @esmbly-transformer-wasm
, memory
This example shows how an insertion sort algorithm can be transformed to WebAssembly by chaining @esmbly/transformer-jsdoc
and @esmbly/transformer-wasm
.
# Input (JavaScript with JSDoc comments)
src/sort.js
# Output (WebAssembly)
dist/sort.wasm
yarn run esmbly run
yarn test