Normally I use script tag in html file to attach emscripten generated JS.
But how to import this emscripten (emcc) generated JS file in webpack.
I am using below command to build the javascript file:
emcc ./src/rfb.c -o ./src/js/rfb.js -sWASM=0 --pre-js ./src/js/pre.js -sEXPORTED_FUNCTIONS=_main,_malloc -sEXPORTED_RUNTIME_METHODS=FS,callMain,cwrap,wasmMemory -sASYNCIFY -O3 -sENVIRONMENT=web
And I have using directly import './js/rfb.js';
But Module object is not getting created when html file is opened in browser.