8000 GitHub - Sunny-117/tiny-rollup: 🌱 Featherlight Module Bundler | ⚡ Second-Level Build Speed | 🌳 Intelligent Tree-Shaking 🌱 轻如鸿毛的模块打包器 | ⚡ 秒级构建 | 🌳 智能Tree-Shaking
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🌱 Featherlight Module Bundler | ⚡ Second-Level Build Speed | 🌳 Intelligent Tree-Shaking 🌱 轻如鸿毛的模块打包器 | ⚡ 秒级构建 | 🌳 智能Tree-Shaking

License

Notifications You must be signed in to change notification settings

Sunny-117/tiny-rollup

Repository files navigation

tiny-rollup npm

npm version npm downloads JSDocs License

简体中文 | English

🌱 轻如鸿毛的模块打包器 | ⚡ 秒级构建 | 🌳 智能Tree-Shaking

🌟 特性

  • 🎯 零配置启动 - 轻量级、开箱即用的基础打包能力
  • 🌳 智能 Tree-Shaking - 自动消除未使用代码
  • 📦 ESM 优先 - 原生支持 ES Modules
  • 🗺 Sourcemap 支持 - 完善的调试支持
  • 闪电打包

🚀 快速入门

安装

pnpm i tiny-rollup

构建

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,
67BF
 './main.js')
const outTest1 = resolve(__dirname, '../dist/bundle.js')

tinyRollup(entryTest1, outTest1)

查看示例了解更多详情。

License

MIT License © Sunny-117

About

🌱 Featherlight Module Bundler | ⚡ Second-Level Build Speed | 🌳 Intelligent Tree-Shaking 🌱 轻如鸿毛的模块打包器 | ⚡ 秒级构建 | 🌳 智能Tree-Shaking

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0