UNPKG

@visulima/packem

Version:

A fast and modern bundler for Node.js and TypeScript.

20 lines (19 loc) 818 B
import type { RawSourceMap } from "source-map-js"; import { SourceMapConsumer } from "source-map-js"; declare class MapModifier { private readonly map?; constructor(map?: RawSourceMap | string); modify(f: (m: RawSourceMap) => void): this; modifySources(op: (source: string) => string): this; resolve(directory?: string): this; relative(directory?: string): this; toObject(): RawSourceMap | undefined; toString(): string | undefined; toConsumer(): SourceMapConsumer | undefined; toCommentData(): string; toCommentFile(fileName: string): string; } export declare const getMap: (code: string, id?: string) => Promise<string | undefined>; export declare const stripMap: (code: string) => string; export declare const mm: (map?: RawSourceMap | string) => MapModifier; export {};