Support different build patterns
ted537 opened this issue · 3 comments
ted537 commented
Sometimes require(user-lib.js)
returns a factory , sometimes it returns a module, sometimes it returns an object containing a module as a property.
ted537 commented
For example, opencv-wasm
returns an object that looks like {cv:Module}
ted537 commented
-s EXPORT_NAME
is part of EMbind and therefore we should detect objects with a single property and treat that property as the module
ted537 commented
Nevermind, the opencv-wasm
package applies some --post-js
trickery