summaryrefslogtreecommitdiffstats
path: root/webpack.common.js
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2025-03-06 13:30:37 +0100
committerskjnldsv <skjnldsv@protonmail.com>2025-03-06 16:32:45 +0100
commit21554daed2f5f88f98cb91bd6ebcca1041d3a8f9 (patch)
tree14abbc844129a6325faf1f983eece5cb2dd657ce /webpack.common.js
parentde0edc5963b0299a3e5532ad0f56624acb0b51df (diff)
downloadnextcloud-server-21554daed2f5f88f98cb91bd6ebcca1041d3a8f9.tar.gz
nextcloud-server-21554daed2f5f88f98cb91bd6ebcca1041d3a8f9.zip
fix(webpack): missing process
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/webpack.common.js b/webpack.common.js
index aacc37af821..c7826b380b3 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -173,6 +173,11 @@ module.exports = {
// break if two separate versions of the library are used (e.g. bundled one
// and global one).
ICAL: 'ical.js',
+
+ // Make a global `process` variable that points to the `process` package,
+ // because the `util` package expects there to be a global variable named `process`.
+ // Thanks to https://stackoverflow.com/a/65018686/14239942
+ process: 'process/browser.js'
}),
new WorkboxPlugin.GenerateSW({