We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cda10bc commit df9d0a0Copy full SHA for df9d0a0
1 file changed
webpack.config.js
@@ -1,5 +1,6 @@
1
const path = require('path');
2
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
3
+const { ProvidePlugin } = require('webpack');
4
const CopyPlugin = require('copy-webpack-plugin');
5
6
const DIST = path.resolve(__dirname, 'dist');
@@ -31,6 +32,9 @@ module.exports = {
31
32
},
33
34
plugins: [
35
+ new ProvidePlugin({
36
+ Buffer: ['buffer', 'Buffer'],
37
+ }),
38
new CleanWebpackPlugin({ cleanStaleWebpackAssets: false }),
39
40
// for build scripts
0 commit comments