insomnia/plugins/insomnia-plugin-kong-portal/esbuild.ts
James Gatz 058aeebb86
expose react and react-dom in plugin private context (#4689)
* expose react and react-dom in plugin private context

* updates lockfile

* un-async the action

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-04-19 18:34:14 +00:00

11 lines
225 B
TypeScript

import { build } from 'esbuild';
build({
bundle: true,
entryPoints: ['./src/index.ts'],
external: ['react', 'react-dom'],
format: 'cjs',
outfile: './dist/index.js',
watch: Boolean(process.env.ESBUILD_WATCH),
});