mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-05 02:30:29 -04: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 path = require('path');
|
||||||
|
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
const webpack = require('webpack');
|
|
||||||
|
|
||||||
const ScratchWebpackConfigBuilder = require('scratch-webpack-configuration');
|
const ScratchWebpackConfigBuilder = require('scratch-webpack-configuration');
|
||||||
|
|
||||||
|
@ -54,10 +53,7 @@ const webBuilder = new ScratchWebpackConfigBuilder(common)
|
||||||
options: {
|
options: {
|
||||||
exposes: 'VirtualMachine'
|
exposes: 'VirtualMachine'
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
.addPlugin(new webpack.ProvidePlugin({
|
|
||||||
Buffer: ['buffer', 'Buffer']
|
|
||||||
}));
|
|
||||||
|
|
||||||
const playgroundBuilder = webBuilder.clone()
|
const playgroundBuilder = webBuilder.clone()
|
||||||
.merge({
|
.merge({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue