Expand description
Rusty webpack-sources
port.
Modules§
- Reexport
StreamChunks
related types.
Macros§
Structs§
- It tries to reused cached results from other methods to avoid calculations, usually used after modify is finished.
- Options for Source::map.
- Represent a Mapping information of source map.
- Represent original position information of a Mapping.
- 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 (
;
,{
,}
). - Represents source code without source map, it will not create source map for the source code.
- Decorates a Source with replacements and insertions of source code, usually used in dependencies
- The source map created by Source::map.
- Represents source code with source map, optionally having an additional source map for the original source.
- Options for SourceMapSource::new.
- An convenient options for SourceMapSourceOptions,
original_source
andinner_source_map
will beNone
,remove_original_source
will be false.
Enums§
- Error for this crate.
- Enforce replacement order when two replacement start and end are both equal
Traits§
- Source abstraction, webpack-sources docs.
- Extension methods for Source.
Functions§
- Decodes the given mappings string into an iterator of
Mapping
items. - Encodes the given iterator of
Mapping
items into aString
.
Type Aliases§
- An alias for
Box<dyn Source>
. - An alias for std::result::Result<T, rspack_sources::Error>.