mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-05-15 07:50:41 -04:00
refactor: moved buffer plugin to shared config
This commit is contained in:
parent
81fa88c80d
commit
3985f403da
1 changed files with 1 additions and 5 deletions
|
@ -1,5 +1,4 @@
|
|||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
|
@ -15,10 +14,7 @@ const baseConfig = new ScratchWebpackConfigBuilder({
|
|||
Buffer: require.resolve('buffer/')
|
||||
}
|
||||
}
|
||||
})
|
||||
.addPlugin(new webpack.ProvidePlugin({
|
||||
Buffer: ['buffer', 'Buffer']
|
||||
}));
|
||||
});
|
||||
|
||||
const webConfig = baseConfig.clone()
|
||||
.setTarget('browserslist')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue