UNPKG

@modern-js/module-tools

Version:

Simple, powerful, high-performance modern npm package development solution.

17 lines (16 loc) 613 B
import type { ISourcemapContext, SourceMap } from '../../types'; export declare class SourcemapContext implements ISourcemapContext { private enableSourceMap?; private sourceMapChain; private sourceMapDirty; private cachedInlineSourceMap; private cachedSourceMap; private pluginIdMap; constructor(enableSourceMap?: boolean | undefined); private markSourceMapStatus; addSourceMap(pluginId: number, map?: SourceMap): void; getInlineSourceMap(): string; getSourceMap(): SourceMap | undefined; getSourceMapChain(): SourceMap[]; genPluginId(name: string): number; }