@rspack/core 0.6.1-canary-73a9832-20240414004901 → 0.6.1-canary-a6841aa-20240417004703
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 +6 -6
- package/dist/Compilation.js +3 -4
- package/dist/Compiler.d.ts +5 -5
- package/dist/Compiler.js +8 -8
- package/dist/MultiCompiler.d.ts +8 -18
- package/dist/MultiCompiler.js +7 -17
- package/dist/MultiWatching.d.ts +2 -10
- package/dist/MultiWatching.js +2 -10
- package/dist/RuntimeGlobals.d.ts +10 -10
- package/dist/RuntimeGlobals.js +10 -10
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +8 -3
- package/dist/builtin-plugin/IgnorePlugin.js +15 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.js +1 -1
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +2 -2
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +1 -1
- package/dist/config/adapter.js +1 -0
- package/dist/config/adapterRuleUse.d.ts +1 -1
- package/dist/config/defaults.js +2 -2
- package/dist/config/normalization.d.ts +2 -2
- package/dist/config/zod.d.ts +125 -67
- package/dist/config/zod.js +1 -0
- package/dist/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/exports.d.ts +44 -846
- package/dist/exports.js +6 -4
- package/dist/lib/ModuleFilenameHelpers.d.ts +44 -6
- package/dist/lib/ModuleFilenameHelpers.js +50 -26
- package/package.json +7 -5
- package/dist/ModuleFilenameHelpers.d.ts +0 -44
- package/dist/ModuleFilenameHelpers.js +0 -76
package/dist/exports.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
declare const rspackVersion: any, webpackVersion: any;
|
|
3
2
|
export { webpackVersion as version, rspackVersion };
|
|
4
3
|
export { Compiler } from "./Compiler";
|
|
@@ -15,788 +14,22 @@ export { MultiStats } from "./MultiStats";
|
|
|
15
14
|
export type { ChunkGroup } from "./ChunkGroup";
|
|
16
15
|
export type { NormalModuleFactory } from "./NormalModuleFactory";
|
|
17
16
|
export { NormalModule } from "./NormalModule";
|
|
18
|
-
|
|
19
|
-
export {
|
|
17
|
+
declare const ModuleFilenameHelpers: any;
|
|
18
|
+
export { ModuleFilenameHelpers };
|
|
19
|
+
declare const Template: any;
|
|
20
|
+
export { Template };
|
|
20
21
|
export declare const WebpackError: ErrorConstructor;
|
|
21
22
|
export type { Watching } from "./Watching";
|
|
22
23
|
declare const sources: any;
|
|
23
24
|
export { sources };
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
runtime?: string | false | undefined;
|
|
31
|
-
publicPath?: string | undefined;
|
|
32
|
-
baseUri?: string | undefined;
|
|
33
|
-
chunkLoading?: string | false | undefined;
|
|
34
|
-
asyncChunks?: boolean | undefined;
|
|
35
|
-
wasmLoading?: string | false | undefined;
|
|
36
|
-
filename?: string | undefined;
|
|
37
|
-
library?: {
|
|
38
|
-
type: string;
|
|
39
|
-
amdContainer?: string | undefined;
|
|
40
|
-
auxiliaryComment?: string | {
|
|
41
|
-
amd?: string | undefined;
|
|
42
|
-
commonjs?: string | undefined;
|
|
43
|
-
commonjs2?: string | undefined;
|
|
44
|
-
root?: string | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
export?: string | string[] | undefined;
|
|
47
|
-
name?: string | string[] | {
|
|
48
|
-
amd?: string | undefined;
|
|
49
|
-
commonjs?: string | undefined;
|
|
50
|
-
root?: string | string[] | undefined;
|
|
51
|
-
} | undefined;
|
|
52
|
-
umdNamedDefine?: boolean | undefined;
|
|
53
|
-
} | undefined;
|
|
54
|
-
dependOn?: string | string[] | undefined;
|
|
55
|
-
}> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
|
|
56
|
-
import: (string | string[]) & (string | string[] | undefined);
|
|
57
|
-
runtime?: string | false | undefined;
|
|
58
|
-
publicPath?: string | undefined;
|
|
59
|
-
baseUri?: string | undefined;
|
|
60
|
-
chunkLoading?: string | false | undefined;
|
|
61
|
-
asyncChunks?: boolean | undefined;
|
|
62
|
-
wasmLoading?: string | false | undefined;
|
|
63
|
-
filename?: string | undefined;
|
|
64
|
-
library?: {
|
|
65
|
-
type: string;
|
|
66
|
-
amdContainer?: string | undefined;
|
|
67
|
-
auxiliaryComment?: string | {
|
|
68
|
-
amd?: string | undefined;
|
|
69
|
-
commonjs?: string | undefined;
|
|
70
|
-
commonjs2?: string | undefined;
|
|
71
|
-
root?: string | undefined;
|
|
72
|
-
} | undefined;
|
|
73
|
-
export?: string | string[] | undefined;
|
|
74
|
-
name?: string | string[] | {
|
|
75
|
-
amd?: string | undefined;
|
|
76
|
-
commonjs?: string | undefined;
|
|
77
|
-
root?: string | string[] | undefined;
|
|
78
|
-
} | undefined;
|
|
79
|
-
umdNamedDefine?: boolean | undefined;
|
|
80
|
-
} | undefined;
|
|
81
|
-
dependOn?: string | string[] | undefined;
|
|
82
|
-
}>) | undefined;
|
|
83
|
-
output?: {
|
|
84
|
-
path?: string | undefined;
|
|
85
|
-
clean?: boolean | undefined;
|
|
86
|
-
publicPath?: string | undefined;
|
|
87
|
-
filename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
88
|
-
chunkFilename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
89
|
-
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
90
|
-
cssFilename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
91
|
-
cssChunkFilename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
92
|
-
hotUpdateMainFilename?: string | undefined;
|
|
93
|
-
hotUpdateChunkFilename?: string | undefined;
|
|
94
|
-
hotUpdateGlobal?: string | undefined;
|
|
95
|
-
assetModuleFilename?: string | undefined;
|
|
96
|
-
uniqueName?: string | undefined;
|
|
97
|
-
chunkLoadingGlobal?: string | undefined;
|
|
98
|
-
enabledLibraryTypes?: string[] | undefined;
|
|
99
|
-
library?: string | string[] | {
|
|
100
|
-
amd?: string | undefined;
|
|
101
|
-
commonjs?: string | undefined;
|
|
102
|
-
root?: string | string[] | undefined;
|
|
103
|
-
} | {
|
|
104
|
-
type: string;
|
|
105
|
-
amdContainer?: string | undefined;
|
|
106
|
-
auxiliaryComment?: string | {
|
|
107
|
-
amd?: string | undefined;
|
|
108
|
-
commonjs?: string | undefined;
|
|
109
|
-
commonjs2?: string | undefined;
|
|
110
|
-
root?: string | undefined;
|
|
111
|
-
} | undefined;
|
|
112
|
-
export?: string | string[] | undefined;
|
|
113
|
-
name?: string | string[] | {
|
|
114
|
-
amd?: string | undefined;
|
|
115
|
-
commonjs?: string | undefined;
|
|
116
|
-
root?: string | string[] | undefined;
|
|
117
|
-
} | undefined;
|
|
118
|
-
umdNamedDefine?: boolean | undefined;
|
|
119
|
-
} | undefined;
|
|
120
|
-
libraryExport?: string | string[] | undefined;
|
|
121
|
-
libraryTarget?: string | undefined;
|
|
122
|
-
umdNamedDefine?: boolean | undefined;
|
|
123
|
-
amdContainer?: string | undefined;
|
|
124
|
-
auxiliaryComment?: string | {
|
|
125
|
-
amd?: string | undefined;
|
|
126
|
-
commonjs?: string | undefined;
|
|
127
|
-
commonjs2?: string | undefined;
|
|
128
|
-
root?: string | undefined;
|
|
129
|
-
} | undefined;
|
|
130
|
-
module?: boolean | undefined;
|
|
131
|
-
strictModuleExceptionHandling?: boolean | undefined;
|
|
132
|
-
strictModuleErrorHandling?: boolean | undefined;
|
|
133
|
-
globalObject?: string | undefined;
|
|
134
|
-
importFunctionName?: string | undefined;
|
|
135
|
-
iife?: boolean | undefined;
|
|
136
|
-
wasmLoading?: string | false | undefined;
|
|
137
|
-
enabledWasmLoadingTypes?: string[] | undefined;
|
|
138
|
-
webassemblyModuleFilename?: string | undefined;
|
|
139
|
-
chunkFormat?: string | false | undefined;
|
|
140
|
-
chunkLoading?: string | false | undefined;
|
|
141
|
-
enabledChunkLoadingTypes?: string[] | undefined;
|
|
142
|
-
trustedTypes?: string | true | {
|
|
143
|
-
policyName?: string | undefined;
|
|
144
|
-
} | undefined;
|
|
145
|
-
sourceMapFilename?: string | undefined;
|
|
146
|
-
hashDigest?: string | undefined;
|
|
147
|
-
hashDigestLength?: number | undefined;
|
|
148
|
-
hashFunction?: "md4" | "xxhash64" | undefined;
|
|
149
|
-
hashSalt?: string | undefined;
|
|
150
|
-
asyncChunks?: boolean | undefined;
|
|
151
|
-
workerChunkLoading?: string | false | undefined;
|
|
152
|
-
workerWasmLoading?: string | false | undefined;
|
|
153
|
-
workerPublicPath?: string | undefined;
|
|
154
|
-
scriptType?: false | "module" | "text/javascript" | undefined;
|
|
155
|
-
devtoolNamespace?: string | undefined;
|
|
156
|
-
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
157
|
-
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
158
|
-
} | undefined;
|
|
159
|
-
target?: false | "node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
160
|
-
mode?: "none" | "production" | "development" | undefined;
|
|
161
|
-
experiments?: {
|
|
162
|
-
lazyCompilation?: boolean | undefined;
|
|
163
|
-
asyncWebAssembly?: boolean | undefined;
|
|
164
|
-
outputModule?: boolean | undefined;
|
|
165
|
-
topLevelAwait?: boolean | undefined;
|
|
166
|
-
newSplitChunks?: boolean | undefined;
|
|
167
|
-
css?: boolean | undefined;
|
|
168
|
-
futureDefaults?: boolean | undefined;
|
|
169
|
-
rspackFuture?: {
|
|
170
|
-
newTreeshaking?: boolean | undefined;
|
|
171
|
-
bundlerInfo?: {
|
|
172
|
-
version?: string | undefined;
|
|
173
|
-
force?: boolean | "version"[] | undefined;
|
|
174
|
-
} | undefined;
|
|
175
|
-
} | undefined;
|
|
176
|
-
} | undefined;
|
|
177
|
-
externals?: string | RegExp | Record<string, string | boolean | string[] | Record<string, string | string[]>> | ((args_0: {
|
|
178
|
-
context?: string | undefined;
|
|
179
|
-
dependencyType?: string | undefined;
|
|
180
|
-
request?: string | undefined;
|
|
181
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "global" | "module" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
182
|
-
context?: string | undefined;
|
|
183
|
-
dependencyType?: string | undefined;
|
|
184
|
-
request?: string | undefined;
|
|
185
|
-
}, ...args_1: unknown[]) => Promise<string | boolean | string[] | Record<string, string | string[]>>) | (string | RegExp | Record<string, string | boolean | string[] | Record<string, string | string[]>> | ((args_0: {
|
|
186
|
-
context?: string | undefined;
|
|
187
|
-
dependencyType?: string | undefined;
|
|
188
|
-
request?: string | undefined;
|
|
189
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "global" | "module" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
190
|
-
context?: string | undefined;
|
|
191
|
-
dependencyType?: string | undefined;
|
|
192
|
-
request?: string | undefined;
|
|
193
|
-
}, ...args_1: unknown[]) => Promise<string | boolean | string[] | Record<string, string | string[]>>))[] | undefined;
|
|
194
|
-
externalsType?: "promise" | "global" | "module" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "script" | "node-commonjs" | undefined;
|
|
195
|
-
externalsPresets?: {
|
|
196
|
-
node?: boolean | undefined;
|
|
197
|
-
web?: boolean | undefined;
|
|
198
|
-
webAsync?: boolean | undefined;
|
|
199
|
-
electron?: boolean | undefined;
|
|
200
|
-
electronMain?: boolean | undefined;
|
|
201
|
-
electronPreload?: boolean | undefined;
|
|
202
|
-
electronRenderer?: boolean | undefined;
|
|
203
|
-
} | undefined;
|
|
204
|
-
infrastructureLogging?: {
|
|
205
|
-
appendOnly?: boolean | undefined;
|
|
206
|
-
colors?: boolean | undefined;
|
|
207
|
-
console?: Console | undefined;
|
|
208
|
-
debug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
|
|
209
|
-
level?: "error" | "none" | "verbose" | "warn" | "info" | "log" | undefined;
|
|
210
|
-
stream?: NodeJS.WritableStream | undefined;
|
|
211
|
-
} | undefined;
|
|
212
|
-
cache?: boolean | undefined;
|
|
213
|
-
context?: string | undefined;
|
|
214
|
-
devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined;
|
|
215
|
-
node?: false | {
|
|
216
|
-
__dirname?: boolean | "warn-mock" | "mock" | "eval-only" | undefined;
|
|
217
|
-
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | undefined;
|
|
218
|
-
global?: boolean | "warn" | undefined;
|
|
219
|
-
} | undefined;
|
|
220
|
-
ignoreWarnings?: (RegExp | ((args_0: Error, args_1: import("./Compilation").Compilation, ...args_2: unknown[]) => boolean))[] | undefined;
|
|
221
|
-
watchOptions?: {
|
|
222
|
-
aggregateTimeout?: number | undefined;
|
|
223
|
-
followSymlinks?: boolean | undefined;
|
|
224
|
-
ignored?: string | RegExp | string[] | undefined;
|
|
225
|
-
poll?: number | boolean | undefined;
|
|
226
|
-
stdin?: boolean | undefined;
|
|
227
|
-
} | undefined;
|
|
228
|
-
watch?: boolean | undefined;
|
|
229
|
-
stats?: boolean | "normal" | "none" | "verbose" | "errors-only" | "errors-warnings" | {
|
|
230
|
-
all?: boolean | undefined;
|
|
231
|
-
preset?: "normal" | "none" | "verbose" | "errors-only" | "errors-warnings" | undefined;
|
|
232
|
-
assets?: boolean | undefined;
|
|
233
|
-
chunks?: boolean | undefined;
|
|
234
|
-
modules?: boolean | undefined;
|
|
235
|
-
entrypoints?: boolean | undefined;
|
|
236
|
-
chunkGroups?: boolean | undefined;
|
|
237
|
-
warnings?: boolean | undefined;
|
|
238
|
-
warningsCount?: boolean | undefined;
|
|
239
|
-
errors?: boolean | undefined;
|
|
240
|
-
errorsCount?: boolean | undefined;
|
|
241
|
-
colors?: boolean | undefined;
|
|
242
|
-
hash?: boolean | undefined;
|
|
243
|
-
version?: boolean | undefined;
|
|
244
|
-
reasons?: boolean | undefined;
|
|
245
|
-
publicPath?: boolean | undefined;
|
|
246
|
-
outputPath?: boolean | undefined;
|
|
247
|
-
chunkModules?: boolean | undefined;
|
|
248
|
-
chunkRelations?: boolean | undefined;
|
|
249
|
-
ids?: boolean | undefined;
|
|
250
|
-
timings?: boolean | undefined;
|
|
251
|
-
builtAt?: boolean | undefined;
|
|
252
|
-
moduleAssets?: boolean | undefined;
|
|
253
|
-
modulesSpace?: number | undefined;
|
|
254
|
-
nestedModules?: boolean | undefined;
|
|
255
|
-
source?: boolean | undefined;
|
|
256
|
-
logging?: boolean | "error" | "none" | "verbose" | "warn" | "info" | "log" | undefined;
|
|
257
|
-
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
|
|
258
|
-
loggingTrace?: boolean | undefined;
|
|
259
|
-
runtimeModules?: boolean | undefined;
|
|
260
|
-
children?: boolean | undefined;
|
|
261
|
-
usedExports?: boolean | undefined;
|
|
262
|
-
providedExports?: boolean | undefined;
|
|
263
|
-
optimizationBailout?: boolean | undefined;
|
|
264
|
-
orphanModules?: boolean | undefined;
|
|
265
|
-
} | undefined;
|
|
266
|
-
snapshot?: {
|
|
267
|
-
module?: {
|
|
268
|
-
hash?: boolean | undefined;
|
|
269
|
-
timestamp?: boolean | undefined;
|
|
270
|
-
} | undefined;
|
|
271
|
-
resolve?: {
|
|
272
|
-
hash?: boolean | undefined;
|
|
273
|
-
timestamp?: boolean | undefined;
|
|
274
|
-
} | undefined;
|
|
275
|
-
} | undefined;
|
|
276
|
-
optimization?: {
|
|
277
|
-
moduleIds?: "named" | "deterministic" | undefined;
|
|
278
|
-
chunkIds?: "named" | "deterministic" | undefined;
|
|
279
|
-
minimize?: boolean | undefined;
|
|
280
|
-
minimizer?: (false | "" | 0 | import("./config").RspackPluginInstance | "..." | import("./config").RspackPluginFunction | null | undefined)[] | undefined;
|
|
281
|
-
mergeDuplicateChunks?: boolean | undefined;
|
|
282
|
-
splitChunks?: false | {
|
|
283
|
-
chunks?: RegExp | "async" | "all" | "initial" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
284
|
-
defaultSizeTypes?: string[] | undefined;
|
|
285
|
-
minChunks?: number | undefined;
|
|
286
|
-
name?: string | false | ((args_0: import("./Module").Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
287
|
-
minSize?: number | undefined;
|
|
288
|
-
maxSize?: number | undefined;
|
|
289
|
-
maxAsyncSize?: number | undefined;
|
|
290
|
-
maxInitialSize?: number | undefined;
|
|
291
|
-
automaticNameDelimiter?: string | undefined;
|
|
292
|
-
cacheGroups?: Record<string, false | {
|
|
293
|
-
chunks?: RegExp | "async" | "all" | "initial" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
294
|
-
defaultSizeTypes?: string[] | undefined;
|
|
295
|
-
minChunks?: number | undefined;
|
|
296
|
-
name?: string | false | ((args_0: import("./Module").Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
297
|
-
minSize?: number | undefined;
|
|
298
|
-
maxSize?: number | undefined;
|
|
299
|
-
maxAsyncSize?: number | undefined;
|
|
300
|
-
maxInitialSize?: number | undefined;
|
|
301
|
-
automaticNameDelimiter?: string | undefined;
|
|
302
|
-
test?: string | RegExp | ((args_0: import("./Module").Module, ...args_1: unknown[]) => unknown) | undefined;
|
|
303
|
-
priority?: number | undefined;
|
|
304
|
-
enforce?: boolean | undefined;
|
|
305
|
-
filename?: string | undefined;
|
|
306
|
-
reuseExistingChunk?: boolean | undefined;
|
|
307
|
-
type?: string | RegExp | undefined;
|
|
308
|
-
idHint?: string | undefined;
|
|
309
|
-
}> | undefined;
|
|
310
|
-
maxAsyncRequests?: number | undefined;
|
|
311
|
-
maxInitialRequests?: number | undefined;
|
|
312
|
-
fallbackCacheGroup?: {
|
|
313
|
-
chunks?: RegExp | "async" | "all" | "initial" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
314
|
-
minSize?: number | undefined;
|
|
315
|
-
maxSize?: number | undefined;
|
|
316
|
-
maxAsyncSize?: number | undefined;
|
|
317
|
-
maxInitialSize?: number | undefined;
|
|
318
|
-
automaticNameDelimiter?: string | undefined;
|
|
319
|
-
} | undefined;
|
|
320
|
-
hidePathInfo?: boolean | undefined;
|
|
321
|
-
} | undefined;
|
|
322
|
-
runtimeChunk?: boolean | "single" | "multiple" | {
|
|
323
|
-
name?: string | ((...args: unknown[]) => string | undefined) | undefined;
|
|
324
|
-
} | undefined;
|
|
325
|
-
removeAvailableModules?: boolean | undefined;
|
|
326
|
-
removeEmptyChunks?: boolean | undefined;
|
|
327
|
-
realContentHash?: boolean | undefined;
|
|
328
|
-
sideEffects?: boolean | "flag" | undefined;
|
|
329
|
-
providedExports?: boolean | undefined;
|
|
330
|
-
concatenateModules?: boolean | undefined;
|
|
331
|
-
innerGraph?: boolean | undefined;
|
|
332
|
-
usedExports?: boolean | "global" | undefined;
|
|
333
|
-
mangleExports?: boolean | "size" | "deterministic" | undefined;
|
|
334
|
-
nodeEnv?: string | false | undefined;
|
|
335
|
-
} | undefined;
|
|
336
|
-
resolve?: import("./config").ResolveOptions | undefined;
|
|
337
|
-
resolveLoader?: import("./config").ResolveOptions | undefined;
|
|
338
|
-
plugins?: (false | "" | 0 | import("./config").RspackPluginInstance | import("./config").RspackPluginFunction | null | undefined)[] | undefined;
|
|
339
|
-
devServer?: import("./config").DevServer | undefined;
|
|
340
|
-
builtins?: import("./builtin-plugin").Builtins | undefined;
|
|
341
|
-
module?: {
|
|
342
|
-
defaultRules?: (false | "" | 0 | "..." | import("./config").RuleSetRule | null | undefined)[] | undefined;
|
|
343
|
-
rules?: (false | "" | 0 | "..." | import("./config").RuleSetRule | null | undefined)[] | undefined;
|
|
344
|
-
parser?: {
|
|
345
|
-
asset?: {
|
|
346
|
-
dataUrlCondition?: {
|
|
347
|
-
maxSize?: number | undefined;
|
|
348
|
-
} | undefined;
|
|
349
|
-
} | undefined;
|
|
350
|
-
css?: {
|
|
351
|
-
namedExports?: boolean | undefined;
|
|
352
|
-
} | undefined;
|
|
353
|
-
"css/auto"?: {
|
|
354
|
-
namedExports?: boolean | undefined;
|
|
355
|
-
} | undefined;
|
|
356
|
-
"css/module"?: {
|
|
357
|
-
namedExports?: boolean | undefined;
|
|
358
|
-
} | undefined;
|
|
359
|
-
javascript?: {
|
|
360
|
-
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
361
|
-
dynamicImportPreload?: number | boolean | undefined;
|
|
362
|
-
dynamicImportPrefetch?: number | boolean | undefined;
|
|
363
|
-
url?: boolean | "relative" | undefined;
|
|
364
|
-
} | undefined;
|
|
365
|
-
} | Record<string, Record<string, any>> | undefined;
|
|
366
|
-
generator?: Record<string, Record<string, any>> | {
|
|
367
|
-
asset?: {
|
|
368
|
-
dataUrl?: {
|
|
369
|
-
encoding?: false | "base64" | undefined;
|
|
370
|
-
mimetype?: string | undefined;
|
|
371
|
-
} | ((args_0: {
|
|
372
|
-
filename: string;
|
|
373
|
-
content: string;
|
|
374
|
-
}, ...args_1: unknown[]) => string) | undefined;
|
|
375
|
-
filename?: string | undefined;
|
|
376
|
-
publicPath?: string | undefined;
|
|
377
|
-
} | undefined;
|
|
378
|
-
"asset/inline"?: {
|
|
379
|
-
dataUrl?: {
|
|
380
|
-
encoding?: false | "base64" | undefined;
|
|
381
|
-
mimetype?: string | undefined;
|
|
382
|
-
} | ((args_0: {
|
|
383
|
-
filename: string;
|
|
384
|
-
content: string;
|
|
385
|
-
}, ...args_1: unknown[]) => string) | undefined;
|
|
386
|
-
} | undefined;
|
|
387
|
-
"asset/resource"?: {
|
|
388
|
-
filename?: string | undefined;
|
|
389
|
-
publicPath?: string | undefined;
|
|
390
|
-
} | undefined;
|
|
391
|
-
css?: {
|
|
392
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
393
|
-
exportsOnly?: boolean | undefined;
|
|
394
|
-
} | undefined;
|
|
395
|
-
"css/auto"?: {
|
|
396
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
397
|
-
exportsOnly?: boolean | undefined;
|
|
398
|
-
localIdentName?: string | undefined;
|
|
399
|
-
} | undefined;
|
|
400
|
-
"css/module"?: {
|
|
401
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
402
|
-
exportsOnly?: boolean | undefined;
|
|
403
|
-
localIdentName?: string | undefined;
|
|
404
|
-
} | undefined;
|
|
405
|
-
} | undefined;
|
|
406
|
-
noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
|
|
407
|
-
} | undefined;
|
|
408
|
-
profile?: boolean | undefined;
|
|
409
|
-
bail?: boolean | undefined;
|
|
410
|
-
}) => import("./config").RspackOptionsNormalized;
|
|
411
|
-
applyRspackOptionsDefaults: (options: import("./config").RspackOptionsNormalized) => void;
|
|
412
|
-
getNormalizedWebpackOptions: (config: {
|
|
413
|
-
name?: string | undefined;
|
|
414
|
-
dependencies?: string[] | undefined;
|
|
415
|
-
entry?: string | string[] | Record<string, string | string[] | {
|
|
416
|
-
import: (string | string[]) & (string | string[] | undefined);
|
|
417
|
-
runtime?: string | false | undefined;
|
|
418
|
-
publicPath?: string | undefined;
|
|
419
|
-
baseUri?: string | undefined;
|
|
420
|
-
chunkLoading?: string | false | undefined;
|
|
421
|
-
asyncChunks?: boolean | undefined;
|
|
422
|
-
wasmLoading?: string | false | undefined;
|
|
423
|
-
filename?: string | undefined;
|
|
424
|
-
library?: {
|
|
425
|
-
type: string;
|
|
426
|
-
amdContainer?: string | undefined;
|
|
427
|
-
auxiliaryComment?: string | {
|
|
428
|
-
amd?: string | undefined;
|
|
429
|
-
commonjs?: string | undefined;
|
|
430
|
-
commonjs2?: string | undefined;
|
|
431
|
-
root?: string | undefined;
|
|
432
|
-
} | undefined;
|
|
433
|
-
export?: string | string[] | undefined;
|
|
434
|
-
name?: string | string[] | {
|
|
435
|
-
amd?: string | undefined;
|
|
436
|
-
commonjs?: string | undefined;
|
|
437
|
-
root?: string | string[] | undefined;
|
|
438
|
-
} | undefined;
|
|
439
|
-
umdNamedDefine?: boolean | undefined;
|
|
440
|
-
} | undefined;
|
|
441
|
-
dependOn?: string | string[] | undefined;
|
|
442
|
-
}> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
|
|
443
|
-
import: (string | string[]) & (string | string[] | undefined);
|
|
444
|
-
runtime?: string | false | undefined;
|
|
445
|
-
publicPath?: string | undefined;
|
|
446
|
-
baseUri?: string | undefined;
|
|
447
|
-
chunkLoading?: string | false | undefined;
|
|
448
|
-
asyncChunks?: boolean | undefined;
|
|
449
|
-
wasmLoading?: string | false | undefined;
|
|
450
|
-
filename?: string | undefined;
|
|
451
|
-
library?: {
|
|
452
|
-
type: string;
|
|
453
|
-
amdContainer?: string | undefined;
|
|
454
|
-
auxiliaryComment?: string | {
|
|
455
|
-
amd?: string | undefined;
|
|
456
|
-
commonjs?: string | undefined;
|
|
457
|
-
commonjs2?: string | undefined;
|
|
458
|
-
root?: string | undefined;
|
|
459
|
-
} | undefined;
|
|
460
|
-
export?: string | string[] | undefined;
|
|
461
|
-
name?: string | string[] | {
|
|
462
|
-
amd?: string | undefined;
|
|
463
|
-
commonjs?: string | undefined;
|
|
464
|
-
root?: string | string[] | undefined;
|
|
465
|
-
} | undefined;
|
|
466
|
-
umdNamedDefine?: boolean | undefined;
|
|
467
|
-
} | undefined;
|
|
468
|
-
dependOn?: string | string[] | undefined;
|
|
469
|
-
}>) | undefined;
|
|
470
|
-
output?: {
|
|
471
|
-
path?: string | undefined;
|
|
472
|
-
clean?: boolean | undefined;
|
|
473
|
-
publicPath?: string | undefined;
|
|
474
|
-
filename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
475
|
-
chunkFilename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
476
|
-
crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined;
|
|
477
|
-
cssFilename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
478
|
-
cssChunkFilename?: string | ((args_0: import("@rspack/binding").PathData, args_1: import("@rspack/binding").JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined;
|
|
479
|
-
hotUpdateMainFilename?: string | undefined;
|
|
480
|
-
hotUpdateChunkFilename?: string | undefined;
|
|
481
|
-
hotUpdateGlobal?: string | undefined;
|
|
482
|
-
assetModuleFilename?: string | undefined;
|
|
483
|
-
uniqueName?: string | undefined;
|
|
484
|
-
chunkLoadingGlobal?: string | undefined;
|
|
485
|
-
enabledLibraryTypes?: string[] | undefined;
|
|
486
|
-
library?: string | string[] | {
|
|
487
|
-
amd?: string | undefined;
|
|
488
|
-
commonjs?: string | undefined;
|
|
489
|
-
root?: string | string[] | undefined;
|
|
490
|
-
} | {
|
|
491
|
-
type: string;
|
|
492
|
-
amdContainer?: string | undefined;
|
|
493
|
-
auxiliaryComment?: string | {
|
|
494
|
-
amd?: string | undefined;
|
|
495
|
-
commonjs?: string | undefined;
|
|
496
|
-
commonjs2?: string | undefined;
|
|
497
|
-
root?: string | undefined;
|
|
498
|
-
} | undefined;
|
|
499
|
-
export?: string | string[] | undefined;
|
|
500
|
-
name?: string | string[] | {
|
|
501
|
-
amd?: string | undefined;
|
|
502
|
-
commonjs?: string | undefined;
|
|
503
|
-
root?: string | string[] | undefined;
|
|
504
|
-
} | undefined;
|
|
505
|
-
umdNamedDefine?: boolean | undefined;
|
|
506
|
-
} | undefined;
|
|
507
|
-
libraryExport?: string | string[] | undefined;
|
|
508
|
-
libraryTarget?: string | undefined;
|
|
509
|
-
umdNamedDefine?: boolean | undefined;
|
|
510
|
-
amdContainer?: string | undefined;
|
|
511
|
-
auxiliaryComment?: string | {
|
|
512
|
-
amd?: string | undefined;
|
|
513
|
-
commonjs?: string | undefined;
|
|
514
|
-
commonjs2?: string | undefined;
|
|
515
|
-
root?: string | undefined;
|
|
516
|
-
} | undefined;
|
|
517
|
-
module?: boolean | undefined;
|
|
518
|
-
strictModuleExceptionHandling?: boolean | undefined;
|
|
519
|
-
strictModuleErrorHandling?: boolean | undefined;
|
|
520
|
-
globalObject?: string | undefined;
|
|
521
|
-
importFunctionName?: string | undefined;
|
|
522
|
-
iife?: boolean | undefined;
|
|
523
|
-
wasmLoading?: string | false | undefined;
|
|
524
|
-
enabledWasmLoadingTypes?: string[] | undefined;
|
|
525
|
-
webassemblyModuleFilename?: string | undefined;
|
|
526
|
-
chunkFormat?: string | false | undefined;
|
|
527
|
-
chunkLoading?: string | false | undefined;
|
|
528
|
-
enabledChunkLoadingTypes?: string[] | undefined;
|
|
529
|
-
trustedTypes?: string | true | {
|
|
530
|
-
policyName?: string | undefined;
|
|
531
|
-
} | undefined;
|
|
532
|
-
sourceMapFilename?: string | undefined;
|
|
533
|
-
hashDigest?: string | undefined;
|
|
534
|
-
hashDigestLength?: number | undefined;
|
|
535
|
-
hashFunction?: "md4" | "xxhash64" | undefined;
|
|
536
|
-
hashSalt?: string | undefined;
|
|
537
|
-
asyncChunks?: boolean | undefined;
|
|
538
|
-
workerChunkLoading?: string | false | undefined;
|
|
539
|
-
workerWasmLoading?: string | false | undefined;
|
|
540
|
-
workerPublicPath?: string | undefined;
|
|
541
|
-
scriptType?: false | "module" | "text/javascript" | undefined;
|
|
542
|
-
devtoolNamespace?: string | undefined;
|
|
543
|
-
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
544
|
-
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
545
|
-
} | undefined;
|
|
546
|
-
target?: false | "node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
547
|
-
mode?: "none" | "production" | "development" | undefined;
|
|
548
|
-
experiments?: {
|
|
549
|
-
lazyCompilation?: boolean | undefined;
|
|
550
|
-
asyncWebAssembly?: boolean | undefined;
|
|
551
|
-
outputModule?: boolean | undefined;
|
|
552
|
-
topLevelAwait?: boolean | undefined;
|
|
553
|
-
newSplitChunks?: boolean | undefined;
|
|
554
|
-
css?: boolean | undefined;
|
|
555
|
-
futureDefaults?: boolean | undefined;
|
|
556
|
-
rspackFuture?: {
|
|
557
|
-
newTreeshaking?: boolean | undefined;
|
|
558
|
-
bundlerInfo?: {
|
|
559
|
-
version?: string | undefined;
|
|
560
|
-
force?: boolean | "version"[] | undefined;
|
|
561
|
-
} | undefined;
|
|
562
|
-
} | undefined;
|
|
563
|
-
} | undefined;
|
|
564
|
-
externals?: string | RegExp | Record<string, string | boolean | string[] | Record<string, string | string[]>> | ((args_0: {
|
|
565
|
-
context?: string | undefined;
|
|
566
|
-
dependencyType?: string | undefined;
|
|
567
|
-
request?: string | undefined;
|
|
568
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "global" | "module" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
569
|
-
context?: string | undefined;
|
|
570
|
-
dependencyType?: string | undefined;
|
|
571
|
-
request?: string | undefined;
|
|
572
|
-
}, ...args_1: unknown[]) => Promise<string | boolean | string[] | Record<string, string | string[]>>) | (string | RegExp | Record<string, string | boolean | string[] | Record<string, string | string[]>> | ((args_0: {
|
|
573
|
-
context?: string | undefined;
|
|
574
|
-
dependencyType?: string | undefined;
|
|
575
|
-
request?: string | undefined;
|
|
576
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "global" | "module" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
577
|
-
context?: string | undefined;
|
|
578
|
-
dependencyType?: string | undefined;
|
|
579
|
-
request?: string | undefined;
|
|
580
|
-
}, ...args_1: unknown[]) => Promise<string | boolean | string[] | Record<string, string | string[]>>))[] | undefined;
|
|
581
|
-
externalsType?: "promise" | "global" | "module" | "import" | "amd" | "commonjs" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "script" | "node-commonjs" | undefined;
|
|
582
|
-
externalsPresets?: {
|
|
583
|
-
node?: boolean | undefined;
|
|
584
|
-
web?: boolean | undefined;
|
|
585
|
-
webAsync?: boolean | undefined;
|
|
586
|
-
electron?: boolean | undefined;
|
|
587
|
-
electronMain?: boolean | undefined;
|
|
588
|
-
electronPreload?: boolean | undefined;
|
|
589
|
-
electronRenderer?: boolean | undefined;
|
|
590
|
-
} | undefined;
|
|
591
|
-
infrastructureLogging?: {
|
|
592
|
-
appendOnly?: boolean | undefined;
|
|
593
|
-
colors?: boolean | undefined;
|
|
594
|
-
console?: Console | undefined;
|
|
595
|
-
debug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
|
|
596
|
-
level?: "error" | "none" | "verbose" | "warn" | "info" | "log" | undefined;
|
|
597
|
-
stream?: NodeJS.WritableStream | undefined;
|
|
598
|
-
} | undefined;
|
|
599
|
-
cache?: boolean | undefined;
|
|
600
|
-
context?: string | undefined;
|
|
601
|
-
devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined;
|
|
602
|
-
node?: false | {
|
|
603
|
-
__dirname?: boolean | "warn-mock" | "mock" | "eval-only" | undefined;
|
|
604
|
-
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | undefined;
|
|
605
|
-
global?: boolean | "warn" | undefined;
|
|
606
|
-
} | undefined;
|
|
607
|
-
ignoreWarnings?: (RegExp | ((args_0: Error, args_1: import("./Compilation").Compilation, ...args_2: unknown[]) => boolean))[] | undefined;
|
|
608
|
-
watchOptions?: {
|
|
609
|
-
aggregateTimeout?: number | undefined;
|
|
610
|
-
followSymlinks?: boolean | undefined;
|
|
611
|
-
ignored?: string | RegExp | string[] | undefined;
|
|
612
|
-
poll?: number | boolean | undefined;
|
|
613
|
-
stdin?: boolean | undefined;
|
|
614
|
-
} | undefined;
|
|
615
|
-
watch?: boolean | undefined;
|
|
616
|
-
stats?: boolean | "normal" | "none" | "verbose" | "errors-only" | "errors-warnings" | {
|
|
617
|
-
all?: boolean | undefined;
|
|
618
|
-
preset?: "normal" | "none" | "verbose" | "errors-only" | "errors-warnings" | undefined;
|
|
619
|
-
assets?: boolean | undefined;
|
|
620
|
-
chunks?: boolean | undefined;
|
|
621
|
-
modules?: boolean | undefined;
|
|
622
|
-
entrypoints?: boolean | undefined;
|
|
623
|
-
chunkGroups?: boolean | undefined;
|
|
624
|
-
warnings?: boolean | undefined;
|
|
625
|
-
warningsCount?: boolean | undefined;
|
|
626
|
-
errors?: boolean | undefined;
|
|
627
|
-
errorsCount?: boolean | undefined;
|
|
628
|
-
colors?: boolean | undefined;
|
|
629
|
-
hash?: boolean | undefined;
|
|
630
|
-
version?: boolean | undefined;
|
|
631
|
-
reasons?: boolean | undefined;
|
|
632
|
-
publicPath?: boolean | undefined;
|
|
633
|
-
outputPath?: boolean | undefined;
|
|
634
|
-
chunkModules?: boolean | undefined;
|
|
635
|
-
chunkRelations?: boolean | undefined;
|
|
636
|
-
ids?: boolean | undefined;
|
|
637
|
-
timings?: boolean | undefined;
|
|
638
|
-
builtAt?: boolean | undefined;
|
|
639
|
-
moduleAssets?: boolean | undefined;
|
|
640
|
-
modulesSpace?: number | undefined;
|
|
641
|
-
nestedModules?: boolean | undefined;
|
|
642
|
-
source?: boolean | undefined;
|
|
643
|
-
logging?: boolean | "error" | "none" | "verbose" | "warn" | "info" | "log" | undefined;
|
|
644
|
-
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
|
|
645
|
-
loggingTrace?: boolean | undefined;
|
|
646
|
-
runtimeModules?: boolean | undefined;
|
|
647
|
-
children?: boolean | undefined;
|
|
648
|
-
usedExports?: boolean | undefined;
|
|
649
|
-
providedExports?: boolean | undefined;
|
|
650
|
-
optimizationBailout?: boolean | undefined;
|
|
651
|
-
orphanModules?: boolean | undefined;
|
|
652
|
-
} | undefined;
|
|
653
|
-
snapshot?: {
|
|
654
|
-
module?: {
|
|
655
|
-
hash?: boolean | undefined;
|
|
656
|
-
timestamp?: boolean | undefined;
|
|
657
|
-
} | undefined;
|
|
658
|
-
resolve?: {
|
|
659
|
-
hash?: boolean | undefined;
|
|
660
|
-
timestamp?: boolean | undefined;
|
|
661
|
-
} | undefined;
|
|
662
|
-
} | undefined;
|
|
663
|
-
optimization?: {
|
|
664
|
-
moduleIds?: "named" | "deterministic" | undefined;
|
|
665
|
-
chunkIds?: "named" | "deterministic" | undefined;
|
|
666
|
-
minimize?: boolean | undefined;
|
|
667
|
-
minimizer?: (false | "" | 0 | import("./config").RspackPluginInstance | "..." | import("./config").RspackPluginFunction | null | undefined)[] | undefined;
|
|
668
|
-
mergeDuplicateChunks?: boolean | undefined;
|
|
669
|
-
splitChunks?: false | {
|
|
670
|
-
chunks?: RegExp | "async" | "all" | "initial" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
671
|
-
defaultSizeTypes?: string[] | undefined;
|
|
672
|
-
minChunks?: number | undefined;
|
|
673
|
-
name?: string | false | ((args_0: import("./Module").Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
674
|
-
minSize?: number | undefined;
|
|
675
|
-
maxSize?: number | undefined;
|
|
676
|
-
maxAsyncSize?: number | undefined;
|
|
677
|
-
maxInitialSize?: number | undefined;
|
|
678
|
-
automaticNameDelimiter?: string | undefined;
|
|
679
|
-
cacheGroups?: Record<string, false | {
|
|
680
|
-
chunks?: RegExp | "async" | "all" | "initial" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
681
|
-
defaultSizeTypes?: string[] | undefined;
|
|
682
|
-
minChunks?: number | undefined;
|
|
683
|
-
name?: string | false | ((args_0: import("./Module").Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
684
|
-
minSize?: number | undefined;
|
|
685
|
-
maxSize?: number | undefined;
|
|
686
|
-
maxAsyncSize?: number | undefined;
|
|
687
|
-
maxInitialSize?: number | undefined;
|
|
688
|
-
automaticNameDelimiter?: string | undefined;
|
|
689
|
-
test?: string | RegExp | ((args_0: import("./Module").Module, ...args_1: unknown[]) => unknown) | undefined;
|
|
690
|
-
priority?: number | undefined;
|
|
691
|
-
enforce?: boolean | undefined;
|
|
692
|
-
filename?: string | undefined;
|
|
693
|
-
reuseExistingChunk?: boolean | undefined;
|
|
694
|
-
type?: string | RegExp | undefined;
|
|
695
|
-
idHint?: string | undefined;
|
|
696
|
-
}> | undefined;
|
|
697
|
-
maxAsyncRequests?: number | undefined;
|
|
698
|
-
maxInitialRequests?: number | undefined;
|
|
699
|
-
fallbackCacheGroup?: {
|
|
700
|
-
chunks?: RegExp | "async" | "all" | "initial" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
701
|
-
minSize?: number | undefined;
|
|
702
|
-
maxSize?: number | undefined;
|
|
703
|
-
maxAsyncSize?: number | undefined;
|
|
704
|
-
maxInitialSize?: number | undefined;
|
|
705
|
-
automaticNameDelimiter?: string | undefined;
|
|
706
|
-
} | undefined;
|
|
707
|
-
hidePathInfo?: boolean | undefined;
|
|
708
|
-
} | undefined;
|
|
709
|
-
runtimeChunk?: boolean | "single" | "multiple" | {
|
|
710
|
-
name?: string | ((...args: unknown[]) => string | undefined) | undefined;
|
|
711
|
-
} | undefined;
|
|
712
|
-
removeAvailableModules?: boolean | undefined;
|
|
713
|
-
removeEmptyChunks?: boolean | undefined;
|
|
714
|
-
realContentHash?: boolean | undefined;
|
|
715
|
-
sideEffects?: boolean | "flag" | undefined;
|
|
716
|
-
providedExports?: boolean | undefined;
|
|
717
|
-
concatenateModules?: boolean | undefined;
|
|
718
|
-
innerGraph?: boolean | undefined;
|
|
719
|
-
usedExports?: boolean | "global" | undefined;
|
|
720
|
-
mangleExports?: boolean | "size" | "deterministic" | undefined;
|
|
721
|
-
nodeEnv?: string | false | undefined;
|
|
722
|
-
} | undefined;
|
|
723
|
-
resolve?: import("./config").ResolveOptions | undefined;
|
|
724
|
-
resolveLoader?: import("./config").ResolveOptions | undefined;
|
|
725
|
-
plugins?: (false | "" | 0 | import("./config").RspackPluginInstance | import("./config").RspackPluginFunction | null | undefined)[] | undefined;
|
|
726
|
-
devServer?: import("./config").DevServer | undefined;
|
|
727
|
-
builtins?: import("./builtin-plugin").Builtins | undefined;
|
|
728
|
-
module?: {
|
|
729
|
-
defaultRules?: (false | "" | 0 | "..." | import("./config").RuleSetRule | null | undefined)[] | undefined;
|
|
730
|
-
rules?: (false | "" | 0 | "..." | import("./config").RuleSetRule | null | undefined)[] | undefined;
|
|
731
|
-
parser?: {
|
|
732
|
-
asset?: {
|
|
733
|
-
dataUrlCondition?: {
|
|
734
|
-
maxSize?: number | undefined;
|
|
735
|
-
} | undefined;
|
|
736
|
-
} | undefined;
|
|
737
|
-
css?: {
|
|
738
|
-
namedExports?: boolean | undefined;
|
|
739
|
-
} | undefined;
|
|
740
|
-
"css/auto"?: {
|
|
741
|
-
namedExports?: boolean | undefined;
|
|
742
|
-
} | undefined;
|
|
743
|
-
"css/module"?: {
|
|
744
|
-
namedExports?: boolean | undefined;
|
|
745
|
-
} | undefined;
|
|
746
|
-
javascript?: {
|
|
747
|
-
dynamicImportMode?: "eager" | "lazy" | undefined;
|
|
748
|
-
dynamicImportPreload?: number | boolean | undefined;
|
|
749
|
-
dynamicImportPrefetch?: number | boolean | undefined;
|
|
750
|
-
url?: boolean | "relative" | undefined;
|
|
751
|
-
} | undefined;
|
|
752
|
-
} | Record<string, Record<string, any>> | undefined;
|
|
753
|
-
generator?: Record<string, Record<string, any>> | {
|
|
754
|
-
asset?: {
|
|
755
|
-
dataUrl?: {
|
|
756
|
-
encoding?: false | "base64" | undefined;
|
|
757
|
-
mimetype?: string | undefined;
|
|
758
|
-
} | ((args_0: {
|
|
759
|
-
filename: string;
|
|
760
|
-
content: string;
|
|
761
|
-
}, ...args_1: unknown[]) => string) | undefined;
|
|
762
|
-
filename?: string | undefined;
|
|
763
|
-
publicPath?: string | undefined;
|
|
764
|
-
} | undefined;
|
|
765
|
-
"asset/inline"?: {
|
|
766
|
-
dataUrl?: {
|
|
767
|
-
encoding?: false | "base64" | undefined;
|
|
768
|
-
mimetype?: string | undefined;
|
|
769
|
-
} | ((args_0: {
|
|
770
|
-
filename: string;
|
|
771
|
-
content: string;
|
|
772
|
-
}, ...args_1: unknown[]) => string) | undefined;
|
|
773
|
-
} | undefined;
|
|
774
|
-
"asset/resource"?: {
|
|
775
|
-
filename?: string | undefined;
|
|
776
|
-
publicPath?: string | undefined;
|
|
777
|
-
} | undefined;
|
|
778
|
-
css?: {
|
|
779
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
780
|
-
exportsOnly?: boolean | undefined;
|
|
781
|
-
} | undefined;
|
|
782
|
-
"css/auto"?: {
|
|
783
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
784
|
-
exportsOnly?: boolean | undefined;
|
|
785
|
-
localIdentName?: string | undefined;
|
|
786
|
-
} | undefined;
|
|
787
|
-
"css/module"?: {
|
|
788
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
789
|
-
exportsOnly?: boolean | undefined;
|
|
790
|
-
localIdentName?: string | undefined;
|
|
791
|
-
} | undefined;
|
|
792
|
-
} | undefined;
|
|
793
|
-
noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
|
|
794
|
-
} | undefined;
|
|
795
|
-
profile?: boolean | undefined;
|
|
796
|
-
bail?: boolean | undefined;
|
|
797
|
-
}) => import("./config").RspackOptionsNormalized;
|
|
798
|
-
applyWebpackOptionsDefaults: (options: import("./config").RspackOptionsNormalized) => void;
|
|
25
|
+
import { getNormalizedRspackOptions, applyRspackOptionsDefaults } from "./config";
|
|
26
|
+
type Config = {
|
|
27
|
+
getNormalizedRspackOptions: typeof getNormalizedRspackOptions;
|
|
28
|
+
applyRspackOptionsDefaults: typeof applyRspackOptionsDefaults;
|
|
29
|
+
getNormalizedWebpackOptions: typeof getNormalizedRspackOptions;
|
|
30
|
+
applyWebpackOptionsDefaults: typeof applyRspackOptionsDefaults;
|
|
799
31
|
};
|
|
32
|
+
export declare const config: Config;
|
|
800
33
|
export type * from "./config";
|
|
801
34
|
export declare const util: {
|
|
802
35
|
createHash: (algorithm: any) => any;
|
|
@@ -822,77 +55,42 @@ export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
|
|
|
822
55
|
export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
|
|
823
56
|
export { NormalModuleReplacementPlugin } from "./lib/NormalModuleReplacementPlugin";
|
|
824
57
|
import NodeTemplatePlugin from "./node/NodeTemplatePlugin";
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
name: import("@rspack/binding").BuiltinPluginName;
|
|
829
|
-
_options: undefined;
|
|
830
|
-
affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
831
|
-
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
832
|
-
apply(compiler: import("./Compiler").Compiler): void;
|
|
833
|
-
};
|
|
834
|
-
};
|
|
58
|
+
import { NodeTargetPlugin } from "./builtin-plugin";
|
|
59
|
+
interface Node {
|
|
60
|
+
NodeTargetPlugin: typeof NodeTargetPlugin;
|
|
835
61
|
NodeTemplatePlugin: typeof NodeTemplatePlugin;
|
|
836
|
-
}
|
|
837
|
-
export declare const
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
844
|
-
apply(compiler: import("./Compiler").Compiler): void;
|
|
845
|
-
};
|
|
846
|
-
};
|
|
847
|
-
};
|
|
62
|
+
}
|
|
63
|
+
export declare const node: Node;
|
|
64
|
+
import { ElectronTargetPlugin } from "./builtin-plugin";
|
|
65
|
+
interface Electron {
|
|
66
|
+
ElectronTargetPlugin: typeof ElectronTargetPlugin;
|
|
67
|
+
}
|
|
68
|
+
export declare const electron: Electron;
|
|
848
69
|
import { EnableLibraryPlugin } from "./builtin-plugin";
|
|
849
|
-
|
|
70
|
+
interface Library {
|
|
850
71
|
EnableLibraryPlugin: typeof EnableLibraryPlugin;
|
|
851
|
-
}
|
|
852
|
-
export declare const
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
};
|
|
874
|
-
export declare const webworker: {
|
|
875
|
-
WebWorkerTemplatePlugin: {
|
|
876
|
-
new (): {
|
|
877
|
-
name: import("@rspack/binding").BuiltinPluginName;
|
|
878
|
-
_options: undefined;
|
|
879
|
-
affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
880
|
-
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
881
|
-
apply(compiler: import("./Compiler").Compiler): void;
|
|
882
|
-
};
|
|
883
|
-
};
|
|
884
|
-
};
|
|
885
|
-
export declare const optimize: {
|
|
886
|
-
LimitChunkCountPlugin: {
|
|
887
|
-
new (options: import("./builtin-plugin").LimitChunkCountOptions): {
|
|
888
|
-
name: import("@rspack/binding").BuiltinPluginName;
|
|
889
|
-
_options: import("@rspack/binding").RawLimitChunkCountPluginOptions;
|
|
890
|
-
affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
891
|
-
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
892
|
-
apply(compiler: import("./Compiler").Compiler): void;
|
|
893
|
-
};
|
|
894
|
-
};
|
|
895
|
-
};
|
|
72
|
+
}
|
|
73
|
+
export declare const library: Library;
|
|
74
|
+
import { EnableWasmLoadingPlugin } from "./builtin-plugin";
|
|
75
|
+
interface Wasm {
|
|
76
|
+
EnableWasmLoadingPlugin: typeof EnableWasmLoadingPlugin;
|
|
77
|
+
}
|
|
78
|
+
export declare const wasm: Wasm;
|
|
79
|
+
import { EnableChunkLoadingPlugin } from "./builtin-plugin";
|
|
80
|
+
interface JavaScript {
|
|
81
|
+
EnableChunkLoadingPlugin: typeof EnableChunkLoadingPlugin;
|
|
82
|
+
}
|
|
83
|
+
export declare const javascript: JavaScript;
|
|
84
|
+
import { WebWorkerTemplatePlugin } from "./builtin-plugin";
|
|
85
|
+
interface Webworker {
|
|
86
|
+
WebWorkerTemplatePlugin: typeof WebWorkerTemplatePlugin;
|
|
87
|
+
}
|
|
88
|
+
export declare const webworker: Webworker;
|
|
89
|
+
import { LimitChunkCountPlugin } from "./builtin-plugin";
|
|
90
|
+
interface Optimize {
|
|
91
|
+
LimitChunkCountPlugin: typeof LimitChunkCountPlugin;
|
|
92
|
+
}
|
|
93
|
+
export declare const optimize: Optimize;
|
|
896
94
|
import { ModuleFederationPlugin } from "./container/ModuleFederationPlugin";
|
|
897
95
|
export type { ModuleFederationPluginOptions } from "./container/ModuleFederationPlugin";
|
|
898
96
|
import { ModuleFederationPluginV1 } from "./container/ModuleFederationPluginV1";
|