Urara-Blog/node_modules/.pnpm-store/v3/files/0a/20ea5e0e3ca97b91e4f97bba5887dd01482d3fc86c53051adba4e336465de2989619a24f7ae158cca489f02bc75fa84c2fde8f931942d010c8b7a7ce9f93d6
2022-08-14 01:14:53 +08:00

23 lines
1.2 KiB
Text

import { DecodedSourceMap, RawSourceMap } from '@ampproject/remapping/dist/types/types';
import { SourceMap } from 'magic-string';
import { Source, Processed } from '../preprocess/types';
export declare type SourceLocation = {
line: number;
column: number;
};
export declare function sourcemap_add_offset(map: DecodedSourceMap, offset: SourceLocation, source_index: number): void;
export declare class MappedCode {
string: string;
map: DecodedSourceMap;
constructor(string?: string, map?: DecodedSourceMap);
/**
* concat in-place (mutable), return this (chainable)
* will also mutate the `other` object
*/
concat(other: MappedCode): MappedCode;
static from_processed(string: string, map?: DecodedSourceMap): MappedCode;
static from_source({ source, file_basename, get_location }: Source): MappedCode;
}
export declare function combine_sourcemaps(filename: string, sourcemap_list: Array<DecodedSourceMap | RawSourceMap>): RawSourceMap;
export declare function apply_preprocessor_sourcemap(filename: string, svelte_map: SourceMap, preprocessor_map_input: string | DecodedSourceMap | RawSourceMap): SourceMap;
export declare function parse_attached_sourcemap(processed: Processed, tag_name: 'script' | 'style'): void;