class webpack.sources.SourceMapSource extends Sourcenew SourceMapSource(value, name, sourceMap?, originalSource?, innerSourceMap?, removeOriginalSource?): SourceMapSourceAttributes
value:
string | Buffer<ArrayBufferLike>name:
stringsourceMap:
string | Buffer<ArrayBufferLike> | RawSourceMaporiginalSource:
string | Buffer<ArrayBufferLike>innerSourceMap:
string | Buffer<ArrayBufferLike> | RawSourceMap | nullremoveOriginalSource:
booleanReturns:
SourceMapSourcebuffer(): BufferReturns:
Bufferbuffers(): Buffer<ArrayBufferLike>[]Returns:
Buffer<ArrayBufferLike>[]clearCache(options?, visited?): voidAttributes
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.
getArgsAsBuffers(): [Buffer<ArrayBufferLike>, string, Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike> | undefined, Buffer<ArrayBufferLike> | undefined, boolean | undefined]M
map
map(options?): RawSourceMap | nullAttributes
options:
MapOptionsReturns:
RawSourceMap | nullM
size
size(): numberReturns:
numbersource(): SourceValueReturns:
SourceValuesourceAndMap(options?): SourceAndMapAttributes
options:
MapOptionsReturns:
SourceAndMapstreamChunks(options, onChunk, onSource, onName): GeneratedSourceInfoAttributes
updateHash(hash): voidAttributes