Use Wasienv to build the Wasm and run it under Node.
Please run "make compiledb" to generate compile_commands.json, then use "clion compile_commands.json" to open the project.
- Wasienv: WASI Development Workflow for Humans: https://medium.com/wasmer/wasienv-wasi-development-workflow-for-humans-1811d9a50345
- https://github.com/wasienv/wasienv
- https://github.com/wasmerio/wasmer-js/tree/master/packages/wasi
- WebAssembly/ES Module Integration: https://github.com/WebAssembly/esm-integration/tree/master/proposals/esm-integration