chore(deps): change react to dev deps on js package (#2675)
This commit is contained in:
parent
19c1ef9192
commit
b6e07733d2
1 changed files with 20 additions and 7 deletions
|
|
@ -8,14 +8,8 @@ import pkg from './package.json';
|
|||
export default [
|
||||
{
|
||||
input: 'src/index.ts',
|
||||
external: ['@docsearch/react'],
|
||||
output: [
|
||||
{
|
||||
file: 'dist/umd/index.js',
|
||||
format: 'umd',
|
||||
sourcemap: true,
|
||||
name: 'docsearch',
|
||||
banner: getBundleBanner(pkg),
|
||||
},
|
||||
{
|
||||
file: 'dist/esm/index.js',
|
||||
format: 'es',
|
||||
|
|
@ -32,5 +26,24 @@ export default [
|
|||
}),
|
||||
],
|
||||
},
|
||||
{
|
||||
input: 'src/index.ts',
|
||||
output: [
|
||||
{
|
||||
file: 'dist/umd/index.js',
|
||||
format: 'umd',
|
||||
sourcemap: true,
|
||||
name: 'docsearch',
|
||||
banner: getBundleBanner(pkg),
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
...plugins,
|
||||
replace({
|
||||
preventAssignment: true,
|
||||
'process.env.NODE_ENV': JSON.stringify('production'),
|
||||
}),
|
||||
],
|
||||
},
|
||||
typesConfig,
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue