blob: af52f27b18a2e0c8ebe72ab14f1f7c9619dcf730 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import { node } from '../../config/buildConstants.js';
import { getConfig } from '../../config/esbuildConfig.js';
import { fileURLToDirname } from '../../config/utils.js';
const externalPackages = ['electron'];
if (process.env.MODE !== 'development') {
externalPackages.push('electron-devtools-installer');
}
export default getConfig({
absWorkingDir: fileURLToDirname(import.meta.url),
entryPoints: [
'src/index.ts',
],
outfile: 'dist/index.cjs',
format: 'cjs',
platform: 'node',
target: node,
external: externalPackages,
}, {
VITE_DEV_SERVER_URL: process.env.VITE_DEV_SERVER_URL || null,
});
|