require('esbuild-server') .createServer( { bundle: true, entryPoints: ['src/index.js'], }, { static: 'public', } ) .start();