summaryrefslogtreecommitdiff
path: root/esbuild.js
blob: de4b3e956933856a2658d81cf64954e966c46deb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const esbuild = require('esbuild');

esbuild
  .build({
    entryPoints: ['src/index.ts'],
    outdir: 'lib',
    bundle: true,
    sourcemap: true,
    minify: true,
    splitting: false,
    format: 'esm',
    target: ['esnext']
  })
  .catch(() => process.exit(1));