mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-06-07 02:54:10 -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 path = require('path');
|
||||||
const webpack = require('webpack');
|
|
||||||
|
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
|
@ -15,10 +14,7 @@ const baseConfig = new ScratchWebpackConfigBuilder({
|
||||||
Buffer: require.resolve('buffer/')
|
Buffer: require.resolve('buffer/')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
.addPlugin(new webpack.ProvidePlugin({
|
|
||||||
Buffer: ['buffer', 'Buffer']
|
|
||||||
}));
|
|
||||||
|
|
||||||
const webConfig = baseConfig.clone()
|
const webConfig = baseConfig.clone()
|
||||||
.setTarget('browserslist')
|
.setTarget('browserslist')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue