Skip to main content

Module source_map

Module source_map 

Source

Modules§

structured
A source map kept in structured form until it is actually emitted, so that rewriting or embedding a map shares its ropes instead of copying its bytes. sourcesContent in particular (the full original source text) would otherwise be copied for every chunking context that rewrites the sources URLs and for every chunk source map that embeds the module’s map.
utils

Structs§

CrateMapWrapper
Wraps the DecodedMap struct so that it is Sync and Send.
OptionSourceMap
This is a transparent value type wrapping Option<SourceMap>.
OriginalToken
An OriginalToken represents a region of the generated file that exists in user-authored source file.
RegularMapWrapper
Wraps the RegularMap struct so that it is Sync and Send.
SourceMap
Implements the source map specification as a [decoded][DecodedMap] sourcemap. A “decoded” map represents a source map as if it was came out of a JSON decode.
SourceMapAsset
Represents the source map of an ecmascript asset.
SyntheticToken
A SyntheticToken represents a region of the generated file that was created by some build tool.
TokenWithSource

Enums§

Token
A token represents a mapping in a source map.

Traits§

GenerateSourceMap
Allows callers to generate source maps.