ted537 / tsembind

Generate typescript bindings for Embind projects
23 stars 3 forks source link

Support top level window.Module declaration #6

Open ted537 opened 3 years ago

ted537 commented 3 years ago

If -s MODULAR was not used during linking, then we should export a top-level module object directly.

Currently, we export a top-level promise to the object, which only works when -s MODULAR is set