parent
503e008e1b
commit
ebe52cdb93
@ -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