robuild
v0.0.17
Published
Zero-config ESM/TS package builder. Powered by Rolldown and Oxc
Readme
📦 robuild 😯 
English | 简体中文
⚡️ Zero-config ESM/TS package builder. Powered by Oxc, Rolldown and rolldown-plugin-dts.
Features
⚡ Fast: Built on top of rolldown and oxc
📦 Zero config: Works out of the box, configurable when needed
🎯 TypeScript: First-class TypeScript support with .d.ts generation
🔄 Dual mode: Bundle or transform your source code
🚀 Stub mode: Lightning-fast development with file linking
📤 Exports: Automatic package.json exports generation
Installation
npm install robuild
# or
pnpm add robuild
# or
yarn add robuildQuick Start
# Bundle your library
npx robuild ./src/index.ts
# Transform source files
npx robuild ./src/runtime/:./dist/runtime
# Watch mode for development
npx robuild ./src/index.ts --watchUsage
# Bundle your library
npx robuild ./src/index.ts
# Transform source files
npx robuild ./src/runtime/:./dist/runtime
# Watch mode for development
npx robuild ./src/index.ts --watchConfiguration
Create build.config.ts in your project root:
import { defineConfig } from 'robuild'
export default defineConfig({
entries: [
{
type: 'bundle',
input: './src/index.ts',
format: ['esm', 'cjs'],
},
{
type: 'transform',
input: './src/runtime',
outDir: './dist/runtime',
},
],
})Documentation
Visit our documentation site for detailed guides, API reference, and examples.
