UNPKG

332 BJavaScriptView Raw
1const { BannerPlugin } = require('webpack');
2const merge = require('deepmerge');
3
4module.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 ]);