]> source.dussan.org Git - nextcloud-server.git/commitdiff
chore(webpack): migrate to node-polyfill-webpack-plugin v4
authorGrigorii K. Shartsev <me@shgk.me>
Mon, 14 Oct 2024 16:50:01 +0000 (18:50 +0200)
committerGrigorii K. Shartsev <me@shgk.me>
Mon, 14 Oct 2024 16:52:36 +0000 (18:52 +0200)
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
webpack.common.js

index 1df53a986bdb98eb668b1900b3853bda75361c0e..0d285a3dd615c08b83eddf371b708b2d22fe3a01 100644 (file)
@@ -169,7 +169,9 @@ const config = {
 
        plugins: [
                new VueLoaderPlugin(),
-               new NodePolyfillPlugin(),
+               new NodePolyfillPlugin({
+                       additionalAliases: ['process'],
+               }),
                new webpack.ProvidePlugin({
                        // Provide jQuery to jquery plugins as some are loaded before $ is exposed globally.
                        // We need to provide the path to node_moduels as otherwise npm link will fail due