From 60ed7d327306c3dd54d4591e0c0d7ffb5463cccd Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sat, 26 Aug 2023 23:43:27 +0530 Subject: [PATCH] chore: Increase heap size when building --- scripts/editor.bash | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/editor.bash b/scripts/editor.bash index 3ae51ed33..b43703d1b 100755 --- a/scripts/editor.bash +++ b/scripts/editor.bash @@ -1,6 +1,12 @@ #!/usr/bin/env bash +# Fail on errors set -euxo pipefail + +# Increase heap size +export NODE_OPTIONS="--max_old_space_size=4096" + +# Build mermaid pnpm build # Clone the Mermaid Live Editor repository