Skip to content

Commit

Permalink
fix(ci): NODE_OPTIONS: --max-old-space-size=4096
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
max-nextcloud committed May 14, 2024
1 parent 6be1c8f commit ac09cb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ac09cb9

Please sign in to comment.