forked from pool/element-web
- Fix webpack oom: fix-webpack-oom.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=20
This commit is contained in:
parent
62a1ea4bd8
commit
a000edc7de
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 5 13:34:44 UTC 2022 - Dominik Heidler <dheidler@suse.de>
|
||||
|
||||
- Fix webpack oom: fix-webpack-oom.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 30 16:52:19 UTC 2022 - Bruno Pitrus <brunopitrus@hotmail.com>
|
||||
- Remove spurious BuildRequire on electron.
|
||||
|
@ -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
|
||||
|
11
fix-webpack-oom.patch
Normal file
11
fix-webpack-oom.patch
Normal file
@ -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",
|
Loading…
Reference in New Issue
Block a user