Fix: Include Buffer in webpack build (#38819)

This commit is contained in:
Zoltán Bedi 2021-09-02 14:18:07 +02:00 committed by GitHub
parent b22c2543d0
commit 7e6cf14c84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
const fs = require('fs-extra');
const path = require('path');
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
@ -58,6 +59,9 @@ module.exports = {
source: false,
},
plugins: [
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
}),
new CopyUniconsPlugin(),
new CopyWebpackPlugin({
patterns: [