Crate rspack_core

Crate rspack_core 

Source

Re-exports§

pub use rspack_sources;
pub use external_module::*;
pub use concatenated_module::*;
pub use module::*;
pub use parser_and_generator::*;
pub use resolver::*;

Modules§

build_chunk_graph
cache
chunk_graph_chunk
There are methods whose verb is ChunkGraphChunk
chunk_graph_module
There are methods whose verb is ChunkGraphModule
concatenated_module
debug_info
diagnostics
external_module
incremental
module
old_cache
parser_and_generator
reserved_names
resolver
task_loop

Macros§

impl_module_meta_info

Structs§

AfterResolveData
AlternativeRequest
ApplyContext
ArchivedAssetGeneratorDataUrlOptions
An archived AssetGeneratorDataUrlOptions
ArchivedAssetGeneratorImportMode
An archived AssetGeneratorImportMode
ArchivedAssetGeneratorOptions
An archived AssetGeneratorOptions
ArchivedAssetInfo
An archived AssetInfo
ArchivedAssetInfoRelated
An archived AssetInfoRelated
ArchivedAssetInlineGeneratorOptions
An archived AssetInlineGeneratorOptions
ArchivedAssetParserDataUrlOptions
An archived AssetParserDataUrlOptions
ArchivedAssetParserOptions
An archived AssetParserOptions
ArchivedAssetResourceGeneratorOptions
An archived AssetResourceGeneratorOptions
ArchivedByDependency
An archived ByDependency
ArchivedChunkGroupOptions
An archived ChunkGroupOptions
ArchivedChunkUkey
An archived ChunkUkey
ArchivedCompilationAsset
An archived CompilationAsset
ArchivedContext
An archived Context
ArchivedContextModule
An archived ContextModule
ArchivedContextModuleOptions
An archived ContextModuleOptions
ArchivedContextOptions
An archived ContextOptions
ArchivedCssAutoGeneratorOptions
An archived CssAutoGeneratorOptions
ArchivedCssAutoParserOptions
An archived CssAutoParserOptions
ArchivedCssExportsConvention
An archived CssExportsConvention
ArchivedCssGeneratorOptions
An archived CssGeneratorOptions
ArchivedCssModuleGeneratorOptions
An archived CssModuleGeneratorOptions
ArchivedCssModuleParserOptions
An archived CssModuleParserOptions
ArchivedCssParserOptions
An archived CssParserOptions
ArchivedDependencyId
An archived DependencyId
ArchivedDependencyRange
An archived DependencyRange
ArchivedEntryDependency
An archived EntryDependency
ArchivedEntryOptions
An archived EntryOptions
ArchivedExportsInfo
An archived ExportsInfo
ArchivedFilename
An archived Filename
ArchivedImportAttributes
An archived ImportAttributes
ArchivedJavascriptParserOptions
An archived JavascriptParserOptions
ArchivedJsonGeneratorOptions
An archived JsonGeneratorOptions
ArchivedJsonParserOptions
An archived JsonParserOptions
ArchivedLibraryAuxiliaryComment
An archived LibraryAuxiliaryComment
ArchivedLibraryCustomUmdObject
An archived LibraryCustomUmdObject
ArchivedLibraryOptions
An archived LibraryOptions
ArchivedLoaderImportDependency
An archived LoaderImportDependency
ArchivedLocalIdentName
An archived LocalIdentName
ArchivedModuleGraphConnection
An archived ModuleGraphConnection
ArchivedModuleGraphModule
An archived ModuleGraphModule
ArchivedModuleProfile
An archived ModuleProfile
ArchivedNormalModule
An archived NormalModule
ArchivedRawModule
An archived RawModule
ArchivedResolve
An archived Resolve
ArchivedRuntimeSpec
An archived RuntimeSpec
ArchivedSelfModule
An archived SelfModule
ArchivedTsconfigOptions
An archived TsconfigOptions
AssetEmittedInfo
AssetGeneratorDataUrlFnCtx
AssetGeneratorDataUrlOptions
AssetGeneratorDataUrlOptionsResolver
The resolver for an archived AssetGeneratorDataUrlOptions
AssetGeneratorImportMode
AssetGeneratorImportModeResolver
The resolver for an archived AssetGeneratorImportMode
AssetGeneratorOptions
AssetGeneratorOptionsResolver
The resolver for an archived AssetGeneratorOptions
AssetInfo
AssetInfoRelated
AssetInfoRelatedResolver
The resolver for an archived AssetInfoRelated
AssetInfoResolver
The resolver for an archived AssetInfo
AssetInlineGeneratorOptions
AssetInlineGeneratorOptionsResolver
The resolver for an archived AssetInlineGeneratorOptions
AssetParserDataUrlOptions
AssetParserDataUrlOptionsResolver
The resolver for an archived AssetParserDataUrlOptions
AssetParserOptions
AssetParserOptionsResolver
The resolver for an archived AssetParserOptions
AssetResourceGeneratorOptions
AssetResourceGeneratorOptionsResolver
The resolver for an archived AssetResourceGeneratorOptions
AsyncDependenciesBlock
AsyncDependenciesBlockIdentifier
AwaitDependenciesInitFragment
BeforeResolveData
ByDependency
ByDependencyResolver
The resolver for an archived ByDependency
CacheCount
CachedConstDependency
CachedConstDependencyTemplate
CgmHashArtifact
CgmRuntimeRequirementsArtifact
Chunk
ChunkByUkey
ChunkGraph
ChunkGraphChunk
ChunkGraphModule
ChunkGroup
ChunkGroupByUkey
ChunkGroupOptions
ChunkGroupOptionsResolver
The resolver for an archived ChunkGroupOptions
ChunkGroupUkey
ChunkHashResult
ChunkHashesArtifact
ChunkHashesResult
ChunkRenderCacheArtifact
ChunkRenderContext
ChunkRenderResult
ChunkSizeOptions
ChunkUkey
ChunkUkeyResolver
The resolver for an archived ChunkUkey
CodeGenResultId
CodeGenerationData
CodeGenerationDataAssetInfo
CodeGenerationDataFilename
CodeGenerationDataTopLevelDeclarations
CodeGenerationDataUrl
CodeGenerationExportsFinalNames
CodeGenerationJob
CodeGenerationPublicPathAutoReplace
CodeGenerationResult
CodeGenerationResults
Compilation
CompilationAddEntryHook
CompilationAdditionalChunkRuntimeRequirementsHook
CompilationAdditionalModuleRuntimeRequirementsHook
CompilationAdditionalTreeRuntimeRequirementsHook
CompilationAfterCodeGenerationHook
CompilationAfterOptimizeModulesHook
CompilationAfterProcessAssetsHook
CompilationAfterSealHook
CompilationAsset
CompilationAssetResolver
The resolver for an archived CompilationAsset
CompilationBuildModuleHook
CompilationChunkAssetHook
CompilationChunkHashHook
CompilationChunkIdsHook
CompilationContentHashHook
CompilationDependentFullHashHook
CompilationExecuteModuleHook
CompilationFinishModulesHook
CompilationHooks
CompilationId
CompilationLogger
CompilationModuleIdsHook
CompilationOptimizeChunkModulesHook
CompilationOptimizeChunksHook
CompilationOptimizeCodeGenerationHook
CompilationOptimizeDependenciesHook
CompilationOptimizeModulesHook
CompilationOptimizeTreeHook
CompilationParams
CompilationProcessAssetsHook
CompilationRecords
CompilationRenderManifestHook
CompilationRevokedModulesHook
CompilationRuntimeModuleHook
CompilationRuntimeRequirementInChunkHook
CompilationRuntimeRequirementInModuleHook
CompilationRuntimeRequirementInTreeHook
CompilationSealHook
CompilationStillValidModuleHook
CompilationSucceedModuleHook
Compiler
CompilerAfterEmitHook
CompilerAssetEmittedHook
CompilerCloseHook
CompilerCompilationHook
CompilerEmitHook
CompilerFinishMakeHook
CompilerHooks
CompilerId
CompilerMakeHook
CompilerOptions
CompilerShouldEmitHook
CompilerThisCompilationHook
ConcatenatedModuleIdent
ConcatenationScope
ConditionalInitFragment
ConstDependency
ConstDependencyTemplate
Context
ContextElementDependency
ContextInfo
ContextModule
ContextModuleFactory
ContextModuleFactoryAfterResolveHook
ContextModuleFactoryBeforeResolveHook
ContextModuleFactoryHooks
ContextModuleOptions
ContextModuleOptionsResolver
The resolver for an archived ContextModuleOptions
ContextModuleResolver
The resolver for an archived ContextModule
ContextOptions
ContextOptionsResolver
The resolver for an archived ContextOptions
ContextResolver
The resolver for an archived Context
CssAutoGeneratorOptions
CssAutoGeneratorOptionsResolver
The resolver for an archived CssAutoGeneratorOptions
CssAutoParserOptions
CssAutoParserOptionsResolver
The resolver for an archived CssAutoParserOptions
CssExportsConvention
CssExportsConventionResolver
The resolver for an archived CssExportsConvention
CssGeneratorOptions
CssGeneratorOptionsResolver
The resolver for an archived CssGeneratorOptions
CssModuleGeneratorOptions
CssModuleGeneratorOptionsResolver
The resolver for an archived CssModuleGeneratorOptions
CssModuleParserOptions
CssModuleParserOptionsResolver
The resolver for an archived CssModuleParserOptions
CssParserOptions
CssParserOptionsResolver
The resolver for an archived CssParserOptions
DependencyCondition
DependencyExtraMeta
https://github.com/webpack/webpack/blob/ac7e531436b0d47cd88451f497cdfd0dad41535d/lib/ModuleGraph.js#L742-L748
DependencyId
DependencyIdResolver
The resolver for an archived DependencyId
DependencyParents
DependencyRange
Represents a range in a dependency, typically used for tracking the span of code in a source file. It stores the start and end positions (as offsets) of the range, typically using base-0 indexing.
DependencyRangeResolver
The resolver for an archived DependencyRange
ESMExportInitFragment
EntryData
EntryDependency
EntryDependencyResolver
The resolver for an archived EntryDependency
EntryDescription
EntryOptions
EntryOptionsResolver
The resolver for an archived EntryOptions
Environment
Experiments
ExportInfo
ExportInfoData
ExportInfoTargetValue
ExportModeDynamicReexport
ExportModeEmptyStar
ExportModeFakeNamespaceObject
ExportModeNormalReexport
ExportModeReexportDynamicDefault
ExportModeReexportNamedDefault
ExportModeReexportNamespaceObject
ExportModeReexportUndefined
ExportModeUnused
ExportSpec
ExportsInfo
ExportsInfoData
ExportsInfoGetter
ExportsInfoResolver
The resolver for an archived ExportsInfo
ExportsSpec
ExtendedStatsOptions
ExternalItemFnCtx
ExternalItemFnResult
ExternalModuleInitFragment
ExtractedHashPattern
FakeNamespaceObjectMode
FileCounter
Used to count file usage
Filename
Filename template string or function
FilenameResolver
The resolver for an archived Filename
FindTargetResultItem
FuncUseCtx
GeneratorOptionsMap
IdentCollector
IgnoreErrorModuleFactory
ImportAttributes
ImportAttributesResolver
The resolver for an archived ImportAttributes
InitFragmentContents
InlinedUsedName
JavascriptParserOptions
JavascriptParserOptionsResolver
The resolver for an archived JavascriptParserOptions
JsonGeneratorOptions
JsonGeneratorOptionsResolver
The resolver for an archived JsonGeneratorOptions
JsonParserOptions
JsonParserOptionsResolver
The resolver for an archived JsonParserOptions
LibraryAuxiliaryComment
LibraryAuxiliaryCommentResolver
The resolver for an archived LibraryAuxiliaryComment
LibraryCustomUmdObject
LibraryCustomUmdObjectResolver
The resolver for an archived LibraryCustomUmdObject
LibraryOptions
LibraryOptionsResolver
The resolver for an archived LibraryOptions
LoaderContext
LoaderImportDependency
LoaderImportDependencyResolver
The resolver for an archived LoaderImportDependency
LocalIdentName
LocalIdentNameResolver
The resolver for an archived LocalIdentName
MemoryGCStorage
memory storage with garbage collection based on generations
ModuleFactoryCreateData
ModuleFactoryResult
ModuleGraph
ModuleGraphCacheArtifactInner
This is a rust port of ModuleGraph.cached and ModuleGraph.dependencyCacheProvide in webpack. We use this to cache the result of functions with high computational overhead.
ModuleGraphConnection
ModuleGraphConnectionResolver
The resolver for an archived ModuleGraphConnection
ModuleGraphModule
ModuleGraphModuleResolver
The resolver for an archived ModuleGraphModule
ModuleGraphPartial
A partial module graph that contains modified parts of the origin make_phased module_graph during seal phase persistent cache will always use the origin make_phased module and ignore all module_graph change in the modified parts of ModuleGraphPartial in seal phase
ModuleId
ModuleOptions
ModuleProfile
ModuleProfileResolver
The resolver for an archived ModuleProfile
ModuleReferenceOptions
ModuleRule
ModuleRuleEffect
ModuleRuleUseLoader
ModuleStaticCacheArtifactInner
This cache is used to cache the information of modules that are not changed after make.
NodeOption
NormalInitFragment
NormalModule
NormalModuleAdditionalDataHook
NormalModuleBeforeLoadersHook
NormalModuleCreateData
NormalModuleFactory
NormalModuleFactoryAfterResolveHook
NormalModuleFactoryBeforeResolveHook
NormalModuleFactoryCreateModuleHook
NormalModuleFactoryFactorizeHook
NormalModuleFactoryHooks
NormalModuleFactoryModuleHook
NormalModuleFactoryParserHook
NormalModuleFactoryResolveForSchemeHook
NormalModuleFactoryResolveHook
NormalModuleFactoryResolveInSchemeHook
NormalModuleFactoryResolveLoaderHook
NormalModuleHooks
NormalModuleLoaderHook
NormalModuleLoaderShouldYieldHook
NormalModuleLoaderStartYieldingHook
NormalModuleReadResourceHook
NormalModuleResolver
The resolver for an archived NormalModule
NormalReexportItem
Optimization
OriginRecord
OutputOptions
ParserOptionsMap
PathData
PluginDriver
PrefetchedExportsInfoUsed
The used info of the exports info This should be used when you need to call get_used_name or is_used or is_module_used that should avoid the unnecessary prefetch of the whole named exports
PrefetchedExportsInfoWrapper
Used to store data pre-fetched from Module Graph so that subsequent exports data reads don’t need to access Module Graph
QueueHandler
RawModule
RawModuleResolver
The resolver for an archived RawModule
RealDependencyLocation
Represents the real location of a dependency in a source file, including both start and optional end positions. These positions are described in terms of lines and columns in the source code.
ReferencedExport
RenderManifestEntry
Resolve
ResolveResolver
The resolver for an archived Resolve
ResolvedExportInfoTarget
ResourceData
ResourceParsedData
RspackFuture
RspackLoaderRunnerPlugin
RuleSetConditionWithEmpty
RuleSetLogicalConditions
RunnerContext
RuntimeGlobals
RuntimeRequirementsDependency
RuntimeRequirementsDependencyTemplate
RuntimeSpec
RuntimeSpecMap
RuntimeSpecResolver
The resolver for an archived RuntimeSpec
RuntimeSpecSet
RuntimeTemplate
SelfModule
SelfModuleFactory
SelfModuleResolver
The resolver for an archived SelfModule
SideEffectsDoOptimize
SideEffectsDoOptimizeMoveTarget
SourcePosition
Represents a position in the source file, including the line number and column number.
StarReexportsInfo
StartTime
StartTimeAggregate
StaticExportsDependency
Stats
StatsAsset
StatsAssetInfo
StatsAssetInfoRelated
StatsAssetsByChunkName
StatsChunk
StatsChunkGroup
StatsChunkGroupAsset
StatsChunkGroupChildren
StatsError
StatsErrorModuleTraceDependency
StatsErrorModuleTraceModule
StatsModule
StatsModuleIssuer
StatsModuleProfile
StatsModuleReason
StatsModuleTrace
StatsOptions
StatsOriginRecord
StatsSourceTypeSize
StatschunkGroupChildAssets
SyntheticDependencyLocation
Represents a synthetic dependency location, such as a generated dependency.
TemplateContext
TrustedTypes
TsconfigOptions
Tsconfig Options
TsconfigOptionsResolver
The resolver for an archived TsconfigOptions
UnResolvedExportInfoTarget
UrlAndGlobal
UsageKey
ValueCacheVersions
WorkerQueue

