Skip to content

Commit 1d03219

Browse files
authored
Fix use of Node Buffer (#7097)
1 parent 904f6b1 commit 1d03219

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ async function getExtensionConfig(target, mode, env) {
199199
'process',
200200
'browser.js')
201201
}));
202+
plugins.push(new webpack.ProvidePlugin({
203+
Buffer: ['buffer', 'Buffer']
204+
}));
202205
}
203206

204207
const entry = {

0 commit comments

Comments
 (0)