Uses: @esmbly/transformer-jsdoc
, @esmbly-transformer-wasm
, memory
This example shows how the Conway's Game of Life (ported from the AssemblyScript project to JSDoc) can be transformed to WebAssembly by chaining @esmbly/transformer-jsdoc
and @esmbly/transformer-wasm
.
# Input (JavaScript with JSDoc comments)
src/index.js
src/config.js
# Output (TypeScript, AssemblyScript, WebAssembly)
dist/index.ts
dist/index.as.ts
dist/config.ts
dist/config.as.ts
dist/out.wasm
yarn run esmbly run