mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-15 23:20:02 -04:00
update rollup config and package json
This commit is contained in:
parent
2e0dc263ac
commit
d9b3ffe51d
2 changed files with 16 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue