aboutsummaryrefslogtreecommitdiff
path: root/esbuild.js
blob: 91c6c446825260e6ec5d848730aecad2a24e91b4 (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: 'dist',
    bundle: true,
    sourcemap: true,
    minify: true,
    splitting: false,
    format: 'iife',
    target: ['es2015'],
  })
  .catch(e => (console.error(e), process.exit(1)))