1 | const { BannerPlugin } = require('webpack');
|
2 | const merge = require('deepmerge');
|
3 |
|
4 | module.exports = ({ config }, options = {}) => config
|
5 | .plugin(options.pluginId || 'banner')
|
6 | .use(BannerPlugin, [
|
7 | merge({
|
8 | banner: 'require(\'source-map-support\').install();',
|
9 | raw: true,
|
10 | entryOnly: true
|
11 | }, options)
|
12 | ]);
|