mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
15 lines
326 B
TypeScript
15 lines
326 B
TypeScript
|
import { build } from 'esbuild';
|
||
|
import path from 'path';
|
||
|
|
||
|
const outdir = path.join(__dirname, 'build');
|
||
|
|
||
|
build({
|
||
|
entryPoints: ['./app/preload.ts'],
|
||
|
outfile: path.join(outdir, 'preload.js'),
|
||
|
bundle: true,
|
||
|
platform: 'node',
|
||
|
sourcemap: true,
|
||
|
format: 'esm',
|
||
|
external: ['@getinsomnia/node-libcurl', 'electron'],
|
||
|
});
|