Skip to content

Commit

Permalink
fix: polyfill node:Buffer by default
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme committed Aug 15, 2023
1 parent 187898f commit 145da2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = {
'Access-Control-Allow-Origin': '*',
},
},

optimization: {
chunkIds: 'named',
splitChunks: {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 145da2c

Please sign in to comment.