Skip to content

Commit

Permalink
Build oak wasm session for enviroments without JavaScript module supp…
Browse files Browse the repository at this point in the history
…ort.

This is since the tooling we'll use to lazy load in our internal usecase does not support it.

ACKNOWLEDGE_FAILING_COPYBARA_IMPORT=missing vote

Bug: 354738284
Change-Id: I984cd2b408ef9f828589d7983fb9f8d01aca790d
  • Loading branch information
jul-sh committed Aug 30, 2024
1 parent 88a881c commit ae2a1a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion oak_session_wasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ cd "$WORKSPACE_ROOT"

# Build the project using wasm-pack.
echo "INFO: Building the project using wasm-pack"
(cd "${CRATE_DIR}" && wasm-pack build --target web)

# Build for environments without module support. In the browser, the WASM
# exports will be available on the global `wasm_bindgen` variable.
(cd "${CRATE_DIR}" && wasm-pack build --target no-modules)

0 comments on commit ae2a1a6

Please sign in to comment.