From ac09cb99dda517e41bece9269f1c3233d7f0fefc Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 13 May 2024 23:51:08 +0200 Subject: [PATCH] fix(ci): NODE_OPTIONS: --max-old-space-size=4096 to fix node builds for now. Rollup is known to require quite a bit of memory when bundling with source maps enabled. https://rollupjs.org/troubleshooting/#error-javascript-heap-out-of-memory Signed-off-by: Max --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 90e8d31474f..60098e875ed 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "module": "dist/index.js", "main": "dist/index.js", "scripts": { - "build": "vite --mode production build", - "dev": "vite --mode development build", - "watch": "vite --mode development build --watch", + "build": "NODE_OPTIONS='--max-old-space-size=4096' vite --mode production build", + "dev": "NODE_OPTIONS='--max-old-space-size=4096' vite --mode development build", + "watch": "NODE_OPTIONS='--max-old-space-size=4096' vite --mode development build --watch", "lint": "tsc && eslint --ext .js,.vue src cypress", "lint:fix": "tsc && eslint --ext .js,.vue src cypress --fix", "stylelint": "stylelint src/**/*.vue src/**/*.scss src/**/*.css css/*.scss",