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": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./dist/client.js",
|
"import": "./dist/index.js",
|
||||||
"types": "./dist/client.d.ts"
|
"require": "./dist/bare.cjs",
|
||||||
|
"types": "./dist/index.d.ts"
|
||||||
},
|
},
|
||||||
"./node": {
|
"./node": {
|
||||||
"import": "./lib/index.cjs",
|
"import": "./lib/index.cjs",
|
||||||
|
|
|
@ -30,13 +30,24 @@ const configs = [
|
||||||
{
|
{
|
||||||
input: './src/index.ts',
|
input: './src/index.ts',
|
||||||
output: {
|
output: {
|
||||||
file: 'dist/client.js',
|
file: 'dist/index.js',
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
},
|
},
|
||||||
plugins: commonPlugins()
|
plugins: commonPlugins()
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
input: 'src/index.ts',
|
||||||
|
output: {
|
||||||
|
file: 'dist/bare.cjs',
|
||||||
|
format: 'umd',
|
||||||
|
name: 'BareMux',
|
||||||
|
sourcemap: true,
|
||||||
|
exports: 'auto',
|
||||||
|
},
|
||||||
|
plugins: commonPlugins(),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export default configs;
|
export default configs;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue