English | 简体中文
⚡️ Zero-config ESM/TS package builder. Powered by Oxc, Rolldown and rolldown-plugin-dts.
⚡ 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
🏢 Enterprise: Workspace support, package filtering, migration tools
npm install robuild
# or
pnpm add robuild
# or
yarn add robuild# 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 --watch# 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 --watchCreate 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',
},
],
})Visit our documentation site for detailed guides, API reference, and examples.
