feat: add sixth params of SourceMapSource in webpack-sources (#41503)

This commit is contained in:
陆离
2020-01-17 05:25:43 +08:00
committed by Eli Barzilay
parent b39ef14bdf
commit d73acda0b8
2 changed files with 3 additions and 1 deletions

View File

@@ -190,7 +190,8 @@ export class SourceMapSource extends Source implements SourceAndMapMixin {
name: string,
sourceMap: SourceMapGenerator | RawSourceMap,
originalSource?: string,
innerSourceMap?: RawSourceMap
innerSourceMap?: RawSourceMap,
removeOriginalSource?: boolean,
);
source(): string;

View File

@@ -25,3 +25,4 @@ const s5 = new LineToLineMappedSource('a', 'v', 'c');
const s6 = new PrefixSource(s4, s5);
const s7 = new ReplaceSource(s3, 'ha');
const s8 = new SourceMapSource('va', 'vb', a, 'vc', b);
const s9 = new SourceMapSource('va', 'vb', a, 'vc', b, true);