From ef55f8d73e9480b9b37182b4346763b654564662 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Mon, 23 Sep 2024 16:44:54 +0500 Subject: [PATCH] fix: include `process` Node polyfill - Not included by default since `node-polyfill-webpack-plugin@4.0.0` - Used by `path` module - Which is used by `@nextcloud/dialogs` Signed-off-by: Grigorii K. Shartsev --- webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index f1e09fd..96470e5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -89,7 +89,9 @@ module.exports = { // Make sure we auto-inject node polyfills on demand // https://webpack.js.org/blog/2020-10-10-webpack-5-release/#automatic-nodejs-polyfills-removed - new NodePolyfillPlugin(), + new NodePolyfillPlugin({ + additionalAliases: ['process'], + }), // Make appName & appVersion available as a constant new webpack.DefinePlugin({ appName: JSON.stringify(appName) }),