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.*

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/bbaadad4-37a8-47d8-bc10-357f1dc364dcn%40googlegroups.com.

Reply via email to