aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main/esbuild.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/main/esbuild.config.js')
-rw-r--r--packages/main/esbuild.config.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/main/esbuild.config.js b/packages/main/esbuild.config.js
new file mode 100644
index 0000000..7653078
--- /dev/null
+++ b/packages/main/esbuild.config.js
@@ -0,0 +1,24 @@
1// @ts-check
2
3const { node } = require('../../config/build-common');
4const { getConfig } = require('../../config/esbuild-config');
5
6const externalPackages = ['electron'];
7
8if (process.env.MODE !== 'development') {
9 externalPackages.push('electron-devtools-installer');
10}
11
12module.exports = getConfig({
13 absWorkingDir: __dirname,
14 entryPoints: [
15 'src/index.ts',
16 ],
17 outfile: 'dist/index.cjs',
18 format: 'cjs',
19 platform: 'node',
20 target: node,
21 external: externalPackages,
22}, {
23 VITE_DEV_SERVER_URL: process.env.VITE_DEV_SERVER_URL || null,
24});