Bunchee is a zero-config bundler for npm packages that simplifies the bundling process for JavaScript and TypeScript projects. It benefits developers by automating the bundling of CommonJS and ES modules, including JSX and React Server Components. Bunchee integrates into existing workflows and connects to npm packages, reducing setup time and complexity.
git clone https://github.com/huozhi/bunchee.githttps://github.com/huozhi/bunchee
Easily bundle a TypeScript library with minimal configuration.
Automatically generate exports for multiple files using wildcard patterns.
Build React Server Components with proper chunk separation for client and server.
Create executable binaries from TypeScript files with simple directory structure.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/huozhi/buncheeCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a zero-configuration bundle for my npm package using bunchee. The package is named [PACKAGE_NAME] and is located in [PACKAGE_DIRECTORY]. I want to bundle it for [TARGET_ENVIRONMENT] (e.g., Node.js, browser, etc.).
```bash
# bunchee configuration for [PACKAGE_NAME]
{
"input": "./[PACKAGE_DIRECTORY]/src/index.js",
"output": "./[PACKAGE_DIRECTORY]/dist/bundle.js",
"format": "[TARGET_ENVIRONMENT]"
}
```
## Steps to Bundle Your Package
1. **Install bunchee**: Run `npm install -g bunchee` to install the bundler globally.
2. **Create Configuration File**: Use the provided configuration template and save it as `bunchee.config.js` in your project root.
3. **Run bunchee**: Execute `bunchee` in your terminal. The bundler will process your package and output the bundled file to the specified directory.
## Output Details
- **Input File**: `./[PACKAGE_DIRECTORY]/src/index.js`
- **Output File**: `./[PACKAGE_DIRECTORY]/dist/bundle.js`
- **Format**: `[TARGET_ENVIRONMENT]`
Your package is now bundled and ready for distribution!Cloud ETL platform for non-technical data integration
IronCalc is a spreadsheet engine and ecosystem
Business communication and collaboration hub
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan