1
0
Fork 0

chore(deps): change react to dev deps on js package (#2675)

This commit is contained in:
Dylan Tientcheu 2025-07-22 09:34:25 +02:00 committed by GitHub
parent 19c1ef9192
commit b6e07733d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
];