parent
aee640616c
commit
8c15c11990
@ -0,0 +1,12 @@ |
||||
const esbuild = require('esbuild'); |
||||
|
||||
esbuild.build({ |
||||
entryPoints: ['src/main.ts'], // Your TypeScript entry point
|
||||
outfile: 'build/main.js', // Output bundled file
|
||||
bundle: true, // Bundle all dependencies
|
||||
platform: 'node', // Target Node.js platform
|
||||
external: ['electron', 'fsevents', 'node-pty'], // Exclude native modules
|
||||
target: ['node20'], // Match the Node.js version for Electron
|
||||
tsconfig: 'tsconfig.json', // Your TypeScript config
|
||||
minify: false, // Optional: Minify for production
|
||||
}).catch(() => process.exit(1)); |
Loading…
Reference in new issue