class ReplaceSource extends Source
new ReplaceSource(source, name?): ReplaceSource
Attributes
Type:
typeof ReplacementreplaceSource.buffer(): Buffer
Returns:
BufferreplaceSource.buffers(): Buffer<ArrayBufferLike>[]
Returns:
Buffer<ArrayBufferLike>[]replaceSource.clearCache(options?, visited?): void
Attributes
options:
ClearCacheOptionsRelease 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.
replaceSource.getName(): string | undefined
replaceSource.getReplacements(): Replacement[]
Returns:
Replacement[]replaceSource.insert(pos, newValue, name?): void
Attributes
replaceSource.map(options?): RawSourceMap | null
Attributes
options:
MapOptionsReturns:
RawSourceMap | nullreplaceSource.original(): Source
Returns:
SourcereplaceSource.replace(start, end, newValue, name?): void
Attributes
replaceSource.size(): number
Returns:
numberreplaceSource.source(): SourceValue
Returns:
SourceValuereplaceSource.sourceAndMap(options?): SourceAndMap
Attributes
options:
MapOptionsReturns:
SourceAndMapreplaceSource.streamChunks(options, onChunk, onSource, onName): GeneratedSourceInfo
Attributes
replaceSource.updateHash(hash): void
Attributes
hash:
HashLike