use custom es6 modularization instead of MODULARIZE=1
This commit is contained in:
@@ -112,18 +112,9 @@ if(EMSCRIPTEN)
|
||||
add_link_options("SHELL: --closure 1")
|
||||
add_link_options("SHELL: -s ALLOW_MEMORY_GROWTH=1")
|
||||
|
||||
add_link_options("SHELL: -s MODULARIZE=1")
|
||||
if(ENABLE_EMSCRIPTEN_SINGLE_FILE)
|
||||
add_link_options("SHELL: -s SINGLE_FILE=1")
|
||||
endif(ENABLE_EMSCRIPTEN_SINGLE_FILE)
|
||||
|
||||
if(ENABLE_EMSCRIPTEN_ENVIRONMENT_NODE)
|
||||
add_link_options("SHELL: -s ENVIRONMENT=node")
|
||||
add_link_options("SHELL: -s BINARYEN_ASYNC_COMPILATION=0")
|
||||
else()
|
||||
add_link_options("SHELL: -s ENVIRONMENT=web,worker")
|
||||
add_link_options("SHELL: -s EXPORT_ES6=1")
|
||||
endif()
|
||||
else()
|
||||
if(ENABLE_GLSLANG_WEB)
|
||||
if(MSVC)
|
||||
|
||||
Reference in New Issue
Block a user