1 | /**
|
2 | * This file was automatically generated.
|
3 | * DO NOT MODIFY BY HAND.
|
4 | * Run `yarn special-lint-fix` to update
|
5 | */
|
6 |
|
7 | /**
|
8 | * This interface was referenced by `SourceMapDevToolPluginOptions`'s JSON-Schema
|
9 | * via the `definition` "rules".
|
10 | */
|
11 | export type Rules = Rule[] | Rule;
|
12 | /**
|
13 | * This interface was referenced by `SourceMapDevToolPluginOptions`'s JSON-Schema
|
14 | * via the `definition` "rule".
|
15 | */
|
16 | export type Rule = RegExp | string;
|
17 |
|
18 | export interface SourceMapDevToolPluginOptions {
|
19 | /**
|
20 | * Appends the given value to the original asset. Usually the #sourceMappingURL comment. [url] is replaced with a URL to the source map file. false disables the appending
|
21 | */
|
22 | append?: (false | null) | string;
|
23 | /**
|
24 | * Indicates whether column mappings should be used (defaults to true)
|
25 | */
|
26 | columns?: boolean;
|
27 | /**
|
28 | * Exclude modules that match the given value from source map generation
|
29 | */
|
30 | exclude?: Rules;
|
31 | /**
|
32 | * Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap used only if 'moduleFilenameTemplate' would result in a conflict
|
33 | */
|
34 | fallbackModuleFilenameTemplate?: Function | string;
|
35 | /**
|
36 | * Path prefix to which the [file] placeholder is relative to
|
37 | */
|
38 | fileContext?: string;
|
39 | /**
|
40 | * Defines the output filename of the SourceMap (will be inlined if no value is provided)
|
41 | */
|
42 | filename?: (false | null) | string;
|
43 | /**
|
44 | * Include source maps for module paths that match the given value
|
45 | */
|
46 | include?: Rules;
|
47 | /**
|
48 | * (deprecated) try to map original files line to line to generated files
|
49 | */
|
50 | lineToLine?:
|
51 | | boolean
|
52 | | {
|
53 | /**
|
54 | * Exclude modules that match the given value from source map generation
|
55 | */
|
56 | exclude?: Rules;
|
57 | /**
|
58 | * Include source maps for module paths that match the given value
|
59 | */
|
60 | include?: Rules;
|
61 | /**
|
62 | * Include source maps for modules based on their extension (defaults to .js and .css)
|
63 | */
|
64 | test?: Rules;
|
65 | };
|
66 | /**
|
67 | * Indicates whether SourceMaps from loaders should be used (defaults to true)
|
68 | */
|
69 | module?: boolean;
|
70 | /**
|
71 | * Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap
|
72 | */
|
73 | moduleFilenameTemplate?: Function | string;
|
74 | /**
|
75 | * Namespace prefix to allow multiple webpack roots in the devtools
|
76 | */
|
77 | namespace?: string;
|
78 | /**
|
79 | * Omit the 'sourceContents' array from the SourceMap
|
80 | */
|
81 | noSources?: boolean;
|
82 | /**
|
83 | * Provide a custom public path for the SourceMapping comment
|
84 | */
|
85 | publicPath?: string;
|
86 | /**
|
87 | * Provide a custom value for the 'sourceRoot' property in the SourceMap
|
88 | */
|
89 | sourceRoot?: string;
|
90 | /**
|
91 | * Include source maps for modules based on their extension (defaults to .js and .css)
|
92 | */
|
93 | test?: Rules;
|
94 | }
|