Enums§

AffectType
AfterResolveResult
Alias
AliasResolver
The resolver for an archived Alias
ArchivedAlias
An archived Alias
ArchivedAssetGeneratorDataUrl
An archived AssetGeneratorDataUrl
ArchivedAssetParserDataUrl
An archived AssetParserDataUrl
ArchivedChunkLoading
An archived ChunkLoading
ArchivedChunkLoadingType
An archived ChunkLoadingType
ArchivedConnectionState
An archived ConnectionState
ArchivedContextMode
An archived ContextMode
ArchivedContextNameSpaceObject
An archived ContextNameSpaceObject
ArchivedContextTypePrefix
An archived ContextTypePrefix
ArchivedDataUrlEncoding
An archived DataUrlEncoding
ArchivedDynamicImportFetchPriority
An archived DynamicImportFetchPriority
ArchivedDynamicImportMode
An archived DynamicImportMode
ArchivedEntryRuntime
An archived EntryRuntime
ArchivedEvaluatedInlinableValue
An archived EvaluatedInlinableValue
ArchivedExportPresenceMode
An archived ExportPresenceMode
ArchivedGeneratorOptions
An archived GeneratorOptions
ArchivedGroupOptions
An archived GroupOptions
ArchivedJavascriptParserOrder
An archived JavascriptParserOrder
ArchivedJavascriptParserUrl
An archived JavascriptParserUrl
ArchivedLibraryName
An archived LibraryName
ArchivedLibraryNonUmdObject
An archived LibraryNonUmdObject
ArchivedModuleIssuer
An archived ModuleIssuer
ArchivedModuleType
An archived ModuleType
ArchivedOverrideStrict
An archived OverrideStrict
ArchivedParseOption
An archived ParseOption
ArchivedParserOptions
An archived ParserOptions
ArchivedPublicPath
An archived PublicPath
ArchivedRestriction
An archived Restriction
ArchivedRuntimeModuleStage
An archived RuntimeModuleStage
ArchivedSourceType
An archived SourceType
ArchivedTsconfigReferences
An archived TsconfigReferences
ArchivedTypeReexportPresenceMode
An archived TypeReexportPresenceMode
ArchivedUsedByExports
An archived UsedByExports
AssetGeneratorDataUrl
AssetGeneratorDataUrlResolver
The resolver for an archived AssetGeneratorDataUrl
AssetParserDataUrl
AssetParserDataUrlResolver
The resolver for an archived AssetParserDataUrl
BeforeResolveResult
BooleanMatcher
CacheOptions
CanInlineUse
ChunkGroupKind
ChunkGroupOrderKey
ChunkKind
ChunkLoading
ChunkLoadingResolver
The resolver for an archived ChunkLoading
ChunkLoadingType
ChunkLoadingTypeResolver
The resolver for an archived ChunkLoadingType
CleanOptions
rust representation of the clean options
ConnectionState
ConnectionStateResolver
The resolver for an archived ConnectionState
Content
ContextMode
ContextModeResolver
The resolver for an archived ContextMode
ContextNameSpaceObject
ContextNameSpaceObjectResolver
The resolver for an archived ContextNameSpaceObject
ContextTypePrefix
ContextTypePrefixResolver
The resolver for an archived ContextTypePrefix
CrossOriginLoading
DataRef
DataUrlEncoding
DataUrlEncodingResolver
The resolver for an archived DataUrlEncoding
DependencyCategory
DependencyLocation
DependencyTemplateType
DependencyType
DetermineExportAssignmentsKey
Webpack cache the result of determineExportAssignments with the keys of dependencies arraris of allStarExports.dependencies and otherStarExports + this(DependencyId). See: https://github.com/webpack/webpack/blob/19ca74127f7668aaf60d59f4af8fcaee7924541a/lib/dependencies/HarmonyExportImportedSpecifierDependency.js#L645
DynamicImportFetchPriority
DynamicImportFetchPriorityResolver
The resolver for an archived DynamicImportFetchPriority
DynamicImportMode
DynamicImportModeResolver
The resolver for an archived DynamicImportMode
EntryRuntime
EntryRuntimeResolver
The resolver for an archived EntryRuntime
EntrypointsStatsOption
EvaluatedInlinableValue
EvaluatedInlinableValueResolver
The resolver for an archived EvaluatedInlinableValue
ExperimentCacheOptions
ExportMode
ExportName
ExportNameOrSpec
ExportPresenceMode
ExportPresenceModeResolver
The resolver for an archived ExportPresenceMode
ExportProvided
ExportsOfExportsSpec
ExtendedReferencedExport
refer https://github.com/webpack/webpack/blob/d15c73469fd71cf98734685225250148b68ddc79/lib/FlagDependencyUsagePlugin.js#L64
ExternalItem
ExternalItemValue
FactorizeInfo
FakeMapValue
FindTargetResult
ForwardId
GeneratorOptions
GeneratorOptionsResolver
The resolver for an archived GeneratorOptions
GetUsedNameParam
GroupOptions
GroupOptionsResolver
The resolver for an archived GroupOptions
HashDigest
HashFunction
HashSalt
InitFragmentKey
InitFragmentStage
JavascriptParserOrder
JavascriptParserOrderResolver
The resolver for an archived JavascriptParserOrder
JavascriptParserUrl
JavascriptParserUrlResolver
The resolver for an archived JavascriptParserUrl
KeepPattern
LazyUntil
LibraryName
LibraryNameResolver
The resolver for an archived LibraryName
LibraryNonUmdObject
LibraryNonUmdObjectResolver
The resolver for an archived LibraryNonUmdObject
LogType
MangleExportsOption
MaybeDynamicTargetExportInfo
MaybeDynamicTargetExportInfoHashKey
Mode
ModuleIssuer
ModuleIssuerResolver
The resolver for an archived ModuleIssuer
ModuleNoParseRule
ModuleNoParseRules
ModuleRuleEnforce
ModuleRuleUse
ModuleType
ModuleTypeResolver
The resolver for an archived ModuleType
NodeDirnameOption
NodeFilenameOption
NodeGlobalOption
NormalModuleFactoryResolveResult
Nullable
OnPolicyCreationFailure
OverrideStrict
OverrideStrictResolver
The resolver for an archived OverrideStrict
ParseOption
ParseOptionResolver
The resolver for an archived ParseOption
ParserOptions
ParserOptionsResolver
The resolver for an archived ParserOptions
PathInfo
PrefetchExportsInfoMode
ProvidedExports
PublicPath
PublicPathResolver
The resolver for an archived PublicPath
ResolvedExportInfoTargetWithCircular
Restriction
RestrictionResolver
The resolver for an archived Restriction
RuleSetCondition
RuntimeCondition
RuntimeMode
RuntimeModuleStage
RuntimeModuleStageResolver
The resolver for an archived RuntimeModuleStage
RuntimeSpecMapValues
Scheme
SideEffectOption
SourceType
SourceTypeResolver
The resolver for an archived SourceType
StaticExportsSpec
StatsUsedExports
TerminalBinding
TsconfigReferences
TsconfigReferencesResolver
The resolver for an archived TsconfigReferences
TypeReexportPresenceMode
TypeReexportPresenceModeResolver
The resolver for an archived TypeReexportPresenceMode
UsageState
UsedByExports
UsedByExportsResolver
The resolver for an archived UsedByExports
UsedExports
UsedExportsOption
UsedName
UsedNameItem
WasmLoading
WasmLoadingType

