Skip to main content

Crate rolldown

Crate rolldown 

Source

Re-exports§

pub use rolldown_plugin as plugin;

Structs§

Bundle
BundleFactory
BundleFactoryOptions
BundleHandle
A lightweight handle to access bundle state after the Bundle has been consumed.
BundleOutput
Bundler
BundlerBuilder
BundlerConfig
Configuration for creating a bundler instance. This is used by APIs like Watcher to construct bundlers internally.
BundlerOptions
BundlerTransformOptions
ChecksOptions
ChunkImportMap
ChunkOptimizationOptions
ChunkingContext
CommentsOptions
Resolved comments options with explicit boolean flags.
CompilerAssumptions
DecoratorOptions
DeferSyncScanDataOption
DependedRuntimeHelperMap
Maps each single-bit RuntimeHelper to the StmtInfoIdxs that depend on it.
DevModeOptions
DevtoolsOptions
EnhancedTransformOptions
Options for enhanced transform operations. This is separate from TransformOptions to provide a clear API boundary for the enhanced transform use case.
EnhancedTransformResult
Result of an enhanced transform operation.
ExperimentalOptions
FilenameTemplate
GeneratedCodeOptions
InlineConstConfig
InnerOptions
InputItem
InvalidateJsSideCache
IsolatedDeclarationsOptions
JsxOptions
Log
LogLocation
LogWithoutPlugin
ManualCodeSplittingOptions
MatchGroup
ModuleSideEffectsRule
NormalizedBundlerOptions
OnInvalidate
OnLog
OptimizationOption
PluginsOptions
RawCompressOptions
RawMangleOptions
RawMinifyOptionsDetailed
RawTransformOptions
Transform options with auto tsconfig discovery and caching
ReactRefreshOptions
ResolveOptions
A simple wrapper around oxc_resolver::ResolveOptions to make it easier to use in the rolldown_resolver crate. See oxc_resolver::ResolveOptions for more information.
RuntimeHelper
SourceMapPathTransform
StyledComponentsOptions
TransformOptions
TypeScriptOptions
WatchOption

Enums§

AddonOutputOption
AssetFilenamesOutputOption
AttachDebugInfo
ChunkFilenamesOutputOption
ChunkModulesOrderBy
ChunkOptimizationOption
CodeSplittingMode
Controls how code splitting is performed.
ESTarget
Either
The enum Either with variants Left and Right is a general purpose sum type with two cases.
EsModuleFlag
This configuration determines how the bundler should handle the synthetic __esModule property in the CJS and IIFE format. It is rollup-capable, and the rollup default is IfDefaultProp. You may find rollup explanation here.
GlobalsOutputOption
HashCharacters
InjectImport
Usage
InlineConstMode
InlineConstOption
IsExternal
JsxPreset
LegalComments
LogLevel
MakeAbsoluteExternalsRelative
MatchGroupName
MatchGroupTest
MinifyOptions
ModuleSideEffects
ModuleType
OutputExports
OutputFormat
PathsOutputOption
Platform
PreserveEntrySignatures
PropertyReadSideEffects
PropertyWriteSideEffects
RawMinifyOptions
SanitizeFilename
SourceMapIgnoreList
SourceMapType
StrictMode
Controls whether "use strict" is emitted in the output.
TransformOptionsInner
TreeshakeOptions
TsConfig
TsconfigOption
Tsconfig option for enhanced transform.

Constants§

RUNTIME_HELPER_NAMES

Functions§

enhanced_transform
Transform source code using the internal Oxc parser and transformer.
is_path_fragment
Check if a string is a path fragment (absolute or relative path). Patterns can be neither absolute nor relative paths.
merge_transform_options_with_tsconfig
merge_tsconfig
Merge transform options with tsconfig compiler options.
normalize_optimization_option

Type Aliases§

AddonFunction
SharedNormalizedBundlerOptions