Ensure emnapiInit function is exported

Prevents latest emscripten optimising it away
This commit is contained in:
Lovell Fuller
2024-08-12 16:27:15 +01:00
parent de42667767
commit ad36fa0605
2 changed files with 4 additions and 4 deletions

View File

@@ -192,7 +192,7 @@
'-Oz',
'-sALLOW_MEMORY_GROWTH',
'-sENVIRONMENT=node',
'-sEXPORTED_FUNCTIONS=["_vips_shutdown", "_uv_library_shutdown"]',
'-sEXPORTED_FUNCTIONS=["emnapiInit", "_vips_shutdown", "_uv_library_shutdown"]',
'-sNODERAWFS',
'-sTEXTDECODER=0',
'-sWASM_ASYNC_COMPILATION=0',