Skip to content

Commit

Permalink
fix: include process Node polyfill
Browse files Browse the repository at this point in the history
- 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 <me@shgk.me>
  • Loading branch information
ShGKme authored Sep 23, 2024
1 parent 5f4e4ef commit ef55f8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) }),
Expand Down

0 comments on commit ef55f8d

Please sign in to comment.