From d128b6557da7cf6e86976f0a96e8aa9152f8edf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Syn=C3=A1=C4=8Dek?= Date: Fri, 25 Dec 2020 13:57:51 +0100 Subject: [PATCH] fix: add missing Buffer polyfill --- webpack.common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack.common.js b/webpack.common.js index 2856497..ea9043b 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -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,