Constants§

BUILTIN_LOADER_PREFIX
DEFAULT_EXPORT
NAMESPACE_OBJECT_EXPORT

Statics§

CHUNK_HASH_PLACEHOLDER
CODE_GEN_RESULT_ID
CONTENT_HASH_PLACEHOLDER
DEFAULT_DELIMITER
FULL_HASH_PLACEHOLDER
HASH_PLACEHOLDER
NEXT_EXPORTS_INFO_UKEY
NEXT_EXPORT_INFO_UKEY
RESERVED_IDENTIFIER
SAFE_IDENTIFIER

Traits§

AsContextDependency
AsDependencyCodeGeneration
AsLoc
AsModuleDependency
CompilationAddEntry
CompilationAdditionalChunkRuntimeRequirements
CompilationAdditionalModuleRuntimeRequirements
CompilationAdditionalTreeRuntimeRequirements
CompilationAfterCodeGeneration
CompilationAfterOptimizeModules
CompilationAfterProcessAssets
CompilationAfterSeal
CompilationBuildModule
CompilationChunkAsset
CompilationChunkHash
CompilationChunkIds
CompilationContentHash
CompilationDependentFullHash
CompilationExecuteModule
CompilationFinishModules
CompilationModuleIds
CompilationOptimizeChunkModules
CompilationOptimizeChunks
CompilationOptimizeCodeGeneration
CompilationOptimizeDependencies
CompilationOptimizeModules
CompilationOptimizeTree
CompilationProcessAssets
CompilationRenderManifest
CompilationRevokedModules
CompilationRuntimeModule
CompilationRuntimeRequirementInChunk
CompilationRuntimeRequirementInModule
CompilationRuntimeRequirementInTree
CompilationSeal
CompilationStillValidModule
CompilationSucceedModule
CompilerAfterEmit
CompilerAssetEmitted
CompilerClose
CompilerCompilation
CompilerEmit
CompilerFinishMake
CompilerMake
CompilerShouldEmit
CompilerThisCompilation
ContextDependency
ContextModuleFactoryAfterResolve
ContextModuleFactoryBeforeResolve
CustomSourceRuntimeModule
DependenciesBlock
Dependency
DependencyCodeGeneration
DependencyConditionFn
DependencyTemplate
FilenameFn
The default filename fn trait.
FutureConsumer
Tools for consume iterator which return future.
InitFragment
InitFragmentExt
InitFragmentRenderContext
Loader
LocalFilenameFn
The minimum requirement for a filename fn.
Logger
ModuleDependency
ModuleFactory
NormalModuleAdditionalData
NormalModuleBeforeLoaders
NormalModuleFactoryAfterResolve
NormalModuleFactoryBeforeResolve
NormalModuleFactoryCreateModule
NormalModuleFactoryFactorize
NormalModuleFactoryModule
NormalModuleFactoryParser
NormalModuleFactoryResolve
NormalModuleFactoryResolveForScheme
NormalModuleFactoryResolveInScheme
NormalModuleFactoryResolveLoader
NormalModuleLoader
NormalModuleLoaderShouldYield
NormalModuleLoaderStartYielding
NormalModuleReadResource
Plugin
PluginExt
RayonConsumer
Tools for consume rayon iterator.
RayonFutureConsumer
Tools for consume rayon iterator which return feature.
ReplaceAllPlaceholder
Replace all [placeholder] or [placeholder:8] in the pattern
Replacer
RuntimeModule
RuntimeModuleExt
SourceLocation
Trait representing a source map that can resolve the positions of code ranges to source file positions.

