Skip to content

Commit 0ecc26f

Browse files
refactor: moved buffer plugin to shared config
1 parent c0282d7 commit 0ecc26f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

webpack.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const path = require('path');
22

33
const CopyWebpackPlugin = require('copy-webpack-plugin');
4-
const webpack = require('webpack');
54

65
const ScratchWebpackConfigBuilder = require('scratch-webpack-configuration');
76

@@ -54,10 +53,7 @@ const webBuilder = new ScratchWebpackConfigBuilder(common)
5453
options: {
5554
exposes: 'VirtualMachine'
5655
}
57-
})
58-
.addPlugin(new webpack.ProvidePlugin({
59-
Buffer: ['buffer', 'Buffer']
60-
}));
56+
});
6157

6258
const playgroundBuilder = webBuilder.clone()
6359
.merge({

0 commit comments

Comments
 (0)