egoist / esbuild-service

esbuild as a service. bundle any npm package on the fly as you request.

Home Page:https://esbuild.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 to 8080.

/*pkg

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 to esm, available values: cjs, iife
  • globalName: Global variable name for iife bundle.
  • minify: Minification, default to true.

License

MIT © EGOIST

About

esbuild as a service. bundle any npm package on the fly as you request.

https://esbuild.vercel.app


Languages

Language:Go 96.7%Language:Dockerfile 2.2%Language:Makefile 1.1%