--- element-web-1.11.48/package.json 2023-11-07 16:23:24.000000000 +0100 +++ element-web-1.11.48a/package.json 2023-11-07 19:28:10.853001362 +0100 @@ -41,7 +41,7 @@ "build:res": "ts-node scripts/copy-res.ts", "build:genfiles": "yarn build:res && yarn build:jitsi && 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": "tsc --project ./tsconfig.module_system.json && node ./lib/module_system/scripts/install.js", "dist": "scripts/package.sh",