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 e8a413a commit 12d76fcCopy full SHA for 12d76fc
src/index.cjs
@@ -2,6 +2,7 @@ const path = require('path');
2
3
const merge = require('lodash.merge');
4
const nodeExternals = require('webpack-node-externals');
5
+const webpack = require('webpack');
6
7
const DEFAULT_CHUNK_FILENAME = 'chunks/[name].[chunkhash].js';
8
@@ -184,7 +185,11 @@ class ScratchWebpackConfigBuilder {
184
185
],
186
187
},
- plugins: []
188
+ plugins: [
189
+ new webpack.ProvidePlugin({
190
+ Buffer: ['buffer', 'Buffer']
191
+ })
192
+ ]
193
};
194
}
195
0 commit comments