Skip to content

✨ A lightweight JavaScript packaging library based on magic-string and acorn, supporting tree-shaking 它是一个轻量级且高效的JavaScript打包器,专为快速构建和打包现代web应用程序而设计。Cherry凭借其简单而强大的工作流程,致力于提供最佳的性能和开发体验。

License

Notifications You must be signed in to change notification settings

Sunny-117/cherry

Repository files navigation

cherry npm

Cherry is a lightweight and efficient JavaScript bundler designed for rapid construction and packaging of modern web applications. With its simple yet powerful workflow, Cherry is dedicated to providing optimal performance and development experience.

Features

📦️ Lightweight: Cherry focuses on minimizing the bundler's footprint to ensure quick startup and loading times.

⚡️ Rapid Deployment: Through efficient bundling algorithms, Cherry optimizes resource loading and runtime speed, resulting in a more responsive application.

🔧 Simple Configuration: Cherry provides a concise and intuitive set of configuration options, enabling developers to easily customize and adjust the project's bundling process.

🔥 Modern Support: Cherry supports ES6+ syntax, modular development, and seamless integration with popular frameworks and libraries.

Install

pnpm i @sunny-117/cherry -D

Usage

import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { cherry } from '@sunny-117/cherry'

const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)

const entry = resolve(__dirname, './msg.js')
cherry(entry, resolve(__dirname, '../bundle.js'))

See an example for more details.

License

MIT License © 2024 Sunny-117

About

✨ A lightweight JavaScript packaging library based on magic-string and acorn, supporting tree-shaking 它是一个轻量级且高效的JavaScript打包器,专为快速构建和打包现代web应用程序而设计。Cherry凭借其简单而强大的工作流程,致力于提供最佳的性能和开发体验。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published