From 83303578b58b35c056617e2397acb1bf6173e1bdc5fa74d06f8e8721f98df476 Mon Sep 17 00:00:00 2001 From: Dominik Heidler Date: Fri, 23 Dec 2022 10:21:02 +0000 Subject: [PATCH] Fix patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=30 --- fix-webpack-oom.patch | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/fix-webpack-oom.patch b/fix-webpack-oom.patch index d991d75..f639e9c 100644 --- a/fix-webpack-oom.patch +++ b/fix-webpack-oom.patch @@ -1,11 +1,11 @@ ---- package.json 2022-09-28 17:01:20.000000000 +0200 -+++ package.json 2022-10-05 15:31:15.012971003 +0200 +--- package.json 2022-09-28 15:22:49.000000000 +0200 ++++ package.json 2022-12-23 11:10:18.838569341 +0100 @@ -37,7 +37,7 @@ - "build:res": "node scripts/copy-res.js", - "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 --bail --mode production", -+ "build:bundle": "node --max_old_space_size=4000 --optimize_for_size $(which webpack) --progress --bail --mode production", - "build:bundle-stats": "webpack --progress --bail --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", + "build:res": "node scripts/copy-res.js", + "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 --bail --mode production", ++ "build:bundle": "node --max_old_space_size=4000 --optimize_for_size $(which webpack) --progress --bail --mode production", + "build:bundle-stats": "webpack --progress --bail --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",