You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

esbuild.main.config.ts 314B

123456789101112
  1. import { BuildOptions } from 'esbuild'
  2. import path from 'path'
  3. const config: BuildOptions = {
  4. platform: 'node',
  5. entryPoints: [path.resolve('src/main/main.ts'), path.resolve('src/main/preload.ts')],
  6. bundle: true,
  7. target: 'node16.5.0', // electron version target
  8. sourcemap: true,
  9. }
  10. export default config