mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-11-14 19:35:09 -05:00
refactor: moved buffer plugin to shared config
This commit is contained in:
parent
c0282d7739
commit
0ecc26f992
1 changed files with 1 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
|||
const path = require('path');
|
||||
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const webpack = require('webpack');
|
||||
|
||||
const ScratchWebpackConfigBuilder = require('scratch-webpack-configuration');
|
||||
|
||||
|
@ -54,10 +53,7 @@ const webBuilder = new ScratchWebpackConfigBuilder(common)
|
|||
options: {
|
||||
exposes: 'VirtualMachine'
|
||||
}
|
||||
})
|
||||
.addPlugin(new webpack.ProvidePlugin({
|
||||
Buffer: ['buffer', 'Buffer']
|
||||
}));
|
||||
});
|
||||
|
||||
const playgroundBuilder = webBuilder.clone()
|
||||
.merge({
|
||||
|
|
Loading…
Reference in a new issue