fix: add missing Buffer polyfill

This commit is contained in:
Ondřej Synáček 2020-12-25 13:57:51 +01:00
parent 1b0bb1c2a2
commit d128b6557d
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ module.exports = {
],
},
plugins: [
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
}),
new HtmlWebpackPlugin({
template: path.join(__dirname, 'lib', 'static', 'index.html'),
version: pkg.version,