1 | /**
|
---|
2 | * Copyright 2019 The AMP HTML Authors. All Rights Reserved.
|
---|
3 | *
|
---|
4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
---|
5 | * you may not use this file except in compliance with the License.
|
---|
6 | * You may obtain a copy of the License at
|
---|
7 | *
|
---|
8 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
9 | *
|
---|
10 | * Unless required by applicable law or agreed to in writing, software
|
---|
11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
---|
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
13 | * See the License for the specific language governing permissions and
|
---|
14 | * limitations under the License.
|
---|
15 | */
|
---|
16 | import SourceMap from './source-map';
|
---|
17 | import type { SourceMapInput, SourceMapLoader, Options } from './types';
|
---|
18 | /**
|
---|
19 | * Traces through all the mappings in the root sourcemap, through the sources
|
---|
20 | * (and their sourcemaps), all the way back to the original source location.
|
---|
21 | *
|
---|
22 | * `loader` will be called every time we encounter a source file. If it returns
|
---|
23 | * a sourcemap, we will recurse into that sourcemap to continue the trace. If
|
---|
24 | * it returns a falsey value, that source file is treated as an original,
|
---|
25 | * unmodified source file.
|
---|
26 | *
|
---|
27 | * Pass `excludeContent` to exclude any self-containing source file content
|
---|
28 | * from the output sourcemap.
|
---|
29 | *
|
---|
30 | * Pass `decodedMappings` to receive a SourceMap with decoded (instead of
|
---|
31 | * VLQ encoded) mappings.
|
---|
32 | */
|
---|
33 | export default function remapping(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader, options?: boolean | Options): SourceMap;
|
---|