Add process polyfill for browsers

This was previously added by webpack4. It is needed in the form editor.
Solves error Uncaught ReferenceError: process is not defined
[MAILPOET-3214]
This commit is contained in:
Rostislav Wolny
2021-09-09 14:19:05 +02:00
committed by Veljko V
parent 952e18c25b
commit 83ed5d9364
3 changed files with 86 additions and 131 deletions

View File

@@ -284,6 +284,9 @@ const adminConfig = {
},
],
}),
new webpack.ProvidePlugin({
process: 'process/browser',
}),
],
optimization: {
runtimeChunk: 'single',