Rolldown llms.txt · AI Docs Browser · mdream

[llms.txt Tools](https://mdream.dev/llms-txt/rolldown/llms-txt)

# Rolldown llms.txt

Browse Rolldown documentation as markdown. Click any page in the sidebar to view it, or copy the full llms.txt for your AI tools.

rolldown.rs/llms.txt

[Raw llms.txt](https://rolldown.rs/llms.txt) [Raw llms-full.txt](https://rolldown.rs/llms-full.txt)

Copy Markdown [](https://rolldown.rs/llms.txt)

llms.txt

Table of Contents

Introduction

Getting Started

Notable Features

Troubleshooting

Why do we still need bundlers?

Why Plugin Hook Filters?

Module Types

External Modules

Directive

Automatic Code Splitting

Manual Code Splitting

Bundling CJS

Non ESM Output Formats

Top Level Await(TLA) in Rolldown

Dead Code Elimination

Lazy Barrel Optimization

Native MagicString

Barrel Module

Entry

Entry Chunk

Entry Name

User-defined Entry

Introduction

Getting Started

Notable Features

Troubleshooting

Why do we still need bundlers?

Why Plugin Hook Filters?

Module Types

External Modules

Directive

Automatic Code Splitting

Manual Code Splitting

Bundling CJS

Non ESM Output Formats

Top Level Await(TLA) in Rolldown

Dead Code Elimination

Lazy Barrel Optimization

Native MagicString

Barrel Module

Entry

Entry Chunk

Entry Name

User-defined Entry

Introduction

Getting Started

Notable Features

Troubleshooting

Why do we still need bundlers?

Why Plugin Hook Filters?

Module Types

External Modules

Directive

Automatic Code Splitting

Manual Code Splitting

Bundling CJS

Non ESM Output Formats

Top Level Await(TLA) in Rolldown

Dead Code Elimination

Lazy Barrel Optimization

Native MagicString

Barrel Module

Entry

Entry Chunk

Entry Name

User-defined Entry

checks

context

cwd

devtools

experimental

external

input

logLevel

makeAbsoluteExternalsRelative

moduleTypes

onLog

onwarn

optimization

platform

plugins

preserveEntrySignatures

resolve

shimMissingExports

transform

treeshake

tsconfig

watch

Function: build()

Function: rolldown()

Function: watch()

Type Alias: BuildOptions

Interface: RolldownBuild

Interface: RolldownOutput

Interface: RolldownWatcher

Type Alias: RolldownWatcherEvent

Type Alias: RolldownWatcherWatcherEventMap

Interface: WatchOptions

Interface: Plugin<A>

Interface: PluginContext

Variable: VERSION

Type Alias: AsyncPluginHooks

Type Alias: BufferEncoding

Type Alias: CodeSplittingNameFunction

Interface: CustomPluginOptions

Interface: EmittedAsset

Interface: EmittedChunk

Type Alias: EmittedFile

Interface: EmittedPrebuiltChunk

Interface: ExistingRawSourceMap

Interface: FunctionPluginHooks

Type Alias: GeneralHookFilter<Value>

Interface: HookFilter

Type Alias: HookFilterExtension<K>

Type Alias: ImportKind

Type Alias: InternalModuleFormat

Type Alias: LoadResult

Interface: MinimalPluginContext

Interface: ModuleInfo

Interface: ModuleOptions

Type Alias: ModuleType

Type Alias: ModuleTypeFilter

Interface: NormalizedInputOptions

Interface: NormalizedOutputOptions

Type Alias: ObjectHook<T, O>

Interface: OutputAsset

Interface: OutputBundle

Interface: OutputChunk

Interface: PartialResolvedId

Interface: PluginContextMeta

Interface: PluginContextResolveOptions

Interface: PluginMeta

Interface: PreRenderedAsset

Interface: RenderedChunk

Interface: RenderedModule

Interface: ResolvedId

Interface: ResolveFileUrlArgs

Type Alias: ResolveIdResult

Interface: RolldownDirectoryEntry

Interface: RolldownError

Interface: RolldownFileStats

Interface: RolldownFsModule

Interface: SourceDescription

Interface: SourceMap

Type Alias: SourceMapInput

Interface: TransformPluginContext

Type Alias: TransformResult

Function: defineConfig()

Type Alias: ConfigExport

Variable: getLogFilter

Type Alias: GetLogFilter

Function: loadConfig()

Type Alias: RolldownOptionsFunction

Function: withFilter()

Function: esmExternalRequirePlugin()

Function: replacePlugin()

Function: minify()

Function: parse()

Function: transform()

Class: Visitor

Interface: MinifyOptions

Interface: MinifyResult

Function: minifySync()

Function: parseAst()

Function: parseAstAsync()

Interface: ParseResult

Interface: ParserOptions

Function: parseSync()

Type Alias: TransformResult

Function: transformSync()

Class: TsconfigCache

Interface: TsconfigCompilerOptions

Interface: TsconfigRawOptions

Type Alias: VisitorObject

Type Alias: AddonFunction

Type Alias: AdvancedChunksGroup

Type Alias: AdvancedChunksOptions

Function: and()

Type Alias: BuiltinModuleTag

Type Alias: BundleError

Type Alias: ChunkFileNamesFunction

Interface: ChunkingContext

Interface: ChunkOptimizationOptions

Function: code()

Type Alias: CodeSplittingGroup

Function: exactRegex()

Function: exclude()

Function: exprInterpreter()

Type Alias: ExternalOption

Type Alias: ExternalOptionFunction

Type Alias: FilterExpression

Type Alias: FilterExpressionKind

Function: filterVitePlugins()

Type Alias: GeneratedCodePreset

Type Alias: GetModuleInfo

Type Alias: GlobalsFunction

Function: id()

Function: importerId()

Function: include()

Type Alias: InputOption

Function: interpreter()

Function: interpreterImpl()

Type Alias: LoggingFunction

Type Alias: LogLevel

Type Alias: LogLevelOption

Type Alias: LogOrStringHandler

Function: makeIdFiltersToMatchWithQuery()

Type Alias: MinifyOptions

Type Alias: ModuleFormat

Function: moduleType()

Type Alias: ModuleTypes

Function: not()

Function: or()

Type Alias: PartialNull<T>

Function: prefixRegex()

Interface: PreRenderedChunk

Function: queries()

Function: query()

Interface: QueryFilterObject

Interface: ResolveIdExtraOptions

Interface: RolldownLog

Type Alias: RolldownLogWithString

Interface: RolldownMagicString

Variable: RolldownMagicString

Interface: RolldownOptions

Type Alias: RolldownPlugin<A>

Type Alias: RolldownPluginOption<A>

Variable: RUNTIME_MODULE_ID

Type Alias: SourcemapIgnoreListOption

Type Alias: TopLevelFilterExpression

Type Alias: WarningHandlerWithDefault

Interface: WatcherFileWatcherOptions

Builtin Plugins

Bundle Analyzer Plugin

ESM External Require Plugin

Replace Plugin

Bundler API

Plugin API

Command Line Interface

Rust Crates

Plugin Hook Filters

File URLs

Source Code Transformations

Inter-plugin communication

Contribution Guide

Contribution Guide

Acknowledgements

Glossary

Interface: ChecksOptions

Interface: CommentsOptions

Interface: GeneratedCodeOptions

Interface: InputOptions

Interface: OutputOptions

Interface: TransformOptions

Interface: TransformOptions

Interface: WatcherOptions

Options & APIs Reference

Type Alias: CodeSplittingOptions

Type Alias: OptimizationOptions

Type Alias: TreeshakingOptions

## What is Rolldown's llms.txt?

Rolldown publishes an `/llms.txt` file that provides AI systems with a structured index of its documentation. It follows the [llms.txt specification](https://llmstxt.org), organizing links to guides, API references, and tutorials under section headings so that LLMs like ChatGPT, Claude, and Gemini can quickly understand what Rolldown offers and where to find details.

Issues

Spec

1

Sections

260

Links

16.6 KB

Size

~4.3k

Tokens

Sections: Table of Contents

## Add Rolldown Docs to Your AI Assistant

Select your tool to see how to add Rolldown's llms.txt as a documentation source.

Cursor

 Windsurf

 Claude Code

 ChatGPT

 Zed

 Copilot

1. 1

   Open any chat or composer panel
2. 2

   Type @Docs and select "Add new doc"
3. 3

   Paste the URL: https://rolldown.rs/llms.txt
4. 4

   Wait for the green dot (indexing complete)
5. 5

   Reference @Docs in chat when asking about Rolldown

Cursor crawls the URL and indexes all subpages. Add a trailing slash to index child pages too.

## Spec Compliance 22 errors

## Frequently Asked Questions

Where is Rolldown's llms.txt file?

Rolldown publishes its llms.txt at https://rolldown.rs/llms.txt. This file provides a structured, markdown-formatted index of Rolldown's documentation that AI systems can consume to understand the project's APIs, guides, and references.

How do I use Rolldown's llms.txt with AI coding assistants?

Copy the llms.txt content and paste it into your AI assistant (Cursor, Windsurf, Claude, ChatGPT) as context. This gives the AI an accurate map of Rolldown's documentation so it can provide better code suggestions and answers about Rolldown.

What does Rolldown's llms.txt contain?

Rolldown's llms.txt contains 1 sections and 260 documentation links in 16.6 KB (~4.3k tokens). Key sections include Table of Contents.

How many tokens does Rolldown's llms.txt use?

The concise llms.txt index is approximately 4.3k tokens (16.6 KB). Most AI assistants can fit this within their context window. For the full expanded documentation, look for an llms-full.txt variant which embeds all content inline.

What is Rolldown?

Fast Rust-based bundler for JavaScript with Rollup-compatible API. Rolldown's llms.txt file helps AI systems understand this by providing a structured overview of its documentation, making it easier for developers to get accurate AI-assisted help when working with Rolldown.

Can I generate an llms.txt for my own project?

Yes. Use the free llms.txt generator at mdream.dev/tools/llms-txt/generator to crawl your site and produce a spec-compliant llms.txt file. You can also validate existing files with the llms.txt validator.

## Browse More llms.txt Files

[Convex Documentation For general information about Convex, read \[https://www.convex.dev/llms.txt\](https://www.convex.dev/llms.txt).](https://mdream.dev/llms-txt/rolldown/llms-txt/convex-backend) [Aptible](https://mdream.dev/llms-txt/rolldown/llms-txt/aptible) [Directus Documentation Directus is a real-time API and no-code Data Studio for managing any SQL database. It provides REST and GraphQL APIs, granular access control, authentication, file storage, automations, realtime via WebSockets, analytics dashboards, AI integration, and a full extension system. The Data Studio is a web application for non-technical users to browse, manage, and visualize data without writing code.](https://mdream.dev/llms-txt/rolldown/llms-txt/directus) [Baseten](https://mdream.dev/llms-txt/rolldown/llms-txt/baseten) [Ably Documentation Ably is a realtime experience infrastructure platform that provides pub/sub messaging, chat, realtime data synchronization, and more.](https://mdream.dev/llms-txt/rolldown/llms-txt/ably) [Klavis AI Klavis AI: MCP integration platforms that let AI agents use tools reliably at any scale](https://mdream.dev/llms-txt/rolldown/llms-txt/klavis) [Developer Hub](https://mdream.dev/llms-txt/rolldown/llms-txt/developer-hub) [Promptfoo Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI. Compare performance of GPT, Claude, Gemini, Llama, and more. Simple declarative configs with command line and CI/CD integration. Used by OpenAI and Anthropic.](https://mdream.dev/llms-txt/rolldown/llms-txt/promptfoo)

[View all 99 projects ](https://mdream.dev/llms-txt/rolldown/llms-txt)

## Related Tools

[<h3>llms.txt Generator</h3>Generate an llms.txt for your own project.](https://mdream.dev/llms-txt/rolldown/tools/llms-txt/generator) [<h3>llms.txt Validator</h3>Validate your llms.txt against the official spec.](https://mdream.dev/llms-txt/rolldown/tools/llms-txt/validator)

© 2026 [Harlan Wilton](https://github.com/harlan-zw) · [MIT](https://github.com/harlan-zw/mdream/blob/main/license)

[GitHub](https://github.com/harlan-zw/mdream) [Discord](https://discord.com/invite/275MBUBvgP)