blob: 87e91d853db9044acdfddbf77f33efa71ca18df0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { chrome } from '../../config/buildConstants.js';
import fileUrlToDirname from '../../config/fileUrlToDirname.js';
import getEsbuildConfig from '../../config/getEsbuildConfig.js';
export default getEsbuildConfig({
absWorkingDir: fileUrlToDirname(import.meta.url),
entryPoints: ['src/index.ts'],
outfile: 'dist/index.cjs',
format: 'cjs',
platform: 'node',
target: chrome,
sourcemap: 'inline',
external: ['electron'],
});
|