Attributes
new ReplaceSource(source, name?): ReplaceSourceAttributes
Returns:
<ReplaceSource>Attributes
Replacement:
<Replacement>buffer(): BufferReturns:
{Buffer}
buffers(): BufferReturns:
<Buffer>
<
<ArrayBufferLike>
>[]clearCache(options?, visited?): voidAttributes
options:
<ClearCacheOptions>Returns:
{void}
Release cached data held by this source. clearCache is a memory
hint: it never affects correctness or output, only how expensive
the next read is. Subclasses override; the base is a no-op so
every Source supports the call. Composite sources always recurse
into wrapped sources. When the same child is reachable via several
parents (e.g. modules shared across webpack chunks), pass a shared
visited WeakSet so each subtree is walked at most once.
Not safe to call concurrently with source/map/sourceAndMap/
streamChunks/updateHash on the same instance.
getName(): string | undefinedReturns:
<string>
|
<undefined>getReplacements(): ReplacementReturns:
<Replacement>[]
insert(pos, newValue, name?): voidAttributes
Returns:
{void}
M
map
map(options?): RawSourceMap | nullAttributes
options:
<MapOptions>Returns:
<RawSourceMap>
|
<null>original(): SourceReturns:
<Source>replace(start, end, newValue, name?): voidAttributes
Returns:
{void}
M
size
size(): numberReturns:
<number>source(): SourceValueReturns:
<SourceValue>sourceAndMap(options?): SourceAndMapAttributes
options:
<MapOptions>Returns:
{SourceAndMap}
streamChunks(options, onChunk, onSource, onName): GeneratedSourceInfoAttributes
Returns:
{GeneratedSourceInfo}
updateHash(hash): voidAttributes
hash:
<HashLike>Returns:
{void}