Expand description
Rusty webpack-sources
port.
Modules§
- stream_
chunks - Reexport
StreamChunks
related types.
Macros§
Structs§
- Cached
Source - It tries to reused cached results from other methods to avoid calculations, usually used after modify is finished.
- Concat
Source - Concatenate multiple Sources to a single Source.
- MapOptions
- Options for Source::map.
- Mapping
- Represent a Mapping information of source map.
- Original
Location - Represent original position information of a Mapping.
- Original
Source - Represents source code, it will create source map for the source code,
but the source map is created by splitting the source code at typical
statement borders (
;
,{
,}
). - RawBuffer
Source - A buffer variant of RawSource.
- RawSource
- Represents source code without source map, it will not create source map for the source code.
- RawString
Source - A string variant of RawSource.
- Replace
Source - Decorates a Source with replacements and insertions of source code, usually used in dependencies
- Rope
- A rope data structure.
- Source
Map - The source map created by Source::map.
- Source
MapSource - Represents source code with source map, optionally having an additional source map for the original source.
- Source
MapSource Options - Options for SourceMapSource::new.
- Without
Original Options - An convenient options for SourceMapSourceOptions,
original_source
andinner_source_map
will beNone
,remove_original_source
will be false.
Enums§
- Error
- Error for this crate.
- Replacement
Enforce - Enforce replacement order when two replacement start and end are both equal
Traits§
- Source
- Source abstraction, webpack-sources docs.
- Source
Ext - Extension methods for Source.
Functions§
- decode_
mappings - Decodes the given mappings string into an iterator of
Mapping
items. - encode_
mappings - Encodes the given iterator of
Mapping
items into aString
.
Type Aliases§
- BoxSource
- An alias for
Box<dyn Source>
. - Result
- An alias for std::result::Result<T, rustbolt_sources::Error>.