From aaae34a48674dc7c4957c1c4e003bb48466e857f Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Tue, 13 Jun 2023 14:03:38 +0300 Subject: [PATCH] chore: use opt level to reduce memory --- Cargo.toml | 7 +++++++ website/build-netlify.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ef04471881c..c678bb734e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -73,3 +73,10 @@ rome_js_analyze = { path = "./crates/rome_js_analyze" } schemars = { version = "0.8.10" } +[profile.dev.rome_wasm] +opt-level = 3 +debug = true + +[profile.release.rome_wasm] +opt-level = 3 +debug = false diff --git a/website/build-netlify.sh b/website/build-netlify.sh index e010edc9a18..2d63f7a1c0b 100755 --- a/website/build-netlify.sh +++ b/website/build-netlify.sh @@ -8,7 +8,7 @@ if ! command -v wasm-pack &> /dev/null; then fi if [ "$1" == "preview" ]; then - pnpm build:wasm-dev + pnpm build:wasm else pnpm build:wasm fi