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 <me@shgk.me>
This commit is contained in:
Родитель
5f4e4ef6a6
Коммит
ef55f8d73e
|
@ -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) }),
|
||||
|
|
Загрузка…
Ссылка в новой задаче