| import buildSourceMapTree from './build-source-map-tree'; |
| import { traceMappings } from './source-map-tree'; |
| import SourceMap from './source-map'; |
|
|
| import type { SourceMapInput, SourceMapLoader, Options } from './types'; |
| export type { |
| SourceMapSegment, |
| EncodedSourceMap, |
| EncodedSourceMap as RawSourceMap, |
| DecodedSourceMap, |
| SourceMapInput, |
| SourceMapLoader, |
| LoaderContext, |
| Options, |
| } from './types'; |
| export type { SourceMap }; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| export default function remapping( |
| input: SourceMapInput | SourceMapInput[], |
| loader: SourceMapLoader, |
| options?: boolean | Options, |
| ): SourceMap { |
| const opts = |
| typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false }; |
| const tree = buildSourceMapTree(input, loader); |
| return new SourceMap(traceMappings(tree), opts); |
| } |
|
|