@rspack/core 0.0.26 → 0.1.0
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/README.md +1 -1
- package/dist/config/adapter.d.ts.map +1 -1
- package/dist/config/adapter.js +20 -2
- package/dist/config/adapter.js.map +1 -1
- package/dist/config/builtins.d.ts.map +1 -1
- package/dist/config/builtins.js +3 -6
- package/dist/config/builtins.js.map +1 -1
- package/dist/config/schema.check.d.ts +4 -4
- package/dist/config/schema.check.d.ts.map +1 -1
- package/dist/config/schema.check.js +2627 -2696
- package/dist/config/schema.check.js.map +1 -1
- package/dist/config/schema.d.ts +2039 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +1686 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/types.d.ts +1 -1
- package/dist/config/types.d.ts.map +1 -1
- package/dist/error/InvalidateConfiguration.d.ts +4 -0
- package/dist/error/InvalidateConfiguration.d.ts.map +1 -0
- package/dist/error/InvalidateConfiguration.js +10 -0
- package/dist/error/InvalidateConfiguration.js.map +1 -0
- package/dist/rspack.d.ts.map +1 -1
- package/dist/rspack.js +5 -3
- package/dist/rspack.js.map +1 -1
- package/dist/watching.d.ts.map +1 -1
- package/dist/watching.js +0 -4
- package/dist/watching.js.map +1 -1
- package/package.json +8 -9
|
@@ -0,0 +1,1686 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = {
|
|
3
|
+
definitions: {
|
|
4
|
+
AssetModuleFilename: {
|
|
5
|
+
description: "The filename of asset modules as relative path inside the 'output.path' directory.",
|
|
6
|
+
anyOf: [
|
|
7
|
+
{
|
|
8
|
+
type: "string"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
AssetParserDataUrlOptions: {
|
|
13
|
+
description: "Options object for DataUrl condition.",
|
|
14
|
+
type: "object",
|
|
15
|
+
additionalProperties: false,
|
|
16
|
+
properties: {
|
|
17
|
+
maxSize: {
|
|
18
|
+
description: "Maximum size of asset that should be inline as modules. Default: 8kb.",
|
|
19
|
+
type: "number"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
AssetParserOptions: {
|
|
24
|
+
description: "Parser options for asset modules.",
|
|
25
|
+
type: "object",
|
|
26
|
+
additionalProperties: false,
|
|
27
|
+
properties: {
|
|
28
|
+
dataUrlCondition: {
|
|
29
|
+
description: "The condition for inlining the asset as DataUrl.",
|
|
30
|
+
anyOf: [
|
|
31
|
+
{
|
|
32
|
+
$ref: "#/definitions/AssetParserDataUrlOptions"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
AuxiliaryComment: {
|
|
39
|
+
description: "Add a comment in the UMD wrapper.",
|
|
40
|
+
anyOf: [
|
|
41
|
+
{
|
|
42
|
+
description: "Append the same comment above each import style.",
|
|
43
|
+
type: "string"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
$ref: "#/definitions/LibraryCustomUmdCommentObject"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
CacheOptions: {
|
|
51
|
+
description: "Cache generated modules and chunks to improve performance for multiple incremental builds.",
|
|
52
|
+
type: "boolean"
|
|
53
|
+
},
|
|
54
|
+
ChunkFilename: {
|
|
55
|
+
description: "Specifies the filename template of output files of non-initial chunks on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
|
|
56
|
+
oneOf: [
|
|
57
|
+
{
|
|
58
|
+
$ref: "#/definitions/FilenameTemplate"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
Context: {
|
|
63
|
+
description: "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.",
|
|
64
|
+
type: "string"
|
|
65
|
+
},
|
|
66
|
+
CssChunkFilename: {
|
|
67
|
+
description: "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
|
|
68
|
+
oneOf: [
|
|
69
|
+
{
|
|
70
|
+
$ref: "#/definitions/FilenameTemplate"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
CssFilename: {
|
|
75
|
+
description: "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
|
|
76
|
+
oneOf: [
|
|
77
|
+
{
|
|
78
|
+
$ref: "#/definitions/FilenameTemplate"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
Dependencies: {
|
|
83
|
+
description: "References to other configurations to depend on.",
|
|
84
|
+
type: "array",
|
|
85
|
+
items: {
|
|
86
|
+
description: "References to another configuration to depend on.",
|
|
87
|
+
type: "string"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
DevServer: {
|
|
91
|
+
description: "Options for the rspack-dev-server.",
|
|
92
|
+
type: "object"
|
|
93
|
+
},
|
|
94
|
+
DevTool: {
|
|
95
|
+
description: "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).",
|
|
96
|
+
anyOf: [
|
|
97
|
+
{
|
|
98
|
+
enum: [false]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
type: "string",
|
|
102
|
+
pattern: "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
EnabledLibraryTypes: {
|
|
107
|
+
description: "List of library types enabled for use by entry points.",
|
|
108
|
+
type: "array",
|
|
109
|
+
items: {
|
|
110
|
+
$ref: "#/definitions/LibraryType"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
Entry: {
|
|
114
|
+
description: "The entry point(s) of the compilation.",
|
|
115
|
+
anyOf: [
|
|
116
|
+
{
|
|
117
|
+
$ref: "#/definitions/EntryStatic"
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
EntryDescription: {
|
|
122
|
+
description: "An object with entry point description.",
|
|
123
|
+
type: "object",
|
|
124
|
+
// TODO: change to false once all properties is aligned with webpack
|
|
125
|
+
additionalProperties: true,
|
|
126
|
+
properties: {
|
|
127
|
+
import: {
|
|
128
|
+
$ref: "#/definitions/EntryItem"
|
|
129
|
+
},
|
|
130
|
+
runtime: {
|
|
131
|
+
$ref: "#/definitions/EntryRuntime"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
required: ["import"]
|
|
135
|
+
},
|
|
136
|
+
EntryFilename: {
|
|
137
|
+
description: "Specifies the filename of the output file on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
|
|
138
|
+
oneOf: [
|
|
139
|
+
{
|
|
140
|
+
$ref: "#/definitions/FilenameTemplate"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
EntryItem: {
|
|
145
|
+
description: "Module(s) that are loaded upon startup.",
|
|
146
|
+
anyOf: [
|
|
147
|
+
{
|
|
148
|
+
description: "All modules are loaded upon startup. The last one is exported.",
|
|
149
|
+
type: "array",
|
|
150
|
+
items: {
|
|
151
|
+
description: "A module that is loaded upon startup. Only the last one is exported.",
|
|
152
|
+
type: "string",
|
|
153
|
+
minLength: 1
|
|
154
|
+
},
|
|
155
|
+
minItems: 1,
|
|
156
|
+
uniqueItems: true
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
description: "The string is resolved to a module which is loaded upon startup.",
|
|
160
|
+
type: "string",
|
|
161
|
+
minLength: 1
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
EntryObject: {
|
|
166
|
+
description: "Multiple entry bundles are created. The key is the entry name. The value can be a string, an array or an entry description object.",
|
|
167
|
+
type: "object",
|
|
168
|
+
additionalProperties: {
|
|
169
|
+
description: "An entry point with name.",
|
|
170
|
+
anyOf: [
|
|
171
|
+
{
|
|
172
|
+
$ref: "#/definitions/EntryItem"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
$ref: "#/definitions/EntryDescription"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
EntryRuntime: {
|
|
181
|
+
description: "The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.",
|
|
182
|
+
anyOf: [
|
|
183
|
+
{
|
|
184
|
+
enum: [false]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
type: "string",
|
|
188
|
+
minLength: 1
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
EntryStatic: {
|
|
193
|
+
description: "A static entry description.",
|
|
194
|
+
anyOf: [
|
|
195
|
+
{
|
|
196
|
+
$ref: "#/definitions/EntryObject"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
$ref: "#/definitions/EntryUnnamed"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
EntryUnnamed: {
|
|
204
|
+
description: "An entry point without name.",
|
|
205
|
+
oneOf: [
|
|
206
|
+
{
|
|
207
|
+
$ref: "#/definitions/EntryItem"
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
Experiments: {
|
|
212
|
+
description: "Enables/Disables experiments (experimental features with relax SemVer compatibility).",
|
|
213
|
+
type: "object",
|
|
214
|
+
additionalProperties: false,
|
|
215
|
+
properties: {
|
|
216
|
+
incrementalRebuild: {
|
|
217
|
+
description: "Rebuild incrementally",
|
|
218
|
+
type: "boolean"
|
|
219
|
+
},
|
|
220
|
+
lazyCompilation: {
|
|
221
|
+
description: "Compile entrypoints and import()s only when they are accessed.",
|
|
222
|
+
anyOf: [
|
|
223
|
+
{
|
|
224
|
+
type: "boolean"
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
ExternalItem: {
|
|
231
|
+
description: "Specify dependency that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.",
|
|
232
|
+
anyOf: [
|
|
233
|
+
{
|
|
234
|
+
description: "An exact matched dependency becomes external. The same string is used as external dependency.",
|
|
235
|
+
type: "string"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
description: "If an dependency matches exactly a property of the object, the property value is used as dependency.",
|
|
239
|
+
type: "object",
|
|
240
|
+
additionalProperties: {
|
|
241
|
+
$ref: "#/definitions/ExternalItemValue"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
ExternalItemValue: {
|
|
247
|
+
description: "The dependency used for the external.",
|
|
248
|
+
anyOf: [
|
|
249
|
+
{
|
|
250
|
+
description: "The target of the external.",
|
|
251
|
+
type: "string"
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
Externals: {
|
|
256
|
+
description: "Specify dependencies that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.",
|
|
257
|
+
anyOf: [
|
|
258
|
+
{
|
|
259
|
+
$ref: "#/definitions/ExternalItem"
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
ExternalsType: {
|
|
264
|
+
description: "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).",
|
|
265
|
+
enum: [
|
|
266
|
+
"var",
|
|
267
|
+
"module",
|
|
268
|
+
"assign",
|
|
269
|
+
"this",
|
|
270
|
+
"window",
|
|
271
|
+
"self",
|
|
272
|
+
"global",
|
|
273
|
+
"commonjs",
|
|
274
|
+
"commonjs2",
|
|
275
|
+
"commonjs-module",
|
|
276
|
+
"commonjs-static",
|
|
277
|
+
"amd",
|
|
278
|
+
"amd-require",
|
|
279
|
+
"umd",
|
|
280
|
+
"umd2",
|
|
281
|
+
"jsonp",
|
|
282
|
+
"system",
|
|
283
|
+
"promise",
|
|
284
|
+
"import",
|
|
285
|
+
"script",
|
|
286
|
+
"node-commonjs"
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
Filename: {
|
|
290
|
+
description: "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
|
|
291
|
+
oneOf: [
|
|
292
|
+
{
|
|
293
|
+
$ref: "#/definitions/FilenameTemplate"
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
FilenameTemplate: {
|
|
298
|
+
description: "Specifies the filename template of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
|
|
299
|
+
anyOf: [
|
|
300
|
+
{
|
|
301
|
+
type: "string",
|
|
302
|
+
minLength: 1
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
instanceof: "Function"
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
FilterItemTypes: {
|
|
310
|
+
description: "Filtering value, regexp or function.",
|
|
311
|
+
anyOf: [
|
|
312
|
+
{
|
|
313
|
+
instanceof: "RegExp"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
type: "string"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
instanceof: "Function"
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
FilterTypes: {
|
|
324
|
+
description: "Filtering values.",
|
|
325
|
+
anyOf: [
|
|
326
|
+
{
|
|
327
|
+
type: "array",
|
|
328
|
+
items: {
|
|
329
|
+
description: "Rule to filter.",
|
|
330
|
+
oneOf: [
|
|
331
|
+
{
|
|
332
|
+
$ref: "#/definitions/FilterItemTypes"
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
$ref: "#/definitions/FilterItemTypes"
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
GlobalObject: {
|
|
343
|
+
description: "An expression which is used to address the global object/scope in runtime code.",
|
|
344
|
+
type: "string",
|
|
345
|
+
minLength: 1
|
|
346
|
+
},
|
|
347
|
+
ImportFunctionName: {
|
|
348
|
+
description: "The name of the native import() function (can be exchanged for a polyfill).",
|
|
349
|
+
type: "string"
|
|
350
|
+
},
|
|
351
|
+
InfrastructureLogging: {
|
|
352
|
+
description: "Options for infrastructure level logging.",
|
|
353
|
+
type: "object",
|
|
354
|
+
additionalProperties: false,
|
|
355
|
+
properties: {
|
|
356
|
+
appendOnly: {
|
|
357
|
+
description: "Only appends lines to the output. Avoids updating existing output e. g. for status messages. This option is only used when no custom console is provided.",
|
|
358
|
+
type: "boolean"
|
|
359
|
+
},
|
|
360
|
+
colors: {
|
|
361
|
+
description: "Enables/Disables colorful output. This option is only used when no custom console is provided.",
|
|
362
|
+
type: "boolean"
|
|
363
|
+
},
|
|
364
|
+
console: {
|
|
365
|
+
description: "Custom console used for logging."
|
|
366
|
+
},
|
|
367
|
+
debug: {
|
|
368
|
+
description: "Enable debug logging for specific loggers.",
|
|
369
|
+
anyOf: [
|
|
370
|
+
{
|
|
371
|
+
description: "Enable/Disable debug logging for all loggers.",
|
|
372
|
+
type: "boolean"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
$ref: "#/definitions/FilterTypes"
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
},
|
|
379
|
+
level: {
|
|
380
|
+
description: "Log level.",
|
|
381
|
+
enum: ["none", "error", "warn", "info", "log", "verbose"]
|
|
382
|
+
},
|
|
383
|
+
stream: {
|
|
384
|
+
description: "Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided."
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
Library: {
|
|
389
|
+
description: "Make the output files a library, exporting the exports of the entry point.",
|
|
390
|
+
anyOf: [
|
|
391
|
+
{
|
|
392
|
+
$ref: "#/definitions/LibraryName"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
$ref: "#/definitions/LibraryOptions"
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
LibraryCustomUmdCommentObject: {
|
|
400
|
+
description: "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.",
|
|
401
|
+
type: "object",
|
|
402
|
+
additionalProperties: false,
|
|
403
|
+
properties: {
|
|
404
|
+
amd: {
|
|
405
|
+
description: "Set comment for `amd` section in UMD.",
|
|
406
|
+
type: "string"
|
|
407
|
+
},
|
|
408
|
+
commonjs: {
|
|
409
|
+
description: "Set comment for `commonjs` (exports) section in UMD.",
|
|
410
|
+
type: "string"
|
|
411
|
+
},
|
|
412
|
+
commonjs2: {
|
|
413
|
+
description: "Set comment for `commonjs2` (module.exports) section in UMD.",
|
|
414
|
+
type: "string"
|
|
415
|
+
},
|
|
416
|
+
root: {
|
|
417
|
+
description: "Set comment for `root` (global variable) section in UMD.",
|
|
418
|
+
type: "string"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
LibraryCustomUmdObject: {
|
|
423
|
+
description: "Description object for all UMD variants of the library name.",
|
|
424
|
+
type: "object",
|
|
425
|
+
additionalProperties: false,
|
|
426
|
+
properties: {
|
|
427
|
+
amd: {
|
|
428
|
+
description: "Name of the exposed AMD library in the UMD.",
|
|
429
|
+
type: "string",
|
|
430
|
+
minLength: 1
|
|
431
|
+
},
|
|
432
|
+
commonjs: {
|
|
433
|
+
description: "Name of the exposed commonjs export in the UMD.",
|
|
434
|
+
type: "string",
|
|
435
|
+
minLength: 1
|
|
436
|
+
},
|
|
437
|
+
root: {
|
|
438
|
+
description: "Name of the property exposed globally by a UMD library.",
|
|
439
|
+
anyOf: [
|
|
440
|
+
{
|
|
441
|
+
type: "array",
|
|
442
|
+
items: {
|
|
443
|
+
description: "Part of the name of the property exposed globally by a UMD library.",
|
|
444
|
+
type: "string",
|
|
445
|
+
minLength: 1
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
type: "string",
|
|
450
|
+
minLength: 1
|
|
451
|
+
}
|
|
452
|
+
]
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
LibraryExport: {
|
|
457
|
+
description: "Specify which export should be exposed as library.",
|
|
458
|
+
anyOf: [
|
|
459
|
+
{
|
|
460
|
+
type: "array",
|
|
461
|
+
items: {
|
|
462
|
+
description: "Part of the export that should be exposed as library.",
|
|
463
|
+
type: "string",
|
|
464
|
+
minLength: 1
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
type: "string",
|
|
469
|
+
minLength: 1
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
LibraryName: {
|
|
474
|
+
description: "The name of the library (some types allow unnamed libraries too).",
|
|
475
|
+
anyOf: [
|
|
476
|
+
{
|
|
477
|
+
type: "array",
|
|
478
|
+
items: {
|
|
479
|
+
description: "A part of the library name.",
|
|
480
|
+
type: "string",
|
|
481
|
+
minLength: 1
|
|
482
|
+
},
|
|
483
|
+
minItems: 1
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
type: "string",
|
|
487
|
+
minLength: 1
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
$ref: "#/definitions/LibraryCustomUmdObject"
|
|
491
|
+
}
|
|
492
|
+
]
|
|
493
|
+
},
|
|
494
|
+
LibraryOptions: {
|
|
495
|
+
description: "Options for library.",
|
|
496
|
+
type: "object",
|
|
497
|
+
additionalProperties: false,
|
|
498
|
+
properties: {
|
|
499
|
+
auxiliaryComment: {
|
|
500
|
+
$ref: "#/definitions/AuxiliaryComment"
|
|
501
|
+
},
|
|
502
|
+
export: {
|
|
503
|
+
$ref: "#/definitions/LibraryExport"
|
|
504
|
+
},
|
|
505
|
+
name: {
|
|
506
|
+
$ref: "#/definitions/LibraryName"
|
|
507
|
+
},
|
|
508
|
+
type: {
|
|
509
|
+
$ref: "#/definitions/LibraryType"
|
|
510
|
+
},
|
|
511
|
+
umdNamedDefine: {
|
|
512
|
+
$ref: "#/definitions/UmdNamedDefine"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
required: ["type"]
|
|
516
|
+
},
|
|
517
|
+
LibraryType: {
|
|
518
|
+
description: "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).",
|
|
519
|
+
anyOf: [
|
|
520
|
+
{
|
|
521
|
+
enum: [
|
|
522
|
+
"var",
|
|
523
|
+
"module",
|
|
524
|
+
"assign",
|
|
525
|
+
"assign-properties",
|
|
526
|
+
"this",
|
|
527
|
+
"window",
|
|
528
|
+
"self",
|
|
529
|
+
"global",
|
|
530
|
+
"commonjs",
|
|
531
|
+
"commonjs2",
|
|
532
|
+
"commonjs-module",
|
|
533
|
+
"commonjs-static",
|
|
534
|
+
"amd",
|
|
535
|
+
"amd-require",
|
|
536
|
+
"umd",
|
|
537
|
+
"umd2",
|
|
538
|
+
"jsonp",
|
|
539
|
+
"system"
|
|
540
|
+
]
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
type: "string"
|
|
544
|
+
}
|
|
545
|
+
]
|
|
546
|
+
},
|
|
547
|
+
Mode: {
|
|
548
|
+
description: "Enable production optimizations or development hints.",
|
|
549
|
+
enum: ["development", "production", "none"]
|
|
550
|
+
},
|
|
551
|
+
ModuleOptions: {
|
|
552
|
+
description: "Options affecting the normal modules (`NormalModuleFactory`).",
|
|
553
|
+
type: "object",
|
|
554
|
+
additionalProperties: false,
|
|
555
|
+
properties: {
|
|
556
|
+
defaultRules: {
|
|
557
|
+
description: "An array of rules applied by default for modules.",
|
|
558
|
+
oneOf: [
|
|
559
|
+
{
|
|
560
|
+
$ref: "#/definitions/RuleSetRules"
|
|
561
|
+
}
|
|
562
|
+
]
|
|
563
|
+
},
|
|
564
|
+
parser: {
|
|
565
|
+
$ref: "#/definitions/ParserOptionsByModuleType"
|
|
566
|
+
},
|
|
567
|
+
rules: {
|
|
568
|
+
description: "An array of rules applied for modules.",
|
|
569
|
+
oneOf: [
|
|
570
|
+
{
|
|
571
|
+
$ref: "#/definitions/RuleSetRules"
|
|
572
|
+
}
|
|
573
|
+
]
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
Name: {
|
|
578
|
+
description: "Name of the configuration. Used when loading multiple configurations.",
|
|
579
|
+
type: "string"
|
|
580
|
+
},
|
|
581
|
+
Node: {
|
|
582
|
+
description: "Include polyfills or mocks for various node stuff.",
|
|
583
|
+
anyOf: [
|
|
584
|
+
{
|
|
585
|
+
enum: [false]
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
$ref: "#/definitions/NodeOptions"
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
},
|
|
592
|
+
NodeOptions: {
|
|
593
|
+
description: "Options object for node compatibility features.",
|
|
594
|
+
type: "object",
|
|
595
|
+
additionalProperties: false,
|
|
596
|
+
properties: {
|
|
597
|
+
__dirname: {
|
|
598
|
+
description: "Include a polyfill for the '__dirname' variable.",
|
|
599
|
+
enum: [false, true, "warn-mock", "mock", "eval-only"]
|
|
600
|
+
},
|
|
601
|
+
global: {
|
|
602
|
+
description: "Include a polyfill for the 'global' variable.",
|
|
603
|
+
enum: [false, true, "warn"]
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
Optimization: {
|
|
608
|
+
description: "Enables/Disables integrated optimizations.",
|
|
609
|
+
type: "object",
|
|
610
|
+
// TODO: change to false once all properties is aligned with webpack
|
|
611
|
+
additionalProperties: true,
|
|
612
|
+
properties: {
|
|
613
|
+
chunkIds: {
|
|
614
|
+
description: "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).",
|
|
615
|
+
enum: ["named", "deterministic"]
|
|
616
|
+
},
|
|
617
|
+
minimize: {
|
|
618
|
+
description: "Enable minimizing the output. Uses optimization.minimizer.",
|
|
619
|
+
type: "boolean"
|
|
620
|
+
},
|
|
621
|
+
minimizer: {
|
|
622
|
+
description: "Minimizer(s) to use for minimizing the output.",
|
|
623
|
+
type: "array",
|
|
624
|
+
items: {
|
|
625
|
+
description: "Plugin of type object or instanceof Function.",
|
|
626
|
+
anyOf: [
|
|
627
|
+
{
|
|
628
|
+
enum: ["..."]
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
$ref: "#/definitions/RspackPluginInstance"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
$ref: "#/definitions/RspackPluginFunction"
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
moduleIds: {
|
|
640
|
+
description: "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).",
|
|
641
|
+
enum: ["named", "deterministic"]
|
|
642
|
+
},
|
|
643
|
+
removeAvailableModules: {
|
|
644
|
+
description: "Removes modules from chunks when these modules are already included in all parents.",
|
|
645
|
+
type: "boolean"
|
|
646
|
+
},
|
|
647
|
+
runtimeChunk: {
|
|
648
|
+
$ref: "#/definitions/OptimizationRuntimeChunk"
|
|
649
|
+
},
|
|
650
|
+
sideEffects: {
|
|
651
|
+
description: "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).",
|
|
652
|
+
anyOf: [
|
|
653
|
+
{
|
|
654
|
+
enum: ["flag"]
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
type: "boolean"
|
|
658
|
+
}
|
|
659
|
+
]
|
|
660
|
+
},
|
|
661
|
+
splitChunks: {
|
|
662
|
+
description: "Optimize duplication and caching by splitting chunks by shared modules and cache group.",
|
|
663
|
+
anyOf: [
|
|
664
|
+
{
|
|
665
|
+
enum: [false]
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
$ref: "#/definitions/OptimizationSplitChunksOptions"
|
|
669
|
+
}
|
|
670
|
+
]
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
OptimizationRuntimeChunk: {
|
|
675
|
+
description: "Create an additional chunk which contains only the rspack runtime and chunk hash maps.",
|
|
676
|
+
anyOf: [
|
|
677
|
+
{
|
|
678
|
+
enum: ["single", "multiple"]
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
type: "boolean"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
type: "object",
|
|
685
|
+
additionalProperties: false,
|
|
686
|
+
properties: {
|
|
687
|
+
name: {
|
|
688
|
+
description: "The name or name factory for the runtime chunks.",
|
|
689
|
+
anyOf: [
|
|
690
|
+
{
|
|
691
|
+
type: "string"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
instanceof: "Function"
|
|
695
|
+
}
|
|
696
|
+
]
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
]
|
|
701
|
+
},
|
|
702
|
+
OptimizationSplitChunksCacheGroup: {
|
|
703
|
+
description: "Options object for describing behavior of a cache group selecting modules that should be cached together.",
|
|
704
|
+
type: "object",
|
|
705
|
+
// TODO: change to false once all properties is aligned with webpack
|
|
706
|
+
additionalProperties: true,
|
|
707
|
+
properties: {
|
|
708
|
+
chunks: {
|
|
709
|
+
description: 'Select chunks for determining cache group content (defaults to "initial", "initial" and "all" requires adding these chunks to the HTML).',
|
|
710
|
+
anyOf: [
|
|
711
|
+
{
|
|
712
|
+
enum: ["initial", "async", "all"]
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
instanceof: "Function"
|
|
716
|
+
}
|
|
717
|
+
]
|
|
718
|
+
},
|
|
719
|
+
minChunks: {
|
|
720
|
+
description: "Minimum number of times a module has to be duplicated until it's considered for splitting.",
|
|
721
|
+
type: "number",
|
|
722
|
+
minimum: 1
|
|
723
|
+
},
|
|
724
|
+
name: {
|
|
725
|
+
description: "Give chunks for this cache group a name (chunks with equal name are merged).",
|
|
726
|
+
anyOf: [
|
|
727
|
+
{
|
|
728
|
+
enum: [false]
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
type: "string"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
instanceof: "Function"
|
|
735
|
+
}
|
|
736
|
+
]
|
|
737
|
+
},
|
|
738
|
+
priority: {
|
|
739
|
+
description: "Priority of this cache group.",
|
|
740
|
+
type: "number"
|
|
741
|
+
},
|
|
742
|
+
reuseExistingChunk: {
|
|
743
|
+
description: "Try to reuse existing chunk (with name) when it has matching modules.",
|
|
744
|
+
type: "boolean"
|
|
745
|
+
},
|
|
746
|
+
test: {
|
|
747
|
+
description: "Assign modules to a cache group by module name.",
|
|
748
|
+
anyOf: [
|
|
749
|
+
{
|
|
750
|
+
instanceof: "RegExp"
|
|
751
|
+
}
|
|
752
|
+
]
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
OptimizationSplitChunksOptions: {
|
|
757
|
+
description: "Options object for splitting chunks into smaller chunks.",
|
|
758
|
+
type: "object",
|
|
759
|
+
// TODO: change to false once all properties is aligned with webpack
|
|
760
|
+
additionalProperties: true,
|
|
761
|
+
properties: {
|
|
762
|
+
cacheGroups: {
|
|
763
|
+
description: "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').",
|
|
764
|
+
type: "object",
|
|
765
|
+
additionalProperties: {
|
|
766
|
+
description: "Configuration for a cache group.",
|
|
767
|
+
anyOf: [
|
|
768
|
+
{
|
|
769
|
+
$ref: "#/definitions/OptimizationSplitChunksCacheGroup"
|
|
770
|
+
}
|
|
771
|
+
]
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
chunks: {
|
|
775
|
+
description: 'Select chunks for determining shared modules (defaults to "async", "initial" and "all" requires adding these chunks to the HTML).',
|
|
776
|
+
anyOf: [
|
|
777
|
+
{
|
|
778
|
+
enum: ["initial", "async", "all"]
|
|
779
|
+
}
|
|
780
|
+
]
|
|
781
|
+
},
|
|
782
|
+
enforceSizeThreshold: {
|
|
783
|
+
description: "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.",
|
|
784
|
+
oneOf: [
|
|
785
|
+
{
|
|
786
|
+
$ref: "#/definitions/OptimizationSplitChunksSizes"
|
|
787
|
+
}
|
|
788
|
+
]
|
|
789
|
+
},
|
|
790
|
+
maxAsyncRequests: {
|
|
791
|
+
description: "Maximum number of requests which are accepted for on-demand loading.",
|
|
792
|
+
type: "number",
|
|
793
|
+
minimum: 1
|
|
794
|
+
},
|
|
795
|
+
maxInitialRequests: {
|
|
796
|
+
description: "Maximum number of initial chunks which are accepted for an entry point.",
|
|
797
|
+
type: "number",
|
|
798
|
+
minimum: 1
|
|
799
|
+
},
|
|
800
|
+
minChunks: {
|
|
801
|
+
description: "Minimum number of times a module has to be duplicated until it's considered for splitting.",
|
|
802
|
+
type: "number",
|
|
803
|
+
minimum: 1
|
|
804
|
+
},
|
|
805
|
+
minRemainingSize: {
|
|
806
|
+
description: "Minimal size for the chunks the stay after moving the modules to a new chunk.",
|
|
807
|
+
oneOf: [
|
|
808
|
+
{
|
|
809
|
+
$ref: "#/definitions/OptimizationSplitChunksSizes"
|
|
810
|
+
}
|
|
811
|
+
]
|
|
812
|
+
},
|
|
813
|
+
minSize: {
|
|
814
|
+
description: "Minimal size for the created chunks.",
|
|
815
|
+
oneOf: [
|
|
816
|
+
{
|
|
817
|
+
$ref: "#/definitions/OptimizationSplitChunksSizes"
|
|
818
|
+
}
|
|
819
|
+
]
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
OptimizationSplitChunksSizes: {
|
|
824
|
+
description: "Size description for limits.",
|
|
825
|
+
anyOf: [
|
|
826
|
+
{
|
|
827
|
+
description: "Size of the javascript part of the chunk.",
|
|
828
|
+
type: "number",
|
|
829
|
+
minimum: 0
|
|
830
|
+
}
|
|
831
|
+
]
|
|
832
|
+
},
|
|
833
|
+
Output: {
|
|
834
|
+
description: "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.",
|
|
835
|
+
type: "object",
|
|
836
|
+
// TODO: change to false once all properties is aligned with webpack
|
|
837
|
+
additionalProperties: true,
|
|
838
|
+
properties: {
|
|
839
|
+
assetModuleFilename: {
|
|
840
|
+
$ref: "#/definitions/AssetModuleFilename"
|
|
841
|
+
},
|
|
842
|
+
auxiliaryComment: {
|
|
843
|
+
oneOf: [
|
|
844
|
+
{
|
|
845
|
+
$ref: "#/definitions/AuxiliaryComment"
|
|
846
|
+
}
|
|
847
|
+
]
|
|
848
|
+
},
|
|
849
|
+
chunkFilename: {
|
|
850
|
+
$ref: "#/definitions/ChunkFilename"
|
|
851
|
+
},
|
|
852
|
+
cssChunkFilename: {
|
|
853
|
+
$ref: "#/definitions/CssChunkFilename"
|
|
854
|
+
},
|
|
855
|
+
cssFilename: {
|
|
856
|
+
$ref: "#/definitions/CssFilename"
|
|
857
|
+
},
|
|
858
|
+
enabledLibraryTypes: {
|
|
859
|
+
$ref: "#/definitions/EnabledLibraryTypes"
|
|
860
|
+
},
|
|
861
|
+
filename: {
|
|
862
|
+
$ref: "#/definitions/Filename"
|
|
863
|
+
},
|
|
864
|
+
globalObject: {
|
|
865
|
+
$ref: "#/definitions/GlobalObject"
|
|
866
|
+
},
|
|
867
|
+
importFunctionName: {
|
|
868
|
+
$ref: "#/definitions/ImportFunctionName"
|
|
869
|
+
},
|
|
870
|
+
library: {
|
|
871
|
+
$ref: "#/definitions/Library"
|
|
872
|
+
},
|
|
873
|
+
libraryExport: {
|
|
874
|
+
oneOf: [
|
|
875
|
+
{
|
|
876
|
+
$ref: "#/definitions/LibraryExport"
|
|
877
|
+
}
|
|
878
|
+
]
|
|
879
|
+
},
|
|
880
|
+
libraryTarget: {
|
|
881
|
+
oneOf: [
|
|
882
|
+
{
|
|
883
|
+
$ref: "#/definitions/LibraryType"
|
|
884
|
+
}
|
|
885
|
+
]
|
|
886
|
+
},
|
|
887
|
+
module: {
|
|
888
|
+
$ref: "#/definitions/OutputModule"
|
|
889
|
+
},
|
|
890
|
+
path: {
|
|
891
|
+
$ref: "#/definitions/Path"
|
|
892
|
+
},
|
|
893
|
+
publicPath: {
|
|
894
|
+
$ref: "#/definitions/PublicPath"
|
|
895
|
+
},
|
|
896
|
+
strictModuleErrorHandling: {
|
|
897
|
+
$ref: "#/definitions/StrictModuleErrorHandling"
|
|
898
|
+
},
|
|
899
|
+
umdNamedDefine: {
|
|
900
|
+
oneOf: [
|
|
901
|
+
{
|
|
902
|
+
$ref: "#/definitions/UmdNamedDefine"
|
|
903
|
+
}
|
|
904
|
+
]
|
|
905
|
+
},
|
|
906
|
+
uniqueName: {
|
|
907
|
+
$ref: "#/definitions/UniqueName"
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
OutputModule: {
|
|
912
|
+
description: "Output javascript files as module source type.",
|
|
913
|
+
type: "boolean"
|
|
914
|
+
},
|
|
915
|
+
ParserOptionsByModuleType: {
|
|
916
|
+
description: "Specify options for each parser.",
|
|
917
|
+
type: "object",
|
|
918
|
+
additionalProperties: {
|
|
919
|
+
description: "Options for parsing.",
|
|
920
|
+
type: "object",
|
|
921
|
+
additionalProperties: true
|
|
922
|
+
},
|
|
923
|
+
properties: {
|
|
924
|
+
asset: {
|
|
925
|
+
$ref: "#/definitions/AssetParserOptions"
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
},
|
|
929
|
+
Path: {
|
|
930
|
+
description: "The output directory as **absolute path** (required).",
|
|
931
|
+
type: "string"
|
|
932
|
+
},
|
|
933
|
+
Plugins: {
|
|
934
|
+
description: "Add additional plugins to the compiler.",
|
|
935
|
+
type: "array",
|
|
936
|
+
items: {
|
|
937
|
+
description: "Plugin of type object or instanceof Function.",
|
|
938
|
+
anyOf: [
|
|
939
|
+
{
|
|
940
|
+
$ref: "#/definitions/RspackPluginInstance"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
$ref: "#/definitions/RspackPluginFunction"
|
|
944
|
+
}
|
|
945
|
+
]
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
PublicPath: {
|
|
949
|
+
description: "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.",
|
|
950
|
+
anyOf: [
|
|
951
|
+
{
|
|
952
|
+
enum: ["auto"]
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
$ref: "#/definitions/RawPublicPath"
|
|
956
|
+
}
|
|
957
|
+
]
|
|
958
|
+
},
|
|
959
|
+
RawPublicPath: {
|
|
960
|
+
description: "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.",
|
|
961
|
+
anyOf: [
|
|
962
|
+
{
|
|
963
|
+
type: "string"
|
|
964
|
+
}
|
|
965
|
+
]
|
|
966
|
+
},
|
|
967
|
+
Resolve: {
|
|
968
|
+
description: "Options for the resolver.",
|
|
969
|
+
oneOf: [
|
|
970
|
+
{
|
|
971
|
+
$ref: "#/definitions/ResolveOptions"
|
|
972
|
+
}
|
|
973
|
+
]
|
|
974
|
+
},
|
|
975
|
+
ResolveAlias: {
|
|
976
|
+
description: "Redirect module requests.",
|
|
977
|
+
anyOf: [
|
|
978
|
+
{
|
|
979
|
+
type: "object",
|
|
980
|
+
additionalProperties: {
|
|
981
|
+
description: "New request.",
|
|
982
|
+
anyOf: [
|
|
983
|
+
{
|
|
984
|
+
description: "Multiple alternative requests.",
|
|
985
|
+
type: "array",
|
|
986
|
+
items: {
|
|
987
|
+
description: "One choice of request.",
|
|
988
|
+
type: "string",
|
|
989
|
+
minLength: 1
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
description: "Ignore request (replace with empty module).",
|
|
994
|
+
enum: [false]
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
description: "New request.",
|
|
998
|
+
type: "string",
|
|
999
|
+
minLength: 1
|
|
1000
|
+
}
|
|
1001
|
+
]
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
]
|
|
1005
|
+
},
|
|
1006
|
+
ResolveOptions: {
|
|
1007
|
+
description: "Options object for resolving requests.",
|
|
1008
|
+
type: "object",
|
|
1009
|
+
// TODO: change to false once all properties is aligned with webpack
|
|
1010
|
+
additionalProperties: true,
|
|
1011
|
+
properties: {
|
|
1012
|
+
alias: {
|
|
1013
|
+
$ref: "#/definitions/ResolveAlias"
|
|
1014
|
+
},
|
|
1015
|
+
browserField: {
|
|
1016
|
+
description: "Fields in the description file (usually package.json) which are used to redirect requests inside the module.",
|
|
1017
|
+
type: "boolean"
|
|
1018
|
+
},
|
|
1019
|
+
conditionNames: {
|
|
1020
|
+
description: "Condition names for exports field entry point.",
|
|
1021
|
+
type: "array",
|
|
1022
|
+
items: {
|
|
1023
|
+
description: "Condition names for exports field entry point.",
|
|
1024
|
+
type: "string"
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
extensions: {
|
|
1028
|
+
description: "Extensions added to the request when trying to find the file.",
|
|
1029
|
+
type: "array",
|
|
1030
|
+
items: {
|
|
1031
|
+
description: "Extension added to the request when trying to find the file.",
|
|
1032
|
+
type: "string"
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
fallback: {
|
|
1036
|
+
description: "Redirect module requests when normal resolving fails.",
|
|
1037
|
+
oneOf: [
|
|
1038
|
+
{
|
|
1039
|
+
$ref: "#/definitions/ResolveAlias"
|
|
1040
|
+
}
|
|
1041
|
+
]
|
|
1042
|
+
},
|
|
1043
|
+
mainFields: {
|
|
1044
|
+
description: "Field names from the description file (package.json) which are used to find the default entry point.",
|
|
1045
|
+
type: "array",
|
|
1046
|
+
items: {
|
|
1047
|
+
description: "Field name from the description file (package.json) which are used to find the default entry point.",
|
|
1048
|
+
anyOf: [
|
|
1049
|
+
{
|
|
1050
|
+
type: "array",
|
|
1051
|
+
items: {
|
|
1052
|
+
description: "Part of the field path from the description file (package.json) which are used to find the default entry point.",
|
|
1053
|
+
type: "string",
|
|
1054
|
+
minLength: 1
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
type: "string",
|
|
1059
|
+
minLength: 1
|
|
1060
|
+
}
|
|
1061
|
+
]
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
mainFiles: {
|
|
1065
|
+
description: "Filenames used to find the default entry point if there is no description file or main field.",
|
|
1066
|
+
type: "array",
|
|
1067
|
+
items: {
|
|
1068
|
+
description: "Filename used to find the default entry point if there is no description file or main field.",
|
|
1069
|
+
type: "string",
|
|
1070
|
+
minLength: 1
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
modules: {
|
|
1074
|
+
description: "Folder names or directory paths where to find modules.",
|
|
1075
|
+
type: "array",
|
|
1076
|
+
items: {
|
|
1077
|
+
description: "Folder name or directory path where to find modules.",
|
|
1078
|
+
type: "string",
|
|
1079
|
+
minLength: 1
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
preferRelative: {
|
|
1083
|
+
description: "Prefer to resolve module requests as relative request and fallback to resolving as module.",
|
|
1084
|
+
type: "boolean"
|
|
1085
|
+
},
|
|
1086
|
+
tsConfigPath: {
|
|
1087
|
+
description: "Path to tsconfig.json",
|
|
1088
|
+
type: "string"
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
RuleSetCondition: {
|
|
1093
|
+
description: "A condition matcher.",
|
|
1094
|
+
anyOf: [
|
|
1095
|
+
{
|
|
1096
|
+
instanceof: "RegExp"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
type: "string"
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
$ref: "#/definitions/RuleSetLogicalConditions"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
$ref: "#/definitions/RuleSetConditions"
|
|
1106
|
+
}
|
|
1107
|
+
]
|
|
1108
|
+
},
|
|
1109
|
+
RuleSetConditionOrConditions: {
|
|
1110
|
+
description: "One or multiple rule conditions.",
|
|
1111
|
+
anyOf: [
|
|
1112
|
+
{
|
|
1113
|
+
$ref: "#/definitions/RuleSetCondition"
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
$ref: "#/definitions/RuleSetConditions"
|
|
1117
|
+
}
|
|
1118
|
+
]
|
|
1119
|
+
},
|
|
1120
|
+
RuleSetConditions: {
|
|
1121
|
+
description: "A list of rule conditions.",
|
|
1122
|
+
type: "array",
|
|
1123
|
+
items: {
|
|
1124
|
+
description: "A rule condition.",
|
|
1125
|
+
oneOf: [
|
|
1126
|
+
{
|
|
1127
|
+
$ref: "#/definitions/RuleSetCondition"
|
|
1128
|
+
}
|
|
1129
|
+
]
|
|
1130
|
+
}
|
|
1131
|
+
},
|
|
1132
|
+
RuleSetLoader: {
|
|
1133
|
+
description: "A loader request.",
|
|
1134
|
+
type: "string",
|
|
1135
|
+
minLength: 1
|
|
1136
|
+
},
|
|
1137
|
+
RuleSetLoaderOptions: {
|
|
1138
|
+
description: "Options passed to a loader.",
|
|
1139
|
+
anyOf: [
|
|
1140
|
+
{
|
|
1141
|
+
type: "string"
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
type: "object"
|
|
1145
|
+
}
|
|
1146
|
+
]
|
|
1147
|
+
},
|
|
1148
|
+
RuleSetLogicalConditions: {
|
|
1149
|
+
description: "Logic operators used in a condition matcher.",
|
|
1150
|
+
type: "object",
|
|
1151
|
+
additionalProperties: false,
|
|
1152
|
+
properties: {
|
|
1153
|
+
and: {
|
|
1154
|
+
description: "Logical AND.",
|
|
1155
|
+
oneOf: [
|
|
1156
|
+
{
|
|
1157
|
+
$ref: "#/definitions/RuleSetConditions"
|
|
1158
|
+
}
|
|
1159
|
+
]
|
|
1160
|
+
},
|
|
1161
|
+
not: {
|
|
1162
|
+
description: "Logical NOT.",
|
|
1163
|
+
oneOf: [
|
|
1164
|
+
{
|
|
1165
|
+
$ref: "#/definitions/RuleSetCondition"
|
|
1166
|
+
}
|
|
1167
|
+
]
|
|
1168
|
+
},
|
|
1169
|
+
or: {
|
|
1170
|
+
description: "Logical OR.",
|
|
1171
|
+
oneOf: [
|
|
1172
|
+
{
|
|
1173
|
+
$ref: "#/definitions/RuleSetConditions"
|
|
1174
|
+
}
|
|
1175
|
+
]
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
},
|
|
1179
|
+
RuleSetRule: {
|
|
1180
|
+
description: "A rule description with conditions and effects for modules.",
|
|
1181
|
+
type: "object",
|
|
1182
|
+
additionalProperties: false,
|
|
1183
|
+
properties: {
|
|
1184
|
+
exclude: {
|
|
1185
|
+
description: "Shortcut for resource.exclude.",
|
|
1186
|
+
oneOf: [
|
|
1187
|
+
{
|
|
1188
|
+
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1189
|
+
}
|
|
1190
|
+
]
|
|
1191
|
+
},
|
|
1192
|
+
generator: {
|
|
1193
|
+
description: "The options for the module generator.",
|
|
1194
|
+
type: "object"
|
|
1195
|
+
},
|
|
1196
|
+
include: {
|
|
1197
|
+
description: "Shortcut for resource.include.",
|
|
1198
|
+
oneOf: [
|
|
1199
|
+
{
|
|
1200
|
+
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1201
|
+
}
|
|
1202
|
+
]
|
|
1203
|
+
},
|
|
1204
|
+
issuer: {
|
|
1205
|
+
description: "Match the issuer of the module (The module pointing to this module).",
|
|
1206
|
+
oneOf: [
|
|
1207
|
+
{
|
|
1208
|
+
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1209
|
+
}
|
|
1210
|
+
]
|
|
1211
|
+
},
|
|
1212
|
+
oneOf: {
|
|
1213
|
+
description: "Only execute the first matching rule in this array.",
|
|
1214
|
+
type: "array",
|
|
1215
|
+
items: {
|
|
1216
|
+
description: "A rule.",
|
|
1217
|
+
oneOf: [
|
|
1218
|
+
{
|
|
1219
|
+
$ref: "#/definitions/RuleSetRule"
|
|
1220
|
+
}
|
|
1221
|
+
]
|
|
1222
|
+
}
|
|
1223
|
+
},
|
|
1224
|
+
parser: {
|
|
1225
|
+
description: "Options for parsing.",
|
|
1226
|
+
type: "object",
|
|
1227
|
+
additionalProperties: true
|
|
1228
|
+
},
|
|
1229
|
+
resolve: {
|
|
1230
|
+
description: "Options for the resolver.",
|
|
1231
|
+
type: "object",
|
|
1232
|
+
oneOf: [
|
|
1233
|
+
{
|
|
1234
|
+
$ref: "#/definitions/ResolveOptions"
|
|
1235
|
+
}
|
|
1236
|
+
]
|
|
1237
|
+
},
|
|
1238
|
+
resource: {
|
|
1239
|
+
description: "Match the resource path of the module.",
|
|
1240
|
+
oneOf: [
|
|
1241
|
+
{
|
|
1242
|
+
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1243
|
+
}
|
|
1244
|
+
]
|
|
1245
|
+
},
|
|
1246
|
+
resourceFragment: {
|
|
1247
|
+
description: "Match the resource fragment of the module.",
|
|
1248
|
+
oneOf: [
|
|
1249
|
+
{
|
|
1250
|
+
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1251
|
+
}
|
|
1252
|
+
]
|
|
1253
|
+
},
|
|
1254
|
+
resourceQuery: {
|
|
1255
|
+
description: "Match the resource query of the module.",
|
|
1256
|
+
oneOf: [
|
|
1257
|
+
{
|
|
1258
|
+
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1259
|
+
}
|
|
1260
|
+
]
|
|
1261
|
+
},
|
|
1262
|
+
rules: {
|
|
1263
|
+
description: "Match and execute these rules when this rule is matched.",
|
|
1264
|
+
type: "array",
|
|
1265
|
+
items: {
|
|
1266
|
+
description: "A rule.",
|
|
1267
|
+
oneOf: [
|
|
1268
|
+
{
|
|
1269
|
+
$ref: "#/definitions/RuleSetRule"
|
|
1270
|
+
}
|
|
1271
|
+
]
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
sideEffects: {
|
|
1275
|
+
description: "Flags a module as with or without side effects.",
|
|
1276
|
+
type: "boolean"
|
|
1277
|
+
},
|
|
1278
|
+
test: {
|
|
1279
|
+
description: "Shortcut for resource.test.",
|
|
1280
|
+
oneOf: [
|
|
1281
|
+
{
|
|
1282
|
+
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1283
|
+
}
|
|
1284
|
+
]
|
|
1285
|
+
},
|
|
1286
|
+
type: {
|
|
1287
|
+
description: "Module type to use for the module.",
|
|
1288
|
+
type: "string"
|
|
1289
|
+
},
|
|
1290
|
+
use: {
|
|
1291
|
+
description: "Modifiers applied to the module when rule is matched.",
|
|
1292
|
+
oneOf: [
|
|
1293
|
+
{
|
|
1294
|
+
$ref: "#/definitions/RuleSetUse"
|
|
1295
|
+
}
|
|
1296
|
+
]
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
RuleSetRules: {
|
|
1301
|
+
description: "A list of rules.",
|
|
1302
|
+
type: "array",
|
|
1303
|
+
items: {
|
|
1304
|
+
description: "A rule.",
|
|
1305
|
+
anyOf: [
|
|
1306
|
+
{
|
|
1307
|
+
enum: ["..."]
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
$ref: "#/definitions/RuleSetRule"
|
|
1311
|
+
}
|
|
1312
|
+
]
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
RuleSetUse: {
|
|
1316
|
+
description: "A list of descriptions of loaders applied.",
|
|
1317
|
+
anyOf: [
|
|
1318
|
+
{
|
|
1319
|
+
type: "array",
|
|
1320
|
+
items: {
|
|
1321
|
+
description: "An use item.",
|
|
1322
|
+
oneOf: [
|
|
1323
|
+
{
|
|
1324
|
+
$ref: "#/definitions/RuleSetUseItem"
|
|
1325
|
+
}
|
|
1326
|
+
]
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
$ref: "#/definitions/RuleSetUseItem"
|
|
1331
|
+
}
|
|
1332
|
+
]
|
|
1333
|
+
},
|
|
1334
|
+
RuleSetUseItem: {
|
|
1335
|
+
description: "A description of an applied loader.",
|
|
1336
|
+
anyOf: [
|
|
1337
|
+
{
|
|
1338
|
+
type: "object",
|
|
1339
|
+
additionalProperties: false,
|
|
1340
|
+
properties: {
|
|
1341
|
+
loader: {
|
|
1342
|
+
description: "Loader name.",
|
|
1343
|
+
oneOf: [
|
|
1344
|
+
{
|
|
1345
|
+
$ref: "#/definitions/RuleSetLoader"
|
|
1346
|
+
}
|
|
1347
|
+
]
|
|
1348
|
+
},
|
|
1349
|
+
options: {
|
|
1350
|
+
description: "Loader options.",
|
|
1351
|
+
oneOf: [
|
|
1352
|
+
{
|
|
1353
|
+
$ref: "#/definitions/RuleSetLoaderOptions"
|
|
1354
|
+
}
|
|
1355
|
+
]
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
$ref: "#/definitions/RuleSetLoader"
|
|
1361
|
+
}
|
|
1362
|
+
]
|
|
1363
|
+
},
|
|
1364
|
+
SnapshotOptions: {
|
|
1365
|
+
description: "Options affecting how file system snapshots are created and validated.",
|
|
1366
|
+
type: "object",
|
|
1367
|
+
additionalProperties: false,
|
|
1368
|
+
properties: {
|
|
1369
|
+
module: {
|
|
1370
|
+
description: "Options for snapshotting dependencies of modules to determine if they need to be built again.",
|
|
1371
|
+
type: "object",
|
|
1372
|
+
additionalProperties: false,
|
|
1373
|
+
properties: {
|
|
1374
|
+
hash: {
|
|
1375
|
+
description: "Use hashes of the content of the files/directories to determine invalidation.",
|
|
1376
|
+
type: "boolean"
|
|
1377
|
+
},
|
|
1378
|
+
timestamp: {
|
|
1379
|
+
description: "Use timestamps of the files/directories to determine invalidation.",
|
|
1380
|
+
type: "boolean"
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
},
|
|
1384
|
+
resolve: {
|
|
1385
|
+
description: "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.",
|
|
1386
|
+
type: "object",
|
|
1387
|
+
additionalProperties: false,
|
|
1388
|
+
properties: {
|
|
1389
|
+
hash: {
|
|
1390
|
+
description: "Use hashes of the content of the files/directories to determine invalidation.",
|
|
1391
|
+
type: "boolean"
|
|
1392
|
+
},
|
|
1393
|
+
timestamp: {
|
|
1394
|
+
description: "Use timestamps of the files/directories to determine invalidation.",
|
|
1395
|
+
type: "boolean"
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
StatsOptions: {
|
|
1402
|
+
description: "Stats options object.",
|
|
1403
|
+
type: "object",
|
|
1404
|
+
additionalProperties: true,
|
|
1405
|
+
properties: {
|
|
1406
|
+
all: {
|
|
1407
|
+
description: "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).",
|
|
1408
|
+
type: "boolean"
|
|
1409
|
+
},
|
|
1410
|
+
assets: {
|
|
1411
|
+
description: "Add assets information.",
|
|
1412
|
+
type: "boolean"
|
|
1413
|
+
},
|
|
1414
|
+
chunkGroups: {
|
|
1415
|
+
description: "Display all chunk groups with the corresponding bundles.",
|
|
1416
|
+
type: "boolean"
|
|
1417
|
+
},
|
|
1418
|
+
chunks: {
|
|
1419
|
+
description: "Add chunk information.",
|
|
1420
|
+
type: "boolean"
|
|
1421
|
+
},
|
|
1422
|
+
colors: {
|
|
1423
|
+
description: "Enables/Disables colorful output.",
|
|
1424
|
+
type: "boolean"
|
|
1425
|
+
},
|
|
1426
|
+
entrypoints: {
|
|
1427
|
+
description: "Display the entry points with the corresponding bundles.",
|
|
1428
|
+
anyOf: [
|
|
1429
|
+
{
|
|
1430
|
+
enum: ["auto"]
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
type: "boolean"
|
|
1434
|
+
}
|
|
1435
|
+
]
|
|
1436
|
+
},
|
|
1437
|
+
errors: {
|
|
1438
|
+
description: "Add errors.",
|
|
1439
|
+
type: "boolean"
|
|
1440
|
+
},
|
|
1441
|
+
errorsCount: {
|
|
1442
|
+
description: "Add errors count.",
|
|
1443
|
+
type: "boolean"
|
|
1444
|
+
},
|
|
1445
|
+
hash: {
|
|
1446
|
+
description: "Add the hash of the compilation.",
|
|
1447
|
+
type: "boolean"
|
|
1448
|
+
},
|
|
1449
|
+
modules: {
|
|
1450
|
+
description: "Add built modules information.",
|
|
1451
|
+
type: "boolean"
|
|
1452
|
+
},
|
|
1453
|
+
preset: {
|
|
1454
|
+
description: "Preset for the default values.",
|
|
1455
|
+
anyOf: [
|
|
1456
|
+
{
|
|
1457
|
+
type: "boolean"
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
type: "string"
|
|
1461
|
+
}
|
|
1462
|
+
]
|
|
1463
|
+
},
|
|
1464
|
+
publicPath: {
|
|
1465
|
+
description: "Add public path information.",
|
|
1466
|
+
type: "boolean"
|
|
1467
|
+
},
|
|
1468
|
+
reasons: {
|
|
1469
|
+
description: "Add information about the reasons why modules are included.",
|
|
1470
|
+
type: "boolean"
|
|
1471
|
+
},
|
|
1472
|
+
warnings: {
|
|
1473
|
+
description: "Add warnings.",
|
|
1474
|
+
type: "boolean"
|
|
1475
|
+
},
|
|
1476
|
+
warningsCount: {
|
|
1477
|
+
description: "Add warnings count.",
|
|
1478
|
+
type: "boolean"
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
StatsValue: {
|
|
1483
|
+
description: "Stats options object or preset name.",
|
|
1484
|
+
anyOf: [
|
|
1485
|
+
{
|
|
1486
|
+
enum: ["none", "errors-only", "errors-warnings", "normal", "verbose"]
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
type: "boolean"
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
$ref: "#/definitions/StatsOptions"
|
|
1493
|
+
}
|
|
1494
|
+
]
|
|
1495
|
+
},
|
|
1496
|
+
StrictModuleErrorHandling: {
|
|
1497
|
+
description: "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.",
|
|
1498
|
+
type: "boolean"
|
|
1499
|
+
},
|
|
1500
|
+
Target: {
|
|
1501
|
+
description: "Environment to build for. An array of environments to build for all of them when possible.",
|
|
1502
|
+
anyOf: [
|
|
1503
|
+
{
|
|
1504
|
+
type: "array",
|
|
1505
|
+
items: {
|
|
1506
|
+
description: "Environment to build for.",
|
|
1507
|
+
type: "string",
|
|
1508
|
+
minLength: 1
|
|
1509
|
+
},
|
|
1510
|
+
minItems: 1
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
enum: [false]
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
type: "string",
|
|
1517
|
+
minLength: 1
|
|
1518
|
+
}
|
|
1519
|
+
]
|
|
1520
|
+
},
|
|
1521
|
+
UmdNamedDefine: {
|
|
1522
|
+
description: "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.",
|
|
1523
|
+
type: "boolean"
|
|
1524
|
+
},
|
|
1525
|
+
UniqueName: {
|
|
1526
|
+
description: "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.",
|
|
1527
|
+
type: "string",
|
|
1528
|
+
minLength: 1
|
|
1529
|
+
},
|
|
1530
|
+
Watch: {
|
|
1531
|
+
description: "Enter watch mode, which rebuilds on file change.",
|
|
1532
|
+
type: "boolean"
|
|
1533
|
+
},
|
|
1534
|
+
WatchOptions: {
|
|
1535
|
+
description: "Options for the watcher.",
|
|
1536
|
+
type: "object",
|
|
1537
|
+
additionalProperties: false,
|
|
1538
|
+
properties: {
|
|
1539
|
+
aggregateTimeout: {
|
|
1540
|
+
description: "Delay the rebuilt after the first change. Value is a time in ms.",
|
|
1541
|
+
type: "number"
|
|
1542
|
+
},
|
|
1543
|
+
followSymlinks: {
|
|
1544
|
+
description: "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').",
|
|
1545
|
+
type: "boolean"
|
|
1546
|
+
},
|
|
1547
|
+
ignored: {
|
|
1548
|
+
description: "Ignore some files from watching (glob pattern or regexp).",
|
|
1549
|
+
anyOf: [
|
|
1550
|
+
{
|
|
1551
|
+
type: "array",
|
|
1552
|
+
items: {
|
|
1553
|
+
description: "A glob pattern for files that should be ignored from watching.",
|
|
1554
|
+
type: "string",
|
|
1555
|
+
minLength: 1
|
|
1556
|
+
}
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
instanceof: "RegExp"
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
description: "A single glob pattern for files that should be ignored from watching.",
|
|
1563
|
+
type: "string",
|
|
1564
|
+
minLength: 1
|
|
1565
|
+
}
|
|
1566
|
+
]
|
|
1567
|
+
},
|
|
1568
|
+
poll: {
|
|
1569
|
+
description: "Enable polling mode for watching.",
|
|
1570
|
+
anyOf: [
|
|
1571
|
+
{
|
|
1572
|
+
description: "`number`: use polling with specified interval.",
|
|
1573
|
+
type: "number"
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
description: "`true`: use polling.",
|
|
1577
|
+
type: "boolean"
|
|
1578
|
+
}
|
|
1579
|
+
]
|
|
1580
|
+
},
|
|
1581
|
+
stdin: {
|
|
1582
|
+
description: "Stop watching when stdin stream has ended.",
|
|
1583
|
+
type: "boolean"
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1587
|
+
RspackPluginFunction: {
|
|
1588
|
+
description: "Function acting as plugin.",
|
|
1589
|
+
instanceof: "Function"
|
|
1590
|
+
},
|
|
1591
|
+
RspackPluginInstance: {
|
|
1592
|
+
description: "Plugin instance.",
|
|
1593
|
+
type: "object",
|
|
1594
|
+
additionalProperties: true,
|
|
1595
|
+
properties: {
|
|
1596
|
+
apply: {
|
|
1597
|
+
description: "The run point of the plugin, required method.",
|
|
1598
|
+
instanceof: "Function"
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
required: ["apply"]
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
title: "RspackOptions",
|
|
1605
|
+
description: "Options object as provided by the user.",
|
|
1606
|
+
type: "object",
|
|
1607
|
+
// TODO: change to false once all properties is aligned with webpack
|
|
1608
|
+
additionalProperties: true,
|
|
1609
|
+
properties: {
|
|
1610
|
+
cache: {
|
|
1611
|
+
$ref: "#/definitions/CacheOptions"
|
|
1612
|
+
},
|
|
1613
|
+
context: {
|
|
1614
|
+
$ref: "#/definitions/Context"
|
|
1615
|
+
},
|
|
1616
|
+
dependencies: {
|
|
1617
|
+
$ref: "#/definitions/Dependencies"
|
|
1618
|
+
},
|
|
1619
|
+
devServer: {
|
|
1620
|
+
$ref: "#/definitions/DevServer"
|
|
1621
|
+
},
|
|
1622
|
+
devtool: {
|
|
1623
|
+
$ref: "#/definitions/DevTool"
|
|
1624
|
+
},
|
|
1625
|
+
entry: {
|
|
1626
|
+
$ref: "#/definitions/Entry"
|
|
1627
|
+
},
|
|
1628
|
+
experiments: {
|
|
1629
|
+
$ref: "#/definitions/Experiments"
|
|
1630
|
+
},
|
|
1631
|
+
externals: {
|
|
1632
|
+
$ref: "#/definitions/Externals"
|
|
1633
|
+
},
|
|
1634
|
+
externalsType: {
|
|
1635
|
+
$ref: "#/definitions/ExternalsType"
|
|
1636
|
+
},
|
|
1637
|
+
infrastructureLogging: {
|
|
1638
|
+
$ref: "#/definitions/InfrastructureLogging"
|
|
1639
|
+
},
|
|
1640
|
+
mode: {
|
|
1641
|
+
$ref: "#/definitions/Mode"
|
|
1642
|
+
},
|
|
1643
|
+
module: {
|
|
1644
|
+
$ref: "#/definitions/ModuleOptions"
|
|
1645
|
+
},
|
|
1646
|
+
name: {
|
|
1647
|
+
$ref: "#/definitions/Name"
|
|
1648
|
+
},
|
|
1649
|
+
node: {
|
|
1650
|
+
$ref: "#/definitions/Node"
|
|
1651
|
+
},
|
|
1652
|
+
optimization: {
|
|
1653
|
+
$ref: "#/definitions/Optimization"
|
|
1654
|
+
},
|
|
1655
|
+
output: {
|
|
1656
|
+
$ref: "#/definitions/Output"
|
|
1657
|
+
},
|
|
1658
|
+
plugins: {
|
|
1659
|
+
$ref: "#/definitions/Plugins"
|
|
1660
|
+
},
|
|
1661
|
+
resolve: {
|
|
1662
|
+
$ref: "#/definitions/Resolve"
|
|
1663
|
+
},
|
|
1664
|
+
snapshot: {
|
|
1665
|
+
$ref: "#/definitions/SnapshotOptions"
|
|
1666
|
+
},
|
|
1667
|
+
stats: {
|
|
1668
|
+
$ref: "#/definitions/StatsValue"
|
|
1669
|
+
},
|
|
1670
|
+
target: {
|
|
1671
|
+
$ref: "#/definitions/Target"
|
|
1672
|
+
},
|
|
1673
|
+
watch: {
|
|
1674
|
+
$ref: "#/definitions/Watch"
|
|
1675
|
+
},
|
|
1676
|
+
watchOptions: {
|
|
1677
|
+
$ref: "#/definitions/WatchOptions"
|
|
1678
|
+
},
|
|
1679
|
+
builtins: {
|
|
1680
|
+
description: "Builtins features in rspack",
|
|
1681
|
+
type: "object",
|
|
1682
|
+
additionalProperties: true
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
};
|
|
1686
|
+
//# sourceMappingURL=schema.js.map
|