refactor: moved buffer plugin to shared config

This commit is contained in:
MiroslavDionisiev 2024-07-26 11:39:47 +03:00
parent c0282d7739
commit 0ecc26f992

View file

@ -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({