insomnia/packages/insomnia/esbuild.sr.ts
Jack Kavanagh ef03a0feb9
fix inso output contained webpack warnings (#4751)
* cleanup unused code

* decouple unit testing feature and inso

* tigthen up key value pairs array to reducer
2022-05-03 11:50:30 +00:00

27 lines
593 B
TypeScript

import { build } from 'esbuild';
import alias from 'esbuild-plugin-alias';
import path from 'path';
async function main() {
await build({
entryPoints: ['./send-request/index.ts'],
outfile: '../insomnia-send-request/dist/index.js',
bundle: true,
platform: 'node',
target: 'esnext',
sourcemap: true,
format: 'cjs',
tsconfig: 'tsconfig.build.sr.json',
plugins: [
alias({
'electron': path.resolve(__dirname, './send-request/electron/index.js'),
}),
],
external: ['@getinsomnia/node-libcurl'],
});
process.exit(0);
}
main();