Uses: @esmbly/transformer-flow
, @esmbly-transformer-wasm
This example shows how a string pad program can be transformed to TypeScript, AssemblyScript and WebAssembly by chaining @esmbly/transformer-flow
and @esmbly/transformer-wasm
.
# Input (Flow)
src/pad.js
# Output (TypeScript, AssemblyScript, and WebAssembly)
dist/add.ts
dist/add.as.ts
dist/add.wasm
yarn run esmbly run
yarn test