Crate rolldown_common

Crate rolldown_common 

Source

Re-exports§

pub use bundler_options::*;

Modules§

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

Structs§

AddEntryModuleMsg
AddonRenderContext
Asset
Assets is final output of the bundling process. Inputs -> Modules -> Chunks -> Assets
AssetView
AstScopeIdx
AstScopes
Chunk
ChunkIdx
ChunkMeta
ChunkTable
ClientHmrInput
ClientHmrUpdate
ConstExportMeta
CrossChunkImportItem
CssAssetMeta
CssAssetNameReplacer
CssRenderer
CssView
DebugStmtInfoForTreeShaking
DeferSyncScanData
EcmaAssetMeta
EcmaModuleAstUsage
EcmaRelated
EcmaView
EcmaViewMeta
EmittedAsset
EmittedChunk
EmittedChunkInfo
EntryPoint
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
ImportMetaRolldownAssetReplacer
ImportRecordIdx
ImportRecordMeta
ImporterRecord
InsChunkIdx
InstantiatedChunk
InstantiatedChunks are derived from Chunks. Different InstantiatedChunks can be derived from the same Chunk by different Generators.
LocalExport
This is a representation for statements like
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
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
StmtInfo
StmtInfoIdx
StmtInfoMeta
StmtInfos
SymbolRef
SymbolRef is used to represent a symbol in a module when there are multiple modules.
SymbolRefDb
SymbolRefDbForModule
SymbolRefFlags

Enums§

ChunkKind
ChunkReasonType
ConcatenateWrappedModuleKind
We only concatenate wrapped modules when WrapKind is Esm
ConstantValue
EntryPointKind
ExportsKind
HmrUpdate
HybridIndexVec
ImportKind
InstantiationKind
Interop
LegacyModuleIdx
Module
ModuleDefFormat
Module Definition Format.
ModuleLoaderMsg
ModuleRenderArgs
Output
ResolvedExternal
ScanMode
SourceMapGenMsg
SourcemapChainElement
Specifier
StrOrBytes
SymbolOrMemberExprRef
TaggedSymbolRef
ThisExprReplaceKind
WatcherChangeKind
WrapKind

Constants§

RUNTIME_MODULE_ID
RUNTIME_MODULE_KEY

Traits§

GetLocalDb
GetLocalDbMut
SourceMutation
SymbolIdExt

Functions§

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
is_existing_node_builtin_modules
While phf would offer faster lookups, it increases compile time. Since this function is not performance-critical, we prefer contains, which is faster than binary_search in this case — see https://github.com/oxc-project/oxc/issues/10076 for details.

Type Aliases§

IndexModules
MemberExprRefResolutionMap
ModuleScopeSymbolIdMap
RawImportRecord
ResolvedImportRecord
SharedFileEmitter
SharedModuleInfoDashMap