From ef5399217d0497637339c370c9c0f7062ba71ea1 Mon Sep 17 00:00:00 2001 From: ajuvercr Date: Sun, 17 Jan 2021 15:19:02 +0100 Subject: [PATCH] https://stackoverflow.com/questions/64507718/why-does-wasm-opt-fail-in-wasm-pack-builds-when-generating-a-function-returning --- frontend/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/Cargo.toml b/frontend/Cargo.toml index cfde12e..3a0194e 100644 --- a/frontend/Cargo.toml +++ b/frontend/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["ajuvercr "] edition = "2018" +[package.metadata.wasm-pack.profile.release] +wasm-opt = ["-Oz", "--enable-mutable-globals"] + [lib] crate-type = ["cdylib", "rlib"]