add preload

pull/5200/head
filip mertens 2 months ago
parent 1b9f442344
commit 2930021238
  1. 4
      apps/remixdesktop/esbuild.js

@ -1,8 +1,8 @@
const esbuild = require('esbuild'); const esbuild = require('esbuild');
esbuild.build({ esbuild.build({
entryPoints: ['src/main.ts'], // Your TypeScript entry point entryPoints: ['src/main.ts', 'src/preload.ts'], // Your TypeScript entry point
outfile: 'build/main.js', // Output bundled file outdir: 'build', // Output bundled file
bundle: true, // Bundle all dependencies bundle: true, // Bundle all dependencies
platform: 'node', // Target Node.js platform platform: 'node', // Target Node.js platform
external: ['electron', 'fsevents', 'node-pty'], // Exclude native modules external: ['electron', 'fsevents', 'node-pty'], // Exclude native modules

Loading…
Cancel
Save