diff --git a/element-web.changes b/element-web.changes index 0dcc7a6..c856320 100644 --- a/element-web.changes +++ b/element-web.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 5 13:34:44 UTC 2022 - Dominik Heidler + +- Fix webpack oom: fix-webpack-oom.patch + ------------------------------------------------------------------- Fri Sep 30 16:52:19 UTC 2022 - Bruno Pitrus - Remove spurious BuildRequire on electron. diff --git a/element-web.spec b/element-web.spec index 84e42e7..24237fc 100644 --- a/element-web.spec +++ b/element-web.spec @@ -26,6 +26,7 @@ Source0: https://github.com/vector-im/element-web/archive/v%{version}.tar Source1: npm-packages-offline-cache.tar.gz Source2: jitsi_external_api.min.js Source3: prepare.sh +Patch0: fix-webpack-oom.patch BuildRequires: yarn BuildArch: noarch @@ -33,7 +34,7 @@ BuildArch: noarch A glossy Matrix collaboration client - web files %prep -%autosetup -n element-web-%{version} +%autosetup -n element-web-%{version} -p0 %build echo 'yarn-offline-mirror "./npm-packages-offline-cache"' > .yarnrc diff --git a/fix-webpack-oom.patch b/fix-webpack-oom.patch new file mode 100644 index 0000000..d991d75 --- /dev/null +++ b/fix-webpack-oom.patch @@ -0,0 +1,11 @@ +--- package.json 2022-09-28 17:01:20.000000000 +0200 ++++ package.json 2022-10-05 15:31:15.012971003 +0200 +@@ -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",