Many thanks to the amazing @harmony7 for publishing a Compute JS starter kit for working with esbuild.
Check out the repo here! Or if you want to experiment with a local version of the code, run the following:
$ mkdir fastly-esbuild-test
$ cd fastly-esbuild-test
$ npm create @fastly/compute@latest -- --from=https://github.com/fastly/compute-starter-kit-javascript-esbuild
$ npm run start
Let us know what you think!