chore(build): add banner to all builds
This commit is contained in:
parent
852d7e46b8
commit
f00f740457
1 changed files with 10 additions and 5 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue