feat(electron-screen-capture): introduce new screen capture utilities (#937)
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
])
|
||||
Reference in New Issue
Block a user