esbuild-service
esbuild as a service.
Install
curl -sf https://gobinaries.com/egoist/esbuild-service | sh
Then esbuild-service
command will be available.
How does this work
This service uses esbuild to bundle dependecies, we convert package names to skypack.dev URLs to retrive the content on the fly.
Development
# Start server
air
# the open http://localhost:8080
# Build
make build
# then run `./esbuilds-service`
Docs
Environment variables
PORT
: Server port, defaults to8080
.
/*pkg
Build an npm package, pkg
can be:
- A bare name like
vue
- Name with version:
[email protected]
- 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
.
License
MIT ยฉ EGOIST