Expand description
Rusty webpack-sources port.
Modules§
- stream_
chunks - Reexport
StreamChunksrelated 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 RawBufferSource.
- RawString
Source - A string variant of RawStringSource.
- 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_sourceandinner_source_mapwill beNone,remove_original_sourcewill be false.
Enums§
- Error
- Error for this crate.
- Replacement
Enforce - Enforce replacement order when two replacement start and end are both equal
- Source
Value - A unified representation for source content that can be either text or binary data.
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
Mappingitems. - encode_
mappings - Encodes the given iterator of
Mappingitems into aString.
Type Aliases§
- BoxSource
- An alias for
Box<dyn Source>. - Result
- An alias for std::result::Result<T, rspack_sources::Error>.