1
0
Fork 0

chore(build): add banner to all builds

This commit is contained in:
François Chalifour 2020-08-26 10:18:05 +02:00
parent 852d7e46b8
commit f00f740457

View file

@ -1,19 +1,24 @@
import { plugins } from '../../rollup.base.config';
import { checkIsReleaseReady } from '../scripts/checkIsReleaseReady';
import { getBundleBanner } from '../scripts/getBundleBanner';
import { name } from './package.json';
import pkg from './package.json';
checkIsReleaseReady();
export default {
input: 'src/index.ts',
external: ['react', 'react-dom'],
output: {
file: 'dist/umd/index.js',
format: 'umd',
sourcemap: true,
name,
globals: {
react: 'React',
'react-dom': 'ReactDOM',
},
file: 'dist/umd/index.js',
format: 'umd',
sourcemap: true,
name: pkg.name,
banner: getBundleBanner(pkg),
},
plugins,
};