Run npm i c-plus-wasm-loader --save-dev
.
import mutiple c modules once to save memory
example:
import wasmModule from '@/wasm/aModule?embed=../bModule,../cModule
This will translate those three modules together to wasmModule and only malloc memory once