0fbb875b14917cbd7b1f237b0074b014cab1079ed31e7e6deb2e1cbfbf3fc97549e67e16e8c1c42e63d89c4b9552cd0cfcaedda98ab13fa8febc82818970c2 799 B

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