Crate rspack_sources
source ·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,
usally used after modify is finished.
Options for 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 (
;
, {
, }
).Decorates a Source with replacements and insertions of source code,
usally 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
and
inner_source_map
will be None
, remove_original_source
will be false.Enums
Error for this crate.
Represents source code without source map, it will not create source map for the source code.
Traits
Source abstraction, webpack-sources docs.
Type Definitions
An alias for std::result::Result<T, rspack_sources::Error>.