UNPKG

@jridgewell/remapping

Version:

Remap sequential sourcemaps through transformations to point at the original source code

28 lines (22 loc) • 588 B
import type { SourceMapInput } from '@jridgewell/trace-mapping'; export type { SourceMapSegment, DecodedSourceMap, EncodedSourceMap, } from '@jridgewell/trace-mapping'; export type { SourceMapInput }; export type LoaderContext = { readonly importer: string; readonly depth: number; source: string; content: string | null | undefined; ignore: boolean | undefined; }; export type SourceMapLoader = ( file: string, ctx: LoaderContext, ) => SourceMapInput | null | undefined | void; export type Options = { excludeContent?: boolean; decodedMappings?: boolean; };