https://github.com/gilbarbara/esbuilder
Opinionated wrapper for esbuild
https://github.com/gilbarbara/esbuilder
Last synced: 3 months ago
JSON representation
Opinionated wrapper for esbuild
- Host: GitHub
- URL: https://github.com/gilbarbara/esbuilder
- Owner: gilbarbara
- License: mit
- Created: 2022-09-04T03:23:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-16T13:40:36.000Z (almost 3 years ago)
- Last Synced: 2025-06-05T05:40:40.999Z (7 months ago)
- Language: TypeScript
- Size: 468 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @gilbarbara/esbuilder
[](https://badge.fury.io/js/@gilbarbara%2Fesbuilder) [](https://github.com/gilbarbara/esbuilder/actions/workflows/main.yml) [](https://sonarcloud.io/summary/new_code?id=gilbarbara_esbuilder) [](https://sonarcloud.io/summary/new_code?id=gilbarbara_esbuilder)
Opinionated wrapper for esbuild
## Setup
```bash
npm install @gilbarbara/esbuilder
```
## Usage
```bash
esbuilder --cjs --esm
```
## Options
```bash
Targets:
--cjs Build CommonJS module
--esm Build ESM module
Build Options:
--input Input files (default: ./src/index.ts)
--externals Add external packages to the bundle
--noBundle Skip bundling dependencies
--noSourcemap Skip the sourcemap
--outDirectory Output directory (default: ./dist)
--platform The platform (default: node)
--target The target environment (default: node16)
--watch Watch for changes (default: false)
```
## Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/gilbarbara/esbuilder/issues).
## Show your support
Give a ⭐️ if this project helped you!
## License
Copyright © 2022 [Gil Barbara](https://github.com/gilbarbara).
This project is [MIT](https://github.com/gilbarbara/esbuilder/blob/main/LICENSE) licensed.