7c980ebb19
* add electron wrapper * add to workspaces * fixes electron setup * Fix package for dev * build out electron app communication * Update README.md
12 lines
314 B
TypeScript
12 lines
314 B
TypeScript
import { BuildOptions } from 'esbuild'
|
|
import path from 'path'
|
|
|
|
const config: BuildOptions = {
|
|
platform: 'node',
|
|
entryPoints: [path.resolve('src/main/main.ts'), path.resolve('src/main/preload.ts')],
|
|
bundle: true,
|
|
target: 'node16.5.0', // electron version target
|
|
sourcemap: true,
|
|
}
|
|
|
|
export default config
|