Skip to content

Commit

Permalink
fix(account): add buffer to wepack (#14584)
Browse files Browse the repository at this point in the history
ref: INC0100088
Signed-off-by: Jacques Larique <[email protected]>
  • Loading branch information
JacquesLarique authored Dec 18, 2024
1 parent d29f0b4 commit 64fe135
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/manager/apps/account/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ module.exports = (env = {}) => {
path.resolve(__dirname, '../../../node_modules'),
],
mainFields: ['module', 'browser', 'main'],
fallback: {
buffer: require.resolve('buffer/'),
},
},
plugins: [
new webpack.ContextReplacementPlugin(
Expand All @@ -96,6 +99,9 @@ module.exports = (env = {}) => {
: '"development"',
__NG_APP_INJECTIONS__: getNgAppInjections(['EU', 'CA', 'US']),
}),
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
}),
],
});
};

0 comments on commit 64fe135

Please sign in to comment.