// esbuild.js const { build } = require('esbuild') const define = {} build({ entryPoints: ['example/index.ts'], bundle: true, platform: 'node', outfile: 'example/dist/index.js', define, watch: { onRebuild(error, result) { if (error) console.error('watch build failed:', error) else console.error('watch build succeeded:', result) }, }, tsconfig: './tsconfig.json' })