element-web/fix-webpack-oom.patch
Dominik Heidler 849c6a6547 - Version 1.11.81
This release fixes High severity vulnerability CVE-2024-47771 / GHSA-963w-49j9-gxj6

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=84
2024-10-15 12:15:07 +00:00

12 lines
825 B
Diff

--- element-web-1.11.51/package.json.old 2023-12-06 12:17:43.051457300 +0100
+++ element-web-1.11.51/package.json 2023-12-06 12:17:48.124782822 +0100
@@ -40,7 +40,7 @@
"build:res": "ts-node scripts/copy-res.ts",
"build:genfiles": "yarn build:res && yarn build:module_system",
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
- "build:bundle": "webpack --progress --mode production",
+ "build:bundle": "node --max_old_space_size=4000 --optimize_for_size $(which webpack) --progress --mode production",
"build:bundle-stats": "webpack --progress --mode production --json > webpack-stats.json",
"build:module_system": "ts-node --project ./tsconfig.module_system.json module_system/scripts/install.ts",
"dist": "scripts/package.sh",