esbuild as a service.
curl -sf https://gobinaries.com/egoist/esbuild-service | sh
Then esbuild-service
command will be available.
This service uses esbuild to bundle dependecies, we convert package names to skypack.dev URLs to retrive the content on the fly.
# Start server
air
# the open http://localhost:8080
# Build
make build
# then run `./esbuilds-service`
PORT
: Server port, defaults to8080
.
Build an npm package, pkg
can be:
- A bare name like
vue
- Name with version:
vue@3.0.0-rc.1
- Name, version and a file path:
preact@10/compact
Query parameters:
format
: Bundle format, defaults toesm
, available values:cjs
,iife
globalName
: Global variable name foriife
bundle.minify
: Minification, default totrue
.
MIT © EGOIST