class SourceMapSource extends Source
new SourceMapSource(value, name, sourceMap?, originalSource?, innerSourceMap?, removeOriginalSource?): SourceMapSource
Attributes
value:
string | Buffer<ArrayBufferLike>name:
stringsourceMap:
string | Buffer<ArrayBufferLike> | RawSourceMaporiginalSource:
string | Buffer<ArrayBufferLike>innerSourceMap:
string | Buffer<ArrayBufferLike> | RawSourceMap | nullremoveOriginalSource:
booleanReturns:
SourceMapSourcesourceMapSource.buffer(): Buffer
Returns:
BuffersourceMapSource.buffers(): Buffer<ArrayBufferLike>[]
Returns:
Buffer<ArrayBufferLike>[]sourceMapSource.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.
sourceMapSource.getArgsAsBuffers(): [Buffer<ArrayBufferLike>, string, Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike> | undefined, Buffer<ArrayBufferLike> | undefined, boolean | undefined]
sourceMapSource.map(options?): RawSourceMap | null
Attributes
options:
MapOptionsReturns:
RawSourceMap | nullsourceMapSource.size(): number
Returns:
numbersourceMapSource.source(): SourceValue
Returns:
SourceValuesourceMapSource.sourceAndMap(options?): SourceAndMap
Attributes
options:
MapOptionsReturns:
SourceAndMapsourceMapSource.streamChunks(options, onChunk, onSource, onName): GeneratedSourceInfo
Attributes
sourceMapSource.updateHash(hash): void
Attributes
hash:
HashLike