emscripten-core / emscripten-core/emscripten
Option to rename MainModule for generated TypeScript types
Open
embind
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Looks like this is hardcoded to output `MainModule` https://github.com/emscripten-core/emscripten/blob/e3062090695bab845398890c510614392fbe4bc0/src/embind/embind_gen.js#L351
I can alias it on the consuming side pretty easily, but it would be nice if this were configurable, as `MainModule` is not a great name and it will conflict between multiple modules.
Contributor guide
Assessment
This issue has not been assessed yet.