Simplify index wrapper, namespacing.

Experiment with function exports.  Not quite working.
This commit is contained in:
Mahlon E. Smith 2025-08-19 22:35:50 -07:00
parent 740211ed4c
commit b891520ff9
Signed by: mahlon
SSH key fingerprint: SHA256:dP84sRGKZRpOOiPD/+GuOq+SHSxEw9qi5BWLQobaHm0
5 changed files with 71 additions and 95 deletions

View file

@ -23,12 +23,13 @@ when defined( emscripten ):
--panics:on
--exceptions:goto
--define:noSignalHandler
--passL:"-Oz" # Production build
--passL:"-Oz" # Production bu ld
# --passL:"-O0 -gDebug -gsource-map" # Debug build
# --passL:"-s EXPORT_NAME=Test1Module"
# --passL:"-s MODULARIZE=1"
--passL:"-s EXPORT_ES6"
--passL:"-s EXPORT_NAME=NimTest"
--passL:"-s ASYNCIFY" # async support
# --passL:"-s JSPI" # async support
--passL:"-o build/index.html"
--passL:"--shell-file minshell.html"
# --passL:"-s EXPORT_ALL=1" # make all public methods available to JS
# --passL:"-s JSPI" # async support (new)
# --passL:"-s ALLOW_MEMORY_GROWTH=1"
--passL:"-o build/nimtest.js"