Simplify index wrapper, namespacing.
Experiment with function exports. Not quite working.
This commit is contained in:
parent
740211ed4c
commit
b891520ff9
5 changed files with 71 additions and 95 deletions
13
config.nims
13
config.nims
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue