From 145da2cb65a2b05d4f07ef291c6583498159edf1 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Tue, 15 Aug 2023 14:28:00 +0200 Subject: [PATCH] fix: polyfill node:Buffer by default Signed-off-by: Grigorii K. Shartsev --- webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 1792416..fdc42aa 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -78,7 +78,7 @@ module.exports = { 'Access-Control-Allow-Origin': '*', }, }, - + optimization: { chunkIds: 'named', splitChunks: { @@ -107,8 +107,8 @@ 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({ - // These modules available in the web-browser - excludeAliases: ['console', 'Buffer'], + // Console is available in the web-browser + excludeAliases: ['console'], }), // Make appName & appVersion available as a constant