@umijs/bundler-webpack 4.0.41 → 4.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/utils/formatWebpackMessages.js +27 -8
- package/compiled/autoprefixer/browserslist/index.d.ts +21 -1
- package/compiled/autoprefixer/index.js +2 -2
- package/compiled/autoprefixer/package.json +1 -1
- package/compiled/autoprefixer/postcss/lib/processor.d.ts +1 -1
- package/compiled/babel-loader/index.js +8 -2
- package/compiled/babel-loader/package.json +1 -1
- package/compiled/less-loader/index.js +1 -1
- package/compiled/less-loader/package.json +1 -1
- package/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js +22 -60
- package/compiled/mini-css-extract-plugin/hmr/normalize-url.js +2 -10
- package/compiled/mini-css-extract-plugin/index.js +492 -696
- package/compiled/mini-css-extract-plugin/loader.js +54 -120
- package/compiled/mini-css-extract-plugin/package.json +1 -1
- package/compiled/mini-css-extract-plugin/utils.js +27 -44
- package/compiled/postcss-loader/index.js +1 -1
- package/compiled/postcss-loader/package.json +1 -1
- package/compiled/sass-loader/index.js +1 -1
- package/compiled/sass-loader/package.json +1 -1
- package/compiled/sass-loader/sass.default.dart.js +4 -0
- package/compiled/terser/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +90 -0
- package/compiled/terser/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
- package/compiled/terser/@jridgewell/gen-mapping/dist/types/types.d.ts +35 -0
- package/compiled/terser/@jridgewell/source-map/dist/types/source-map.d.ts +25 -0
- package/compiled/terser/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- package/compiled/terser/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +74 -0
- package/compiled/terser/@jridgewell/trace-mapping/dist/types/types.d.ts +92 -0
- package/compiled/terser/index.js +1 -1
- package/compiled/terser/package.json +1 -1
- package/compiled/terser/tools/terser.d.ts +6 -3
- package/compiled/terser-webpack-plugin/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- package/compiled/terser-webpack-plugin/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +74 -0
- package/compiled/terser-webpack-plugin/@jridgewell/trace-mapping/dist/types/types.d.ts +92 -0
- package/compiled/terser-webpack-plugin/index.js +1211 -3390
- package/compiled/terser-webpack-plugin/package.json +1 -1
- package/compiled/terser-webpack-plugin/types/index.d.ts +10 -10
- package/compiled/terser-webpack-plugin/types/utils.d.ts +10 -9
- package/compiled/terser-webpack-plugin/utils.js +36 -10
- package/compiled/webpack/package.json +1 -1
- package/compiled/webpack/types.d.ts +137 -126
- package/compiled/webpack-5-chain/index.js +1 -1
- package/compiled/webpack-5-chain/package.json +1 -1
- package/compiled/webpack-5-chain/types/index.d.ts +76 -20
- package/compiled/webpack-bundle-analyzer/index.js +7 -6
- package/compiled/webpack-bundle-analyzer/package.json +1 -1
- package/compiled/webpack-bundle-analyzer/public/viewer.js +2 -2
- package/compiled/webpack-bundle-analyzer/public/viewer.js.map +1 -1
- package/compiled/webpack-dev-middleware/index.js +5 -5
- package/compiled/webpack-dev-middleware/package.json +1 -1
- package/compiled/webpackbar/LICENSE +20 -0
- package/compiled/webpackbar/dist/index.d.ts +121 -0
- package/compiled/webpackbar/index.js +7 -0
- package/compiled/webpackbar/package.json +1 -0
- package/compiled/ws/LICENSE +13 -12
- package/compiled/ws/index.d.ts +73 -33
- package/compiled/ws/index.js +1 -1
- package/compiled/ws/package.json +1 -1
- package/dist/build.js +8 -2
- package/dist/cli.js +4 -1
- package/dist/config/compressPlugin.js +4 -1
- package/dist/config/config.js +41 -11
- package/dist/config/cssRules.js +17 -5
- package/dist/config/detectDeadCode.js +38 -8
- package/dist/config/detectDeadCodePlugin.js +8 -2
- package/dist/config/fastRefreshPlugin.js +4 -1
- package/dist/config/forkTSCheckerPlugin.js +4 -1
- package/dist/config/harmonyLinkingErrorPlugin.js +14 -11
- package/dist/config/javaScriptRules.js +21 -9
- package/dist/config/miniCSSExtractPlugin.js +4 -1
- package/dist/config/progressPlugin.js +16 -7
- package/dist/config/speedMeasureWebpackPlugin.js +7 -2
- package/dist/config/ssrPlugin.js +20 -6
- package/dist/config/svgRules.js +4 -1
- package/dist/dev.js +29 -13
- package/dist/loader/svgr.js +16 -11
- package/dist/loader/swc.d.ts +2 -2
- package/dist/loader/swc.js +66 -10
- package/dist/parcelCSS.js +4 -1
- package/dist/plugins/ProgressPlugin.js +6 -2
- package/dist/plugins/RuntimePublicPathPlugin.js +9 -6
- package/dist/plugins/_SamplePlugin.d.ts +1 -1
- package/dist/plugins/_SamplePlugin.js +1 -1
- package/dist/requireHook.js +4 -1
- package/dist/schema.js +62 -23
- package/dist/server/server.d.ts +1 -4
- package/dist/server/server.js +37 -23
- package/dist/server/ws.js +8 -3
- package/dist/swcPlugins/autoCSSModules.d.ts +5 -1
- package/dist/swcPlugins/autoCSSModules.js +4 -1
- package/dist/swcPlugins/lockCoreJS.js +8 -2
- package/dist/types.d.ts +15 -3
- package/dist/utils/formatWebpackMessages.js +31 -9
- package/dist/utils/getEsBuildTarget.js +7 -1
- package/package.json +30 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"sass-loader","author":"J. Tangelder","license":"MIT"}
|
|
1
|
+
{"name":"sass-loader","version":"13.2.0","author":"J. Tangelder","license":"MIT"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { SourceMapInput } from '../../../@jridgewell/trace-mapping';
|
|
2
|
+
import type { DecodedSourceMap, EncodedSourceMap, Pos, Mapping } from './types';
|
|
3
|
+
export type { DecodedSourceMap, EncodedSourceMap, Mapping };
|
|
4
|
+
export declare type Options = {
|
|
5
|
+
file?: string | null;
|
|
6
|
+
sourceRoot?: string | null;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* A low-level API to associate a generated position with an original source position. Line and
|
|
10
|
+
* column here are 0-based, unlike `addMapping`.
|
|
11
|
+
*/
|
|
12
|
+
export declare let addSegment: {
|
|
13
|
+
(map: GenMapping, genLine: number, genColumn: number, source?: null, sourceLine?: null, sourceColumn?: null, name?: null, content?: null): void;
|
|
14
|
+
(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name?: null, content?: string | null): void;
|
|
15
|
+
(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name: string, content?: string | null): void;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* A high-level API to associate a generated position with an original source position. Line is
|
|
19
|
+
* 1-based, but column is 0-based, due to legacy behavior in `source-map` library.
|
|
20
|
+
*/
|
|
21
|
+
export declare let addMapping: {
|
|
22
|
+
(map: GenMapping, mapping: {
|
|
23
|
+
generated: Pos;
|
|
24
|
+
source?: null;
|
|
25
|
+
original?: null;
|
|
26
|
+
name?: null;
|
|
27
|
+
content?: null;
|
|
28
|
+
}): void;
|
|
29
|
+
(map: GenMapping, mapping: {
|
|
30
|
+
generated: Pos;
|
|
31
|
+
source: string;
|
|
32
|
+
original: Pos;
|
|
33
|
+
name?: null;
|
|
34
|
+
content?: string | null;
|
|
35
|
+
}): void;
|
|
36
|
+
(map: GenMapping, mapping: {
|
|
37
|
+
generated: Pos;
|
|
38
|
+
source: string;
|
|
39
|
+
original: Pos;
|
|
40
|
+
name: string;
|
|
41
|
+
content?: string | null;
|
|
42
|
+
}): void;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Same as `addSegment`, but will only add the segment if it generates useful information in the
|
|
46
|
+
* resulting map. This only works correctly if segments are added **in order**, meaning you should
|
|
47
|
+
* not add a segment with a lower generated line/column than one that came before.
|
|
48
|
+
*/
|
|
49
|
+
export declare let maybeAddSegment: typeof addSegment;
|
|
50
|
+
/**
|
|
51
|
+
* Same as `addMapping`, but will only add the mapping if it generates useful information in the
|
|
52
|
+
* resulting map. This only works correctly if mappings are added **in order**, meaning you should
|
|
53
|
+
* not add a mapping with a lower generated line/column than one that came before.
|
|
54
|
+
*/
|
|
55
|
+
export declare let maybeAddMapping: typeof addMapping;
|
|
56
|
+
/**
|
|
57
|
+
* Adds/removes the content of the source file to the source map.
|
|
58
|
+
*/
|
|
59
|
+
export declare let setSourceContent: (map: GenMapping, source: string, content: string | null) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
|
|
62
|
+
* a sourcemap, or to JSON.stringify.
|
|
63
|
+
*/
|
|
64
|
+
export declare let toDecodedMap: (map: GenMapping) => DecodedSourceMap;
|
|
65
|
+
/**
|
|
66
|
+
* Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
|
|
67
|
+
* a sourcemap, or to JSON.stringify.
|
|
68
|
+
*/
|
|
69
|
+
export declare let toEncodedMap: (map: GenMapping) => EncodedSourceMap;
|
|
70
|
+
/**
|
|
71
|
+
* Constructs a new GenMapping, using the already present mappings of the input.
|
|
72
|
+
*/
|
|
73
|
+
export declare let fromMap: (input: SourceMapInput) => GenMapping;
|
|
74
|
+
/**
|
|
75
|
+
* Returns an array of high-level mapping objects for every recorded segment, which could then be
|
|
76
|
+
* passed to the `source-map` library.
|
|
77
|
+
*/
|
|
78
|
+
export declare let allMappings: (map: GenMapping) => Mapping[];
|
|
79
|
+
/**
|
|
80
|
+
* Provides the state to generate a sourcemap.
|
|
81
|
+
*/
|
|
82
|
+
export declare class GenMapping {
|
|
83
|
+
private _names;
|
|
84
|
+
private _sources;
|
|
85
|
+
private _sourcesContent;
|
|
86
|
+
private _mappings;
|
|
87
|
+
file: string | null | undefined;
|
|
88
|
+
sourceRoot: string | null | undefined;
|
|
89
|
+
constructor({ file, sourceRoot }?: Options);
|
|
90
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare type GeneratedColumn = number;
|
|
2
|
+
declare type SourcesIndex = number;
|
|
3
|
+
declare type SourceLine = number;
|
|
4
|
+
declare type SourceColumn = number;
|
|
5
|
+
declare type NamesIndex = number;
|
|
6
|
+
export declare type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
|
|
7
|
+
export declare const COLUMN = 0;
|
|
8
|
+
export declare const SOURCES_INDEX = 1;
|
|
9
|
+
export declare const SOURCE_LINE = 2;
|
|
10
|
+
export declare const SOURCE_COLUMN = 3;
|
|
11
|
+
export declare const NAMES_INDEX = 4;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { SourceMapSegment } from './sourcemap-segment';
|
|
2
|
+
export interface SourceMapV3 {
|
|
3
|
+
file?: string | null;
|
|
4
|
+
names: readonly string[];
|
|
5
|
+
sourceRoot?: string;
|
|
6
|
+
sources: readonly (string | null)[];
|
|
7
|
+
sourcesContent?: readonly (string | null)[];
|
|
8
|
+
version: 3;
|
|
9
|
+
}
|
|
10
|
+
export interface EncodedSourceMap extends SourceMapV3 {
|
|
11
|
+
mappings: string;
|
|
12
|
+
}
|
|
13
|
+
export interface DecodedSourceMap extends SourceMapV3 {
|
|
14
|
+
mappings: readonly SourceMapSegment[][];
|
|
15
|
+
}
|
|
16
|
+
export interface Pos {
|
|
17
|
+
line: number;
|
|
18
|
+
column: number;
|
|
19
|
+
}
|
|
20
|
+
export declare type Mapping = {
|
|
21
|
+
generated: Pos;
|
|
22
|
+
source: undefined;
|
|
23
|
+
original: undefined;
|
|
24
|
+
name: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
generated: Pos;
|
|
27
|
+
source: string;
|
|
28
|
+
original: Pos;
|
|
29
|
+
name: string;
|
|
30
|
+
} | {
|
|
31
|
+
generated: Pos;
|
|
32
|
+
source: string;
|
|
33
|
+
original: Pos;
|
|
34
|
+
name: undefined;
|
|
35
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AnyMap, originalPositionFor } from '../../../@jridgewell/trace-mapping';
|
|
2
|
+
import { GenMapping, maybeAddMapping, toDecodedMap, toEncodedMap, setSourceContent } from '../../../@jridgewell/gen-mapping';
|
|
3
|
+
import type { TraceMap, SectionedSourceMapInput } from '../../../@jridgewell/trace-mapping';
|
|
4
|
+
export type { TraceMap, SectionedSourceMapInput };
|
|
5
|
+
import type { Mapping, EncodedSourceMap, DecodedSourceMap } from '../../../@jridgewell/gen-mapping';
|
|
6
|
+
export type { Mapping, EncodedSourceMap, DecodedSourceMap };
|
|
7
|
+
export declare class SourceMapConsumer {
|
|
8
|
+
private _map;
|
|
9
|
+
file: TraceMap['file'];
|
|
10
|
+
names: TraceMap['names'];
|
|
11
|
+
sourceRoot: TraceMap['sourceRoot'];
|
|
12
|
+
sources: TraceMap['sources'];
|
|
13
|
+
sourcesContent: TraceMap['sourcesContent'];
|
|
14
|
+
constructor(map: ConstructorParameters<typeof AnyMap>[0], mapUrl: Parameters<typeof AnyMap>[1]);
|
|
15
|
+
originalPositionFor(needle: Parameters<typeof originalPositionFor>[1]): ReturnType<typeof originalPositionFor>;
|
|
16
|
+
destroy(): void;
|
|
17
|
+
}
|
|
18
|
+
export declare class SourceMapGenerator {
|
|
19
|
+
private _map;
|
|
20
|
+
constructor(opts: ConstructorParameters<typeof GenMapping>[0]);
|
|
21
|
+
addMapping(mapping: Parameters<typeof maybeAddMapping>[1]): ReturnType<typeof maybeAddMapping>;
|
|
22
|
+
setSourceContent(source: Parameters<typeof setSourceContent>[1], content: Parameters<typeof setSourceContent>[2]): ReturnType<typeof setSourceContent>;
|
|
23
|
+
toJSON(): ReturnType<typeof toEncodedMap>;
|
|
24
|
+
toDecodedMap(): ReturnType<typeof toDecodedMap>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare type GeneratedColumn = number;
|
|
2
|
+
declare type SourcesIndex = number;
|
|
3
|
+
declare type SourceLine = number;
|
|
4
|
+
declare type SourceColumn = number;
|
|
5
|
+
declare type NamesIndex = number;
|
|
6
|
+
declare type GeneratedLine = number;
|
|
7
|
+
export declare type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
|
|
8
|
+
export declare type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn];
|
|
9
|
+
export declare const COLUMN = 0;
|
|
10
|
+
export declare const SOURCES_INDEX = 1;
|
|
11
|
+
export declare const SOURCE_LINE = 2;
|
|
12
|
+
export declare const SOURCE_COLUMN = 3;
|
|
13
|
+
export declare const NAMES_INDEX = 4;
|
|
14
|
+
export declare const REV_GENERATED_LINE = 1;
|
|
15
|
+
export declare const REV_GENERATED_COLUMN = 2;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { SourceMapSegment } from './sourcemap-segment';
|
|
2
|
+
import type { SourceMapV3, DecodedSourceMap, EncodedSourceMap, InvalidOriginalMapping, OriginalMapping, InvalidGeneratedMapping, GeneratedMapping, SourceMapInput, Needle, SourceNeedle, SourceMap, EachMapping } from './types';
|
|
3
|
+
export type { SourceMapSegment } from './sourcemap-segment';
|
|
4
|
+
export type { SourceMapInput, SectionedSourceMapInput, DecodedSourceMap, EncodedSourceMap, SectionedSourceMap, InvalidOriginalMapping, OriginalMapping as Mapping, OriginalMapping, InvalidGeneratedMapping, GeneratedMapping, EachMapping, } from './types';
|
|
5
|
+
export declare const LEAST_UPPER_BOUND = -1;
|
|
6
|
+
export declare const GREATEST_LOWER_BOUND = 1;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the encoded (VLQ string) form of the SourceMap's mappings field.
|
|
9
|
+
*/
|
|
10
|
+
export declare let encodedMappings: (map: TraceMap) => EncodedSourceMap['mappings'];
|
|
11
|
+
/**
|
|
12
|
+
* Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.
|
|
13
|
+
*/
|
|
14
|
+
export declare let decodedMappings: (map: TraceMap) => Readonly<DecodedSourceMap['mappings']>;
|
|
15
|
+
/**
|
|
16
|
+
* A low-level API to find the segment associated with a generated line/column (think, from a
|
|
17
|
+
* stack trace). Line and column here are 0-based, unlike `originalPositionFor`.
|
|
18
|
+
*/
|
|
19
|
+
export declare let traceSegment: (map: TraceMap, line: number, column: number) => Readonly<SourceMapSegment> | null;
|
|
20
|
+
/**
|
|
21
|
+
* A higher-level API to find the source/line/column associated with a generated line/column
|
|
22
|
+
* (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in
|
|
23
|
+
* `source-map` library.
|
|
24
|
+
*/
|
|
25
|
+
export declare let originalPositionFor: (map: TraceMap, needle: Needle) => OriginalMapping | InvalidOriginalMapping;
|
|
26
|
+
/**
|
|
27
|
+
* Finds the generated line/column position of the provided source/line/column source position.
|
|
28
|
+
*/
|
|
29
|
+
export declare let generatedPositionFor: (map: TraceMap, needle: SourceNeedle) => GeneratedMapping | InvalidGeneratedMapping;
|
|
30
|
+
/**
|
|
31
|
+
* Finds all generated line/column positions of the provided source/line/column source position.
|
|
32
|
+
*/
|
|
33
|
+
export declare let allGeneratedPositionsFor: (map: TraceMap, needle: SourceNeedle) => GeneratedMapping[];
|
|
34
|
+
/**
|
|
35
|
+
* Iterates each mapping in generated position order.
|
|
36
|
+
*/
|
|
37
|
+
export declare let eachMapping: (map: TraceMap, cb: (mapping: EachMapping) => void) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves the source content for a particular source, if its found. Returns null if not.
|
|
40
|
+
*/
|
|
41
|
+
export declare let sourceContentFor: (map: TraceMap, source: string) => string | null;
|
|
42
|
+
/**
|
|
43
|
+
* A helper that skips sorting of the input map's mappings array, which can be expensive for larger
|
|
44
|
+
* maps.
|
|
45
|
+
*/
|
|
46
|
+
export declare let presortedDecodedMap: (map: DecodedSourceMap, mapUrl?: string) => TraceMap;
|
|
47
|
+
/**
|
|
48
|
+
* Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
|
|
49
|
+
* a sourcemap, or to JSON.stringify.
|
|
50
|
+
*/
|
|
51
|
+
export declare let decodedMap: (map: TraceMap) => Omit<DecodedSourceMap, 'mappings'> & {
|
|
52
|
+
mappings: readonly SourceMapSegment[][];
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
|
|
56
|
+
* a sourcemap, or to JSON.stringify.
|
|
57
|
+
*/
|
|
58
|
+
export declare let encodedMap: (map: TraceMap) => EncodedSourceMap;
|
|
59
|
+
export { AnyMap } from './any-map';
|
|
60
|
+
export declare class TraceMap implements SourceMap {
|
|
61
|
+
version: SourceMapV3['version'];
|
|
62
|
+
file: SourceMapV3['file'];
|
|
63
|
+
names: SourceMapV3['names'];
|
|
64
|
+
sourceRoot: SourceMapV3['sourceRoot'];
|
|
65
|
+
sources: SourceMapV3['sources'];
|
|
66
|
+
sourcesContent: SourceMapV3['sourcesContent'];
|
|
67
|
+
resolvedSources: string[];
|
|
68
|
+
private _encoded;
|
|
69
|
+
private _decoded;
|
|
70
|
+
private _decodedMemo;
|
|
71
|
+
private _bySources;
|
|
72
|
+
private _bySourceMemos;
|
|
73
|
+
constructor(map: SourceMapInput, mapUrl?: string | null);
|
|
74
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { SourceMapSegment } from './sourcemap-segment';
|
|
2
|
+
import type { GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND, TraceMap } from './trace-mapping';
|
|
3
|
+
export interface SourceMapV3 {
|
|
4
|
+
file?: string | null;
|
|
5
|
+
names: string[];
|
|
6
|
+
sourceRoot?: string;
|
|
7
|
+
sources: (string | null)[];
|
|
8
|
+
sourcesContent?: (string | null)[];
|
|
9
|
+
version: 3;
|
|
10
|
+
}
|
|
11
|
+
export interface EncodedSourceMap extends SourceMapV3 {
|
|
12
|
+
mappings: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DecodedSourceMap extends SourceMapV3 {
|
|
15
|
+
mappings: SourceMapSegment[][];
|
|
16
|
+
}
|
|
17
|
+
export interface Section {
|
|
18
|
+
offset: {
|
|
19
|
+
line: number;
|
|
20
|
+
column: number;
|
|
21
|
+
};
|
|
22
|
+
map: EncodedSourceMap | DecodedSourceMap | SectionedSourceMap;
|
|
23
|
+
}
|
|
24
|
+
export interface SectionedSourceMap {
|
|
25
|
+
file?: string | null;
|
|
26
|
+
sections: Section[];
|
|
27
|
+
version: 3;
|
|
28
|
+
}
|
|
29
|
+
export declare type OriginalMapping = {
|
|
30
|
+
source: string | null;
|
|
31
|
+
line: number;
|
|
32
|
+
column: number;
|
|
33
|
+
name: string | null;
|
|
34
|
+
};
|
|
35
|
+
export declare type InvalidOriginalMapping = {
|
|
36
|
+
source: null;
|
|
37
|
+
line: null;
|
|
38
|
+
column: null;
|
|
39
|
+
name: null;
|
|
40
|
+
};
|
|
41
|
+
export declare type GeneratedMapping = {
|
|
42
|
+
line: number;
|
|
43
|
+
column: number;
|
|
44
|
+
};
|
|
45
|
+
export declare type InvalidGeneratedMapping = {
|
|
46
|
+
line: null;
|
|
47
|
+
column: null;
|
|
48
|
+
};
|
|
49
|
+
export declare type Bias = typeof GREATEST_LOWER_BOUND | typeof LEAST_UPPER_BOUND;
|
|
50
|
+
export declare type SourceMapInput = string | Ro<EncodedSourceMap> | Ro<DecodedSourceMap> | TraceMap;
|
|
51
|
+
export declare type SectionedSourceMapInput = SourceMapInput | Ro<SectionedSourceMap>;
|
|
52
|
+
export declare type Needle = {
|
|
53
|
+
line: number;
|
|
54
|
+
column: number;
|
|
55
|
+
bias?: Bias;
|
|
56
|
+
};
|
|
57
|
+
export declare type SourceNeedle = {
|
|
58
|
+
source: string;
|
|
59
|
+
line: number;
|
|
60
|
+
column: number;
|
|
61
|
+
bias?: Bias;
|
|
62
|
+
};
|
|
63
|
+
export declare type EachMapping = {
|
|
64
|
+
generatedLine: number;
|
|
65
|
+
generatedColumn: number;
|
|
66
|
+
source: null;
|
|
67
|
+
originalLine: null;
|
|
68
|
+
originalColumn: null;
|
|
69
|
+
name: null;
|
|
70
|
+
} | {
|
|
71
|
+
generatedLine: number;
|
|
72
|
+
generatedColumn: number;
|
|
73
|
+
source: string | null;
|
|
74
|
+
originalLine: number;
|
|
75
|
+
originalColumn: number;
|
|
76
|
+
name: string | null;
|
|
77
|
+
};
|
|
78
|
+
export declare abstract class SourceMap {
|
|
79
|
+
version: SourceMapV3['version'];
|
|
80
|
+
file: SourceMapV3['file'];
|
|
81
|
+
names: SourceMapV3['names'];
|
|
82
|
+
sourceRoot: SourceMapV3['sourceRoot'];
|
|
83
|
+
sources: SourceMapV3['sources'];
|
|
84
|
+
sourcesContent: SourceMapV3['sourcesContent'];
|
|
85
|
+
resolvedSources: SourceMapV3['sources'];
|
|
86
|
+
}
|
|
87
|
+
export declare type Ro<T> = T extends Array<infer V> ? V[] | Readonly<V[]> | RoArray<V> | Readonly<RoArray<V>> : T extends object ? T | Readonly<T> | RoObject<T> | Readonly<RoObject<T>> : T;
|
|
88
|
+
declare type RoArray<T> = Ro<T>[];
|
|
89
|
+
declare type RoObject<T> = {
|
|
90
|
+
[K in keyof T]: T[K] | Ro<T[K]>;
|
|
91
|
+
};
|
|
92
|
+
export {};
|