-
Notifications
You must be signed in to change notification settings - Fork 1
/
desktop.mjs
40 lines (38 loc) · 813 Bytes
/
desktop.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { plugins, onwarn, watch, } from './c.mjs'
import { apps, entryPointsToOutFiles } from '../scripts/apps.mjs'
const entryPoints = apps.desktop.entryPoints
const outFiles = entryPointsToOutFiles(apps.desktop.entryPoints, apps.desktop.outdir)
export default [{
input: entryPoints[0],
output: {
file: outFiles[0],
name: 'Main',
format: 'cjs',
},
external: ['electron'],
plugins: plugins(),
onwarn,
watch,
}, {
input: entryPoints[1],
output: {
file: outFiles[1],
name: 'Preload',
format: 'cjs',
},
external: ['electron'],
plugins: plugins(),
onwarn,
watch,
}, {
input: apps.renderer.entryPoints,
output: {
file: apps.renderer.outfile,
name: 'Renderer',
format: 'es'
},
external: ['electron'],
plugins: plugins(),
onwarn,
watch,
}]