emscripten-core / emscripten-core/emscripten

Option to rename MainModule for generated TypeScript types

Open
#20,952 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.