简体中文 | 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)
查看示例了解更多详情。