Functions§

assign_depth
assign_depths
level order, the impl is different from webpack, since we can’t iterate a set and mutate it at the same time.
async_module_factory
basic_function
block_promise
calc_hash
chunk_hash_js
collect_referenced_export_items
compare_chunk_group
compare_chunks_iterables
compare_chunks_with_graph
compare_module_iterables
compare_modules_by_identifier
compare_modules_by_pre_order_index_or_identifier
compare_runtime
compile_boolean_matcher
compile_boolean_matcher_from_lists
contextify
create_exports_object_referenced
create_no_exports_referenced
create_stats_errors
define_es_module_flag_statement
escape_identifier
export_from_import
extract_hash_pattern
Extract [hash] or [hash:8] in the template
extract_url_and_global
fast_set
Fast set src into the referenced dest, and drop the old value in other thread
filter_runtime
find_graph_roots
for_each_runtime
get_asset_size
get_chunk_group_ordered_children
get_chunk_group_oreded_child_assets
get_chunk_relations
get_context
get_css_chunk_filename_template
get_entry_runtime
get_exports_type
get_exports_type_with_strict
get_filename_without_hash_length
get_js_chunk_filename_template
get_module_trace
get_runtime_key
get_scheme
get_stats_module_name_and_id
get_target
get_terminal_binding
get_undo_path
has_content_hash_placeholder
has_hash_placeholder
import_statement
include_hash
is_exports_object_referenced
is_no_exports_referenced
is_runtime_equal
is_source_equal
join_string_component
join string component in a more human readable way e.g.
merge_runtime
merge_runtime_condition
merge_runtime_condition_non_false
assert the runtime condition is not False
missing_module_promise
module_id
module_id_expr
module_namespace_promise
module_raw
module_rule_matcher
Match the ModuleRule against the given ResourceData, and return the matching ModuleRule if matched.
module_rules_matcher
parse_resource
property_access
property_name
remove_bom
render_init_fragments
InitFragment.addToSource
returning_function
run_loaders
runtime_condition_expression
runtime_to_string
set_depth_if_lower
sort_group_by_index
sort_modules
stringify_loaders_and_resource
subtract_runtime_condition
sync_module_factory
throw_missing_module_error_block
to_comment
to_comment_with_nl
to_identifier
to_identifier_with_escaped
to_module_export_name
to_normal_comment
to_path
trim_dir
Remove all files and directories in the given directory except the given directory
try_convert_str_to_context_mode
weak_error

