feat(electron-screen-capture): introduce new screen capture utilities (#937)

This commit is contained in:
Makito
2026-01-12 02:30:19 +08:00
committed by GitHub
parent b500eb8f5b
commit 4cda1828ec
24 changed files with 851 additions and 58 deletions
@@ -0,0 +1,38 @@
import type { UserConfig } from 'tsdown'
import { defineConfig } from 'tsdown'
const sharedConfig: UserConfig = {
format: 'esm',
unbundle: true,
external: [
'electron',
'vue',
],
exports: true,
}
export default defineConfig([
{
...sharedConfig,
platform: 'node',
entry: {
main: 'src/main/index.ts',
},
},
{
...sharedConfig,
platform: 'neutral',
entry: {
index: 'src/index.ts',
},
},
{
...sharedConfig,
platform: 'browser',
entry: {
vue: 'src/vue/index.ts',
renderer: 'src/renderer.ts',
},
},
])