Add render.wasm to the frontend build process

This commit is contained in:
Andrey Antukh 2024-11-14 11:02:22 +01:00
parent 5d4511fc6a
commit 1be204e22d
3 changed files with 8 additions and 1 deletions

View file

@ -1,6 +1,11 @@
#!/usr/bin/env bash
export _BUILD_MODE=${1:-debug};
if [ "$NODE_ENV" = "production" ]; then
export _BUILD_MODE="release";
else
export _BUILD_MODE=${1:-debug};
fi
export EMSDK_QUIET=1
export EMCC_CFLAGS="--no-entry -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s MAX_WEBGL_VERSION=2 -s MODULARIZE=1 -s EXPORT_NAME=createRustSkiaModule -s EXPORTED_RUNTIME_METHODS=GL -s ENVIRONMENT=web -s EXPORT_ES6=1 -sMODULARIZE"