update rollup config and package json

This commit is contained in:
Percs 2024-07-07 17:41:07 -05:00
parent 2e0dc263ac
commit d9b3ffe51d
2 changed files with 16 additions and 4 deletions

View file

@ -30,13 +30,24 @@ const configs = [
{
input: './src/index.ts',
output: {
file: 'dist/client.js',
file: 'dist/index.js',
format: 'esm',
sourcemap: true,
exports: 'named',
},
plugins: commonPlugins()
}
},
{
input: 'src/index.ts',
output: {
file: 'dist/bare.cjs',
format: 'umd',
name: 'BareMux',
sourcemap: true,
exports: 'auto',
},
plugins: commonPlugins(),
},
];
export default configs;