This is a project foundation for C++ and WASM. The output from the C++ are ES6 WASM modules for nodejs and the browser (loaded through an example webcomonent). You can test the output for this pacakge using npm : https://www.npmjs.com/package/libwasm You can test the output for this packaing using nodejs in the nodejs directory.
./autogen.sh
./autogen.sh
./configure
make
./autogen.sh
source /usr/local/emsdk/emsdk_env.sh
emconfigure ./configure
emmake make
It is possible - but you probably don't want to : make install
./nodejs/WASMTestNode.js
cd webcomponent
npm i
npm start