mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-14 14:50:03 -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
|
@ -14,8 +14,9 @@
|
|||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/client.js",
|
||||
"types": "./dist/client.d.ts"
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/bare.cjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./node": {
|
||||
"import": "./lib/index.cjs",
|
||||
|
|
|
@ -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