https://github.com/shelfio/esbuild-config
esbuild-config: A lightweight and extensible configuration package for building efficient JavaScript applications with esbuild.
https://github.com/shelfio/esbuild-config
build-tool configuration esbuild esbuild-config javascript
Last synced: 7 months ago
JSON representation
esbuild-config: A lightweight and extensible configuration package for building efficient JavaScript applications with esbuild.
- Host: GitHub
- URL: https://github.com/shelfio/esbuild-config
- Owner: shelfio
- License: mit
- Created: 2023-03-15T17:57:05.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-05-27T04:24:09.000Z (8 months ago)
- Last Synced: 2025-05-27T05:27:37.354Z (8 months ago)
- Topics: build-tool, configuration, esbuild, esbuild-config, javascript
- Language: JavaScript
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: license
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# @shelf/esbuild-config 
> A collection of configurations and utilities to help you build projects or libraries using esbuild. This package includes plugins for common tasks like transpiling TypeScript and compiling SASS and styled-components, as well as presets for React.
## Install
```
$ yarn add -D @shelf/esbuild-config
```
## Usage
Once installed, you can use esbuild-config to configure and run your esbuild builds. The package provides two utility functions, common() and frontend(), that you can import and call from your build scripts:
```js
// Import the function you need
import {common, frontend} from '@shelf/esbuild-config';
// Call the functions with your options
await common({
entryPoints: ['src/index.ts'],
target: ['esnext', 'node16'],
// ...
});
await frontend({
entryPoints: ['src/index.ts'],
target: ['esnext', 'node16'],
sassConfig: {
// ...
},
// ...
});
```
Both functions accept a similar set of options that you can use to customize the build process according to your needs. Check the JSDoc comments in the code for more information on the available options.
## Publish
```sh
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags
```
## License
MIT © [Shelf](https://shelf.io)