https://github.com/Sunny-117/tiny-rollup
🌱 Featherlight Module Bundler | ⚡ Second-Level Build Speed | 🌳 Intelligent Tree-Shaking 🌱 轻如鸿毛的模块打包器 | ⚡ 秒级构建 | 🌳 智能Tree-Shaking
https://github.com/Sunny-117/tiny-rollup
arcon ast bundler magic-string pnpm rollup typescript
Last synced: 7 months ago
JSON representation
🌱 Featherlight Module Bundler | ⚡ Second-Level Build Speed | 🌳 Intelligent Tree-Shaking 🌱 轻如鸿毛的模块打包器 | ⚡ 秒级构建 | 🌳 智能Tree-Shaking
- Host: GitHub
- URL: https://github.com/Sunny-117/tiny-rollup
- Owner: Sunny-117
- License: mit
- Created: 2024-01-10T03:37:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-24T12:36:17.000Z (7 months ago)
- Last Synced: 2025-03-25T19:48:42.815Z (7 months ago)
- Topics: arcon, ast, bundler, magic-string, pnpm, rollup, typescript
- Language: TypeScript
- Homepage:
- Size: 176 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README-en.md
- License: LICENSE
Awesome Lists containing this project
README
# tiny-rollup [](https://npmjs.com/package/tiny-rollup)
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![JSDocs][jsdocs-src]][jsdocs-href]
[![License][license-src]][license-href]English | 简体中文
🌱 Featherlight Module Bundler | ⚡ Second-Level Build Speed | 🌳 Intelligent Tree-Shaking
## 🌟 Features
- 🎯 **Zero-config Startup** - Lightweight, out-of-the-box bundling capabilities
- 🌳 **Intelligent Tree-Shaking** - Automatically eliminates unused code
- 📦 **ESM First** - Native support for ES Modules
- 🗺 **Sourcemap Support** - Comprehensive debugging support
- ⚡ **Lightning-fast Bundling**## 🚀 Quick Start
### Installation
```bash
pnpm i tiny-rollup
```### Build
```ts
import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { tinyRollup } from 'tiny-rollup'const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)const entryTest1 = resolve(__dirname, './main.js')
const outTest1 = resolve(__dirname, '../dist/bundle.js')tinyRollup(entryTest1, outTest1)
```Check out the [example](https://github.com/Sunny-117/tiny-rollup/blob/main/playground/src/index.js) for more details.
## License
[MIT](./LICENSE) License © [Sunny-117](https://github.com/Sunny-117)
[npm-version-src]: https://img.shields.io/npm/v/tiny-rollup?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/tiny-rollup
[npm-downloads-src]: https://img.shields.io/npm/dm/tiny-rollup?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/tiny-rollup
[license-src]: https://img.shields.io/github/license/Sunny-117/tiny-rollup.svg?style=flat&colorA=080f12&colorB=1fa669
[license-href]: https://github.com/Sunny-117/tiny-rollup/blob/main/LICENSE
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
[jsdocs-href]: https://www.jsdocs.io/package/tiny-rollup