Type Aliases§

AdditionalData
AliasMap
AssetGeneratorDataUrlFn
AsyncModulesArtifact
BindingCell
BoxChunkInitFragment
BoxDependency
BoxDependencyTemplate
BoxInitFragment
BoxLoader
BoxModuleDependency
BoxModuleInitFragment
BoxPlugin
BoxRuntimeModule
BoxedParserAndGenerator
BoxedParserAndGeneratorBuilder
BuildDependency
CgcRuntimeRequirementsArtifact
ChunkContentHash
ChunkIdsArtifact
ChunkInitFragments
ChunkRenderArtifact
CompilationAssets
CompilationLogging
DependenciesDiagnosticsArtifact
DescriptionData
Entry
EntryItem
Entrypoint
ExecuteModuleId
ExternalItemObject
ExternalType
Externals
FnUse
ImportVarMap
JsonParseFn
KeepFunc
LibraryExport
LibraryType
ModuleGraphCacheArtifact
ModuleIdsArtifact
ModuleInitFragments
ModuleLayer
ModuleNoParseTestFn
ModuleStaticCacheArtifact
ParseMeta
Plugins
QueueHandleCallback
References
ResolveContextModuleDependencies
ResolveFilterFnTy
RuleSetConditionFnMatcher
RuntimeKey
RuntimeKeyMap
SharedSourceMap
Type alias for a shared reference to a SourceLocation trait object, typically used for source maps.
SideEffectsOptimizeArtifact
TemplateReplaceSource
UsageFilterFnTy
With

Attribute Macros§

impl_runtime_module
impl_source_map_config