Urara-Blog/node_modules/.pnpm-store/v3/files/e7/0fbb875b14917cbd7b1f237b0074b014cab1079ed31e7e6deb2e1cbfbf3fc97549e67e16e8c1c42e63d89c4b9552cd0cfcaedda98ab13fa8febc82818970c2
2022-08-14 01:14:53 +08:00

14 lines
799 B
Text

import type { MapSource as MapSourceType } from './source-map-tree';
import type { SourceMapInput, SourceMapLoader } from './types';
/**
* Recursively builds a tree structure out of sourcemap files, with each node
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of
* `OriginalSource`s and `SourceMapTree`s.
*
* Every sourcemap is composed of a collection of source files and mappings
* into locations of those source files. When we generate a `SourceMapTree` for
* the sourcemap, we attempt to load each source file's own sourcemap. If it
* does not have an associated sourcemap, it is considered an original,
* unmodified source file.
*/
export default function buildSourceMapTree(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader): MapSourceType;