@rspack/core 0.3.1 → 0.3.2
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/dist/Compilation.d.ts.map +1 -1
- package/dist/Compilation.js +2 -0
- package/dist/Compilation.js.map +1 -1
- package/dist/Compiler.d.ts +3 -0
- package/dist/Compiler.d.ts.map +1 -1
- package/dist/Compiler.js +75 -31
- package/dist/Compiler.js.map +1 -1
- package/dist/Stats.d.ts +1 -1
- package/dist/Stats.d.ts.map +1 -1
- package/dist/Stats.js +2 -1
- package/dist/Stats.js.map +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +20 -0
- package/dist/builtin-plugin/BannerPlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/BannerPlugin.js +43 -0
- package/dist/builtin-plugin/BannerPlugin.js.map +1 -0
- package/dist/builtin-plugin/CopyPlugin.d.ts +13 -0
- package/dist/builtin-plugin/CopyPlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/CopyPlugin.js +21 -0
- package/dist/builtin-plugin/CopyPlugin.js.map +1 -0
- package/dist/builtin-plugin/DefinePlugin.d.ts +8 -0
- package/dist/builtin-plugin/DefinePlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/DefinePlugin.js +13 -0
- package/dist/builtin-plugin/DefinePlugin.js.map +1 -0
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +7 -0
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/ElectronTargetPlugin.js +5 -0
- package/dist/builtin-plugin/ElectronTargetPlugin.js.map +1 -0
- package/dist/builtin-plugin/EntryPlugin.d.ts +18 -0
- package/dist/builtin-plugin/EntryPlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/EntryPlugin.js +24 -0
- package/dist/builtin-plugin/EntryPlugin.js.map +1 -0
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +24 -0
- package/dist/builtin-plugin/ExternalsPlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/ExternalsPlugin.js +63 -0
- package/dist/builtin-plugin/ExternalsPlugin.js.map +1 -0
- package/dist/builtin-plugin/HtmlPlugin.d.ts +72 -0
- package/dist/builtin-plugin/HtmlPlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/HtmlPlugin.js +39 -0
- package/dist/builtin-plugin/HtmlPlugin.js.map +1 -0
- package/dist/builtin-plugin/HttpExternalsPlugin.d.ts +8 -0
- package/dist/builtin-plugin/HttpExternalsPlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/HttpExternalsPlugin.js +9 -0
- package/dist/builtin-plugin/HttpExternalsPlugin.js.map +1 -0
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +7 -0
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/NodeTargetPlugin.js +5 -0
- package/dist/builtin-plugin/NodeTargetPlugin.js.map +1 -0
- package/dist/builtin-plugin/ProgressPlugin.d.ts +9 -0
- package/dist/builtin-plugin/ProgressPlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/ProgressPlugin.js +5 -0
- package/dist/builtin-plugin/ProgressPlugin.js.map +1 -0
- package/dist/builtin-plugin/ProvidePlugin.d.ts +8 -0
- package/dist/builtin-plugin/ProvidePlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/ProvidePlugin.js +13 -0
- package/dist/builtin-plugin/ProvidePlugin.js.map +1 -0
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts +7 -0
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.js +5 -0
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.js.map +1 -0
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +22 -0
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts.map +1 -0
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.js +46 -0
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.js.map +1 -0
- package/dist/builtin-plugin/base.d.ts +28 -0
- package/dist/builtin-plugin/base.d.ts.map +1 -0
- package/dist/builtin-plugin/base.js +43 -0
- package/dist/builtin-plugin/base.js.map +1 -0
- package/dist/builtin-plugin/index.d.ts +65 -0
- package/dist/builtin-plugin/index.d.ts.map +1 -0
- package/dist/builtin-plugin/index.js +240 -0
- package/dist/builtin-plugin/index.js.map +1 -0
- package/dist/config/adapter.d.ts +2 -1
- package/dist/config/adapter.d.ts.map +1 -1
- package/dist/config/adapter.js +70 -101
- package/dist/config/adapter.js.map +1 -1
- package/dist/config/adapterRuleUse.d.ts +1 -1
- package/dist/config/adapterRuleUse.d.ts.map +1 -1
- package/dist/config/defaults.d.ts +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +13 -34
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/index.d.ts +1 -2
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -32
- package/dist/config/index.js.map +1 -1
- package/dist/config/normalization.d.ts +103 -1
- package/dist/config/normalization.d.ts.map +1 -1
- package/dist/config/normalization.js +3 -3
- package/dist/config/normalization.js.map +1 -1
- package/dist/config/target.d.ts +5 -1
- package/dist/config/target.d.ts.map +1 -1
- package/dist/config/target.js +4 -0
- package/dist/config/target.js.map +1 -1
- package/dist/config/zod.d.ts +3929 -0
- package/dist/config/zod.d.ts.map +1 -0
- package/dist/config/zod.js +648 -0
- package/dist/config/zod.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/EntryOptionPlugin.d.ts +16 -0
- package/dist/lib/EntryOptionPlugin.d.ts.map +1 -0
- package/dist/lib/EntryOptionPlugin.js +75 -0
- package/dist/lib/EntryOptionPlugin.js.map +1 -0
- package/dist/lib/EnvironmentPlugin.d.ts.map +1 -1
- package/dist/lib/EnvironmentPlugin.js +2 -7
- package/dist/lib/EnvironmentPlugin.js.map +1 -1
- package/dist/loader-runner/index.js.map +1 -1
- package/dist/rspack.d.ts.map +1 -1
- package/dist/rspack.js +2 -6
- package/dist/rspack.js.map +1 -1
- package/dist/rspackOptionsApply.d.ts.map +1 -1
- package/dist/rspackOptionsApply.js +52 -10
- package/dist/rspackOptionsApply.js.map +1 -1
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts.map +1 -1
- package/dist/stats/DefaultStatsFactoryPlugin.js +1 -1
- package/dist/stats/DefaultStatsFactoryPlugin.js.map +1 -1
- package/dist/util/comparators.d.ts +1 -1
- package/dist/util/index.d.ts +10 -0
- package/dist/util/index.d.ts.map +1 -1
- package/dist/util/index.js +13 -1
- package/dist/util/index.js.map +1 -1
- package/dist/util/validate.d.ts +2 -0
- package/dist/util/validate.d.ts.map +1 -0
- package/dist/util/validate.js +32 -0
- package/dist/util/validate.js.map +1 -0
- package/package.json +9 -9
- package/dist/config/builtins.d.ts +0 -99
- package/dist/config/builtins.d.ts.map +0 -1
- package/dist/config/builtins.js +0 -356
- package/dist/config/builtins.js.map +0 -1
- package/dist/config/schema.check.d.ts +0 -10
- package/dist/config/schema.check.d.ts.map +0 -1
- package/dist/config/schema.check.js +0 -10576
- package/dist/config/schema.check.js.map +0 -1
- package/dist/config/schema.d.ts +0 -2717
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/config/schema.js +0 -2200
- package/dist/config/schema.js.map +0 -1
- package/dist/config/types.d.ts +0 -484
- package/dist/config/types.d.ts.map +0 -1
- package/dist/config/types.js +0 -11
- package/dist/config/types.js.map +0 -1
- package/dist/config/zod/_rewrite.d.ts +0 -12
- package/dist/config/zod/_rewrite.d.ts.map +0 -1
- package/dist/config/zod/_rewrite.js +0 -2
- package/dist/config/zod/_rewrite.js.map +0 -1
- package/dist/config/zod/builtins.d.ts +0 -167
- package/dist/config/zod/builtins.d.ts.map +0 -1
- package/dist/config/zod/builtins.js +0 -47
- package/dist/config/zod/builtins.js.map +0 -1
- package/dist/config/zod/devtool.d.ts +0 -2
- package/dist/config/zod/devtool.d.ts.map +0 -1
- package/dist/config/zod/devtool.js +0 -34
- package/dist/config/zod/devtool.js.map +0 -1
- package/dist/config/zod/entry.d.ts +0 -29
- package/dist/config/zod/entry.d.ts.map +0 -1
- package/dist/config/zod/entry.js +0 -35
- package/dist/config/zod/entry.js.map +0 -1
- package/dist/config/zod/experiments.d.ts +0 -38
- package/dist/config/zod/experiments.d.ts.map +0 -1
- package/dist/config/zod/experiments.js +0 -21
- package/dist/config/zod/experiments.js.map +0 -1
- package/dist/config/zod/externals-presets.d.ts +0 -23
- package/dist/config/zod/externals-presets.d.ts.map +0 -1
- package/dist/config/zod/externals-presets.js +0 -17
- package/dist/config/zod/externals-presets.js.map +0 -1
- package/dist/config/zod/externals-type.d.ts +0 -2
- package/dist/config/zod/externals-type.d.ts.map +0 -1
- package/dist/config/zod/externals-type.js +0 -30
- package/dist/config/zod/externals-type.js.map +0 -1
- package/dist/config/zod/externals.d.ts +0 -2
- package/dist/config/zod/externals.d.ts.map +0 -1
- package/dist/config/zod/externals.js +0 -13
- package/dist/config/zod/externals.js.map +0 -1
- package/dist/config/zod/index.d.ts +0 -1708
- package/dist/config/zod/index.d.ts.map +0 -1
- package/dist/config/zod/index.js +0 -58
- package/dist/config/zod/index.js.map +0 -1
- package/dist/config/zod/infrastructure-logging.d.ts +0 -23
- package/dist/config/zod/infrastructure-logging.d.ts.map +0 -1
- package/dist/config/zod/infrastructure-logging.js +0 -19
- package/dist/config/zod/infrastructure-logging.js.map +0 -1
- package/dist/config/zod/module.d.ts +0 -0
- package/dist/config/zod/module.d.ts.map +0 -1
- package/dist/config/zod/module.js +0 -1
- package/dist/config/zod/module.js.map +0 -1
- package/dist/config/zod/node.d.ts +0 -14
- package/dist/config/zod/node.d.ts.map +0 -1
- package/dist/config/zod/node.js +0 -23
- package/dist/config/zod/node.js.map +0 -1
- package/dist/config/zod/optimization/index.d.ts +0 -257
- package/dist/config/zod/optimization/index.d.ts.map +0 -1
- package/dist/config/zod/optimization/index.js +0 -32
- package/dist/config/zod/optimization/index.js.map +0 -1
- package/dist/config/zod/optimization/split-chunks.d.ts +0 -184
- package/dist/config/zod/optimization/split-chunks.d.ts.map +0 -1
- package/dist/config/zod/optimization/split-chunks.js +0 -48
- package/dist/config/zod/optimization/split-chunks.js.map +0 -1
- package/dist/config/zod/output.d.ts +0 -275
- package/dist/config/zod/output.d.ts.map +0 -1
- package/dist/config/zod/output.js +0 -132
- package/dist/config/zod/output.js.map +0 -1
- package/dist/config/zod/plugins.d.ts +0 -12
- package/dist/config/zod/plugins.d.ts.map +0 -1
- package/dist/config/zod/plugins.js +0 -18
- package/dist/config/zod/plugins.js.map +0 -1
- package/dist/config/zod/resolve.d.ts +0 -49
- package/dist/config/zod/resolve.d.ts.map +0 -1
- package/dist/config/zod/resolve.js +0 -29
- package/dist/config/zod/resolve.js.map +0 -1
- package/dist/config/zod/snapshot.d.ts +0 -41
- package/dist/config/zod/snapshot.d.ts.map +0 -1
- package/dist/config/zod/snapshot.js +0 -21
- package/dist/config/zod/snapshot.js.map +0 -1
- package/dist/config/zod/stats.d.ts +0 -71
- package/dist/config/zod/stats.d.ts.map +0 -1
- package/dist/config/zod/stats.js +0 -36
- package/dist/config/zod/stats.js.map +0 -1
- package/dist/config/zod/target.d.ts +0 -2
- package/dist/config/zod/target.d.ts.map +0 -1
- package/dist/config/zod/target.js +0 -39
- package/dist/config/zod/target.js.map +0 -1
- package/dist/config/zod/watch-options.d.ts +0 -20
- package/dist/config/zod/watch-options.d.ts.map +0 -1
- package/dist/config/zod/watch-options.js +0 -21
- package/dist/config/zod/watch-options.js.map +0 -1
package/dist/config/schema.js
DELETED
|
@@ -1,2200 +0,0 @@
|
|
|
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
|
-
ChunkFormat: {
|
|
63
|
-
description: "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).",
|
|
64
|
-
anyOf: [
|
|
65
|
-
{
|
|
66
|
-
enum: ["array-push", "commonjs", "module", false]
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
type: "string"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
ChunkLoading: {
|
|
74
|
-
description: "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).",
|
|
75
|
-
anyOf: [
|
|
76
|
-
{
|
|
77
|
-
enum: [false]
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
$ref: "#/definitions/ChunkLoadingType"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
ChunkLoadingType: {
|
|
85
|
-
description: "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).",
|
|
86
|
-
anyOf: [
|
|
87
|
-
{
|
|
88
|
-
enum: ["jsonp", "import-scripts", "require", "async-node", "import"]
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
type: "string"
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
CrossOriginLoading: {
|
|
96
|
-
description: "This option enables cross-origin loading of chunks.",
|
|
97
|
-
enum: [false, "anonymous", "use-credentials"]
|
|
98
|
-
},
|
|
99
|
-
Context: {
|
|
100
|
-
description: "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.",
|
|
101
|
-
type: "string"
|
|
102
|
-
},
|
|
103
|
-
CssChunkFilename: {
|
|
104
|
-
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.",
|
|
105
|
-
oneOf: [
|
|
106
|
-
{
|
|
107
|
-
$ref: "#/definitions/FilenameTemplate"
|
|
108
|
-
}
|
|
109
|
-
]
|
|
110
|
-
},
|
|
111
|
-
CssFilename: {
|
|
112
|
-
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.",
|
|
113
|
-
oneOf: [
|
|
114
|
-
{
|
|
115
|
-
$ref: "#/definitions/FilenameTemplate"
|
|
116
|
-
}
|
|
117
|
-
]
|
|
118
|
-
},
|
|
119
|
-
HotUpdateChunkFilename: {
|
|
120
|
-
description: "The filename of the Hot Update Chunks. They are inside the output.path directory.",
|
|
121
|
-
type: "string",
|
|
122
|
-
absolutePath: false
|
|
123
|
-
},
|
|
124
|
-
HotUpdateMainFilename: {
|
|
125
|
-
description: "The filename of the Hot Update Main File. It is inside the 'output.path' directory.",
|
|
126
|
-
type: "string",
|
|
127
|
-
absolutePath: false
|
|
128
|
-
},
|
|
129
|
-
HashDigest: {
|
|
130
|
-
description: "Digest type used for the hash.",
|
|
131
|
-
type: "string"
|
|
132
|
-
},
|
|
133
|
-
HashDigestLength: {
|
|
134
|
-
description: "Number of chars which are used for the hash.",
|
|
135
|
-
type: "number",
|
|
136
|
-
minimum: 1
|
|
137
|
-
},
|
|
138
|
-
HashFunction: {
|
|
139
|
-
description: "Algorithm used for generation the hash (see node.js crypto package).",
|
|
140
|
-
anyOf: [
|
|
141
|
-
{
|
|
142
|
-
type: "string",
|
|
143
|
-
minLength: 1
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
instanceof: "Function"
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
},
|
|
150
|
-
HashSalt: {
|
|
151
|
-
description: "Any string which is added to the hash to salt it.",
|
|
152
|
-
type: "string",
|
|
153
|
-
minLength: 1
|
|
154
|
-
},
|
|
155
|
-
WebassemblyModuleFilename: {
|
|
156
|
-
description: "The filename of WebAssembly modules as relative path inside the 'output.path' directory.",
|
|
157
|
-
type: "string"
|
|
158
|
-
},
|
|
159
|
-
EnabledWasmLoadingTypes: {
|
|
160
|
-
description: "List of wasm loading types enabled for use by entry points.",
|
|
161
|
-
type: "array",
|
|
162
|
-
items: {
|
|
163
|
-
$ref: "#/definitions/WasmLoadingType"
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
EnabledChunkLoadingTypes: {
|
|
167
|
-
description: "List of chunk loading types enabled for use by entry points.",
|
|
168
|
-
type: "array",
|
|
169
|
-
items: {
|
|
170
|
-
$ref: "#/definitions/ChunkLoadingType"
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
WasmLoading: {
|
|
174
|
-
description: "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).",
|
|
175
|
-
anyOf: [
|
|
176
|
-
{
|
|
177
|
-
enum: [false]
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
$ref: "#/definitions/WasmLoadingType"
|
|
181
|
-
}
|
|
182
|
-
]
|
|
183
|
-
},
|
|
184
|
-
WasmLoadingType: {
|
|
185
|
-
description: "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).",
|
|
186
|
-
anyOf: [
|
|
187
|
-
{
|
|
188
|
-
enum: ["fetch-streaming", "fetch", "async-node"]
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
type: "string"
|
|
192
|
-
}
|
|
193
|
-
]
|
|
194
|
-
},
|
|
195
|
-
Dependencies: {
|
|
196
|
-
description: "References to other configurations to depend on.",
|
|
197
|
-
type: "array",
|
|
198
|
-
items: {
|
|
199
|
-
description: "References to another configuration to depend on.",
|
|
200
|
-
type: "string"
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
DevServer: {
|
|
204
|
-
description: "Options for the rspack-dev-server.",
|
|
205
|
-
type: "object"
|
|
206
|
-
},
|
|
207
|
-
DevTool: {
|
|
208
|
-
description: "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).",
|
|
209
|
-
anyOf: [
|
|
210
|
-
{
|
|
211
|
-
enum: [false]
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
type: "string",
|
|
215
|
-
pattern: "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$"
|
|
216
|
-
}
|
|
217
|
-
]
|
|
218
|
-
},
|
|
219
|
-
EnabledLibraryTypes: {
|
|
220
|
-
description: "List of library types enabled for use by entry points.",
|
|
221
|
-
type: "array",
|
|
222
|
-
items: {
|
|
223
|
-
$ref: "#/definitions/LibraryType"
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
Entry: {
|
|
227
|
-
description: "The entry point(s) of the compilation.",
|
|
228
|
-
anyOf: [
|
|
229
|
-
{
|
|
230
|
-
$ref: "#/definitions/EntryStatic"
|
|
231
|
-
}
|
|
232
|
-
]
|
|
233
|
-
},
|
|
234
|
-
EntryDescription: {
|
|
235
|
-
description: "An object with entry point description.",
|
|
236
|
-
type: "object",
|
|
237
|
-
additionalProperties: false,
|
|
238
|
-
properties: {
|
|
239
|
-
import: {
|
|
240
|
-
$ref: "#/definitions/EntryItem"
|
|
241
|
-
},
|
|
242
|
-
runtime: {
|
|
243
|
-
$ref: "#/definitions/EntryRuntime"
|
|
244
|
-
},
|
|
245
|
-
wasmLoading: {
|
|
246
|
-
$ref: "#/definitions/WasmLoading"
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
required: ["import"]
|
|
250
|
-
},
|
|
251
|
-
EntryFilename: {
|
|
252
|
-
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.",
|
|
253
|
-
oneOf: [
|
|
254
|
-
{
|
|
255
|
-
$ref: "#/definitions/FilenameTemplate"
|
|
256
|
-
}
|
|
257
|
-
]
|
|
258
|
-
},
|
|
259
|
-
EntryItem: {
|
|
260
|
-
description: "Module(s) that are loaded upon startup.",
|
|
261
|
-
anyOf: [
|
|
262
|
-
{
|
|
263
|
-
description: "All modules are loaded upon startup. The last one is exported.",
|
|
264
|
-
type: "array",
|
|
265
|
-
items: {
|
|
266
|
-
description: "A module that is loaded upon startup. Only the last one is exported.",
|
|
267
|
-
type: "string",
|
|
268
|
-
minLength: 1
|
|
269
|
-
},
|
|
270
|
-
minItems: 1,
|
|
271
|
-
uniqueItems: true
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
description: "The string is resolved to a module which is loaded upon startup.",
|
|
275
|
-
type: "string",
|
|
276
|
-
minLength: 1
|
|
277
|
-
}
|
|
278
|
-
]
|
|
279
|
-
},
|
|
280
|
-
EntryObject: {
|
|
281
|
-
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.",
|
|
282
|
-
type: "object",
|
|
283
|
-
additionalProperties: {
|
|
284
|
-
description: "An entry point with name.",
|
|
285
|
-
anyOf: [
|
|
286
|
-
{
|
|
287
|
-
$ref: "#/definitions/EntryItem"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
$ref: "#/definitions/EntryDescription"
|
|
291
|
-
}
|
|
292
|
-
]
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
EntryRuntime: {
|
|
296
|
-
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.",
|
|
297
|
-
anyOf: [
|
|
298
|
-
{
|
|
299
|
-
enum: [false]
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
type: "string",
|
|
303
|
-
minLength: 1
|
|
304
|
-
}
|
|
305
|
-
]
|
|
306
|
-
},
|
|
307
|
-
EntryStatic: {
|
|
308
|
-
description: "A static entry description.",
|
|
309
|
-
anyOf: [
|
|
310
|
-
{
|
|
311
|
-
$ref: "#/definitions/EntryObject"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
$ref: "#/definitions/EntryUnnamed"
|
|
315
|
-
}
|
|
316
|
-
]
|
|
317
|
-
},
|
|
318
|
-
EntryUnnamed: {
|
|
319
|
-
description: "An entry point without name.",
|
|
320
|
-
oneOf: [
|
|
321
|
-
{
|
|
322
|
-
$ref: "#/definitions/EntryItem"
|
|
323
|
-
}
|
|
324
|
-
]
|
|
325
|
-
},
|
|
326
|
-
Experiments: {
|
|
327
|
-
description: "Enables/Disables experiments (experimental features with relax SemVer compatibility).",
|
|
328
|
-
type: "object",
|
|
329
|
-
additionalProperties: false,
|
|
330
|
-
properties: {
|
|
331
|
-
asyncWebAssembly: {
|
|
332
|
-
description: "Support WebAssembly as asynchronous EcmaScript Module.",
|
|
333
|
-
type: "boolean"
|
|
334
|
-
},
|
|
335
|
-
incrementalRebuild: {
|
|
336
|
-
description: "Rebuild incrementally",
|
|
337
|
-
anyOf: [
|
|
338
|
-
{
|
|
339
|
-
type: "boolean"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
type: "object",
|
|
343
|
-
properties: {
|
|
344
|
-
make: {
|
|
345
|
-
description: "Make stage enable incremental rebuild",
|
|
346
|
-
type: "boolean"
|
|
347
|
-
},
|
|
348
|
-
emitAsset: {
|
|
349
|
-
description: "Emit asset enable incremental rebuild",
|
|
350
|
-
type: "boolean"
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
]
|
|
355
|
-
},
|
|
356
|
-
lazyCompilation: {
|
|
357
|
-
description: "Compile entrypoints and import()s only when they are accessed.",
|
|
358
|
-
anyOf: [
|
|
359
|
-
{
|
|
360
|
-
type: "boolean"
|
|
361
|
-
}
|
|
362
|
-
]
|
|
363
|
-
},
|
|
364
|
-
outputModule: {
|
|
365
|
-
description: "Allow output javascript files as module source type.",
|
|
366
|
-
type: "boolean"
|
|
367
|
-
},
|
|
368
|
-
newSplitChunks: {
|
|
369
|
-
description: "Enable new SplitChunksPlugin",
|
|
370
|
-
type: "boolean"
|
|
371
|
-
},
|
|
372
|
-
css: {
|
|
373
|
-
description: "Enable native css support.",
|
|
374
|
-
type: "boolean"
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
|
-
ExternalItem: {
|
|
379
|
-
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`.",
|
|
380
|
-
anyOf: [
|
|
381
|
-
{
|
|
382
|
-
description: "Every matched dependency becomes external.",
|
|
383
|
-
instanceof: "RegExp"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
description: "An exact matched dependency becomes external. The same string is used as external dependency.",
|
|
387
|
-
type: "string"
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
description: "If an dependency matches exactly a property of the object, the property value is used as dependency.",
|
|
391
|
-
type: "object",
|
|
392
|
-
additionalProperties: {
|
|
393
|
-
$ref: "#/definitions/ExternalItemValue"
|
|
394
|
-
}
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
description: "The function is called on each dependency (`function(context, request, callback(err, result))`).",
|
|
398
|
-
instanceof: "Function"
|
|
399
|
-
}
|
|
400
|
-
]
|
|
401
|
-
},
|
|
402
|
-
ExternalItemValue: {
|
|
403
|
-
description: "The dependency used for the external.",
|
|
404
|
-
anyOf: [
|
|
405
|
-
{
|
|
406
|
-
type: "array",
|
|
407
|
-
items: {
|
|
408
|
-
description: "A part of the target of the external.",
|
|
409
|
-
type: "string",
|
|
410
|
-
minLength: 1
|
|
411
|
-
}
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
description: "The target of the external.",
|
|
415
|
-
type: "string"
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
description: "`true`: The dependency name is used as target of the external.",
|
|
419
|
-
type: "boolean"
|
|
420
|
-
}
|
|
421
|
-
]
|
|
422
|
-
},
|
|
423
|
-
Externals: {
|
|
424
|
-
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`.",
|
|
425
|
-
anyOf: [
|
|
426
|
-
{
|
|
427
|
-
type: "array",
|
|
428
|
-
items: {
|
|
429
|
-
$ref: "#/definitions/ExternalItem"
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
$ref: "#/definitions/ExternalItem"
|
|
434
|
-
}
|
|
435
|
-
]
|
|
436
|
-
},
|
|
437
|
-
ExternalsPresets: {
|
|
438
|
-
description: "Enable presets of externals for specific targets.",
|
|
439
|
-
type: "object",
|
|
440
|
-
additionalProperties: false,
|
|
441
|
-
properties: {
|
|
442
|
-
node: {
|
|
443
|
-
description: "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.",
|
|
444
|
-
type: "boolean"
|
|
445
|
-
},
|
|
446
|
-
web: {
|
|
447
|
-
description: "Treat references to 'http(s)://...' and 'std:...' as external and load them via import when used (Note that this changes execution order as externals are executed before any other code in the chunk).",
|
|
448
|
-
type: "boolean"
|
|
449
|
-
},
|
|
450
|
-
electron: {
|
|
451
|
-
description: "Treat common electron built-in modules in main and preload context like 'electron', 'ipc' or 'shell' as external and load them via require() when used.",
|
|
452
|
-
type: "boolean"
|
|
453
|
-
},
|
|
454
|
-
electronMain: {
|
|
455
|
-
description: "Treat electron built-in modules in the main context like 'app', 'ipc-main' or 'shell' as external and load them via require() when used.",
|
|
456
|
-
type: "boolean"
|
|
457
|
-
},
|
|
458
|
-
electronPreload: {
|
|
459
|
-
description: "Treat electron built-in modules in the preload context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used.",
|
|
460
|
-
type: "boolean"
|
|
461
|
-
},
|
|
462
|
-
electronRenderer: {
|
|
463
|
-
description: "Treat electron built-in modules in the renderer context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used.",
|
|
464
|
-
type: "boolean"
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
},
|
|
468
|
-
ExternalsType: {
|
|
469
|
-
description: "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).",
|
|
470
|
-
enum: [
|
|
471
|
-
"var",
|
|
472
|
-
"module",
|
|
473
|
-
"assign",
|
|
474
|
-
"this",
|
|
475
|
-
"window",
|
|
476
|
-
"self",
|
|
477
|
-
"global",
|
|
478
|
-
"commonjs",
|
|
479
|
-
"commonjs2",
|
|
480
|
-
"commonjs-module",
|
|
481
|
-
"commonjs-static",
|
|
482
|
-
"amd",
|
|
483
|
-
"amd-require",
|
|
484
|
-
"umd",
|
|
485
|
-
"umd2",
|
|
486
|
-
"jsonp",
|
|
487
|
-
"system",
|
|
488
|
-
"promise",
|
|
489
|
-
"import",
|
|
490
|
-
"script",
|
|
491
|
-
"node-commonjs"
|
|
492
|
-
]
|
|
493
|
-
},
|
|
494
|
-
Filename: {
|
|
495
|
-
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.",
|
|
496
|
-
oneOf: [
|
|
497
|
-
{
|
|
498
|
-
$ref: "#/definitions/FilenameTemplate"
|
|
499
|
-
}
|
|
500
|
-
]
|
|
501
|
-
},
|
|
502
|
-
SourceMapFilename: {
|
|
503
|
-
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.",
|
|
504
|
-
oneOf: [
|
|
505
|
-
{
|
|
506
|
-
$ref: "#/definitions/FilenameTemplate"
|
|
507
|
-
}
|
|
508
|
-
]
|
|
509
|
-
},
|
|
510
|
-
FilenameTemplate: {
|
|
511
|
-
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.",
|
|
512
|
-
anyOf: [
|
|
513
|
-
{
|
|
514
|
-
type: "string",
|
|
515
|
-
minLength: 1
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
instanceof: "Function"
|
|
519
|
-
}
|
|
520
|
-
]
|
|
521
|
-
},
|
|
522
|
-
FilterItemTypes: {
|
|
523
|
-
description: "Filtering value, regexp or function.",
|
|
524
|
-
anyOf: [
|
|
525
|
-
{
|
|
526
|
-
instanceof: "RegExp"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
type: "string"
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
instanceof: "Function"
|
|
533
|
-
}
|
|
534
|
-
]
|
|
535
|
-
},
|
|
536
|
-
FilterTypes: {
|
|
537
|
-
description: "Filtering values.",
|
|
538
|
-
anyOf: [
|
|
539
|
-
{
|
|
540
|
-
type: "array",
|
|
541
|
-
items: {
|
|
542
|
-
description: "Rule to filter.",
|
|
543
|
-
oneOf: [
|
|
544
|
-
{
|
|
545
|
-
$ref: "#/definitions/FilterItemTypes"
|
|
546
|
-
}
|
|
547
|
-
]
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
$ref: "#/definitions/FilterItemTypes"
|
|
552
|
-
}
|
|
553
|
-
]
|
|
554
|
-
},
|
|
555
|
-
GlobalObject: {
|
|
556
|
-
description: "An expression which is used to address the global object/scope in runtime code.",
|
|
557
|
-
type: "string",
|
|
558
|
-
minLength: 1
|
|
559
|
-
},
|
|
560
|
-
ImportFunctionName: {
|
|
561
|
-
description: "The name of the native import() function (can be exchanged for a polyfill).",
|
|
562
|
-
type: "string"
|
|
563
|
-
},
|
|
564
|
-
InfrastructureLogging: {
|
|
565
|
-
description: "Options for infrastructure level logging.",
|
|
566
|
-
type: "object",
|
|
567
|
-
additionalProperties: false,
|
|
568
|
-
properties: {
|
|
569
|
-
appendOnly: {
|
|
570
|
-
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.",
|
|
571
|
-
type: "boolean"
|
|
572
|
-
},
|
|
573
|
-
colors: {
|
|
574
|
-
description: "Enables/Disables colorful output. This option is only used when no custom console is provided.",
|
|
575
|
-
type: "boolean"
|
|
576
|
-
},
|
|
577
|
-
console: {
|
|
578
|
-
description: "Custom console used for logging."
|
|
579
|
-
},
|
|
580
|
-
debug: {
|
|
581
|
-
description: "Enable debug logging for specific loggers.",
|
|
582
|
-
anyOf: [
|
|
583
|
-
{
|
|
584
|
-
description: "Enable/Disable debug logging for all loggers.",
|
|
585
|
-
type: "boolean"
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
$ref: "#/definitions/FilterTypes"
|
|
589
|
-
}
|
|
590
|
-
]
|
|
591
|
-
},
|
|
592
|
-
level: {
|
|
593
|
-
description: "Log level.",
|
|
594
|
-
enum: ["none", "error", "warn", "info", "log", "verbose"]
|
|
595
|
-
},
|
|
596
|
-
stream: {
|
|
597
|
-
description: "Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided."
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
},
|
|
601
|
-
Library: {
|
|
602
|
-
description: "Make the output files a library, exporting the exports of the entry point.",
|
|
603
|
-
anyOf: [
|
|
604
|
-
{
|
|
605
|
-
$ref: "#/definitions/LibraryName"
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
$ref: "#/definitions/LibraryOptions"
|
|
609
|
-
}
|
|
610
|
-
]
|
|
611
|
-
},
|
|
612
|
-
LibraryCustomUmdCommentObject: {
|
|
613
|
-
description: "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.",
|
|
614
|
-
type: "object",
|
|
615
|
-
additionalProperties: false,
|
|
616
|
-
properties: {
|
|
617
|
-
amd: {
|
|
618
|
-
description: "Set comment for `amd` section in UMD.",
|
|
619
|
-
type: "string"
|
|
620
|
-
},
|
|
621
|
-
commonjs: {
|
|
622
|
-
description: "Set comment for `commonjs` (exports) section in UMD.",
|
|
623
|
-
type: "string"
|
|
624
|
-
},
|
|
625
|
-
commonjs2: {
|
|
626
|
-
description: "Set comment for `commonjs2` (module.exports) section in UMD.",
|
|
627
|
-
type: "string"
|
|
628
|
-
},
|
|
629
|
-
root: {
|
|
630
|
-
description: "Set comment for `root` (global variable) section in UMD.",
|
|
631
|
-
type: "string"
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
},
|
|
635
|
-
LibraryCustomUmdObject: {
|
|
636
|
-
description: "Description object for all UMD variants of the library name.",
|
|
637
|
-
type: "object",
|
|
638
|
-
additionalProperties: false,
|
|
639
|
-
properties: {
|
|
640
|
-
amd: {
|
|
641
|
-
description: "Name of the exposed AMD library in the UMD.",
|
|
642
|
-
type: "string",
|
|
643
|
-
minLength: 1
|
|
644
|
-
},
|
|
645
|
-
commonjs: {
|
|
646
|
-
description: "Name of the exposed commonjs export in the UMD.",
|
|
647
|
-
type: "string",
|
|
648
|
-
minLength: 1
|
|
649
|
-
},
|
|
650
|
-
root: {
|
|
651
|
-
description: "Name of the property exposed globally by a UMD library.",
|
|
652
|
-
anyOf: [
|
|
653
|
-
{
|
|
654
|
-
type: "array",
|
|
655
|
-
items: {
|
|
656
|
-
description: "Part of the name of the property exposed globally by a UMD library.",
|
|
657
|
-
type: "string",
|
|
658
|
-
minLength: 1
|
|
659
|
-
}
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
type: "string",
|
|
663
|
-
minLength: 1
|
|
664
|
-
}
|
|
665
|
-
]
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
},
|
|
669
|
-
LibraryExport: {
|
|
670
|
-
description: "Specify which export should be exposed as library.",
|
|
671
|
-
anyOf: [
|
|
672
|
-
{
|
|
673
|
-
type: "array",
|
|
674
|
-
items: {
|
|
675
|
-
description: "Part of the export that should be exposed as library.",
|
|
676
|
-
type: "string",
|
|
677
|
-
minLength: 1
|
|
678
|
-
}
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
type: "string",
|
|
682
|
-
minLength: 1
|
|
683
|
-
}
|
|
684
|
-
]
|
|
685
|
-
},
|
|
686
|
-
LibraryName: {
|
|
687
|
-
description: "The name of the library (some types allow unnamed libraries too).",
|
|
688
|
-
anyOf: [
|
|
689
|
-
{
|
|
690
|
-
type: "array",
|
|
691
|
-
items: {
|
|
692
|
-
description: "A part of the library name.",
|
|
693
|
-
type: "string",
|
|
694
|
-
minLength: 1
|
|
695
|
-
},
|
|
696
|
-
minItems: 1
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
type: "string",
|
|
700
|
-
minLength: 1
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
$ref: "#/definitions/LibraryCustomUmdObject"
|
|
704
|
-
}
|
|
705
|
-
]
|
|
706
|
-
},
|
|
707
|
-
LibraryOptions: {
|
|
708
|
-
description: "Options for library.",
|
|
709
|
-
type: "object",
|
|
710
|
-
additionalProperties: false,
|
|
711
|
-
properties: {
|
|
712
|
-
auxiliaryComment: {
|
|
713
|
-
$ref: "#/definitions/AuxiliaryComment"
|
|
714
|
-
},
|
|
715
|
-
export: {
|
|
716
|
-
$ref: "#/definitions/LibraryExport"
|
|
717
|
-
},
|
|
718
|
-
name: {
|
|
719
|
-
$ref: "#/definitions/LibraryName"
|
|
720
|
-
},
|
|
721
|
-
type: {
|
|
722
|
-
$ref: "#/definitions/LibraryType"
|
|
723
|
-
},
|
|
724
|
-
umdNamedDefine: {
|
|
725
|
-
$ref: "#/definitions/UmdNamedDefine"
|
|
726
|
-
}
|
|
727
|
-
},
|
|
728
|
-
required: ["type"]
|
|
729
|
-
},
|
|
730
|
-
LibraryType: {
|
|
731
|
-
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).",
|
|
732
|
-
anyOf: [
|
|
733
|
-
{
|
|
734
|
-
enum: [
|
|
735
|
-
"var",
|
|
736
|
-
"module",
|
|
737
|
-
"assign",
|
|
738
|
-
"assign-properties",
|
|
739
|
-
"this",
|
|
740
|
-
"window",
|
|
741
|
-
"self",
|
|
742
|
-
"global",
|
|
743
|
-
"commonjs",
|
|
744
|
-
"commonjs2",
|
|
745
|
-
"commonjs-module",
|
|
746
|
-
"commonjs-static",
|
|
747
|
-
"amd",
|
|
748
|
-
"amd-require",
|
|
749
|
-
"umd",
|
|
750
|
-
"umd2",
|
|
751
|
-
"jsonp",
|
|
752
|
-
"system"
|
|
753
|
-
]
|
|
754
|
-
},
|
|
755
|
-
{
|
|
756
|
-
type: "string"
|
|
757
|
-
}
|
|
758
|
-
]
|
|
759
|
-
},
|
|
760
|
-
Mode: {
|
|
761
|
-
description: "Enable production optimizations or development hints.",
|
|
762
|
-
enum: ["development", "production", "none"]
|
|
763
|
-
},
|
|
764
|
-
IgnoreWarnings: {
|
|
765
|
-
description: "ignore warnings based on pattern",
|
|
766
|
-
type: "array",
|
|
767
|
-
items: {
|
|
768
|
-
anyOf: [
|
|
769
|
-
{
|
|
770
|
-
instanceof: "RegExp"
|
|
771
|
-
},
|
|
772
|
-
{
|
|
773
|
-
instanceof: "Function"
|
|
774
|
-
}
|
|
775
|
-
]
|
|
776
|
-
}
|
|
777
|
-
},
|
|
778
|
-
ModuleOptions: {
|
|
779
|
-
description: "Options affecting the normal modules (`NormalModuleFactory`).",
|
|
780
|
-
type: "object",
|
|
781
|
-
additionalProperties: false,
|
|
782
|
-
properties: {
|
|
783
|
-
defaultRules: {
|
|
784
|
-
description: "An array of rules applied by default for modules.",
|
|
785
|
-
oneOf: [
|
|
786
|
-
{
|
|
787
|
-
$ref: "#/definitions/RuleSetRules"
|
|
788
|
-
}
|
|
789
|
-
]
|
|
790
|
-
},
|
|
791
|
-
parser: {
|
|
792
|
-
$ref: "#/definitions/ParserOptionsByModuleType"
|
|
793
|
-
},
|
|
794
|
-
rules: {
|
|
795
|
-
description: "An array of rules applied for modules.",
|
|
796
|
-
oneOf: [
|
|
797
|
-
{
|
|
798
|
-
$ref: "#/definitions/RuleSetRules"
|
|
799
|
-
}
|
|
800
|
-
]
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
},
|
|
804
|
-
Name: {
|
|
805
|
-
description: "Name of the configuration. Used when loading multiple configurations.",
|
|
806
|
-
type: "string"
|
|
807
|
-
},
|
|
808
|
-
Node: {
|
|
809
|
-
description: "Include polyfills or mocks for various node stuff.",
|
|
810
|
-
anyOf: [
|
|
811
|
-
{
|
|
812
|
-
enum: [false]
|
|
813
|
-
},
|
|
814
|
-
{
|
|
815
|
-
$ref: "#/definitions/NodeOptions"
|
|
816
|
-
}
|
|
817
|
-
]
|
|
818
|
-
},
|
|
819
|
-
NodeOptions: {
|
|
820
|
-
description: "Options object for node compatibility features.",
|
|
821
|
-
type: "object",
|
|
822
|
-
additionalProperties: false,
|
|
823
|
-
properties: {
|
|
824
|
-
__dirname: {
|
|
825
|
-
description: "Include a polyfill for the '__dirname' variable.",
|
|
826
|
-
enum: [false, true, "warn-mock", "mock", "eval-only"]
|
|
827
|
-
},
|
|
828
|
-
__filename: {
|
|
829
|
-
description: "Include a polyfill for the '__filename' variable.",
|
|
830
|
-
enum: [false, true, "warn-mock", "mock", "eval-only"]
|
|
831
|
-
},
|
|
832
|
-
global: {
|
|
833
|
-
description: "Include a polyfill for the 'global' variable.",
|
|
834
|
-
enum: [false, true, "warn"]
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
},
|
|
838
|
-
Optimization: {
|
|
839
|
-
description: "Enables/Disables integrated optimizations.",
|
|
840
|
-
type: "object",
|
|
841
|
-
additionalProperties: false,
|
|
842
|
-
properties: {
|
|
843
|
-
chunkIds: {
|
|
844
|
-
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).",
|
|
845
|
-
enum: ["named", "deterministic"]
|
|
846
|
-
},
|
|
847
|
-
minimize: {
|
|
848
|
-
description: "Enable minimizing the output. Uses optimization.minimizer.",
|
|
849
|
-
type: "boolean"
|
|
850
|
-
},
|
|
851
|
-
minimizer: {
|
|
852
|
-
description: "Minimizer(s) to use for minimizing the output.",
|
|
853
|
-
type: "array",
|
|
854
|
-
items: {
|
|
855
|
-
description: "Plugin of type object or instanceof Function.",
|
|
856
|
-
anyOf: [
|
|
857
|
-
{
|
|
858
|
-
enum: ["..."]
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
$ref: "#/definitions/RspackPluginInstance"
|
|
862
|
-
},
|
|
863
|
-
{
|
|
864
|
-
$ref: "#/definitions/RspackPluginFunction"
|
|
865
|
-
}
|
|
866
|
-
]
|
|
867
|
-
}
|
|
868
|
-
},
|
|
869
|
-
moduleIds: {
|
|
870
|
-
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).",
|
|
871
|
-
enum: ["named", "deterministic"]
|
|
872
|
-
},
|
|
873
|
-
removeAvailableModules: {
|
|
874
|
-
description: "Removes modules from chunks when these modules are already included in all parents.",
|
|
875
|
-
type: "boolean"
|
|
876
|
-
},
|
|
877
|
-
removeEmptyChunks: {
|
|
878
|
-
description: "Remove chunks which are empty.",
|
|
879
|
-
type: "boolean"
|
|
880
|
-
},
|
|
881
|
-
runtimeChunk: {
|
|
882
|
-
$ref: "#/definitions/OptimizationRuntimeChunk"
|
|
883
|
-
},
|
|
884
|
-
sideEffects: {
|
|
885
|
-
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).",
|
|
886
|
-
anyOf: [
|
|
887
|
-
{
|
|
888
|
-
enum: ["flag"]
|
|
889
|
-
},
|
|
890
|
-
{
|
|
891
|
-
type: "boolean"
|
|
892
|
-
}
|
|
893
|
-
]
|
|
894
|
-
},
|
|
895
|
-
splitChunks: {
|
|
896
|
-
description: "Optimize duplication and caching by splitting chunks by shared modules and cache group.",
|
|
897
|
-
anyOf: [
|
|
898
|
-
{
|
|
899
|
-
enum: [false]
|
|
900
|
-
},
|
|
901
|
-
{
|
|
902
|
-
$ref: "#/definitions/OptimizationSplitChunksOptions"
|
|
903
|
-
}
|
|
904
|
-
]
|
|
905
|
-
},
|
|
906
|
-
realContentHash: {
|
|
907
|
-
description: "Use real [contenthash] based on final content of the assets.",
|
|
908
|
-
type: "boolean"
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
},
|
|
912
|
-
OptimizationRuntimeChunk: {
|
|
913
|
-
description: "Create an additional chunk which contains only the rspack runtime and chunk hash maps.",
|
|
914
|
-
anyOf: [
|
|
915
|
-
{
|
|
916
|
-
enum: ["single", "multiple"]
|
|
917
|
-
},
|
|
918
|
-
{
|
|
919
|
-
type: "boolean"
|
|
920
|
-
},
|
|
921
|
-
{
|
|
922
|
-
type: "object",
|
|
923
|
-
additionalProperties: false,
|
|
924
|
-
properties: {
|
|
925
|
-
name: {
|
|
926
|
-
description: "The name or name factory for the runtime chunks.",
|
|
927
|
-
anyOf: [
|
|
928
|
-
{
|
|
929
|
-
type: "string"
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
instanceof: "Function"
|
|
933
|
-
}
|
|
934
|
-
]
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
]
|
|
939
|
-
},
|
|
940
|
-
OptimizationSplitChunksCacheGroup: {
|
|
941
|
-
description: "Options object for describing behavior of a cache group selecting modules that should be cached together.",
|
|
942
|
-
type: "object",
|
|
943
|
-
additionalProperties: false,
|
|
944
|
-
properties: {
|
|
945
|
-
chunks: {
|
|
946
|
-
description: 'Select chunks for determining cache group content (defaults to "initial", "initial" and "all" requires adding these chunks to the HTML).',
|
|
947
|
-
anyOf: [
|
|
948
|
-
{
|
|
949
|
-
enum: ["initial", "async", "all"]
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
instanceof: "Function"
|
|
953
|
-
}
|
|
954
|
-
]
|
|
955
|
-
},
|
|
956
|
-
minChunks: {
|
|
957
|
-
description: "Minimum number of times a module has to be duplicated until it's considered for splitting.",
|
|
958
|
-
type: "number",
|
|
959
|
-
minimum: 1
|
|
960
|
-
},
|
|
961
|
-
name: {
|
|
962
|
-
description: "Give chunks for this cache group a name (chunks with equal name are merged).",
|
|
963
|
-
anyOf: [
|
|
964
|
-
{
|
|
965
|
-
enum: [false]
|
|
966
|
-
},
|
|
967
|
-
{
|
|
968
|
-
type: "string"
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
instanceof: "Function"
|
|
972
|
-
}
|
|
973
|
-
]
|
|
974
|
-
},
|
|
975
|
-
priority: {
|
|
976
|
-
description: "Priority of this cache group.",
|
|
977
|
-
type: "number"
|
|
978
|
-
},
|
|
979
|
-
reuseExistingChunk: {
|
|
980
|
-
description: "Try to reuse existing chunk (with name) when it has matching modules.",
|
|
981
|
-
type: "boolean"
|
|
982
|
-
},
|
|
983
|
-
enforce: {
|
|
984
|
-
description: "ignore splitChunks.minSize, splitChunks.minChunks, splitChunks.maxAsyncRequests and splitChunks.maxInitialRequests options and always create chunks for this cache group.",
|
|
985
|
-
type: "boolean"
|
|
986
|
-
},
|
|
987
|
-
hidePathInfo: {
|
|
988
|
-
type: "boolean"
|
|
989
|
-
},
|
|
990
|
-
maxSize: {
|
|
991
|
-
type: "number"
|
|
992
|
-
},
|
|
993
|
-
test: {
|
|
994
|
-
description: "Assign modules to a cache group by module name.",
|
|
995
|
-
anyOf: [
|
|
996
|
-
{
|
|
997
|
-
instanceof: "RegExp"
|
|
998
|
-
}
|
|
999
|
-
]
|
|
1000
|
-
},
|
|
1001
|
-
minSize: {
|
|
1002
|
-
description: "Minimal size for the created chunks.",
|
|
1003
|
-
oneOf: [
|
|
1004
|
-
{
|
|
1005
|
-
$ref: "#/definitions/OptimizationSplitChunksSizes"
|
|
1006
|
-
}
|
|
1007
|
-
]
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
},
|
|
1011
|
-
OptimizationSplitChunksOptions: {
|
|
1012
|
-
description: "Options object for splitting chunks into smaller chunks.",
|
|
1013
|
-
type: "object",
|
|
1014
|
-
additionalProperties: false,
|
|
1015
|
-
properties: {
|
|
1016
|
-
fallbackCacheGroup: {
|
|
1017
|
-
type: "object",
|
|
1018
|
-
properties: {
|
|
1019
|
-
maxSize: {
|
|
1020
|
-
type: "number"
|
|
1021
|
-
},
|
|
1022
|
-
maxInitialSize: {
|
|
1023
|
-
type: "number"
|
|
1024
|
-
},
|
|
1025
|
-
maxAsyncSize: {
|
|
1026
|
-
type: "number"
|
|
1027
|
-
},
|
|
1028
|
-
minSize: {
|
|
1029
|
-
type: "number"
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
},
|
|
1033
|
-
hidePathInfo: {
|
|
1034
|
-
type: "boolean"
|
|
1035
|
-
},
|
|
1036
|
-
name: {
|
|
1037
|
-
description: "The name or name for chunks.",
|
|
1038
|
-
anyOf: [
|
|
1039
|
-
{
|
|
1040
|
-
type: "string"
|
|
1041
|
-
}
|
|
1042
|
-
]
|
|
1043
|
-
},
|
|
1044
|
-
cacheGroups: {
|
|
1045
|
-
description: "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').",
|
|
1046
|
-
type: "object",
|
|
1047
|
-
additionalProperties: {
|
|
1048
|
-
description: "Configuration for a cache group.",
|
|
1049
|
-
anyOf: [
|
|
1050
|
-
{
|
|
1051
|
-
$ref: "#/definitions/OptimizationSplitChunksCacheGroup"
|
|
1052
|
-
}
|
|
1053
|
-
]
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
chunks: {
|
|
1057
|
-
description: 'Select chunks for determining shared modules (defaults to "async", "initial" and "all" requires adding these chunks to the HTML).',
|
|
1058
|
-
anyOf: [
|
|
1059
|
-
{
|
|
1060
|
-
enum: ["initial", "async", "all"]
|
|
1061
|
-
}
|
|
1062
|
-
]
|
|
1063
|
-
},
|
|
1064
|
-
enforceSizeThreshold: {
|
|
1065
|
-
description: "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.",
|
|
1066
|
-
oneOf: [
|
|
1067
|
-
{
|
|
1068
|
-
$ref: "#/definitions/OptimizationSplitChunksSizes"
|
|
1069
|
-
}
|
|
1070
|
-
]
|
|
1071
|
-
},
|
|
1072
|
-
maxAsyncRequests: {
|
|
1073
|
-
description: "Maximum number of requests which are accepted for on-demand loading.",
|
|
1074
|
-
type: "number",
|
|
1075
|
-
minimum: 1
|
|
1076
|
-
},
|
|
1077
|
-
maxInitialRequests: {
|
|
1078
|
-
description: "Maximum number of initial chunks which are accepted for an entry point.",
|
|
1079
|
-
type: "number",
|
|
1080
|
-
minimum: 1
|
|
1081
|
-
},
|
|
1082
|
-
minChunks: {
|
|
1083
|
-
description: "Minimum number of times a module has to be duplicated until it's considered for splitting.",
|
|
1084
|
-
type: "number",
|
|
1085
|
-
minimum: 1
|
|
1086
|
-
},
|
|
1087
|
-
minRemainingSize: {
|
|
1088
|
-
description: "Minimal size for the chunks the stay after moving the modules to a new chunk.",
|
|
1089
|
-
oneOf: [
|
|
1090
|
-
{
|
|
1091
|
-
$ref: "#/definitions/OptimizationSplitChunksSizes"
|
|
1092
|
-
}
|
|
1093
|
-
]
|
|
1094
|
-
},
|
|
1095
|
-
minSize: {
|
|
1096
|
-
description: "Minimal size for the created chunks.",
|
|
1097
|
-
oneOf: [
|
|
1098
|
-
{
|
|
1099
|
-
$ref: "#/definitions/OptimizationSplitChunksSizes"
|
|
1100
|
-
}
|
|
1101
|
-
]
|
|
1102
|
-
},
|
|
1103
|
-
maxSize: {
|
|
1104
|
-
type: "number"
|
|
1105
|
-
},
|
|
1106
|
-
maxInitialSize: {
|
|
1107
|
-
type: "number"
|
|
1108
|
-
},
|
|
1109
|
-
maxAsyncSize: {
|
|
1110
|
-
type: "number"
|
|
1111
|
-
},
|
|
1112
|
-
reuseExistingChunk: {
|
|
1113
|
-
description: "If the current chunk contains modules already split out from the main bundle, it will be reused instead of a new one being generated. This can affect the resulting file name of the chunk.",
|
|
1114
|
-
type: "boolean"
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
},
|
|
1118
|
-
OptimizationSplitChunksSizes: {
|
|
1119
|
-
description: "Size description for limits.",
|
|
1120
|
-
anyOf: [
|
|
1121
|
-
{
|
|
1122
|
-
description: "Size of the javascript part of the chunk.",
|
|
1123
|
-
type: "number",
|
|
1124
|
-
minimum: 0
|
|
1125
|
-
}
|
|
1126
|
-
]
|
|
1127
|
-
},
|
|
1128
|
-
Iife: {
|
|
1129
|
-
description: "Wrap javascript code into IIFE's to avoid leaking into global scope.",
|
|
1130
|
-
type: "boolean"
|
|
1131
|
-
},
|
|
1132
|
-
Clean: {
|
|
1133
|
-
description: "Clears the output build directory",
|
|
1134
|
-
type: "boolean"
|
|
1135
|
-
},
|
|
1136
|
-
Output: {
|
|
1137
|
-
description: "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.",
|
|
1138
|
-
type: "object",
|
|
1139
|
-
additionalProperties: false,
|
|
1140
|
-
properties: {
|
|
1141
|
-
iife: {
|
|
1142
|
-
$ref: "#/definitions/Iife"
|
|
1143
|
-
},
|
|
1144
|
-
clean: {
|
|
1145
|
-
$ref: "#/definitions/Clean"
|
|
1146
|
-
},
|
|
1147
|
-
assetModuleFilename: {
|
|
1148
|
-
$ref: "#/definitions/AssetModuleFilename"
|
|
1149
|
-
},
|
|
1150
|
-
auxiliaryComment: {
|
|
1151
|
-
oneOf: [
|
|
1152
|
-
{
|
|
1153
|
-
$ref: "#/definitions/AuxiliaryComment"
|
|
1154
|
-
}
|
|
1155
|
-
]
|
|
1156
|
-
},
|
|
1157
|
-
chunkFormat: {
|
|
1158
|
-
$ref: "#/definitions/ChunkFormat"
|
|
1159
|
-
},
|
|
1160
|
-
chunkLoading: {
|
|
1161
|
-
$ref: "#/definitions/ChunkLoading"
|
|
1162
|
-
},
|
|
1163
|
-
enabledChunkLoadingTypes: {
|
|
1164
|
-
$ref: "#/definitions/EnabledChunkLoadingTypes"
|
|
1165
|
-
},
|
|
1166
|
-
chunkFilename: {
|
|
1167
|
-
$ref: "#/definitions/ChunkFilename"
|
|
1168
|
-
},
|
|
1169
|
-
crossOriginLoading: {
|
|
1170
|
-
$ref: "#/definitions/CrossOriginLoading"
|
|
1171
|
-
},
|
|
1172
|
-
cssChunkFilename: {
|
|
1173
|
-
$ref: "#/definitions/CssChunkFilename"
|
|
1174
|
-
},
|
|
1175
|
-
cssFilename: {
|
|
1176
|
-
$ref: "#/definitions/CssFilename"
|
|
1177
|
-
},
|
|
1178
|
-
hotUpdateChunkFilename: {
|
|
1179
|
-
$ref: "#/definitions/HotUpdateChunkFilename"
|
|
1180
|
-
},
|
|
1181
|
-
hotUpdateMainFilename: {
|
|
1182
|
-
$ref: "#/definitions/HotUpdateMainFilename"
|
|
1183
|
-
},
|
|
1184
|
-
enabledWasmLoadingTypes: {
|
|
1185
|
-
$ref: "#/definitions/EnabledWasmLoadingTypes"
|
|
1186
|
-
},
|
|
1187
|
-
wasmLoading: {
|
|
1188
|
-
$ref: "#/definitions/WasmLoading"
|
|
1189
|
-
},
|
|
1190
|
-
webassemblyModuleFilename: {
|
|
1191
|
-
$ref: "#/definitions/WebassemblyModuleFilename"
|
|
1192
|
-
},
|
|
1193
|
-
enabledLibraryTypes: {
|
|
1194
|
-
$ref: "#/definitions/EnabledLibraryTypes"
|
|
1195
|
-
},
|
|
1196
|
-
filename: {
|
|
1197
|
-
$ref: "#/definitions/Filename"
|
|
1198
|
-
},
|
|
1199
|
-
globalObject: {
|
|
1200
|
-
$ref: "#/definitions/GlobalObject"
|
|
1201
|
-
},
|
|
1202
|
-
importFunctionName: {
|
|
1203
|
-
$ref: "#/definitions/ImportFunctionName"
|
|
1204
|
-
},
|
|
1205
|
-
library: {
|
|
1206
|
-
$ref: "#/definitions/Library"
|
|
1207
|
-
},
|
|
1208
|
-
libraryExport: {
|
|
1209
|
-
oneOf: [
|
|
1210
|
-
{
|
|
1211
|
-
$ref: "#/definitions/LibraryExport"
|
|
1212
|
-
}
|
|
1213
|
-
]
|
|
1214
|
-
},
|
|
1215
|
-
libraryTarget: {
|
|
1216
|
-
oneOf: [
|
|
1217
|
-
{
|
|
1218
|
-
$ref: "#/definitions/LibraryType"
|
|
1219
|
-
}
|
|
1220
|
-
]
|
|
1221
|
-
},
|
|
1222
|
-
module: {
|
|
1223
|
-
$ref: "#/definitions/OutputModule"
|
|
1224
|
-
},
|
|
1225
|
-
path: {
|
|
1226
|
-
$ref: "#/definitions/Path"
|
|
1227
|
-
},
|
|
1228
|
-
publicPath: {
|
|
1229
|
-
$ref: "#/definitions/PublicPath"
|
|
1230
|
-
},
|
|
1231
|
-
strictModuleErrorHandling: {
|
|
1232
|
-
$ref: "#/definitions/StrictModuleErrorHandling"
|
|
1233
|
-
},
|
|
1234
|
-
umdNamedDefine: {
|
|
1235
|
-
oneOf: [
|
|
1236
|
-
{
|
|
1237
|
-
$ref: "#/definitions/UmdNamedDefine"
|
|
1238
|
-
}
|
|
1239
|
-
]
|
|
1240
|
-
},
|
|
1241
|
-
uniqueName: {
|
|
1242
|
-
$ref: "#/definitions/UniqueName"
|
|
1243
|
-
},
|
|
1244
|
-
chunkLoadingGlobal: {
|
|
1245
|
-
$ref: "#/definitions/ChunkLoadingGlobal"
|
|
1246
|
-
},
|
|
1247
|
-
trustedTypes: {
|
|
1248
|
-
description: "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.",
|
|
1249
|
-
anyOf: [
|
|
1250
|
-
{
|
|
1251
|
-
enum: [true]
|
|
1252
|
-
},
|
|
1253
|
-
{
|
|
1254
|
-
description: "The name of the Trusted Types policy created by webpack to serve bundle chunks.",
|
|
1255
|
-
type: "string",
|
|
1256
|
-
minLength: 1
|
|
1257
|
-
},
|
|
1258
|
-
{
|
|
1259
|
-
$ref: "#/definitions/TrustedTypes"
|
|
1260
|
-
}
|
|
1261
|
-
]
|
|
1262
|
-
},
|
|
1263
|
-
sourceMapFilename: {
|
|
1264
|
-
$ref: "#/definitions/SourceMapFilename"
|
|
1265
|
-
},
|
|
1266
|
-
hashDigest: {
|
|
1267
|
-
$ref: "#/definitions/HashDigest"
|
|
1268
|
-
},
|
|
1269
|
-
hashDigestLength: {
|
|
1270
|
-
$ref: "#/definitions/HashDigestLength"
|
|
1271
|
-
},
|
|
1272
|
-
hashFunction: {
|
|
1273
|
-
$ref: "#/definitions/HashFunction"
|
|
1274
|
-
},
|
|
1275
|
-
hashSalt: {
|
|
1276
|
-
$ref: "#/definitions/HashSalt"
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
},
|
|
1280
|
-
OutputModule: {
|
|
1281
|
-
description: "Output javascript files as module source type.",
|
|
1282
|
-
type: "boolean"
|
|
1283
|
-
},
|
|
1284
|
-
ParserOptionsByModuleType: {
|
|
1285
|
-
description: "Specify options for each parser.",
|
|
1286
|
-
type: "object",
|
|
1287
|
-
additionalProperties: {
|
|
1288
|
-
description: "Options for parsing.",
|
|
1289
|
-
type: "object",
|
|
1290
|
-
additionalProperties: true
|
|
1291
|
-
},
|
|
1292
|
-
properties: {
|
|
1293
|
-
asset: {
|
|
1294
|
-
$ref: "#/definitions/AssetParserOptions"
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
},
|
|
1298
|
-
Path: {
|
|
1299
|
-
description: "The output directory as **absolute path** (required).",
|
|
1300
|
-
type: "string"
|
|
1301
|
-
},
|
|
1302
|
-
Plugins: {
|
|
1303
|
-
description: "Add additional plugins to the compiler.",
|
|
1304
|
-
type: "array",
|
|
1305
|
-
items: {
|
|
1306
|
-
description: "Plugin of type object or instanceof Function.",
|
|
1307
|
-
anyOf: [
|
|
1308
|
-
{
|
|
1309
|
-
$ref: "#/definitions/RspackPluginInstance"
|
|
1310
|
-
},
|
|
1311
|
-
{
|
|
1312
|
-
$ref: "#/definitions/RspackPluginFunction"
|
|
1313
|
-
}
|
|
1314
|
-
]
|
|
1315
|
-
}
|
|
1316
|
-
},
|
|
1317
|
-
PublicPath: {
|
|
1318
|
-
description: "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.",
|
|
1319
|
-
anyOf: [
|
|
1320
|
-
{
|
|
1321
|
-
enum: ["auto"]
|
|
1322
|
-
},
|
|
1323
|
-
{
|
|
1324
|
-
$ref: "#/definitions/RawPublicPath"
|
|
1325
|
-
}
|
|
1326
|
-
]
|
|
1327
|
-
},
|
|
1328
|
-
RawPublicPath: {
|
|
1329
|
-
description: "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.",
|
|
1330
|
-
anyOf: [
|
|
1331
|
-
{
|
|
1332
|
-
type: "string"
|
|
1333
|
-
}
|
|
1334
|
-
]
|
|
1335
|
-
},
|
|
1336
|
-
Resolve: {
|
|
1337
|
-
description: "Options for the resolver.",
|
|
1338
|
-
oneOf: [
|
|
1339
|
-
{
|
|
1340
|
-
$ref: "#/definitions/ResolveOptions"
|
|
1341
|
-
}
|
|
1342
|
-
]
|
|
1343
|
-
},
|
|
1344
|
-
ResolveAlias: {
|
|
1345
|
-
description: "Redirect module requests.",
|
|
1346
|
-
anyOf: [
|
|
1347
|
-
{
|
|
1348
|
-
type: "object",
|
|
1349
|
-
additionalProperties: {
|
|
1350
|
-
description: "New request.",
|
|
1351
|
-
anyOf: [
|
|
1352
|
-
{
|
|
1353
|
-
description: "Multiple alternative requests.",
|
|
1354
|
-
type: "array",
|
|
1355
|
-
items: {
|
|
1356
|
-
description: "One choice of request.",
|
|
1357
|
-
type: "string",
|
|
1358
|
-
minLength: 1
|
|
1359
|
-
}
|
|
1360
|
-
},
|
|
1361
|
-
{
|
|
1362
|
-
description: "Ignore request (replace with empty module).",
|
|
1363
|
-
enum: [false]
|
|
1364
|
-
},
|
|
1365
|
-
{
|
|
1366
|
-
description: "New request.",
|
|
1367
|
-
type: "string",
|
|
1368
|
-
minLength: 1
|
|
1369
|
-
}
|
|
1370
|
-
]
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
]
|
|
1374
|
-
},
|
|
1375
|
-
ResolveOptions: {
|
|
1376
|
-
description: "Options object for resolving requests.",
|
|
1377
|
-
type: "object",
|
|
1378
|
-
additionalProperties: false,
|
|
1379
|
-
properties: {
|
|
1380
|
-
alias: {
|
|
1381
|
-
$ref: "#/definitions/ResolveAlias"
|
|
1382
|
-
},
|
|
1383
|
-
browserField: {
|
|
1384
|
-
description: "Fields in the description file (usually package.json) which are used to redirect requests inside the module.",
|
|
1385
|
-
type: "boolean"
|
|
1386
|
-
},
|
|
1387
|
-
conditionNames: {
|
|
1388
|
-
description: "Condition names for exports field entry point.",
|
|
1389
|
-
type: "array",
|
|
1390
|
-
items: {
|
|
1391
|
-
description: "Condition names for exports field entry point.",
|
|
1392
|
-
type: "string"
|
|
1393
|
-
}
|
|
1394
|
-
},
|
|
1395
|
-
extensionAlias: {
|
|
1396
|
-
description: "An object which maps extension to extension aliases.",
|
|
1397
|
-
type: "object",
|
|
1398
|
-
additionalProperties: {
|
|
1399
|
-
description: "Extension alias.",
|
|
1400
|
-
anyOf: [
|
|
1401
|
-
{
|
|
1402
|
-
description: "Multiple extensions.",
|
|
1403
|
-
type: "array",
|
|
1404
|
-
items: {
|
|
1405
|
-
description: "Aliased extension.",
|
|
1406
|
-
type: "string",
|
|
1407
|
-
minLength: 1
|
|
1408
|
-
}
|
|
1409
|
-
},
|
|
1410
|
-
{
|
|
1411
|
-
description: "Aliased extension.",
|
|
1412
|
-
type: "string",
|
|
1413
|
-
minLength: 1
|
|
1414
|
-
}
|
|
1415
|
-
]
|
|
1416
|
-
}
|
|
1417
|
-
},
|
|
1418
|
-
extensions: {
|
|
1419
|
-
description: "Extensions added to the request when trying to find the file.",
|
|
1420
|
-
type: "array",
|
|
1421
|
-
items: {
|
|
1422
|
-
description: "Extension added to the request when trying to find the file.",
|
|
1423
|
-
type: "string"
|
|
1424
|
-
}
|
|
1425
|
-
},
|
|
1426
|
-
fallback: {
|
|
1427
|
-
description: "Redirect module requests when normal resolving fails.",
|
|
1428
|
-
oneOf: [
|
|
1429
|
-
{
|
|
1430
|
-
$ref: "#/definitions/ResolveAlias"
|
|
1431
|
-
}
|
|
1432
|
-
]
|
|
1433
|
-
},
|
|
1434
|
-
fullySpecified: {
|
|
1435
|
-
description: "Treats the request specified by the user as fully specified, meaning no extensions are added and the mainFiles in directories are not resolved (This doesn't affect requests from mainFields, aliasFields or aliases).",
|
|
1436
|
-
type: "boolean"
|
|
1437
|
-
},
|
|
1438
|
-
mainFields: {
|
|
1439
|
-
description: "Field names from the description file (package.json) which are used to find the default entry point.",
|
|
1440
|
-
type: "array",
|
|
1441
|
-
items: {
|
|
1442
|
-
description: "Field name from the description file (package.json) which are used to find the default entry point.",
|
|
1443
|
-
anyOf: [
|
|
1444
|
-
{
|
|
1445
|
-
type: "array",
|
|
1446
|
-
items: {
|
|
1447
|
-
description: "Part of the field path from the description file (package.json) which are used to find the default entry point.",
|
|
1448
|
-
type: "string",
|
|
1449
|
-
minLength: 1
|
|
1450
|
-
}
|
|
1451
|
-
},
|
|
1452
|
-
{
|
|
1453
|
-
type: "string",
|
|
1454
|
-
minLength: 1
|
|
1455
|
-
}
|
|
1456
|
-
]
|
|
1457
|
-
}
|
|
1458
|
-
},
|
|
1459
|
-
mainFiles: {
|
|
1460
|
-
description: "Filenames used to find the default entry point if there is no description file or main field.",
|
|
1461
|
-
type: "array",
|
|
1462
|
-
items: {
|
|
1463
|
-
description: "Filename used to find the default entry point if there is no description file or main field.",
|
|
1464
|
-
type: "string",
|
|
1465
|
-
minLength: 1
|
|
1466
|
-
}
|
|
1467
|
-
},
|
|
1468
|
-
modules: {
|
|
1469
|
-
description: "Folder names or directory paths where to find modules.",
|
|
1470
|
-
type: "array",
|
|
1471
|
-
items: {
|
|
1472
|
-
description: "Folder name or directory path where to find modules.",
|
|
1473
|
-
type: "string",
|
|
1474
|
-
minLength: 1
|
|
1475
|
-
}
|
|
1476
|
-
},
|
|
1477
|
-
preferRelative: {
|
|
1478
|
-
description: "Prefer to resolve module requests as relative request and fallback to resolving as module.",
|
|
1479
|
-
type: "boolean"
|
|
1480
|
-
},
|
|
1481
|
-
byDependency: {
|
|
1482
|
-
description: 'Extra resolve options per dependency category. Typical categories are "commonjs", "amd", "esm".',
|
|
1483
|
-
type: "object",
|
|
1484
|
-
additionalProperties: {
|
|
1485
|
-
description: "Options object for resolving requests.",
|
|
1486
|
-
oneOf: [
|
|
1487
|
-
{
|
|
1488
|
-
$ref: "#/definitions/ResolveOptions"
|
|
1489
|
-
}
|
|
1490
|
-
]
|
|
1491
|
-
}
|
|
1492
|
-
},
|
|
1493
|
-
tsConfigPath: {
|
|
1494
|
-
description: "Path to tsconfig.json",
|
|
1495
|
-
type: "string"
|
|
1496
|
-
},
|
|
1497
|
-
exportsFields: {
|
|
1498
|
-
description: "Fields in the description file (usually package.json) which are used to redirect requests inside the module.",
|
|
1499
|
-
type: "array",
|
|
1500
|
-
items: {
|
|
1501
|
-
description: "Field name from the description file (package.json) which are used to find the default entry point.",
|
|
1502
|
-
type: "string"
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
}
|
|
1506
|
-
},
|
|
1507
|
-
RuleSetCondition: {
|
|
1508
|
-
description: "A condition matcher.",
|
|
1509
|
-
anyOf: [
|
|
1510
|
-
{
|
|
1511
|
-
instanceof: "RegExp"
|
|
1512
|
-
},
|
|
1513
|
-
{
|
|
1514
|
-
type: "string"
|
|
1515
|
-
},
|
|
1516
|
-
{
|
|
1517
|
-
instanceof: "Function"
|
|
1518
|
-
},
|
|
1519
|
-
{
|
|
1520
|
-
$ref: "#/definitions/RuleSetLogicalConditions"
|
|
1521
|
-
},
|
|
1522
|
-
{
|
|
1523
|
-
$ref: "#/definitions/RuleSetConditions"
|
|
1524
|
-
}
|
|
1525
|
-
]
|
|
1526
|
-
},
|
|
1527
|
-
RuleSetConditionOrConditions: {
|
|
1528
|
-
description: "One or multiple rule conditions.",
|
|
1529
|
-
anyOf: [
|
|
1530
|
-
{
|
|
1531
|
-
$ref: "#/definitions/RuleSetCondition"
|
|
1532
|
-
},
|
|
1533
|
-
{
|
|
1534
|
-
$ref: "#/definitions/RuleSetConditions"
|
|
1535
|
-
}
|
|
1536
|
-
]
|
|
1537
|
-
},
|
|
1538
|
-
RuleSetConditions: {
|
|
1539
|
-
description: "A list of rule conditions.",
|
|
1540
|
-
type: "array",
|
|
1541
|
-
items: {
|
|
1542
|
-
description: "A rule condition.",
|
|
1543
|
-
oneOf: [
|
|
1544
|
-
{
|
|
1545
|
-
$ref: "#/definitions/RuleSetCondition"
|
|
1546
|
-
}
|
|
1547
|
-
]
|
|
1548
|
-
}
|
|
1549
|
-
},
|
|
1550
|
-
RuleSetLoader: {
|
|
1551
|
-
description: "A loader request.",
|
|
1552
|
-
type: "string",
|
|
1553
|
-
minLength: 1
|
|
1554
|
-
},
|
|
1555
|
-
RuleSetLoaderOptions: {
|
|
1556
|
-
description: "Options passed to a loader.",
|
|
1557
|
-
anyOf: [
|
|
1558
|
-
{
|
|
1559
|
-
type: "string"
|
|
1560
|
-
},
|
|
1561
|
-
{
|
|
1562
|
-
type: "object"
|
|
1563
|
-
}
|
|
1564
|
-
]
|
|
1565
|
-
},
|
|
1566
|
-
RuleSetLogicalConditions: {
|
|
1567
|
-
description: "Logic operators used in a condition matcher.",
|
|
1568
|
-
type: "object",
|
|
1569
|
-
additionalProperties: false,
|
|
1570
|
-
properties: {
|
|
1571
|
-
and: {
|
|
1572
|
-
description: "Logical AND.",
|
|
1573
|
-
oneOf: [
|
|
1574
|
-
{
|
|
1575
|
-
$ref: "#/definitions/RuleSetConditions"
|
|
1576
|
-
}
|
|
1577
|
-
]
|
|
1578
|
-
},
|
|
1579
|
-
not: {
|
|
1580
|
-
description: "Logical NOT.",
|
|
1581
|
-
oneOf: [
|
|
1582
|
-
{
|
|
1583
|
-
$ref: "#/definitions/RuleSetCondition"
|
|
1584
|
-
}
|
|
1585
|
-
]
|
|
1586
|
-
},
|
|
1587
|
-
or: {
|
|
1588
|
-
description: "Logical OR.",
|
|
1589
|
-
oneOf: [
|
|
1590
|
-
{
|
|
1591
|
-
$ref: "#/definitions/RuleSetConditions"
|
|
1592
|
-
}
|
|
1593
|
-
]
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
},
|
|
1597
|
-
RuleSetRule: {
|
|
1598
|
-
description: "A rule description with conditions and effects for modules.",
|
|
1599
|
-
type: "object",
|
|
1600
|
-
additionalProperties: false,
|
|
1601
|
-
properties: {
|
|
1602
|
-
enforce: {
|
|
1603
|
-
description: "Enforce this rule as pre or post step.",
|
|
1604
|
-
enum: ["pre", "post"]
|
|
1605
|
-
},
|
|
1606
|
-
exclude: {
|
|
1607
|
-
description: "Shortcut for resource.exclude.",
|
|
1608
|
-
oneOf: [
|
|
1609
|
-
{
|
|
1610
|
-
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1611
|
-
}
|
|
1612
|
-
]
|
|
1613
|
-
},
|
|
1614
|
-
generator: {
|
|
1615
|
-
description: "The options for the module generator.",
|
|
1616
|
-
type: "object"
|
|
1617
|
-
},
|
|
1618
|
-
include: {
|
|
1619
|
-
description: "Shortcut for resource.include.",
|
|
1620
|
-
oneOf: [
|
|
1621
|
-
{
|
|
1622
|
-
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1623
|
-
}
|
|
1624
|
-
]
|
|
1625
|
-
},
|
|
1626
|
-
issuer: {
|
|
1627
|
-
description: "Match the issuer of the module (The module pointing to this module).",
|
|
1628
|
-
oneOf: [
|
|
1629
|
-
{
|
|
1630
|
-
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1631
|
-
}
|
|
1632
|
-
]
|
|
1633
|
-
},
|
|
1634
|
-
dependency: {
|
|
1635
|
-
description: "Match dependency type.",
|
|
1636
|
-
oneOf: [
|
|
1637
|
-
{
|
|
1638
|
-
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1639
|
-
}
|
|
1640
|
-
]
|
|
1641
|
-
},
|
|
1642
|
-
descriptionData: {
|
|
1643
|
-
description: "Match values of properties in the description file (usually package.json).",
|
|
1644
|
-
type: "object",
|
|
1645
|
-
additionalProperties: {
|
|
1646
|
-
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1647
|
-
}
|
|
1648
|
-
},
|
|
1649
|
-
oneOf: {
|
|
1650
|
-
description: "Only execute the first matching rule in this array.",
|
|
1651
|
-
type: "array",
|
|
1652
|
-
items: {
|
|
1653
|
-
description: "A rule.",
|
|
1654
|
-
oneOf: [
|
|
1655
|
-
{
|
|
1656
|
-
$ref: "#/definitions/RuleSetRule"
|
|
1657
|
-
}
|
|
1658
|
-
]
|
|
1659
|
-
}
|
|
1660
|
-
},
|
|
1661
|
-
parser: {
|
|
1662
|
-
description: "Options for parsing.",
|
|
1663
|
-
type: "object",
|
|
1664
|
-
additionalProperties: true
|
|
1665
|
-
},
|
|
1666
|
-
resolve: {
|
|
1667
|
-
description: "Options for the resolver.",
|
|
1668
|
-
type: "object",
|
|
1669
|
-
oneOf: [
|
|
1670
|
-
{
|
|
1671
|
-
$ref: "#/definitions/ResolveOptions"
|
|
1672
|
-
}
|
|
1673
|
-
]
|
|
1674
|
-
},
|
|
1675
|
-
resource: {
|
|
1676
|
-
description: "Match the resource path of the module.",
|
|
1677
|
-
oneOf: [
|
|
1678
|
-
{
|
|
1679
|
-
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1680
|
-
}
|
|
1681
|
-
]
|
|
1682
|
-
},
|
|
1683
|
-
resourceFragment: {
|
|
1684
|
-
description: "Match the resource fragment of the module.",
|
|
1685
|
-
oneOf: [
|
|
1686
|
-
{
|
|
1687
|
-
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1688
|
-
}
|
|
1689
|
-
]
|
|
1690
|
-
},
|
|
1691
|
-
resourceQuery: {
|
|
1692
|
-
description: "Match the resource query of the module.",
|
|
1693
|
-
oneOf: [
|
|
1694
|
-
{
|
|
1695
|
-
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1696
|
-
}
|
|
1697
|
-
]
|
|
1698
|
-
},
|
|
1699
|
-
mimetype: {
|
|
1700
|
-
description: "Match module mimetype when load from Data URI.",
|
|
1701
|
-
oneOf: [
|
|
1702
|
-
{
|
|
1703
|
-
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1704
|
-
}
|
|
1705
|
-
]
|
|
1706
|
-
},
|
|
1707
|
-
loader: {
|
|
1708
|
-
description: "Shortcut for use.loader.",
|
|
1709
|
-
oneOf: [
|
|
1710
|
-
{
|
|
1711
|
-
$ref: "#/definitions/RuleSetLoader"
|
|
1712
|
-
}
|
|
1713
|
-
]
|
|
1714
|
-
},
|
|
1715
|
-
options: {
|
|
1716
|
-
description: "Shortcut for use.options.",
|
|
1717
|
-
oneOf: [
|
|
1718
|
-
{
|
|
1719
|
-
$ref: "#/definitions/RuleSetLoaderOptions"
|
|
1720
|
-
}
|
|
1721
|
-
]
|
|
1722
|
-
},
|
|
1723
|
-
scheme: {
|
|
1724
|
-
description: "Match module scheme.",
|
|
1725
|
-
oneOf: [
|
|
1726
|
-
{
|
|
1727
|
-
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1728
|
-
}
|
|
1729
|
-
]
|
|
1730
|
-
},
|
|
1731
|
-
rules: {
|
|
1732
|
-
description: "Match and execute these rules when this rule is matched.",
|
|
1733
|
-
type: "array",
|
|
1734
|
-
items: {
|
|
1735
|
-
description: "A rule.",
|
|
1736
|
-
oneOf: [
|
|
1737
|
-
{
|
|
1738
|
-
$ref: "#/definitions/RuleSetRule"
|
|
1739
|
-
}
|
|
1740
|
-
]
|
|
1741
|
-
}
|
|
1742
|
-
},
|
|
1743
|
-
sideEffects: {
|
|
1744
|
-
description: "Flags a module as with or without side effects.",
|
|
1745
|
-
type: "boolean"
|
|
1746
|
-
},
|
|
1747
|
-
test: {
|
|
1748
|
-
description: "Shortcut for resource.test.",
|
|
1749
|
-
oneOf: [
|
|
1750
|
-
{
|
|
1751
|
-
$ref: "#/definitions/RuleSetConditionOrConditions"
|
|
1752
|
-
}
|
|
1753
|
-
]
|
|
1754
|
-
},
|
|
1755
|
-
type: {
|
|
1756
|
-
description: "Module type to use for the module.",
|
|
1757
|
-
type: "string"
|
|
1758
|
-
},
|
|
1759
|
-
use: {
|
|
1760
|
-
description: "Modifiers applied to the module when rule is matched.",
|
|
1761
|
-
oneOf: [
|
|
1762
|
-
{
|
|
1763
|
-
$ref: "#/definitions/RuleSetUse"
|
|
1764
|
-
}
|
|
1765
|
-
]
|
|
1766
|
-
}
|
|
1767
|
-
}
|
|
1768
|
-
},
|
|
1769
|
-
RuleSetRules: {
|
|
1770
|
-
description: "A list of rules.",
|
|
1771
|
-
type: "array",
|
|
1772
|
-
items: {
|
|
1773
|
-
description: "A rule.",
|
|
1774
|
-
anyOf: [
|
|
1775
|
-
{
|
|
1776
|
-
enum: ["..."]
|
|
1777
|
-
},
|
|
1778
|
-
{
|
|
1779
|
-
$ref: "#/definitions/RuleSetRule"
|
|
1780
|
-
}
|
|
1781
|
-
]
|
|
1782
|
-
}
|
|
1783
|
-
},
|
|
1784
|
-
RuleSetUse: {
|
|
1785
|
-
description: "A list of descriptions of loaders applied.",
|
|
1786
|
-
anyOf: [
|
|
1787
|
-
{
|
|
1788
|
-
type: "array",
|
|
1789
|
-
items: {
|
|
1790
|
-
description: "An use item.",
|
|
1791
|
-
oneOf: [
|
|
1792
|
-
{
|
|
1793
|
-
$ref: "#/definitions/RuleSetUseItem"
|
|
1794
|
-
}
|
|
1795
|
-
]
|
|
1796
|
-
}
|
|
1797
|
-
},
|
|
1798
|
-
{
|
|
1799
|
-
$ref: "#/definitions/RuleSetUseItem"
|
|
1800
|
-
}
|
|
1801
|
-
]
|
|
1802
|
-
},
|
|
1803
|
-
RuleSetUseItem: {
|
|
1804
|
-
description: "A description of an applied loader.",
|
|
1805
|
-
anyOf: [
|
|
1806
|
-
{
|
|
1807
|
-
type: "object",
|
|
1808
|
-
additionalProperties: false,
|
|
1809
|
-
properties: {
|
|
1810
|
-
loader: {
|
|
1811
|
-
description: "Loader name.",
|
|
1812
|
-
oneOf: [
|
|
1813
|
-
{
|
|
1814
|
-
$ref: "#/definitions/RuleSetLoader"
|
|
1815
|
-
}
|
|
1816
|
-
]
|
|
1817
|
-
},
|
|
1818
|
-
options: {
|
|
1819
|
-
description: "Loader options.",
|
|
1820
|
-
oneOf: [
|
|
1821
|
-
{
|
|
1822
|
-
$ref: "#/definitions/RuleSetLoaderOptions"
|
|
1823
|
-
}
|
|
1824
|
-
]
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
},
|
|
1828
|
-
{
|
|
1829
|
-
$ref: "#/definitions/RuleSetLoader"
|
|
1830
|
-
}
|
|
1831
|
-
]
|
|
1832
|
-
},
|
|
1833
|
-
SnapshotOptions: {
|
|
1834
|
-
description: "Options affecting how file system snapshots are created and validated.",
|
|
1835
|
-
type: "object",
|
|
1836
|
-
additionalProperties: false,
|
|
1837
|
-
properties: {
|
|
1838
|
-
module: {
|
|
1839
|
-
description: "Options for snapshotting dependencies of modules to determine if they need to be built again.",
|
|
1840
|
-
type: "object",
|
|
1841
|
-
additionalProperties: false,
|
|
1842
|
-
properties: {
|
|
1843
|
-
hash: {
|
|
1844
|
-
description: "Use hashes of the content of the files/directories to determine invalidation.",
|
|
1845
|
-
type: "boolean"
|
|
1846
|
-
},
|
|
1847
|
-
timestamp: {
|
|
1848
|
-
description: "Use timestamps of the files/directories to determine invalidation.",
|
|
1849
|
-
type: "boolean"
|
|
1850
|
-
}
|
|
1851
|
-
}
|
|
1852
|
-
},
|
|
1853
|
-
resolve: {
|
|
1854
|
-
description: "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.",
|
|
1855
|
-
type: "object",
|
|
1856
|
-
additionalProperties: false,
|
|
1857
|
-
properties: {
|
|
1858
|
-
hash: {
|
|
1859
|
-
description: "Use hashes of the content of the files/directories to determine invalidation.",
|
|
1860
|
-
type: "boolean"
|
|
1861
|
-
},
|
|
1862
|
-
timestamp: {
|
|
1863
|
-
description: "Use timestamps of the files/directories to determine invalidation.",
|
|
1864
|
-
type: "boolean"
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
},
|
|
1870
|
-
StatsOptions: {
|
|
1871
|
-
description: "Stats options object.",
|
|
1872
|
-
type: "object",
|
|
1873
|
-
additionalProperties: true,
|
|
1874
|
-
properties: {
|
|
1875
|
-
all: {
|
|
1876
|
-
description: "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).",
|
|
1877
|
-
type: "boolean"
|
|
1878
|
-
},
|
|
1879
|
-
assets: {
|
|
1880
|
-
description: "Add assets information.",
|
|
1881
|
-
type: "boolean"
|
|
1882
|
-
},
|
|
1883
|
-
chunkGroups: {
|
|
1884
|
-
description: "Display all chunk groups with the corresponding bundles.",
|
|
1885
|
-
type: "boolean"
|
|
1886
|
-
},
|
|
1887
|
-
chunks: {
|
|
1888
|
-
description: "Add chunk information.",
|
|
1889
|
-
type: "boolean"
|
|
1890
|
-
},
|
|
1891
|
-
colors: {
|
|
1892
|
-
description: "Enables/Disables colorful output.",
|
|
1893
|
-
type: "boolean"
|
|
1894
|
-
},
|
|
1895
|
-
entrypoints: {
|
|
1896
|
-
description: "Display the entry points with the corresponding bundles.",
|
|
1897
|
-
anyOf: [
|
|
1898
|
-
{
|
|
1899
|
-
enum: ["auto"]
|
|
1900
|
-
},
|
|
1901
|
-
{
|
|
1902
|
-
type: "boolean"
|
|
1903
|
-
}
|
|
1904
|
-
]
|
|
1905
|
-
},
|
|
1906
|
-
errors: {
|
|
1907
|
-
description: "Add errors.",
|
|
1908
|
-
type: "boolean"
|
|
1909
|
-
},
|
|
1910
|
-
errorsCount: {
|
|
1911
|
-
description: "Add errors count.",
|
|
1912
|
-
type: "boolean"
|
|
1913
|
-
},
|
|
1914
|
-
hash: {
|
|
1915
|
-
description: "Add the hash of the compilation.",
|
|
1916
|
-
type: "boolean"
|
|
1917
|
-
},
|
|
1918
|
-
modules: {
|
|
1919
|
-
description: "Add built modules information.",
|
|
1920
|
-
type: "boolean"
|
|
1921
|
-
},
|
|
1922
|
-
preset: {
|
|
1923
|
-
description: "Preset for the default values.",
|
|
1924
|
-
anyOf: [
|
|
1925
|
-
{
|
|
1926
|
-
type: "boolean"
|
|
1927
|
-
},
|
|
1928
|
-
{
|
|
1929
|
-
type: "string"
|
|
1930
|
-
}
|
|
1931
|
-
]
|
|
1932
|
-
},
|
|
1933
|
-
publicPath: {
|
|
1934
|
-
description: "Add public path information.",
|
|
1935
|
-
type: "boolean"
|
|
1936
|
-
},
|
|
1937
|
-
reasons: {
|
|
1938
|
-
description: "Add information about the reasons why modules are included.",
|
|
1939
|
-
type: "boolean"
|
|
1940
|
-
},
|
|
1941
|
-
warnings: {
|
|
1942
|
-
description: "Add warnings.",
|
|
1943
|
-
type: "boolean"
|
|
1944
|
-
},
|
|
1945
|
-
warningsCount: {
|
|
1946
|
-
description: "Add warnings count.",
|
|
1947
|
-
type: "boolean"
|
|
1948
|
-
},
|
|
1949
|
-
outputPath: {
|
|
1950
|
-
description: "Add output path information.",
|
|
1951
|
-
type: "boolean"
|
|
1952
|
-
},
|
|
1953
|
-
chunkModules: {
|
|
1954
|
-
description: "Add built modules information to chunk information.",
|
|
1955
|
-
type: "boolean"
|
|
1956
|
-
},
|
|
1957
|
-
chunkRelations: {
|
|
1958
|
-
description: "Add information about parent, children and sibling chunks to chunk information.",
|
|
1959
|
-
type: "boolean"
|
|
1960
|
-
},
|
|
1961
|
-
timings: {
|
|
1962
|
-
description: "Add timing information.",
|
|
1963
|
-
type: "boolean"
|
|
1964
|
-
},
|
|
1965
|
-
builtAt: {
|
|
1966
|
-
description: "Add built at time information.",
|
|
1967
|
-
type: "boolean"
|
|
1968
|
-
},
|
|
1969
|
-
nestedModules: {
|
|
1970
|
-
description: "Add information about modules nested in other modules (like with module concatenation).",
|
|
1971
|
-
type: "boolean"
|
|
1972
|
-
}
|
|
1973
|
-
}
|
|
1974
|
-
},
|
|
1975
|
-
StatsValue: {
|
|
1976
|
-
description: "Stats options object or preset name.",
|
|
1977
|
-
anyOf: [
|
|
1978
|
-
{
|
|
1979
|
-
enum: ["none", "errors-only", "errors-warnings", "normal", "verbose"]
|
|
1980
|
-
},
|
|
1981
|
-
{
|
|
1982
|
-
type: "boolean"
|
|
1983
|
-
},
|
|
1984
|
-
{
|
|
1985
|
-
$ref: "#/definitions/StatsOptions"
|
|
1986
|
-
}
|
|
1987
|
-
]
|
|
1988
|
-
},
|
|
1989
|
-
StrictModuleErrorHandling: {
|
|
1990
|
-
description: "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.",
|
|
1991
|
-
type: "boolean"
|
|
1992
|
-
},
|
|
1993
|
-
Target: {
|
|
1994
|
-
description: "Environment to build for. An array of environments to build for all of them when possible.",
|
|
1995
|
-
anyOf: [
|
|
1996
|
-
{
|
|
1997
|
-
type: "array",
|
|
1998
|
-
items: {
|
|
1999
|
-
description: "Environment to build for.",
|
|
2000
|
-
type: "string",
|
|
2001
|
-
minLength: 1
|
|
2002
|
-
},
|
|
2003
|
-
minItems: 1
|
|
2004
|
-
},
|
|
2005
|
-
{
|
|
2006
|
-
enum: [false]
|
|
2007
|
-
},
|
|
2008
|
-
{
|
|
2009
|
-
type: "string",
|
|
2010
|
-
minLength: 1
|
|
2011
|
-
}
|
|
2012
|
-
]
|
|
2013
|
-
},
|
|
2014
|
-
TrustedTypes: {
|
|
2015
|
-
description: "Use a Trusted Types policy to create urls for chunks.",
|
|
2016
|
-
type: "object",
|
|
2017
|
-
additionalProperties: false,
|
|
2018
|
-
properties: {
|
|
2019
|
-
policyName: {
|
|
2020
|
-
description: "The name of the Trusted Types policy created by webpack to serve bundle chunks.",
|
|
2021
|
-
type: "string",
|
|
2022
|
-
minLength: 1
|
|
2023
|
-
}
|
|
2024
|
-
}
|
|
2025
|
-
},
|
|
2026
|
-
UmdNamedDefine: {
|
|
2027
|
-
description: "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.",
|
|
2028
|
-
type: "boolean"
|
|
2029
|
-
},
|
|
2030
|
-
UniqueName: {
|
|
2031
|
-
description: "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.",
|
|
2032
|
-
type: "string",
|
|
2033
|
-
minLength: 1
|
|
2034
|
-
},
|
|
2035
|
-
ChunkLoadingGlobal: {
|
|
2036
|
-
description: "The global variable used by rspack for loading of chunks.",
|
|
2037
|
-
type: "string",
|
|
2038
|
-
minLength: 1
|
|
2039
|
-
},
|
|
2040
|
-
Watch: {
|
|
2041
|
-
description: "Enter watch mode, which rebuilds on file change.",
|
|
2042
|
-
type: "boolean"
|
|
2043
|
-
},
|
|
2044
|
-
WatchOptions: {
|
|
2045
|
-
description: "Options for the watcher.",
|
|
2046
|
-
type: "object",
|
|
2047
|
-
additionalProperties: false,
|
|
2048
|
-
properties: {
|
|
2049
|
-
aggregateTimeout: {
|
|
2050
|
-
description: "Delay the rebuilt after the first change. Value is a time in ms.",
|
|
2051
|
-
type: "number"
|
|
2052
|
-
},
|
|
2053
|
-
followSymlinks: {
|
|
2054
|
-
description: "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').",
|
|
2055
|
-
type: "boolean"
|
|
2056
|
-
},
|
|
2057
|
-
ignored: {
|
|
2058
|
-
description: "Ignore some files from watching (glob pattern or regexp).",
|
|
2059
|
-
anyOf: [
|
|
2060
|
-
{
|
|
2061
|
-
type: "array",
|
|
2062
|
-
items: {
|
|
2063
|
-
description: "A glob pattern for files that should be ignored from watching.",
|
|
2064
|
-
type: "string",
|
|
2065
|
-
minLength: 1
|
|
2066
|
-
}
|
|
2067
|
-
},
|
|
2068
|
-
{
|
|
2069
|
-
instanceof: "RegExp"
|
|
2070
|
-
},
|
|
2071
|
-
{
|
|
2072
|
-
description: "A single glob pattern for files that should be ignored from watching.",
|
|
2073
|
-
type: "string",
|
|
2074
|
-
minLength: 1
|
|
2075
|
-
}
|
|
2076
|
-
]
|
|
2077
|
-
},
|
|
2078
|
-
poll: {
|
|
2079
|
-
description: "Enable polling mode for watching.",
|
|
2080
|
-
anyOf: [
|
|
2081
|
-
{
|
|
2082
|
-
description: "`number`: use polling with specified interval.",
|
|
2083
|
-
type: "number"
|
|
2084
|
-
},
|
|
2085
|
-
{
|
|
2086
|
-
description: "`true`: use polling.",
|
|
2087
|
-
type: "boolean"
|
|
2088
|
-
}
|
|
2089
|
-
]
|
|
2090
|
-
},
|
|
2091
|
-
stdin: {
|
|
2092
|
-
description: "Stop watching when stdin stream has ended.",
|
|
2093
|
-
type: "boolean"
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
2096
|
-
},
|
|
2097
|
-
RspackPluginFunction: {
|
|
2098
|
-
description: "Function acting as plugin.",
|
|
2099
|
-
instanceof: "Function"
|
|
2100
|
-
},
|
|
2101
|
-
RspackPluginInstance: {
|
|
2102
|
-
description: "Plugin instance.",
|
|
2103
|
-
type: "object",
|
|
2104
|
-
additionalProperties: true,
|
|
2105
|
-
properties: {
|
|
2106
|
-
apply: {
|
|
2107
|
-
description: "The run point of the plugin, required method.",
|
|
2108
|
-
instanceof: "Function"
|
|
2109
|
-
}
|
|
2110
|
-
},
|
|
2111
|
-
required: ["apply"]
|
|
2112
|
-
}
|
|
2113
|
-
},
|
|
2114
|
-
title: "RspackOptions",
|
|
2115
|
-
description: "Options object as provided by the user.",
|
|
2116
|
-
type: "object",
|
|
2117
|
-
additionalProperties: false,
|
|
2118
|
-
properties: {
|
|
2119
|
-
cache: {
|
|
2120
|
-
$ref: "#/definitions/CacheOptions"
|
|
2121
|
-
},
|
|
2122
|
-
context: {
|
|
2123
|
-
$ref: "#/definitions/Context"
|
|
2124
|
-
},
|
|
2125
|
-
dependencies: {
|
|
2126
|
-
$ref: "#/definitions/Dependencies"
|
|
2127
|
-
},
|
|
2128
|
-
devServer: {
|
|
2129
|
-
$ref: "#/definitions/DevServer"
|
|
2130
|
-
},
|
|
2131
|
-
devtool: {
|
|
2132
|
-
$ref: "#/definitions/DevTool"
|
|
2133
|
-
},
|
|
2134
|
-
entry: {
|
|
2135
|
-
$ref: "#/definitions/Entry"
|
|
2136
|
-
},
|
|
2137
|
-
experiments: {
|
|
2138
|
-
$ref: "#/definitions/Experiments"
|
|
2139
|
-
},
|
|
2140
|
-
externals: {
|
|
2141
|
-
$ref: "#/definitions/Externals"
|
|
2142
|
-
},
|
|
2143
|
-
externalsType: {
|
|
2144
|
-
$ref: "#/definitions/ExternalsType"
|
|
2145
|
-
},
|
|
2146
|
-
externalsPresets: {
|
|
2147
|
-
$ref: "#/definitions/ExternalsPresets"
|
|
2148
|
-
},
|
|
2149
|
-
infrastructureLogging: {
|
|
2150
|
-
$ref: "#/definitions/InfrastructureLogging"
|
|
2151
|
-
},
|
|
2152
|
-
mode: {
|
|
2153
|
-
$ref: "#/definitions/Mode"
|
|
2154
|
-
},
|
|
2155
|
-
module: {
|
|
2156
|
-
$ref: "#/definitions/ModuleOptions"
|
|
2157
|
-
},
|
|
2158
|
-
name: {
|
|
2159
|
-
$ref: "#/definitions/Name"
|
|
2160
|
-
},
|
|
2161
|
-
node: {
|
|
2162
|
-
$ref: "#/definitions/Node"
|
|
2163
|
-
},
|
|
2164
|
-
optimization: {
|
|
2165
|
-
$ref: "#/definitions/Optimization"
|
|
2166
|
-
},
|
|
2167
|
-
output: {
|
|
2168
|
-
$ref: "#/definitions/Output"
|
|
2169
|
-
},
|
|
2170
|
-
plugins: {
|
|
2171
|
-
$ref: "#/definitions/Plugins"
|
|
2172
|
-
},
|
|
2173
|
-
resolve: {
|
|
2174
|
-
$ref: "#/definitions/Resolve"
|
|
2175
|
-
},
|
|
2176
|
-
snapshot: {
|
|
2177
|
-
$ref: "#/definitions/SnapshotOptions"
|
|
2178
|
-
},
|
|
2179
|
-
stats: {
|
|
2180
|
-
$ref: "#/definitions/StatsValue"
|
|
2181
|
-
},
|
|
2182
|
-
target: {
|
|
2183
|
-
$ref: "#/definitions/Target"
|
|
2184
|
-
},
|
|
2185
|
-
watch: {
|
|
2186
|
-
$ref: "#/definitions/Watch"
|
|
2187
|
-
},
|
|
2188
|
-
watchOptions: {
|
|
2189
|
-
$ref: "#/definitions/WatchOptions"
|
|
2190
|
-
},
|
|
2191
|
-
builtins: {
|
|
2192
|
-
description: "Builtins features in rspack",
|
|
2193
|
-
type: "object",
|
|
2194
|
-
additionalProperties: true
|
|
2195
|
-
},
|
|
2196
|
-
ignoreWarnings: {
|
|
2197
|
-
$ref: "#/definitions/IgnoreWarnings"
|
|
2198
|
-
}
|
|
2199
|
-
}
|
|
2200
|
-
};
|