wazum
wazum copied to clipboard
Human-friendly compiler infrastructure library for WebAssembly
Hey, I went ahead and made this PR in favor of #7 because it was getting slightly messy. This PR adds function imports to wazum.
Fixes #2 The commits have all the details. TLDR: simple ESM output compatible with most tools of today, type definitions just work. Breaking change: ``` import {w} from 'wazum' //...
I know how to make this work well, I've too much experience with Node ESM. These are the issues I can help work through: Do you have any downstream projects...
Some output generators do things like this: ```js output.append('(func $', func.name) // the function is not complete yet // ... for (const param of func.parameters) output.append(' (param $', param.name, '...