|
62 | 62 | "description": "Defines the output filename of the SourceMap (will be inlined if no value is provided)", |
63 | 63 | "oneOf": [ |
64 | 64 | { |
65 | | - "description": "null is not documented, but appears in the codebase", |
| 65 | + "description": "Disable separate SourceMap file and inline SourceMap as DataUrl", |
66 | 66 | "enum": [ |
| 67 | + false, |
67 | 68 | null |
68 | 69 | ] |
69 | 70 | }, |
70 | 71 | { |
| 72 | + "type": "string", |
71 | 73 | "minLength": 1, |
72 | | - "type": "string" |
| 74 | + "absolutePath": false |
73 | 75 | } |
74 | 76 | ] |
75 | 77 | }, |
76 | 78 | "append": { |
77 | 79 | "description": "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", |
78 | 80 | "oneOf": [ |
79 | 81 | { |
80 | | - "description": "null is not documented, but appears in the codebase", |
| 82 | + "description": "Append no SourceMap comment to the bundle, but still generate SourceMaps", |
81 | 83 | "enum": [ |
82 | 84 | false, |
83 | 85 | null |
|
90 | 92 | ] |
91 | 93 | }, |
92 | 94 | "moduleFilenameTemplate": { |
93 | | - "description": "See https://webpack.js.org/configuration/output/#output-devtoolmodulefilenametemplate", |
| 95 | + "description": "Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap", |
94 | 96 | "oneOf": [ |
95 | 97 | { |
96 | | - "description": "fn type undocumented (kinda) but appears in the codebase", |
| 98 | + "description": "Custom function generating the identifer", |
97 | 99 | "instanceof": "Function" |
98 | 100 | }, |
99 | 101 | { |
|
103 | 105 | ] |
104 | 106 | }, |
105 | 107 | "fallbackModuleFilenameTemplate": { |
106 | | - "description": "See https://webpack.js.org/configuration/output/#output-devtoolmodulefilenametemplate", |
| 108 | + "description": "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", |
107 | 109 | "oneOf": [ |
108 | 110 | { |
109 | | - "description": "fn type undocumented (kinda) but appears in the codebase", |
| 111 | + "description": "Custom function generating the identifer", |
110 | 112 | "instanceof": "Function" |
111 | 113 | }, |
112 | 114 | { |
|
116 | 118 | ] |
117 | 119 | }, |
118 | 120 | "module": { |
119 | | - "description": "Indicates whether loaders should generate source maps (defaults to true)", |
| 121 | + "description": "Indicates whether SourceMaps from loaders should be used (defaults to true)", |
120 | 122 | "type": "boolean" |
121 | 123 | }, |
122 | 124 | "columns": { |
123 | 125 | "description": "Indicates whether column mappings should be used (defaults to true)", |
124 | 126 | "type": "boolean" |
125 | 127 | }, |
126 | | - "type": { |
127 | | - "description": "Simplify and speed up source mapping by using line to line source mappings for matched modules", |
128 | | - "type": "object", |
129 | | - "additionalProperties": false, |
130 | | - "properties": { |
131 | | - "test": { |
132 | | - "description": "Include source maps for modules based on their extension (defaults to .js and .css)", |
133 | | - "anyOf": [ |
134 | | - { |
135 | | - "$ref": "#/definitions/rules" |
136 | | - } |
137 | | - ] |
138 | | - }, |
139 | | - "include": { |
140 | | - "description": "Include source maps for module paths that match the given value", |
141 | | - "anyOf": [ |
142 | | - { |
143 | | - "$ref": "#/definitions/rules" |
144 | | - } |
145 | | - ] |
146 | | - }, |
147 | | - "exclude": { |
148 | | - "description": "Exclude modules that match the given value from source map generation", |
149 | | - "anyOf": [ |
150 | | - { |
151 | | - "$ref": "#/definitions/rules" |
152 | | - } |
153 | | - ] |
154 | | - } |
155 | | - } |
156 | | - }, |
157 | 128 | "noSources": { |
158 | | - "description": "UNDOCUMENTED", |
| 129 | + "description": "Omit the 'sourceContents' array from the SourceMap", |
159 | 130 | "type": "boolean" |
160 | 131 | }, |
161 | | - "lineToLine": { |
162 | | - "description": "UNDOCUMENTED", |
163 | | - "type": "boolean" |
| 132 | + "sourceRoot": { |
| 133 | + "description": "Provide a custom value for the 'sourceRoot' property in the SourceMap", |
| 134 | + "type": "string" |
164 | 135 | }, |
165 | | - "cheap": { |
166 | | - "description": "UNDOCUMENTED", |
167 | | - "type": "boolean" |
| 136 | + "lineToLine": { |
| 137 | + "description": "(deprecated) try to map original files line to line to generated files", |
| 138 | + "anyOf": [ |
| 139 | + { |
| 140 | + "type": "boolean" |
| 141 | + }, |
| 142 | + { |
| 143 | + "description": "Simplify and speed up source mapping by using line to line source mappings for matched modules", |
| 144 | + "type": "object", |
| 145 | + "additionalProperties": false, |
| 146 | + "properties": { |
| 147 | + "test": { |
| 148 | + "description": "Include source maps for modules based on their extension (defaults to .js and .css)", |
| 149 | + "anyOf": [ |
| 150 | + { |
| 151 | + "$ref": "#/definitions/rules" |
| 152 | + } |
| 153 | + ] |
| 154 | + }, |
| 155 | + "include": { |
| 156 | + "description": "Include source maps for module paths that match the given value", |
| 157 | + "anyOf": [ |
| 158 | + { |
| 159 | + "$ref": "#/definitions/rules" |
| 160 | + } |
| 161 | + ] |
| 162 | + }, |
| 163 | + "exclude": { |
| 164 | + "description": "Exclude modules that match the given value from source map generation", |
| 165 | + "anyOf": [ |
| 166 | + { |
| 167 | + "$ref": "#/definitions/rules" |
| 168 | + } |
| 169 | + ] |
| 170 | + } |
| 171 | + } |
| 172 | + } |
| 173 | + ] |
168 | 174 | } |
169 | 175 | } |
170 | 176 | } |
0 commit comments