nbind <https://github.com/charto/nbind#readme> uses a UMD wrapper compatible with a number of loaders (I'm using SystemJS) and also works without any loaders. That means it uses two files, pre.js <https://github.com/charto/nbind/blob/master/src/pre.js> and post.js <https://github.com/charto/nbind/blob/master/src/post.js>, wrapped around the output, passed to emcc using the --pre-js and --post-js flags.
tiistai 15. marraskuuta 2016 8.04.24 UTC+2 Matthew McCormick kirjoitti: > > Hello, > > I am interested in asynchronously loading multiple Emscripten modules on > demand in the browser, and using the same code in Node.js. The (best?) > approach seems to put the module in System.register format [1], then use > system-register-loader [2]. Has anyone tried this? Any pointers? > > Thanks, > Matt > > [1] > https://github.com/ModuleLoader/es-module-loader/blob/master/docs/system-register.md > [2] https://github.com/ModuleLoader/system-register-loader > -- 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]. For more options, visit https://groups.google.com/d/optout.
