frontispiece / apps / example / build.js
build.js
Raw
// esbuild.js
import * as esbuild from 'esbuild'

let ctx = await esbuild.context({
	entryPoints: ['index.ts'],
	bundle: true,
	loader: {
		'.ink': 'text'
	},
	outfile: 'dist/index.js',
	tsconfig: './tsconfig.json'
})
await ctx.watch()