mirror of
https://github.com/scratchfoundation/scratch-webpack-configuration.git
synced 2025-06-07 02:33:59 -04:00
refactor: moved buffer plugin to shared config
This commit is contained in:
parent
e8a413ab1d
commit
12d76fc52e
1 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,7 @@ const path = require('path');
|
|||
|
||||
const merge = require('lodash.merge');
|
||||
const nodeExternals = require('webpack-node-externals');
|
||||
const webpack = require('webpack');
|
||||
|
||||
const DEFAULT_CHUNK_FILENAME = 'chunks/[name].[chunkhash].js';
|
||||
|
||||
|
@ -184,7 +185,11 @@ class ScratchWebpackConfigBuilder {
|
|||
],
|
||||
|
||||
},
|
||||
plugins: []
|
||||
plugins: [
|
||||
new webpack.ProvidePlugin({
|
||||
Buffer: ['buffer', 'Buffer']
|
||||
})
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue