diff --git a/rollup.config.js b/rollup.config.js index c0fd93d4..93b1575d 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,4 +1,10 @@ import { plugins } from '../../rollup.base.config'; +import { checkIsReleaseReady } from '../scripts/checkIsReleaseReady'; +import { getBundleBanner } from '../scripts/getBundleBanner'; + +import pkg from './package.json'; + +checkIsReleaseReady(); if (!process.env.BUILD) { throw new Error('The `BUILD` environment variable is required to build.'); @@ -10,11 +16,13 @@ const output = { format: 'umd', sourcemap: true, name: 'docsearch', + banner: getBundleBanner(pkg), }, esm: { file: 'dist/esm/index.js', format: 'es', sourcemap: true, + banner: getBundleBanner(pkg), }, };