feat: add signaling api & adapt electron

This commit is contained in:
Bloomingg
2024-05-22 17:45:17 +08:00
parent fbcae7866b
commit 3a386be4d0
18 changed files with 1475 additions and 47 deletions

View File

@@ -27,12 +27,31 @@ export default [
output: [
{
file: 'lib/render.js',
format: 'esm',
sourcemap: false
},
{
file: 'lib/render.cjs.js',
format: 'cjs',
exports: 'auto',
sourcemap: false
},
],
plugins: [
typescript(),
]
},
{
input: 'src/preload.ts',
output: [
{
file: 'lib/preload.js',
format: 'cjs',
exports: 'auto',
sourcemap: false
},
{
file: 'lib/render.es.js',
file: 'lib/preload.es.js',
format: 'esm',
sourcemap: false
}