Sep 12, 2022

Simplest possible usage of esbuild:

I rewrote it as a blog entry here:

Command to build a library composed of typescript files into a single library importable as an IIFE, with a given name. In this case, I'm building chessops into a javascript library that can be imported, giving a global name of chessops to the imports:

esbuild --bundle --outdir=build --global-name=chessops ./src/index.js

↑ up