Categorygithub.com/egoist/esbuild-service
repositorypackage
0.0.4
Repository: https://github.com/egoist/esbuild-service.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

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: [email protected]
  • 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.

License

MIT © EGOIST