28 lines
588 B
Plaintext
28 lines
588 B
Plaintext
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;
|
|
};
|