tldraw/apps/electron/esbuild.main.config.ts
Steve Ruiz e6a3e5c3ea
[big chore] restore core to monorepo (#287)
* move core into repo, apps into apps folder, update tests

* Update scripts for build:core

* improve scripts

* remove noise from www

* Update .gitignore

* Fix focus bug

* add ci test script

* Update main.yml
2021-11-18 13:09:18 +00:00

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