Skip to main content Crate rolldown_common Copy item path Source pub use bundler_options ::*;bundler_options This module is to help rolldown crate could export types related bundler options easily.
rolldown crate could use pub use rolldown_common::bundler_options::*; to export all types, so we don’t need write
the same code in rolldown crate again. dynamic_import_usage side_effects AddEntryModuleMsg AddonRenderContext Asset Assets is final output of the bundling process. Inputs -> Modules -> Chunks -> Assets AstScopeIdx AstScopes BarrelInfo BarrelState State for lazy barrel optimization Chunk ChunkIdx ChunkMeta ChunkTable ClientHmrInput ClientHmrUpdate ConstExportMeta CrossChunkImportItem DebugStmtInfoForTreeShaking DeferSyncScanData DynamicImportExprInfo Information about a dynamic import expression, used to track the relationship
between an import record and its source location in the AST. EcmaAssetMeta EcmaModuleAstUsage EcmaRelated EcmaView EcmaViewMeta EmittedAsset EmittedChunk EmittedChunkInfo EmittedPrebuiltChunk EntryPoint ExportSource ExternalModule ExternalModuleIdx ExternalModuleTaskResult FileEmitter FlatOptions A flat options struct to avoid passing &SharedNormalizedBundlerOptions everywhere.
which also make accessing frequently used options faster. HmrBoundary HmrBoundaryOutput HmrInfo HmrPatch ImportAttribute ImportRecordIdx ImportRecordMeta ImportRecordStateInit ImporterRecord InsChunkIdx InstantiatedChunk InstantiatedChunks are derived from Chunks. Different InstantiatedChunks can be derived from the same Chunk
by different Generators.LazyBarrelInfo LocalExport This is a representation for statements like MemberExprProp A single property access in a member expression chain. MemberExprRef For member expression, e.g. foo_ns.bar_ns.c MemberExprRefResolution ModuleGroup ModuleId ModuleId is the unique string identifier for each module.ModuleIdx ModuleInfo ModuleNamespaceIncludedReason ModuleRenderOutput ModuleTable ModuleTagBitSet A u64-based bitset for module tags. ModuleTagRegistry Registry for tag bit allocation. Built-in tags use fixed consts on ModuleTag.
Custom tag support will be added in a future phase. Modules NamedImport This is a representation for statements like NamespaceAlias NormalModule NormalModuleTaskResult OutputAsset OutputChunk OutputsDiagnostics PackageJson PluginIdx PreliminaryFilename Represents a filename that might contains hash placeholder. PrependRenderedImport RenderedConcatenatedModuleParts RenderedModule ResolvedExport ResolvedId RollupPreRenderedAsset RollupPreRenderedChunk RollupRenderedChunk RuntimeModuleBrief RuntimeModuleTaskResult SideEffectDetail Some statement is mark as side effects free via Pure, but we need to know
the original statement side effects when do some runtime wrapper optimization.
A global variable access with pure annotation, it could be eliminated when unused,
but If we can’t remove it’s wrapper safely,because runtime behavior of global variable access maybe execution
order aware SourcemapAssetMeta StableModuleId StableModuleId is the stabilized version of ModuleId.StmtInfo StmtInfoIdx StmtInfoMeta StmtInfos SymbolRef SymbolRef is used to represent a symbol in a module when there are multiple modules.SymbolRefDb SymbolRefDbForModule SymbolRefFlags TaggedSymbolRef A SymbolRef plus a one-bit “link-only” tag, packed into the same 8 bytes as a bare
SymbolRef (instead of the 12 bytes a enum { LinkOnly(SymbolRef), Normal(SymbolRef) }
would cost, since two payload-carrying variants force a separate, 4-byte-aligned discriminant). UsedSymbolRefs BundleMode ChunkDebugInfo Debug information attached to chunks when experimental.attachDebugInfo: 'full' is enabled. ChunkKind ChunkReasonType ConcatenateWrappedModuleKind We only concatenate wrapped modules when WrapKind is Esm ConstantValue EntryPointKind ExportsKind FacadeChunkEliminationReason The specific optimization scenario that led to a facade chunk being eliminated. HmrUpdate HybridIndexVec ImportKind ImportedExports What exports are needed from a module InstantiationKind Interop MemberExprObjectReferencedType Module ModuleDefFormat Module Definition Format. ModuleIdKind Classification of a ModuleId ’s string identity. ModuleLoaderMsg ModuleRenderArgs ModuleTag Module tag enum. Built-in tags have fixed bit indices for zero-cost matching.
Custom(String) is reserved for future user-defined tags. Output PostChunkOptimizationOperation Tracks post-optimization operations applied to chunks during code splitting.
A chunk present in the map has been removed and merged into another chunk. ResolvedExternal ScanMode SourceMapGenMsg SourcemapChainElement Specifier StrOrBytes SymbolOrMemberExprRef ThisExprReplaceKind WatcherChangeKind WrapKind RUNTIME_MODULE_ID RUNTIME_MODULE_KEY GetLocalDb GetLocalDbMut IdxDebugExt SourceMutation common_debug_symbol_ref passing a SymbolRef, it will return it’s string repr, the format:
${stable_id} -> ${symbol_name} generate_replace_this_expr_map get_leading_comment Get the leading comment of a node when condition is satisfy json_value_to_ecma_ast Converts a serde_json::Value to an EcmaAst. json_value_to_expression Converts a serde_json::Value to an oxc Expression. try_extract_lazy_barrel_info Try to extract BarrelInfo from EcmaView for lazy barrel optimization DeclaredSymbols Storage for the symbols a statement declares. IndexModules MemberExprRefResolutionMap ModuleScopeSymbolIdMap RawImportRecord ResolvedImportRecord SharedFileEmitter SharedModuleInfoDashMap