@rspack/binding 1.4.8 → 1.4.9
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/binding.d.ts +4 -2808
- package/napi-binding.d.ts +2817 -0
- package/package.json +22 -19
package/binding.d.ts
CHANGED
|
@@ -1,2812 +1,8 @@
|
|
|
1
|
-
/* auto-generated by NAPI-RS */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
/* -- banner.d.ts -- */
|
|
5
|
-
export type JsFilename =
|
|
6
|
-
| string
|
|
7
|
-
| ((pathData: JsPathData, assetInfo?: AssetInfo) => string);
|
|
8
|
-
|
|
9
|
-
export type RawLazyCompilationTest = RegExp | ((module: Module) => boolean);
|
|
10
|
-
|
|
11
|
-
export type AssetInfo = KnownAssetInfo & Record<string, any>;
|
|
12
|
-
|
|
13
|
-
export type CustomPluginName = string;
|
|
14
|
-
|
|
15
|
-
export const MODULE_IDENTIFIER_SYMBOL: unique symbol;
|
|
16
|
-
|
|
17
|
-
export const COMPILATION_HOOKS_MAP_SYMBOL: unique symbol;
|
|
18
|
-
|
|
19
|
-
export const BUILD_INFO_ASSETS_SYMBOL: unique symbol;
|
|
20
|
-
export const BUILD_INFO_FILE_DEPENDENCIES_SYMBOL: unique symbol;
|
|
21
|
-
export const BUILD_INFO_CONTEXT_DEPENDENCIES_SYMBOL: unique symbol;
|
|
22
|
-
export const BUILD_INFO_MISSING_DEPENDENCIES_SYMBOL: unique symbol;
|
|
23
|
-
export const BUILD_INFO_BUILD_DEPENDENCIES_SYMBOL: unique symbol;
|
|
24
|
-
export const COMMIT_CUSTOM_FIELDS_SYMBOL: unique symbol;
|
|
25
|
-
|
|
26
|
-
export const RUST_ERROR_SYMBOL: unique symbol;
|
|
27
|
-
|
|
28
|
-
interface KnownBuildInfo {
|
|
29
|
-
[BUILD_INFO_ASSETS_SYMBOL]: Assets,
|
|
30
|
-
[BUILD_INFO_FILE_DEPENDENCIES_SYMBOL]: string[],
|
|
31
|
-
[BUILD_INFO_CONTEXT_DEPENDENCIES_SYMBOL]: string[],
|
|
32
|
-
[BUILD_INFO_MISSING_DEPENDENCIES_SYMBOL]: string[],
|
|
33
|
-
[BUILD_INFO_BUILD_DEPENDENCIES_SYMBOL]: string[],
|
|
34
|
-
[COMMIT_CUSTOM_FIELDS_SYMBOL](): void;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type BuildInfo = KnownBuildInfo & Record<string, any>;
|
|
38
|
-
|
|
39
|
-
export interface Module {
|
|
40
|
-
[MODULE_IDENTIFIER_SYMBOL]: string;
|
|
41
|
-
readonly type: string;
|
|
42
|
-
get context(): string | undefined;
|
|
43
|
-
get layer(): string | undefined;
|
|
44
|
-
get factoryMeta(): JsFactoryMeta
|
|
45
|
-
set factoryMeta(factoryMeta: JsFactoryMeta);
|
|
46
|
-
get useSourceMap(): boolean;
|
|
47
|
-
get useSimpleSourceMap(): boolean;
|
|
48
|
-
buildInfo: BuildInfo;
|
|
49
|
-
buildMeta: Record<string, any>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface NormalModuleConstructor {
|
|
53
|
-
new(): NormalModule;
|
|
54
|
-
readonly prototype: NormalModule;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export var NormalModule: NormalModuleConstructor;
|
|
58
|
-
|
|
59
|
-
export interface NormalModule extends Module {
|
|
60
|
-
readonly resource: string;
|
|
61
|
-
readonly request: string;
|
|
62
|
-
readonly userRequest: string;
|
|
63
|
-
readonly rawRequest: string;
|
|
64
|
-
readonly resourceResolveData: Readonly<JsResourceData> | undefined;
|
|
65
|
-
readonly loaders: JsLoaderItem[];
|
|
66
|
-
get matchResource(): string | undefined;
|
|
67
|
-
set matchResource(val: string | undefined);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface ConcatenatedModule extends Module {
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface ContextModule extends Module {
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface ExternalModule extends Module {
|
|
77
|
-
readonly userRequest: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export interface RspackError extends Error {
|
|
81
|
-
name: string;
|
|
82
|
-
message: string;
|
|
83
|
-
details?: string;
|
|
84
|
-
module?: null | Module;
|
|
85
|
-
loc?: DependencyLocation;
|
|
86
|
-
file?: string;
|
|
87
|
-
stack?: string;
|
|
88
|
-
hideStack?: boolean;
|
|
89
|
-
error?: Error;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export type DependencyLocation = SyntheticDependencyLocation | RealDependencyLocation;
|
|
93
|
-
/* -- banner.d.ts end -- */
|
|
94
|
-
|
|
95
|
-
/* -- napi-rs generated below -- */
|
|
96
|
-
|
|
97
|
-
export declare class ExternalObject<T> {
|
|
98
|
-
readonly '': {
|
|
99
|
-
readonly '': unique symbol
|
|
100
|
-
[K: symbol]: T
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
export declare class Assets {
|
|
104
|
-
keys(): Array<string>
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export declare class AsyncDependenciesBlock {
|
|
108
|
-
get dependencies(): Dependency[]
|
|
109
|
-
get blocks(): AsyncDependenciesBlock[]
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export declare class Chunk {
|
|
113
|
-
get name(): string | undefined
|
|
114
|
-
get id(): string | undefined
|
|
115
|
-
get ids(): Array<string>
|
|
116
|
-
get idNameHints(): Array<string>
|
|
117
|
-
get filenameTemplate(): string | undefined
|
|
118
|
-
get cssFilenameTemplate(): string | undefined
|
|
119
|
-
get _files(): Array<string>
|
|
120
|
-
get _runtime(): Array<string>
|
|
121
|
-
get hash(): string | undefined
|
|
122
|
-
get contentHash(): Record<string, string>
|
|
123
|
-
get renderedHash(): string | undefined
|
|
124
|
-
get chunkReason(): string | undefined
|
|
125
|
-
get _auxiliaryFiles(): Array<string>
|
|
126
|
-
isOnlyInitial(): boolean
|
|
127
|
-
canBeInitial(): boolean
|
|
128
|
-
hasRuntime(): boolean
|
|
129
|
-
getAllAsyncChunks(): Chunk[]
|
|
130
|
-
getAllInitialChunks(): Chunk[]
|
|
131
|
-
getAllReferencedChunks(): Chunk[]
|
|
132
|
-
get _groupsIterable(): ChunkGroup[]
|
|
133
|
-
getEntryOptions(): EntryOptionsDTO | undefined
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export declare class ChunkGraph {
|
|
137
|
-
hasChunkEntryDependentChunks(chunk: Chunk): boolean
|
|
138
|
-
getChunkModules(chunk: Chunk): Module[]
|
|
139
|
-
getChunkModulesIterable(chunk: Chunk): Iterable<Module>
|
|
140
|
-
getChunkEntryModulesIterable(chunk: Chunk): Iterable<Module>
|
|
141
|
-
getNumberOfEntryModules(chunk: Chunk): number
|
|
142
|
-
getChunkEntryDependentChunksIterable(chunk: Chunk): Chunk[]
|
|
143
|
-
getChunkModulesIterableBySourceType(chunk: Chunk, sourceType: string): Module[]
|
|
144
|
-
getModuleChunks(module: Module): Chunk[]
|
|
145
|
-
getModuleId(module: Module): string | number | null
|
|
146
|
-
_getModuleHash(module: Module, runtime: string | string[] | undefined): string | null
|
|
147
|
-
getBlockChunkGroup(jsBlock: AsyncDependenciesBlock): ChunkGroup | null
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export declare class ChunkGroup {
|
|
151
|
-
get chunks(): Chunk[]
|
|
152
|
-
get index(): number | undefined
|
|
153
|
-
get name(): string | undefined
|
|
154
|
-
get origins(): Array<JsChunkGroupOrigin>
|
|
155
|
-
get childrenIterable(): ChunkGroup[]
|
|
156
|
-
isInitial(): boolean
|
|
157
|
-
getParents(): ChunkGroup[]
|
|
158
|
-
getRuntimeChunk(): Chunk
|
|
159
|
-
getEntrypointChunk(): Chunk
|
|
160
|
-
getFiles(): Array<string>
|
|
161
|
-
getModulePreOrderIndex(module: Module): number | null
|
|
162
|
-
getModulePostOrderIndex(module: Module): number | null
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export declare class Chunks {
|
|
166
|
-
get size(): number
|
|
167
|
-
_values(): Chunk[]
|
|
168
|
-
_has(chunk: Chunk): boolean
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export declare class CodeGenerationResult {
|
|
172
|
-
get sources(): Sources
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export declare class CodeGenerationResults {
|
|
176
|
-
get(module: Module, runtime: string | string[] | undefined): CodeGenerationResult
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export declare class ConcatenatedModule {
|
|
180
|
-
get rootModule(): Module
|
|
181
|
-
get modules(): Module[]
|
|
182
|
-
readableIdentifier(): string
|
|
183
|
-
_originalSource(): JsCompatSource | undefined
|
|
184
|
-
nameForCondition(): string | undefined
|
|
185
|
-
get blocks(): AsyncDependenciesBlock[]
|
|
186
|
-
get dependencies(): Dependency[]
|
|
187
|
-
size(ty?: string | undefined | null): number
|
|
188
|
-
libIdent(options: JsLibIdentOptions): string | null
|
|
189
|
-
_emitFile(filename: string, source: JsCompatSource, assetInfo?: AssetInfo | undefined | null): void
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export declare class ContextModule {
|
|
193
|
-
readableIdentifier(): string
|
|
194
|
-
_originalSource(): JsCompatSource | undefined
|
|
195
|
-
nameForCondition(): string | undefined
|
|
196
|
-
get blocks(): AsyncDependenciesBlock[]
|
|
197
|
-
get dependencies(): Dependency[]
|
|
198
|
-
size(ty?: string | undefined | null): number
|
|
199
|
-
libIdent(options: JsLibIdentOptions): string | null
|
|
200
|
-
_emitFile(filename: string, source: JsCompatSource, assetInfo?: AssetInfo | undefined | null): void
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export declare class Dependency {
|
|
204
|
-
get _parentModule(): Module | undefined
|
|
205
|
-
get type(): string
|
|
206
|
-
get category(): string
|
|
207
|
-
get request(): string | undefined
|
|
208
|
-
get critical(): boolean
|
|
209
|
-
set critical(val: boolean)
|
|
210
|
-
get ids(): Array<string> | undefined
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export declare class Diagnostics {
|
|
214
|
-
get length(): number
|
|
215
|
-
values(): Array<RspackError>
|
|
216
|
-
get(index: number): RspackError | undefined
|
|
217
|
-
set(index: number, error: RspackError): void
|
|
218
|
-
spliceWithArray(index: number, deleteCount?: number | undefined | null, newItems?: Array<RspackError> | undefined | null): Array<RspackError>
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export declare class EntryDataDto {
|
|
222
|
-
get dependencies(): Dependency[]
|
|
223
|
-
get includeDependencies(): Dependency[]
|
|
224
|
-
get options(): EntryOptionsDto
|
|
225
|
-
}
|
|
226
|
-
export type EntryDataDTO = EntryDataDto
|
|
227
|
-
|
|
228
|
-
export declare class EntryDependency {
|
|
229
|
-
constructor(request: string)
|
|
230
|
-
get type(): string
|
|
231
|
-
get category(): string
|
|
232
|
-
get request(): string | undefined
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export declare class EntryOptionsDto {
|
|
236
|
-
get name(): string | undefined
|
|
237
|
-
set name(name: string | undefined)
|
|
238
|
-
get runtime(): false | string | undefined
|
|
239
|
-
set runtime(chunkLoading: boolean | string | undefined)
|
|
240
|
-
get chunkLoading(): string | undefined
|
|
241
|
-
set chunkLoading(chunkLoading: string | false | undefined)
|
|
242
|
-
get asyncChunks(): boolean | undefined
|
|
243
|
-
set asyncChunks(asyncChunks: boolean | undefined)
|
|
244
|
-
get baseUri(): string | undefined
|
|
245
|
-
set baseUri(baseUri: string | undefined)
|
|
246
|
-
get library(): JsLibraryOptions | undefined
|
|
247
|
-
set library(library: JsLibraryOptions | undefined)
|
|
248
|
-
get dependOn(): Array<string> | undefined
|
|
249
|
-
set dependOn(dependOn: Array<string> | undefined)
|
|
250
|
-
get layer(): string | undefined
|
|
251
|
-
set layer(layer: string | undefined)
|
|
252
|
-
}
|
|
253
|
-
export type EntryOptionsDTO = EntryOptionsDto
|
|
254
|
-
|
|
255
|
-
export declare class ExternalModule {
|
|
256
|
-
readableIdentifier(): string
|
|
257
|
-
_originalSource(): JsCompatSource | undefined
|
|
258
|
-
nameForCondition(): string | undefined
|
|
259
|
-
get blocks(): AsyncDependenciesBlock[]
|
|
260
|
-
get dependencies(): Dependency[]
|
|
261
|
-
size(ty?: string | undefined | null): number
|
|
262
|
-
libIdent(options: JsLibIdentOptions): string | null
|
|
263
|
-
_emitFile(filename: string, source: JsCompatSource, assetInfo?: AssetInfo | undefined | null): void
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export declare class JsCompilation {
|
|
267
|
-
updateAsset(filename: string, newSourceOrFunction: JsCompatSource | ((source: JsCompatSourceOwned) => JsCompatSourceOwned), assetInfoUpdateOrFunction?: AssetInfo | ((assetInfo: AssetInfo) => AssetInfo | undefined)): void
|
|
268
|
-
getAssets(): Readonly<JsAsset>[]
|
|
269
|
-
getAsset(name: string): JsAsset | null
|
|
270
|
-
getAssetSource(name: string): JsCompatSource | null
|
|
271
|
-
get modules(): Array<Module>
|
|
272
|
-
get builtModules(): Array<Module>
|
|
273
|
-
getOptimizationBailout(): Array<JsStatsOptimizationBailout>
|
|
274
|
-
get chunks(): Chunks
|
|
275
|
-
getNamedChunkKeys(): Array<string>
|
|
276
|
-
getNamedChunk(name: string): Chunk
|
|
277
|
-
getNamedChunkGroupKeys(): Array<string>
|
|
278
|
-
getNamedChunkGroup(name: string): ChunkGroup
|
|
279
|
-
setAssetSource(name: string, source: JsCompatSource): void
|
|
280
|
-
deleteAssetSource(name: string): void
|
|
281
|
-
getAssetFilenames(): Array<string>
|
|
282
|
-
hasAsset(name: string): boolean
|
|
283
|
-
emitAsset(filename: string, source: JsCompatSource, assetInfo?: AssetInfo | undefined | null): void
|
|
284
|
-
deleteAsset(filename: string): void
|
|
285
|
-
renameAsset(filename: string, newName: string): void
|
|
286
|
-
get entrypoints(): ChunkGroup[]
|
|
287
|
-
get chunkGroups(): ChunkGroup[]
|
|
288
|
-
get hash(): string | null
|
|
289
|
-
dependencies(): JsDependencies
|
|
290
|
-
pushDiagnostic(diagnostic: JsRspackDiagnostic): void
|
|
291
|
-
pushNativeDiagnostic(diagnostic: ExternalObject<'Diagnostic'>): void
|
|
292
|
-
pushNativeDiagnostics(diagnostics: ExternalObject<'Diagnostic[]'>): void
|
|
293
|
-
get errors(): Diagnostics
|
|
294
|
-
get warnings(): Diagnostics
|
|
295
|
-
getErrors(): Array<RspackError>
|
|
296
|
-
getWarnings(): Array<RspackError>
|
|
297
|
-
getStats(): JsStats
|
|
298
|
-
getAssetPath(filename: string, data: JsPathData): string
|
|
299
|
-
getAssetPathWithInfo(filename: string, data: JsPathData): PathWithInfo
|
|
300
|
-
getPath(filename: string, data: JsPathData): string
|
|
301
|
-
getPathWithInfo(filename: string, data: JsPathData): PathWithInfo
|
|
302
|
-
addFileDependencies(deps: Array<string>): void
|
|
303
|
-
addContextDependencies(deps: Array<string>): void
|
|
304
|
-
addMissingDependencies(deps: Array<string>): void
|
|
305
|
-
addBuildDependencies(deps: Array<string>): void
|
|
306
|
-
/**
|
|
307
|
-
* This is a very unsafe function.
|
|
308
|
-
* Please don't use this at the moment.
|
|
309
|
-
* Using async and mutable reference to `Compilation` at the same time would likely to cause data races.
|
|
310
|
-
*/
|
|
311
|
-
rebuildModule(moduleIdentifiers: Array<string>, f: any): void
|
|
312
|
-
importModule(request: string, layer: string | undefined | null, publicPath: JsFilename | undefined | null, baseUri: string | undefined | null, originalModule: string, originalModuleContext: string | undefined | null, callback: any): void
|
|
313
|
-
get entries(): JsEntries
|
|
314
|
-
addRuntimeModule(chunk: Chunk, runtimeModule: JsAddingRuntimeModule): void
|
|
315
|
-
get moduleGraph(): JsModuleGraph
|
|
316
|
-
get chunkGraph(): ChunkGraph
|
|
317
|
-
addEntry(args: [string, EntryDependency, JsEntryOptions | undefined][], callback: (errMsg: Error | null, results: [string | null, Module][]) => void): void
|
|
318
|
-
addInclude(args: [string, EntryDependency, JsEntryOptions | undefined][], callback: (errMsg: Error | null, results: [string | null, Module][]) => void): void
|
|
319
|
-
get codeGenerationResults(): CodeGenerationResults
|
|
320
|
-
createStatsWarnings(warnings: Array<RspackError>, colored?: boolean | undefined | null): JsStatsError[]
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export declare class JsCompiler {
|
|
324
|
-
constructor(compilerPath: string, options: RawOptions, builtinPlugins: Array<BuiltinPlugin>, registerJsTaps: RegisterJsTaps, outputFilesystem: ThreadsafeNodeFS, intermediateFilesystem: ThreadsafeNodeFS | undefined | null, inputFilesystem: ThreadsafeNodeFS | undefined | null, resolverFactoryReference: JsResolverFactory)
|
|
325
|
-
setNonSkippableRegisters(kinds: Array<RegisterJsTapKind>): void
|
|
326
|
-
/** Build with the given option passed to the constructor */
|
|
327
|
-
build(callback: (err: null | Error) => void): void
|
|
328
|
-
/** Rebuild with the given option passed to the constructor */
|
|
329
|
-
rebuild(changed_files: string[], removed_files: string[], callback: (err: null | Error) => void): void
|
|
330
|
-
close(): Promise<void>
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
export declare class JsContextModuleFactoryAfterResolveData {
|
|
334
|
-
get resource(): string
|
|
335
|
-
set resource(resource: string)
|
|
336
|
-
get context(): string
|
|
337
|
-
set context(context: string)
|
|
338
|
-
get request(): string
|
|
339
|
-
set request(request: string)
|
|
340
|
-
get regExp(): RegExp | undefined
|
|
341
|
-
set regExp(rawRegExp: RegExp | undefined)
|
|
342
|
-
get recursive(): boolean
|
|
343
|
-
set recursive(recursive: boolean)
|
|
344
|
-
get dependencies(): Dependency[]
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
export declare class JsContextModuleFactoryBeforeResolveData {
|
|
348
|
-
get context(): string
|
|
349
|
-
set context(context: string)
|
|
350
|
-
get request(): string
|
|
351
|
-
set request(request: string)
|
|
352
|
-
get regExp(): RegExp | undefined
|
|
353
|
-
set regExp(rawRegExp: RegExp | undefined)
|
|
354
|
-
get recursive(): boolean
|
|
355
|
-
set recursive(recursive: boolean)
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
export declare class JsDependencies {
|
|
359
|
-
get fileDependencies(): Array<string>
|
|
360
|
-
get addedFileDependencies(): Array<string>
|
|
361
|
-
get removedFileDependencies(): Array<string>
|
|
362
|
-
get contextDependencies(): Array<string>
|
|
363
|
-
get addedContextDependencies(): Array<string>
|
|
364
|
-
get removedContextDependencies(): Array<string>
|
|
365
|
-
get missingDependencies(): Array<string>
|
|
366
|
-
get addedMissingDependencies(): Array<string>
|
|
367
|
-
get removedMissingDependencies(): Array<string>
|
|
368
|
-
get buildDependencies(): Array<string>
|
|
369
|
-
get addedBuildDependencies(): Array<string>
|
|
370
|
-
get removedBuildDependencies(): Array<string>
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
export declare class JsEntries {
|
|
374
|
-
clear(): void
|
|
375
|
-
get size(): number
|
|
376
|
-
has(key: string): boolean
|
|
377
|
-
set(key: string, value: JsEntryData | EntryDataDto): void
|
|
378
|
-
delete(key: string): boolean
|
|
379
|
-
get(key: string): EntryDataDto | undefined
|
|
380
|
-
keys(): Array<string>
|
|
381
|
-
values(): Array<EntryDataDto>
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
export declare class JsExportsInfo {
|
|
385
|
-
isUsed(runtime: string | string[] | undefined): boolean
|
|
386
|
-
isModuleUsed(runtime: string | string[] | undefined): boolean
|
|
387
|
-
setUsedInUnknownWay(runtime: string | string[] | undefined): boolean
|
|
388
|
-
getUsed(name: string | string[], runtime: string | string[] | undefined): 0 | 1 | 2 | 3 | 4
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
export declare class JsModuleGraph {
|
|
392
|
-
getModule(dependency: Dependency): Module | null
|
|
393
|
-
getResolvedModule(dependency: Dependency): Module | null
|
|
394
|
-
getUsedExports(module: Module, runtime: string | string[]): boolean | Array<string> | null
|
|
395
|
-
getIssuer(module: Module): Module | null
|
|
396
|
-
getExportsInfo(module: Module): JsExportsInfo
|
|
397
|
-
getConnection(dependency: Dependency): ModuleGraphConnection | null
|
|
398
|
-
getOutgoingConnections(module: Module): ModuleGraphConnection[]
|
|
399
|
-
getOutgoingConnectionsInOrder(module: Module): ModuleGraphConnection[]
|
|
400
|
-
getIncomingConnections(module: Module): ModuleGraphConnection[]
|
|
401
|
-
getParentModule(dependency: Dependency): Module | null
|
|
402
|
-
getParentBlockIndex(dependency: Dependency): number
|
|
403
|
-
isAsync(module: Module): boolean
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
export declare class JsResolver {
|
|
407
|
-
resolveSync(path: string, request: string): JsResourceData | false
|
|
408
|
-
resolve(path: string, request: string, callback: (err: null | Error, req?: JsResourceData) => void): void
|
|
409
|
-
withOptions(raw?: RawResolveOptionsWithDependencyType | undefined | null): JsResolver
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
export declare class JsResolverFactory {
|
|
413
|
-
constructor(pnp: boolean)
|
|
414
|
-
get(type: string, options?: RawResolveOptionsWithDependencyType): JsResolver
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
export declare class JsStats {
|
|
418
|
-
toJson(jsOptions: JsStatsOptions): JsStatsCompilation
|
|
419
|
-
getLogging(acceptedTypes: number): Array<JsStatsLogging>
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
export declare class KnownBuildInfo {
|
|
423
|
-
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
export declare class Module {
|
|
427
|
-
readableIdentifier(): string
|
|
428
|
-
_originalSource(): JsCompatSource | undefined
|
|
429
|
-
nameForCondition(): string | undefined
|
|
430
|
-
get blocks(): AsyncDependenciesBlock[]
|
|
431
|
-
get dependencies(): Dependency[]
|
|
432
|
-
size(ty?: string | undefined | null): number
|
|
433
|
-
libIdent(options: JsLibIdentOptions): string | null
|
|
434
|
-
_emitFile(filename: string, source: JsCompatSource, assetInfo?: AssetInfo | undefined | null): void
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
export declare class ModuleGraphConnection {
|
|
438
|
-
get dependency(): Dependency
|
|
439
|
-
get module(): Module | null
|
|
440
|
-
get resolvedModule(): Module | null
|
|
441
|
-
get originModule(): Module | null
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
export declare class NativeWatcher {
|
|
445
|
-
constructor(options: NativeWatcherOptions)
|
|
446
|
-
watch(files: [Array<string>, Array<string>], directories: [Array<string>, Array<string>], missing: [Array<string>, Array<string>], callback: (err: Error | null, result: NativeWatchResult) => void, callbackUndelayed: (path: string) => void): void
|
|
447
|
-
/**
|
|
448
|
-
* # Safety
|
|
449
|
-
*
|
|
450
|
-
* This function is unsafe because it uses `&mut self` to call the watcher asynchronously.
|
|
451
|
-
* It's important to ensure that the watcher is not used in any other places before this function is finished.
|
|
452
|
-
* You must ensure that the watcher not call watch, close or pause in the same time, otherwise it may lead to undefined behavior.
|
|
453
|
-
*/
|
|
454
|
-
close(): Promise<void>
|
|
455
|
-
pause(): void
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
export declare class NativeWatchResult {
|
|
459
|
-
changedFiles: Array<string>
|
|
460
|
-
removedFiles: Array<string>
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
export declare class RawExternalItemFnCtx {
|
|
465
|
-
data(): RawExternalItemFnCtxData
|
|
466
|
-
getResolver(): JsResolver
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
export declare class ReadonlyResourceData {
|
|
470
|
-
get descriptionFileData(): any
|
|
471
|
-
get descriptionFilePath(): string
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
export declare class Sources {
|
|
475
|
-
_get(sourceType: string): JsCompatSourceOwned | null
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
export interface BuiltinPlugin {
|
|
479
|
-
name: BuiltinPluginName | CustomPluginName
|
|
480
|
-
options: unknown
|
|
481
|
-
canInherentFromParent?: boolean
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
export declare enum BuiltinPluginName {
|
|
485
|
-
DefinePlugin = 'DefinePlugin',
|
|
486
|
-
ProvidePlugin = 'ProvidePlugin',
|
|
487
|
-
BannerPlugin = 'BannerPlugin',
|
|
488
|
-
IgnorePlugin = 'IgnorePlugin',
|
|
489
|
-
ProgressPlugin = 'ProgressPlugin',
|
|
490
|
-
EntryPlugin = 'EntryPlugin',
|
|
491
|
-
DynamicEntryPlugin = 'DynamicEntryPlugin',
|
|
492
|
-
ExternalsPlugin = 'ExternalsPlugin',
|
|
493
|
-
NodeTargetPlugin = 'NodeTargetPlugin',
|
|
494
|
-
ElectronTargetPlugin = 'ElectronTargetPlugin',
|
|
495
|
-
EnableChunkLoadingPlugin = 'EnableChunkLoadingPlugin',
|
|
496
|
-
EnableLibraryPlugin = 'EnableLibraryPlugin',
|
|
497
|
-
EnableWasmLoadingPlugin = 'EnableWasmLoadingPlugin',
|
|
498
|
-
FetchCompileAsyncWasmPlugin = 'FetchCompileAsyncWasmPlugin',
|
|
499
|
-
ChunkPrefetchPreloadPlugin = 'ChunkPrefetchPreloadPlugin',
|
|
500
|
-
CommonJsChunkFormatPlugin = 'CommonJsChunkFormatPlugin',
|
|
501
|
-
ArrayPushCallbackChunkFormatPlugin = 'ArrayPushCallbackChunkFormatPlugin',
|
|
502
|
-
ModuleChunkFormatPlugin = 'ModuleChunkFormatPlugin',
|
|
503
|
-
HotModuleReplacementPlugin = 'HotModuleReplacementPlugin',
|
|
504
|
-
LimitChunkCountPlugin = 'LimitChunkCountPlugin',
|
|
505
|
-
WorkerPlugin = 'WorkerPlugin',
|
|
506
|
-
WebWorkerTemplatePlugin = 'WebWorkerTemplatePlugin',
|
|
507
|
-
MergeDuplicateChunksPlugin = 'MergeDuplicateChunksPlugin',
|
|
508
|
-
SplitChunksPlugin = 'SplitChunksPlugin',
|
|
509
|
-
RemoveDuplicateModulesPlugin = 'RemoveDuplicateModulesPlugin',
|
|
510
|
-
ShareRuntimePlugin = 'ShareRuntimePlugin',
|
|
511
|
-
ContainerPlugin = 'ContainerPlugin',
|
|
512
|
-
ContainerReferencePlugin = 'ContainerReferencePlugin',
|
|
513
|
-
ProvideSharedPlugin = 'ProvideSharedPlugin',
|
|
514
|
-
ConsumeSharedPlugin = 'ConsumeSharedPlugin',
|
|
515
|
-
ModuleFederationRuntimePlugin = 'ModuleFederationRuntimePlugin',
|
|
516
|
-
NamedModuleIdsPlugin = 'NamedModuleIdsPlugin',
|
|
517
|
-
NaturalModuleIdsPlugin = 'NaturalModuleIdsPlugin',
|
|
518
|
-
DeterministicModuleIdsPlugin = 'DeterministicModuleIdsPlugin',
|
|
519
|
-
NaturalChunkIdsPlugin = 'NaturalChunkIdsPlugin',
|
|
520
|
-
NamedChunkIdsPlugin = 'NamedChunkIdsPlugin',
|
|
521
|
-
DeterministicChunkIdsPlugin = 'DeterministicChunkIdsPlugin',
|
|
522
|
-
OccurrenceChunkIdsPlugin = 'OccurrenceChunkIdsPlugin',
|
|
523
|
-
RealContentHashPlugin = 'RealContentHashPlugin',
|
|
524
|
-
RemoveEmptyChunksPlugin = 'RemoveEmptyChunksPlugin',
|
|
525
|
-
EnsureChunkConditionsPlugin = 'EnsureChunkConditionsPlugin',
|
|
526
|
-
WarnCaseSensitiveModulesPlugin = 'WarnCaseSensitiveModulesPlugin',
|
|
527
|
-
DataUriPlugin = 'DataUriPlugin',
|
|
528
|
-
FileUriPlugin = 'FileUriPlugin',
|
|
529
|
-
RuntimePlugin = 'RuntimePlugin',
|
|
530
|
-
JsonModulesPlugin = 'JsonModulesPlugin',
|
|
531
|
-
InferAsyncModulesPlugin = 'InferAsyncModulesPlugin',
|
|
532
|
-
JavascriptModulesPlugin = 'JavascriptModulesPlugin',
|
|
533
|
-
AsyncWebAssemblyModulesPlugin = 'AsyncWebAssemblyModulesPlugin',
|
|
534
|
-
AssetModulesPlugin = 'AssetModulesPlugin',
|
|
535
|
-
SourceMapDevToolPlugin = 'SourceMapDevToolPlugin',
|
|
536
|
-
EvalSourceMapDevToolPlugin = 'EvalSourceMapDevToolPlugin',
|
|
537
|
-
EvalDevToolModulePlugin = 'EvalDevToolModulePlugin',
|
|
538
|
-
SideEffectsFlagPlugin = 'SideEffectsFlagPlugin',
|
|
539
|
-
FlagDependencyExportsPlugin = 'FlagDependencyExportsPlugin',
|
|
540
|
-
FlagDependencyUsagePlugin = 'FlagDependencyUsagePlugin',
|
|
541
|
-
MangleExportsPlugin = 'MangleExportsPlugin',
|
|
542
|
-
ModuleConcatenationPlugin = 'ModuleConcatenationPlugin',
|
|
543
|
-
CssModulesPlugin = 'CssModulesPlugin',
|
|
544
|
-
APIPlugin = 'APIPlugin',
|
|
545
|
-
RuntimeChunkPlugin = 'RuntimeChunkPlugin',
|
|
546
|
-
SizeLimitsPlugin = 'SizeLimitsPlugin',
|
|
547
|
-
NoEmitOnErrorsPlugin = 'NoEmitOnErrorsPlugin',
|
|
548
|
-
ContextReplacementPlugin = 'ContextReplacementPlugin',
|
|
549
|
-
DllEntryPlugin = 'DllEntryPlugin',
|
|
550
|
-
DllReferenceAgencyPlugin = 'DllReferenceAgencyPlugin',
|
|
551
|
-
LibManifestPlugin = 'LibManifestPlugin',
|
|
552
|
-
FlagAllModulesAsUsedPlugin = 'FlagAllModulesAsUsedPlugin',
|
|
553
|
-
HttpExternalsRspackPlugin = 'HttpExternalsRspackPlugin',
|
|
554
|
-
CopyRspackPlugin = 'CopyRspackPlugin',
|
|
555
|
-
HtmlRspackPlugin = 'HtmlRspackPlugin',
|
|
556
|
-
SwcJsMinimizerRspackPlugin = 'SwcJsMinimizerRspackPlugin',
|
|
557
|
-
LightningCssMinimizerRspackPlugin = 'LightningCssMinimizerRspackPlugin',
|
|
558
|
-
BundlerInfoRspackPlugin = 'BundlerInfoRspackPlugin',
|
|
559
|
-
CssExtractRspackPlugin = 'CssExtractRspackPlugin',
|
|
560
|
-
SubresourceIntegrityPlugin = 'SubresourceIntegrityPlugin',
|
|
561
|
-
RsdoctorPlugin = 'RsdoctorPlugin',
|
|
562
|
-
RstestPlugin = 'RstestPlugin',
|
|
563
|
-
RslibPlugin = 'RslibPlugin',
|
|
564
|
-
CircularDependencyRspackPlugin = 'CircularDependencyRspackPlugin',
|
|
565
|
-
JsLoaderRspackPlugin = 'JsLoaderRspackPlugin',
|
|
566
|
-
LazyCompilationPlugin = 'LazyCompilationPlugin',
|
|
567
|
-
ModuleInfoHeaderPlugin = 'ModuleInfoHeaderPlugin',
|
|
568
|
-
HttpUriPlugin = 'HttpUriPlugin',
|
|
569
|
-
CssChunkingPlugin = 'CssChunkingPlugin'
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
export declare function cleanupGlobalTrace(): void
|
|
573
|
-
|
|
574
|
-
export interface ContextInfo {
|
|
575
|
-
issuer: string
|
|
576
|
-
issuerLayer?: string
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
export interface CssChunkingPluginOptions {
|
|
580
|
-
strict?: boolean
|
|
581
|
-
minSize?: number
|
|
582
|
-
maxSize?: number
|
|
583
|
-
exclude?: RegExp
|
|
584
|
-
}
|
|
585
|
-
|
|
586
1
|
/**
|
|
587
|
-
*
|
|
588
|
-
* @internal
|
|
2
|
+
* We manually create binding.d.ts and re-export everything of the dts generated by napi to fix the cjs-esm interop
|
|
589
3
|
*/
|
|
590
|
-
export const EXPECTED_RSPACK_CORE_VERSION: string
|
|
591
|
-
|
|
592
|
-
export declare function formatDiagnostic(diagnostic: JsDiagnostic): ExternalObject<'Diagnostic'>
|
|
593
|
-
|
|
594
|
-
export interface JsAddingRuntimeModule {
|
|
595
|
-
name: string
|
|
596
|
-
generator: () => String
|
|
597
|
-
dependentHash: boolean
|
|
598
|
-
fullHash: boolean
|
|
599
|
-
isolate: boolean
|
|
600
|
-
stage: number
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
export interface JsAdditionalTreeRuntimeRequirementsArg {
|
|
604
|
-
chunk: Chunk
|
|
605
|
-
runtimeRequirements: JsRuntimeGlobals
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
export interface JsAdditionalTreeRuntimeRequirementsResult {
|
|
609
|
-
runtimeRequirements: JsRuntimeGlobals
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
export interface JsAfterEmitData {
|
|
613
|
-
outputName: string
|
|
614
|
-
compilationId: number
|
|
615
|
-
uid?: number
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
export interface JsAfterResolveData {
|
|
619
|
-
request: string
|
|
620
|
-
context: string
|
|
621
|
-
issuer: string
|
|
622
|
-
issuerLayer?: string
|
|
623
|
-
fileDependencies: Array<string>
|
|
624
|
-
contextDependencies: Array<string>
|
|
625
|
-
missingDependencies: Array<string>
|
|
626
|
-
createData?: JsCreateData
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
export interface JsAfterTemplateExecutionData {
|
|
630
|
-
html: string
|
|
631
|
-
headTags: Array<JsHtmlPluginTag>
|
|
632
|
-
bodyTags: Array<JsHtmlPluginTag>
|
|
633
|
-
outputName: string
|
|
634
|
-
compilationId: number
|
|
635
|
-
uid?: number
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
export interface JsAlterAssetTagGroupsData {
|
|
639
|
-
headTags: Array<JsHtmlPluginTag>
|
|
640
|
-
bodyTags: Array<JsHtmlPluginTag>
|
|
641
|
-
publicPath: string
|
|
642
|
-
outputName: string
|
|
643
|
-
compilationId: number
|
|
644
|
-
uid?: number
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
export interface JsAlterAssetTagsData {
|
|
648
|
-
assetTags: JsHtmlPluginAssetTags
|
|
649
|
-
outputName: string
|
|
650
|
-
publicPath: string
|
|
651
|
-
compilationId: number
|
|
652
|
-
uid?: number
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
export interface JsAsset {
|
|
656
|
-
name: string
|
|
657
|
-
info: AssetInfo
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
export interface JsAssetEmittedArgs {
|
|
661
|
-
filename: string
|
|
662
|
-
outputPath: string
|
|
663
|
-
targetPath: string
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
export interface JsAssetInfoRelated {
|
|
667
|
-
sourceMap?: string
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
export interface JsBannerContentFnCtx {
|
|
671
|
-
hash: string
|
|
672
|
-
chunk: Chunk
|
|
673
|
-
filename: string
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
export interface JsBeforeAssetTagGenerationData {
|
|
677
|
-
assets: JsHtmlPluginAssets
|
|
678
|
-
outputName: string
|
|
679
|
-
compilationId: number
|
|
680
|
-
uid?: number
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
export interface JsBeforeEmitData {
|
|
684
|
-
html: string
|
|
685
|
-
outputName: string
|
|
686
|
-
compilationId: number
|
|
687
|
-
uid?: number
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
export interface JsBeforeResolveArgs {
|
|
691
|
-
request: string
|
|
692
|
-
context: string
|
|
693
|
-
issuer: string
|
|
694
|
-
issuerLayer?: string
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
export interface JsBuildMeta {
|
|
698
|
-
strictEsmModule: boolean
|
|
699
|
-
hasTopLevelAwait: boolean
|
|
700
|
-
esm: boolean
|
|
701
|
-
exportsType: 'unset' | 'default' | 'namespace' | 'flagged' | 'dynamic'
|
|
702
|
-
defaultObject: 'false' | 'redirect' | JsBuildMetaDefaultObjectRedirectWarn
|
|
703
|
-
sideEffectFree?: boolean
|
|
704
|
-
exportsFinalName?: Array<[string, string]> | undefined
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
export interface JsBuildMetaDefaultObjectRedirectWarn {
|
|
708
|
-
redirectWarn: JsDefaultObjectRedirectWarnObject
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
export interface JsBuildTimeExecutionOption {
|
|
712
|
-
publicPath?: string
|
|
713
|
-
baseUri?: string
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
export interface JsCacheGroupTestCtx {
|
|
717
|
-
module: Module
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
export interface JsChunkAssetArgs {
|
|
721
|
-
chunk: Chunk
|
|
722
|
-
filename: string
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
export interface JsChunkGroupOrigin {
|
|
726
|
-
module?: Module | undefined
|
|
727
|
-
request?: string
|
|
728
|
-
loc?: string | RealDependencyLocation
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
export interface JsChunkOptionNameCtx {
|
|
732
|
-
module: Module
|
|
733
|
-
chunks: Chunk[]
|
|
734
|
-
cacheGroupKey: string
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* File clean options
|
|
739
|
-
*
|
|
740
|
-
* This matches with:
|
|
741
|
-
* - keep:
|
|
742
|
-
* - If a string, keep the files under this path
|
|
743
|
-
*/
|
|
744
|
-
export interface JsCleanOptions {
|
|
745
|
-
keep?: string | RegExp | ((path: string) => boolean)
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
export interface JsCodegenerationResult {
|
|
749
|
-
sources: Record<string, string>
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
export interface JsCodegenerationResults {
|
|
753
|
-
map: Record<string, Record<string, JsCodegenerationResult>>
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
/**
|
|
757
|
-
* Zero copy `JsCompatSource` slice shared between Rust and Node.js if buffer is used.
|
|
758
|
-
*
|
|
759
|
-
* It can only be used in non-async context and the lifetime is bound to the fn closure.
|
|
760
|
-
*
|
|
761
|
-
* If you want to use Node.js Buffer in async context or want to extend the lifetime, use `JsCompatSourceOwned` instead.
|
|
762
|
-
*/
|
|
763
|
-
export interface JsCompatSource {
|
|
764
|
-
source: string | Buffer
|
|
765
|
-
map?: string
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
export interface JsCompatSourceOwned {
|
|
769
|
-
source: string | Buffer
|
|
770
|
-
map?: string
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
export interface JsCreateData {
|
|
774
|
-
request: string
|
|
775
|
-
userRequest: string
|
|
776
|
-
resource: string
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
export interface JsCreateScriptData {
|
|
780
|
-
code: string
|
|
781
|
-
chunk: Chunk
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
export interface JsDefaultObjectRedirectWarnObject {
|
|
785
|
-
ignore: boolean
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
export interface JsDiagnostic {
|
|
789
|
-
message: string
|
|
790
|
-
help?: string
|
|
791
|
-
sourceCode?: string
|
|
792
|
-
location?: JsDiagnosticLocation
|
|
793
|
-
file?: string
|
|
794
|
-
severity: "error" | "warning"
|
|
795
|
-
moduleIdentifier?: string
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
export interface JsDiagnosticLocation {
|
|
799
|
-
text?: string
|
|
800
|
-
/** 1-based */
|
|
801
|
-
line: number
|
|
802
|
-
/** 0-based in bytes */
|
|
803
|
-
column: number
|
|
804
|
-
/** Length in bytes */
|
|
805
|
-
length: number
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
export interface JsEntryData {
|
|
809
|
-
dependencies: Array<Dependency>
|
|
810
|
-
includeDependencies: Array<Dependency>
|
|
811
|
-
options: JsEntryOptions
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
export interface JsEntryOptions {
|
|
815
|
-
name?: string
|
|
816
|
-
runtime?: false | string
|
|
817
|
-
chunkLoading?: false | string
|
|
818
|
-
asyncChunks?: boolean
|
|
819
|
-
publicPath?: "auto" | JsFilename
|
|
820
|
-
baseUri?: string
|
|
821
|
-
filename?: JsFilename
|
|
822
|
-
library?: JsLibraryOptions
|
|
823
|
-
dependOn?: Array<string>
|
|
824
|
-
layer?: string
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
export interface JsEntryPluginOptions {
|
|
828
|
-
context: string
|
|
829
|
-
entry: string
|
|
830
|
-
options: JsEntryOptions
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
export interface JsExecuteModuleArg {
|
|
834
|
-
entry: string
|
|
835
|
-
runtimeModules: Array<string>
|
|
836
|
-
codegenResults: JsCodegenerationResults
|
|
837
|
-
id: number
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
export interface JsExecuteModuleResult {
|
|
841
|
-
fileDependencies: Array<string>
|
|
842
|
-
contextDependencies: Array<string>
|
|
843
|
-
buildDependencies: Array<string>
|
|
844
|
-
missingDependencies: Array<string>
|
|
845
|
-
cacheable: boolean
|
|
846
|
-
id: number
|
|
847
|
-
error?: string
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
export interface JsFactorizeArgs {
|
|
851
|
-
request: string
|
|
852
|
-
context: string
|
|
853
|
-
issuer: string
|
|
854
|
-
issuerLayer?: string
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
export interface JsFactoryMeta {
|
|
858
|
-
sideEffectFree?: boolean
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
export interface JsHtmlPluginAssets {
|
|
862
|
-
publicPath: string
|
|
863
|
-
js: Array<string>
|
|
864
|
-
css: Array<string>
|
|
865
|
-
favicon?: string
|
|
866
|
-
jsIntegrity?: Array<string | undefined | null>
|
|
867
|
-
cssIntegrity?: Array<string | undefined | null>
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
export interface JsHtmlPluginAssetTags {
|
|
871
|
-
scripts: Array<JsHtmlPluginTag>
|
|
872
|
-
styles: Array<JsHtmlPluginTag>
|
|
873
|
-
meta: Array<JsHtmlPluginTag>
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
export interface JsHtmlPluginTag {
|
|
877
|
-
tagName: string
|
|
878
|
-
attributes: Record<string, string | boolean | undefined | null>
|
|
879
|
-
voidTag: boolean
|
|
880
|
-
innerHTML?: string
|
|
881
|
-
asset?: string
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
export interface JsHttpResponseRaw {
|
|
885
|
-
status: number
|
|
886
|
-
headers: Record<string, string>
|
|
887
|
-
body: Buffer
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
export interface JsLibIdentOptions {
|
|
891
|
-
context: string
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
export interface JsLibraryAuxiliaryComment {
|
|
895
|
-
root?: string
|
|
896
|
-
commonjs?: string
|
|
897
|
-
commonjs2?: string
|
|
898
|
-
amd?: string
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
export interface JsLibraryCustomUmdObject {
|
|
902
|
-
amd?: string
|
|
903
|
-
commonjs?: string
|
|
904
|
-
root?: Array<string> | string
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
export interface JsLibraryName {
|
|
908
|
-
type: "string" | "array" | "umdObject"
|
|
909
|
-
stringPayload?: string
|
|
910
|
-
arrayPayload?: Array<string>
|
|
911
|
-
umdObjectPayload?: JsLibraryCustomUmdObject
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
export interface JsLibraryOptions {
|
|
915
|
-
name?: string | Array<string> | JsLibraryCustomUmdObject
|
|
916
|
-
export?: Array<string> | string
|
|
917
|
-
type: string
|
|
918
|
-
umdNamedDefine?: boolean
|
|
919
|
-
auxiliaryComment?: string | JsLibraryAuxiliaryComment
|
|
920
|
-
amdContainer?: string
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
export interface JsLinkPrefetchData {
|
|
924
|
-
code: string
|
|
925
|
-
chunk: Chunk
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
export interface JsLinkPreloadData {
|
|
929
|
-
code: string
|
|
930
|
-
chunk: Chunk
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
export interface JsLoaderContext {
|
|
934
|
-
resource: string
|
|
935
|
-
_module: Module
|
|
936
|
-
hot: Readonly<boolean>
|
|
937
|
-
/** Content maybe empty in pitching stage */
|
|
938
|
-
content: null | Buffer
|
|
939
|
-
additionalData?: any
|
|
940
|
-
__internal__parseMeta: Record<string, string>
|
|
941
|
-
sourceMap?: Buffer
|
|
942
|
-
cacheable: boolean
|
|
943
|
-
fileDependencies: Array<string>
|
|
944
|
-
contextDependencies: Array<string>
|
|
945
|
-
missingDependencies: Array<string>
|
|
946
|
-
buildDependencies: Array<string>
|
|
947
|
-
loaderItems: Array<JsLoaderItem>
|
|
948
|
-
loaderIndex: number
|
|
949
|
-
loaderState: Readonly<JsLoaderState>
|
|
950
|
-
__internal__error?: RspackError
|
|
951
|
-
/**
|
|
952
|
-
* UTF-8 hint for `content`
|
|
953
|
-
* - Some(true): `content` is a `UTF-8` encoded sequence
|
|
954
|
-
*/
|
|
955
|
-
__internal__utf8Hint?: boolean
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
export interface JsLoaderItem {
|
|
959
|
-
loader: string
|
|
960
|
-
type: string
|
|
961
|
-
data: any
|
|
962
|
-
normalExecuted: boolean
|
|
963
|
-
pitchExecuted: boolean
|
|
964
|
-
noPitch: boolean
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
export declare enum JsLoaderState {
|
|
968
|
-
Pitching = 'Pitching',
|
|
969
|
-
Normal = 'Normal'
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
export interface JsModuleDescriptor {
|
|
973
|
-
identifier: string
|
|
974
|
-
name: string
|
|
975
|
-
id?: string | number | null
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
export interface JsNormalModuleFactoryCreateModuleArgs {
|
|
979
|
-
dependencyType: string
|
|
980
|
-
rawRequest: string
|
|
981
|
-
resourceResolveData: JsResourceData
|
|
982
|
-
context: string
|
|
983
|
-
matchResource?: string
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
export interface JsOriginRecord {
|
|
987
|
-
moduleDescriptor?: JsModuleDescriptor
|
|
988
|
-
loc: string
|
|
989
|
-
request: string
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
export interface JsPathData {
|
|
993
|
-
filename?: string
|
|
994
|
-
hash?: string
|
|
995
|
-
contentHash?: string
|
|
996
|
-
runtime?: string
|
|
997
|
-
url?: string
|
|
998
|
-
id?: string
|
|
999
|
-
chunk?: JsPathDataChunkLike
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
export interface JsPathDataChunkLike {
|
|
1003
|
-
name?: string
|
|
1004
|
-
hash?: string
|
|
1005
|
-
id?: string
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
export interface JsResolveArgs {
|
|
1009
|
-
request: string
|
|
1010
|
-
context: string
|
|
1011
|
-
issuer: string
|
|
1012
|
-
issuerLayer?: string
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
export interface JsResolveForSchemeArgs {
|
|
1016
|
-
resourceData: JsResourceData
|
|
1017
|
-
scheme: string
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
export interface JsResourceData {
|
|
1021
|
-
/** Resource with absolute path, query and fragment */
|
|
1022
|
-
resource: string
|
|
1023
|
-
/** Absolute resource path only */
|
|
1024
|
-
path?: string
|
|
1025
|
-
/** Resource query with `?` prefix */
|
|
1026
|
-
query?: string
|
|
1027
|
-
/** Resource fragment with `#` prefix */
|
|
1028
|
-
fragment?: string
|
|
1029
|
-
descriptionFileData?: any
|
|
1030
|
-
descriptionFilePath?: string
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
export interface JsRsdoctorAsset {
|
|
1034
|
-
ukey: number
|
|
1035
|
-
path: string
|
|
1036
|
-
chunks: Array<number>
|
|
1037
|
-
size: number
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
export interface JsRsdoctorAssetPatch {
|
|
1041
|
-
assets: Array<JsRsdoctorAsset>
|
|
1042
|
-
chunkAssets: Array<JsRsdoctorChunkAssets>
|
|
1043
|
-
entrypointAssets: Array<JsRsdoctorEntrypointAssets>
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
export interface JsRsdoctorChunk {
|
|
1047
|
-
ukey: number
|
|
1048
|
-
name: string
|
|
1049
|
-
initial: boolean
|
|
1050
|
-
entry: boolean
|
|
1051
|
-
dependencies: Array<number>
|
|
1052
|
-
imported: Array<number>
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
export interface JsRsdoctorChunkAssets {
|
|
1056
|
-
chunk: number
|
|
1057
|
-
assets: Array<number>
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
export interface JsRsdoctorChunkGraph {
|
|
1061
|
-
chunks: Array<JsRsdoctorChunk>
|
|
1062
|
-
entrypoints: Array<JsRsdoctorEntrypoint>
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
export interface JsRsdoctorChunkModules {
|
|
1066
|
-
chunk: number
|
|
1067
|
-
modules: Array<number>
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
export interface JsRsdoctorDependency {
|
|
1071
|
-
ukey: number
|
|
1072
|
-
kind: string
|
|
1073
|
-
request: string
|
|
1074
|
-
module: number
|
|
1075
|
-
dependency: number
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
export interface JsRsdoctorEntrypoint {
|
|
1079
|
-
ukey: number
|
|
1080
|
-
name: string
|
|
1081
|
-
chunks: Array<number>
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
export interface JsRsdoctorEntrypointAssets {
|
|
1085
|
-
entrypoint: number
|
|
1086
|
-
assets: Array<number>
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
export interface JsRsdoctorExportInfo {
|
|
1090
|
-
ukey: number
|
|
1091
|
-
name: string
|
|
1092
|
-
from?: number
|
|
1093
|
-
variable?: number
|
|
1094
|
-
identifier?: JsRsdoctorStatement
|
|
1095
|
-
sideEffects: Array<number>
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
export interface JsRsdoctorModule {
|
|
1099
|
-
ukey: number
|
|
1100
|
-
identifier: string
|
|
1101
|
-
path: string
|
|
1102
|
-
isEntry: boolean
|
|
1103
|
-
kind: 'normal' | 'concatenated'
|
|
1104
|
-
layer?: string
|
|
1105
|
-
dependencies: Array<number>
|
|
1106
|
-
imported: Array<number>
|
|
1107
|
-
modules: Array<number>
|
|
1108
|
-
belongModules: Array<number>
|
|
1109
|
-
chunks: Array<number>
|
|
1110
|
-
issuerPath: Array<number>
|
|
1111
|
-
bailoutReason: Array<string>
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
export interface JsRsdoctorModuleGraph {
|
|
1115
|
-
modules: Array<JsRsdoctorModule>
|
|
1116
|
-
dependencies: Array<JsRsdoctorDependency>
|
|
1117
|
-
chunkModules: Array<JsRsdoctorChunkModules>
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
export interface JsRsdoctorModuleGraphModule {
|
|
1121
|
-
ukey: number
|
|
1122
|
-
module: number
|
|
1123
|
-
exports: Array<number>
|
|
1124
|
-
sideEffects: Array<number>
|
|
1125
|
-
variables: Array<number>
|
|
1126
|
-
dynamic: boolean
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
export interface JsRsdoctorModuleId {
|
|
1130
|
-
module: number
|
|
1131
|
-
renderId: string
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
export interface JsRsdoctorModuleIdsPatch {
|
|
1135
|
-
moduleIds: Array<JsRsdoctorModuleId>
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
export interface JsRsdoctorModuleOriginalSource {
|
|
1139
|
-
module: number
|
|
1140
|
-
source: string
|
|
1141
|
-
size: number
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
export interface JsRsdoctorModuleSourcesPatch {
|
|
1145
|
-
moduleOriginalSources: Array<JsRsdoctorModuleOriginalSource>
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
export interface JsRsdoctorSideEffect {
|
|
1149
|
-
ukey: number
|
|
1150
|
-
name: string
|
|
1151
|
-
originName?: string
|
|
1152
|
-
module: number
|
|
1153
|
-
identifier: JsRsdoctorStatement
|
|
1154
|
-
isNameSpace: boolean
|
|
1155
|
-
fromDependency?: number
|
|
1156
|
-
exports: Array<number>
|
|
1157
|
-
variable?: number
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
export interface JsRsdoctorSourcePosition {
|
|
1161
|
-
line?: number
|
|
1162
|
-
column?: number
|
|
1163
|
-
index?: number
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
export interface JsRsdoctorSourceRange {
|
|
1167
|
-
start: JsRsdoctorSourcePosition
|
|
1168
|
-
end?: JsRsdoctorSourcePosition
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
export interface JsRsdoctorStatement {
|
|
1172
|
-
module: number
|
|
1173
|
-
sourcePosition?: JsRsdoctorSourceRange
|
|
1174
|
-
transformedPosition: JsRsdoctorSourceRange
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
export interface JsRsdoctorVariable {
|
|
1178
|
-
ukey: number
|
|
1179
|
-
name: string
|
|
1180
|
-
module: number
|
|
1181
|
-
usedInfo: string
|
|
1182
|
-
identififer: JsRsdoctorStatement
|
|
1183
|
-
exported?: number
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
export interface JsRspackDiagnostic {
|
|
1187
|
-
severity: JsRspackSeverity
|
|
1188
|
-
error: RspackError
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
export declare enum JsRspackSeverity {
|
|
1192
|
-
Error = 'Error',
|
|
1193
|
-
Warn = 'Warn'
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
export interface JsRuntimeGlobals {
|
|
1197
|
-
value: Array<string>
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
export interface JsRuntimeModule {
|
|
1201
|
-
source?: JsCompatSourceOwned
|
|
1202
|
-
moduleIdentifier: string
|
|
1203
|
-
constructorName: string
|
|
1204
|
-
name: string
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
export interface JsRuntimeModuleArg {
|
|
1208
|
-
module: JsRuntimeModule
|
|
1209
|
-
chunk: Chunk
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
export interface JsRuntimeRequirementInTreeArg {
|
|
1213
|
-
chunk: Chunk
|
|
1214
|
-
allRuntimeRequirements: JsRuntimeGlobals
|
|
1215
|
-
runtimeRequirements: JsRuntimeGlobals
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
export interface JsRuntimeRequirementInTreeResult {
|
|
1219
|
-
allRuntimeRequirements: JsRuntimeGlobals
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
export interface JsStatsAsset {
|
|
1223
|
-
type: string
|
|
1224
|
-
name: string
|
|
1225
|
-
info: JsStatsAssetInfo
|
|
1226
|
-
size: number
|
|
1227
|
-
emitted: boolean
|
|
1228
|
-
chunkNames: Array<string>
|
|
1229
|
-
chunkIdHints: Array<string>
|
|
1230
|
-
chunks: Array<string | undefined | null>
|
|
1231
|
-
auxiliaryChunkNames: Array<string>
|
|
1232
|
-
auxiliaryChunkIdHints: Array<string>
|
|
1233
|
-
auxiliaryChunks: Array<string | undefined | null>
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
export interface JsStatsAssetInfo {
|
|
1237
|
-
minimized?: boolean
|
|
1238
|
-
development?: boolean
|
|
1239
|
-
hotModuleReplacement?: boolean
|
|
1240
|
-
sourceFilename?: string
|
|
1241
|
-
copied?: boolean
|
|
1242
|
-
immutable?: boolean
|
|
1243
|
-
javascriptModule?: boolean
|
|
1244
|
-
chunkhash: Array<string>
|
|
1245
|
-
contenthash: Array<string>
|
|
1246
|
-
fullhash: Array<string>
|
|
1247
|
-
related: Array<JsStatsAssetInfoRelated>
|
|
1248
|
-
isOverSizeLimit?: boolean
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
export interface JsStatsAssetInfoRelated {
|
|
1252
|
-
name: string
|
|
1253
|
-
value: Array<string>
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
export interface JsStatsAssetsByChunkName {
|
|
1257
|
-
name: string
|
|
1258
|
-
files: Array<string>
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
export interface JsStatsChildGroupChildAssets {
|
|
1262
|
-
preload?: Array<string>
|
|
1263
|
-
prefetch?: Array<string>
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
export interface JsStatsChunk {
|
|
1267
|
-
type: string
|
|
1268
|
-
files: Array<string>
|
|
1269
|
-
auxiliaryFiles: Array<string>
|
|
1270
|
-
id?: string
|
|
1271
|
-
idHints: Array<string>
|
|
1272
|
-
hash?: string
|
|
1273
|
-
entry: boolean
|
|
1274
|
-
initial: boolean
|
|
1275
|
-
names: Array<string>
|
|
1276
|
-
size: number
|
|
1277
|
-
parents?: Array<string>
|
|
1278
|
-
children?: Array<string>
|
|
1279
|
-
siblings?: Array<string>
|
|
1280
|
-
childrenByOrder: Record<string, Array<string>>
|
|
1281
|
-
runtime: Array<string>
|
|
1282
|
-
reason?: string
|
|
1283
|
-
rendered: boolean
|
|
1284
|
-
sizes: Array<JsStatsSize>
|
|
1285
|
-
origins: Array<JsOriginRecord>
|
|
1286
|
-
modules?: Array<JsStatsModule>
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
export interface JsStatsChunkGroup {
|
|
1290
|
-
name: string
|
|
1291
|
-
chunks: Array<string>
|
|
1292
|
-
assets: Array<JsStatsChunkGroupAsset>
|
|
1293
|
-
assetsSize: number
|
|
1294
|
-
auxiliaryAssets?: Array<JsStatsChunkGroupAsset>
|
|
1295
|
-
auxiliaryAssetsSize?: number
|
|
1296
|
-
isOverSizeLimit?: boolean
|
|
1297
|
-
children?: JsStatsChunkGroupChildren
|
|
1298
|
-
childAssets?: JsStatsChildGroupChildAssets
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
export interface JsStatsChunkGroupAsset {
|
|
1302
|
-
name: string
|
|
1303
|
-
size: number
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
export interface JsStatsChunkGroupChildren {
|
|
1307
|
-
preload?: Array<JsStatsChunkGroup>
|
|
1308
|
-
prefetch?: Array<JsStatsChunkGroup>
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
export interface JsStatsCompilation {
|
|
1312
|
-
assets?: Array<JsStatsAsset>
|
|
1313
|
-
assetsByChunkName?: Array<JsStatsAssetsByChunkName>
|
|
1314
|
-
chunks?: Array<JsStatsChunk>
|
|
1315
|
-
entrypoints?: Array<JsStatsChunkGroup>
|
|
1316
|
-
errors: Array<JsStatsError>
|
|
1317
|
-
hash?: string
|
|
1318
|
-
modules?: Array<JsStatsModule>
|
|
1319
|
-
namedChunkGroups?: Array<JsStatsChunkGroup>
|
|
1320
|
-
warnings: Array<JsStatsError>
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
export interface JsStatsError {
|
|
1324
|
-
name?: string
|
|
1325
|
-
moduleDescriptor?: JsModuleDescriptor
|
|
1326
|
-
message: string
|
|
1327
|
-
chunkName?: string
|
|
1328
|
-
code?: string
|
|
1329
|
-
chunkEntry?: boolean
|
|
1330
|
-
chunkInitial?: boolean
|
|
1331
|
-
loc?: string
|
|
1332
|
-
file?: string
|
|
1333
|
-
chunkId?: string
|
|
1334
|
-
details?: string
|
|
1335
|
-
stack?: string
|
|
1336
|
-
moduleTrace: Array<JsStatsModuleTrace>
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
export interface JsStatsGetAssets {
|
|
1340
|
-
assets: Array<JsStatsAsset>
|
|
1341
|
-
assetsByChunkName: Array<JsStatsAssetsByChunkName>
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
export interface JsStatsLogging {
|
|
1345
|
-
name: string
|
|
1346
|
-
type: string
|
|
1347
|
-
args?: Array<string>
|
|
1348
|
-
trace?: Array<string>
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
export interface JsStatsMillisecond {
|
|
1352
|
-
secs: number
|
|
1353
|
-
subsecMillis: number
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
export interface JsStatsModule {
|
|
1357
|
-
commonAttributes: JsStatsModuleCommonAttributes
|
|
1358
|
-
dependent?: boolean
|
|
1359
|
-
issuerDescriptor?: JsModuleDescriptor
|
|
1360
|
-
issuerPath?: Array<JsStatsModuleIssuer>
|
|
1361
|
-
usedExports?: string | Array<string>
|
|
1362
|
-
modules?: Array<JsStatsModule>
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
export interface JsStatsModuleCommonAttributes {
|
|
1366
|
-
type: string
|
|
1367
|
-
moduleType: string
|
|
1368
|
-
layer?: string
|
|
1369
|
-
size: number
|
|
1370
|
-
sizes: Array<JsStatsSize>
|
|
1371
|
-
built: boolean
|
|
1372
|
-
codeGenerated: boolean
|
|
1373
|
-
buildTimeExecuted: boolean
|
|
1374
|
-
cached: boolean
|
|
1375
|
-
moduleDescriptor?: JsModuleDescriptor
|
|
1376
|
-
nameForCondition?: string
|
|
1377
|
-
preOrderIndex?: number
|
|
1378
|
-
postOrderIndex?: number
|
|
1379
|
-
cacheable?: boolean
|
|
1380
|
-
optional?: boolean
|
|
1381
|
-
orphan?: boolean
|
|
1382
|
-
failed?: boolean
|
|
1383
|
-
errors?: number
|
|
1384
|
-
warnings?: number
|
|
1385
|
-
profile?: JsStatsModuleProfile
|
|
1386
|
-
chunks?: Array<string>
|
|
1387
|
-
assets?: Array<string>
|
|
1388
|
-
reasons?: Array<JsStatsModuleReason>
|
|
1389
|
-
providedExports?: Array<string>
|
|
1390
|
-
optimizationBailout?: Array<string>
|
|
1391
|
-
depth?: number
|
|
1392
|
-
source?: string | Buffer
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
export interface JsStatsModuleIssuer {
|
|
1396
|
-
moduleDescriptor: JsModuleDescriptor
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
export interface JsStatsModuleProfile {
|
|
1400
|
-
factory: JsStatsMillisecond
|
|
1401
|
-
building: JsStatsMillisecond
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
|
-
export interface JsStatsModuleReason {
|
|
1405
|
-
moduleDescriptor?: JsModuleDescriptor
|
|
1406
|
-
resolvedModuleDescriptor?: JsModuleDescriptor
|
|
1407
|
-
moduleChunks?: number
|
|
1408
|
-
type?: string
|
|
1409
|
-
userRequest?: string
|
|
1410
|
-
explanation?: string
|
|
1411
|
-
active: boolean
|
|
1412
|
-
loc?: string
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
export interface JsStatsModuleTrace {
|
|
1416
|
-
origin: JsStatsModuleTraceModule
|
|
1417
|
-
module: JsStatsModuleTraceModule
|
|
1418
|
-
dependencies: Array<JsStatsModuleTraceDependency>
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
export interface JsStatsModuleTraceDependency {
|
|
1422
|
-
loc: string
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
export interface JsStatsModuleTraceModule {
|
|
1426
|
-
moduleDescriptor: JsModuleDescriptor
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
export interface JsStatsOptimizationBailout {
|
|
1430
|
-
inner: string
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
export interface JsStatsOptions {
|
|
1434
|
-
assets: boolean
|
|
1435
|
-
cachedModules: boolean
|
|
1436
|
-
chunks: boolean
|
|
1437
|
-
chunkGroupAuxiliary: boolean
|
|
1438
|
-
chunkGroupChildren: boolean
|
|
1439
|
-
chunkGroups: boolean
|
|
1440
|
-
chunkModules: boolean
|
|
1441
|
-
chunkRelations: boolean
|
|
1442
|
-
depth: boolean
|
|
1443
|
-
entrypoints: boolean | string
|
|
1444
|
-
errors: boolean
|
|
1445
|
-
hash: boolean
|
|
1446
|
-
ids: boolean
|
|
1447
|
-
modules: boolean
|
|
1448
|
-
moduleAssets: boolean
|
|
1449
|
-
nestedModules: boolean
|
|
1450
|
-
optimizationBailout: boolean
|
|
1451
|
-
providedExports: boolean
|
|
1452
|
-
reasons: boolean
|
|
1453
|
-
source: boolean
|
|
1454
|
-
usedExports: boolean
|
|
1455
|
-
warnings: boolean
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
export interface JsStatsSize {
|
|
1459
|
-
sourceType: string
|
|
1460
|
-
size: number
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
export interface JsTap {
|
|
1464
|
-
function: any
|
|
1465
|
-
stage: number
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
export interface KnownAssetInfo {
|
|
1469
|
-
/** if the asset can be long term cached forever (contains a hash) */
|
|
1470
|
-
immutable?: boolean
|
|
1471
|
-
/** whether the asset is minimized */
|
|
1472
|
-
minimized?: boolean
|
|
1473
|
-
/** the value(s) of the full hash used for this asset */
|
|
1474
|
-
fullhash?: string | Array<string>
|
|
1475
|
-
/** the value(s) of the chunk hash used for this asset */
|
|
1476
|
-
chunkhash?: string | Array<string>
|
|
1477
|
-
/**
|
|
1478
|
-
* the value(s) of the module hash used for this asset
|
|
1479
|
-
* the value(s) of the content hash used for this asset
|
|
1480
|
-
*/
|
|
1481
|
-
contenthash?: string | Array<string>
|
|
1482
|
-
/** when asset was created from a source file (potentially transformed), the original filename relative to compilation context */
|
|
1483
|
-
sourceFilename?: string
|
|
1484
|
-
/** when asset was created from a source file (potentially transformed), it should be flagged as copied */
|
|
1485
|
-
copied?: boolean
|
|
1486
|
-
/**
|
|
1487
|
-
* size in bytes, only set after asset has been emitted
|
|
1488
|
-
* when asset is only used for development and doesn't count towards user-facing assets
|
|
1489
|
-
*/
|
|
1490
|
-
development?: boolean
|
|
1491
|
-
/** when asset ships data for updating an existing application (HMR) */
|
|
1492
|
-
hotModuleReplacement?: boolean
|
|
1493
|
-
/** when asset is javascript and an ESM */
|
|
1494
|
-
javascriptModule?: boolean
|
|
1495
|
-
/** related object to other assets, keyed by type of relation (only points from parent to child) */
|
|
1496
|
-
related?: JsAssetInfoRelated
|
|
1497
|
-
/** unused css local ident for the css chunk */
|
|
1498
|
-
cssUnusedIdents?: Array<string>
|
|
1499
|
-
/** whether this asset is over the size limit */
|
|
1500
|
-
isOverSizeLimit?: boolean
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
export declare function loadBrowserslist(input: string | undefined | null, context: string): Array<string> | null
|
|
1504
|
-
|
|
1505
|
-
export declare function minify(source: string, options: string): Promise<TransformOutput>
|
|
1506
|
-
|
|
1507
|
-
export declare function minifySync(source: string, options: string): TransformOutput
|
|
1508
|
-
|
|
1509
|
-
export interface NativeWatcherOptions {
|
|
1510
|
-
followSymlinks?: boolean
|
|
1511
|
-
pollInterval?: number
|
|
1512
|
-
aggregateTimeout?: number
|
|
1513
|
-
/** A function that will be called with the path of a file or directory that is ignored. */
|
|
1514
|
-
ignored?: (path: string) => boolean
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
export interface NodeFsStats {
|
|
1518
|
-
isFile: boolean
|
|
1519
|
-
isDirectory: boolean
|
|
1520
|
-
isSymlink: boolean
|
|
1521
|
-
atimeMs: number
|
|
1522
|
-
mtimeMs: number
|
|
1523
|
-
ctimeMs: number
|
|
1524
|
-
birthtimeMs: number
|
|
1525
|
-
size: number
|
|
1526
|
-
mode: number
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
export interface PathWithInfo {
|
|
1530
|
-
path: string
|
|
1531
|
-
info: AssetInfo
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
export interface RawAliasOptionItem {
|
|
1535
|
-
path: string
|
|
1536
|
-
redirect: Array<string | false>
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
export interface RawAssetGeneratorDataUrlFnCtx {
|
|
1540
|
-
filename: string
|
|
1541
|
-
module: Module
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
export interface RawAssetGeneratorDataUrlOptions {
|
|
1545
|
-
encoding?: "base64" | "false" | undefined
|
|
1546
|
-
mimetype?: string
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
export interface RawAssetGeneratorOptions {
|
|
1550
|
-
emit?: boolean
|
|
1551
|
-
filename?: JsFilename
|
|
1552
|
-
outputPath?: JsFilename
|
|
1553
|
-
publicPath?: "auto" | JsFilename
|
|
1554
|
-
dataUrl?: RawAssetGeneratorDataUrlOptions | ((source: Buffer, context: RawAssetGeneratorDataUrlFnCtx) => string)
|
|
1555
|
-
importMode?: "url" | "preserve"
|
|
1556
|
-
binary?: boolean
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
export interface RawAssetInlineGeneratorOptions {
|
|
1560
|
-
dataUrl?: RawAssetGeneratorDataUrlOptions | ((source: Buffer, context: RawAssetGeneratorDataUrlFnCtx) => string)
|
|
1561
|
-
binary?: boolean
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
export interface RawAssetParserDataUrl {
|
|
1565
|
-
type: "options"
|
|
1566
|
-
options?: RawAssetParserDataUrlOptions
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
export interface RawAssetParserDataUrlOptions {
|
|
1570
|
-
maxSize?: number
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
export interface RawAssetParserOptions {
|
|
1574
|
-
dataUrlCondition?: RawAssetParserDataUrl
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
export interface RawAssetResourceGeneratorOptions {
|
|
1578
|
-
emit?: boolean
|
|
1579
|
-
filename?: JsFilename
|
|
1580
|
-
outputPath?: JsFilename
|
|
1581
|
-
publicPath?: "auto" | JsFilename
|
|
1582
|
-
importMode?: "url" | "preserve"
|
|
1583
|
-
binary?: boolean
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
export interface RawBannerPluginOptions {
|
|
1587
|
-
banner: string | ((args: { hash: string, chunk: Chunk, filename: string }) => string)
|
|
1588
|
-
entryOnly?: boolean
|
|
1589
|
-
footer?: boolean
|
|
1590
|
-
raw?: boolean
|
|
1591
|
-
stage?: number
|
|
1592
|
-
test?: string | RegExp | (string | RegExp)[]
|
|
1593
|
-
include?: string | RegExp | (string | RegExp)[]
|
|
1594
|
-
exclude?: string | RegExp | (string | RegExp)[]
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
export interface RawBundlerInfoPluginOptions {
|
|
1598
|
-
version: string
|
|
1599
|
-
bundler: string
|
|
1600
|
-
force: boolean | string[]
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
export interface RawCacheGroupOptions {
|
|
1604
|
-
key: string
|
|
1605
|
-
priority?: number
|
|
1606
|
-
test?: RegExp | string | Function
|
|
1607
|
-
filename?: JsFilename
|
|
1608
|
-
idHint?: string
|
|
1609
|
-
/** What kind of chunks should be selected. */
|
|
1610
|
-
chunks?: RegExp | 'async' | 'initial' | 'all'
|
|
1611
|
-
type?: RegExp | string
|
|
1612
|
-
layer?: RegExp | string | ((layer?: string) => boolean)
|
|
1613
|
-
automaticNameDelimiter?: string
|
|
1614
|
-
minChunks?: number
|
|
1615
|
-
minSize?: number | RawSplitChunkSizes
|
|
1616
|
-
minSizeReduction?: number | RawSplitChunkSizes
|
|
1617
|
-
maxSize?: number | RawSplitChunkSizes
|
|
1618
|
-
maxAsyncSize?: number | RawSplitChunkSizes
|
|
1619
|
-
maxInitialSize?: number | RawSplitChunkSizes
|
|
1620
|
-
maxAsyncRequests?: number
|
|
1621
|
-
maxInitialRequests?: number
|
|
1622
|
-
name?: string | false | Function
|
|
1623
|
-
reuseExistingChunk?: boolean
|
|
1624
|
-
enforce?: boolean
|
|
1625
|
-
usedExports?: boolean
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
export interface RawCacheOptions {
|
|
1629
|
-
type: string
|
|
1630
|
-
maxGenerations?: number
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
export interface RawCircularDependencyRspackPluginOptions {
|
|
1634
|
-
failOnError?: boolean
|
|
1635
|
-
allowAsyncCycles?: boolean
|
|
1636
|
-
exclude?: RegExp
|
|
1637
|
-
ignoredConnections?: Array<[string | RegExp, string | RegExp]>
|
|
1638
|
-
onDetected?: (entrypoint: Module, modules: string[]) => void
|
|
1639
|
-
onIgnored?: (entrypoint: Module, modules: string[]) => void
|
|
1640
|
-
onStart?: () => void
|
|
1641
|
-
onEnd?: () => void
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
export interface RawConsumeOptions {
|
|
1645
|
-
key: string
|
|
1646
|
-
import?: string
|
|
1647
|
-
importResolved?: string
|
|
1648
|
-
shareKey: string
|
|
1649
|
-
shareScope: string
|
|
1650
|
-
requiredVersion?: string | false | undefined
|
|
1651
|
-
packageName?: string
|
|
1652
|
-
strictVersion: boolean
|
|
1653
|
-
singleton: boolean
|
|
1654
|
-
eager: boolean
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
export interface RawConsumeSharedPluginOptions {
|
|
1658
|
-
consumes: Array<RawConsumeOptions>
|
|
1659
|
-
enhanced: boolean
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
export interface RawContainerPluginOptions {
|
|
1663
|
-
name: string
|
|
1664
|
-
shareScope: string
|
|
1665
|
-
library: JsLibraryOptions
|
|
1666
|
-
runtime?: false | string
|
|
1667
|
-
filename?: string
|
|
1668
|
-
exposes: Array<RawExposeOptions>
|
|
1669
|
-
enhanced: boolean
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
|
-
export interface RawContainerReferencePluginOptions {
|
|
1673
|
-
remoteType: string
|
|
1674
|
-
remotes: Array<RawRemoteOptions>
|
|
1675
|
-
shareScope?: string
|
|
1676
|
-
enhanced: boolean
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
export interface RawContextReplacementPluginOptions {
|
|
1680
|
-
resourceRegExp: RegExp
|
|
1681
|
-
newContentResource?: string
|
|
1682
|
-
newContentRecursive?: boolean
|
|
1683
|
-
newContentRegExp?: RegExp
|
|
1684
|
-
newContentCreateContextMap?: Record<string, string>
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
|
-
export interface RawCopyGlobOptions {
|
|
1688
|
-
/**
|
|
1689
|
-
* Whether the match is case sensitive
|
|
1690
|
-
* @default true
|
|
1691
|
-
*/
|
|
1692
|
-
caseSensitiveMatch?: boolean
|
|
1693
|
-
/**
|
|
1694
|
-
* Whether to match files starting with `.`
|
|
1695
|
-
* @default true
|
|
1696
|
-
*/
|
|
1697
|
-
dot?: boolean
|
|
1698
|
-
/**
|
|
1699
|
-
* An array of strings in glob format, which can be used to ignore specific paths
|
|
1700
|
-
* @default undefined
|
|
1701
|
-
*/
|
|
1702
|
-
ignore?: Array<string>
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
export interface RawCopyPattern {
|
|
1706
|
-
/**
|
|
1707
|
-
* The source path of the copy operation, which can be an absolute path, a relative
|
|
1708
|
-
* path, or a glob pattern. It can refer to a file or a directory. If a relative path
|
|
1709
|
-
* is passed, it is relative to the `context` option.
|
|
1710
|
-
* @default undefined
|
|
1711
|
-
*/
|
|
1712
|
-
from: string
|
|
1713
|
-
/**
|
|
1714
|
-
* The destination path of the copy operation, which can be an absolute path, a
|
|
1715
|
-
* relative path, or a template string. If not specified, it is equal to Rspack's
|
|
1716
|
-
* `output.path`.
|
|
1717
|
-
* @default Rspack's `output.path`
|
|
1718
|
-
*/
|
|
1719
|
-
to?: string | ((pathData: { context: string; absoluteFilename?: string }) => string | Promise<string>)
|
|
1720
|
-
/**
|
|
1721
|
-
* `context` is a path to be prepended to `from` and removed from the start of the
|
|
1722
|
-
* result paths. `context` can be an absolute path or a relative path. If it is a
|
|
1723
|
-
* relative path, then it will be converted to an absolute path based on Rspack's
|
|
1724
|
-
* `context`.
|
|
1725
|
-
* `context` should be explicitly set only when `from` contains a glob. Otherwise,
|
|
1726
|
-
* `context` is automatically set based on whether `from` is a file or a directory:
|
|
1727
|
-
* - If `from` is a file, then `context` is its directory. The result path will be
|
|
1728
|
-
* the filename alone.
|
|
1729
|
-
* - If `from` is a directory, then `context` equals `from`. The result paths will
|
|
1730
|
-
* be the paths of the directory's contents (including nested contents), relative
|
|
1731
|
-
* to the directory.
|
|
1732
|
-
* @default Rspack's `context`
|
|
1733
|
-
*/
|
|
1734
|
-
context?: string
|
|
1735
|
-
/**
|
|
1736
|
-
* Specify the type of [to](#to), which can be a directory, a file, or a template
|
|
1737
|
-
* name in Rspack. If not specified, it will be automatically inferred.
|
|
1738
|
-
* The automatic inference rules are as follows:
|
|
1739
|
-
* - `dir`: If `to` has no extension, or ends on `/`.
|
|
1740
|
-
* - `file`: If `to` is not a directory and is not a template.
|
|
1741
|
-
* - `template`: If `to` contains a template pattern.
|
|
1742
|
-
* @default undefined
|
|
1743
|
-
*/
|
|
1744
|
-
toType?: string
|
|
1745
|
-
/**
|
|
1746
|
-
* Whether to ignore the error if there are missing files or directories.
|
|
1747
|
-
* @default false
|
|
1748
|
-
*/
|
|
1749
|
-
noErrorOnMissing: boolean
|
|
1750
|
-
/**
|
|
1751
|
-
* Whether to force the copy operation to overwrite the destination file if it
|
|
1752
|
-
* already exists.
|
|
1753
|
-
* @default false
|
|
1754
|
-
*/
|
|
1755
|
-
force: boolean
|
|
1756
|
-
/**
|
|
1757
|
-
* The priority of the copy operation. The higher the priority, the earlier the copy
|
|
1758
|
-
* operation will be executed. When `force` is set to `true`, if a matching file is
|
|
1759
|
-
* found, the one with higher priority will overwrite the one with lower priority.
|
|
1760
|
-
* @default 0
|
|
1761
|
-
*/
|
|
1762
|
-
priority: number
|
|
1763
|
-
/**
|
|
1764
|
-
* Set the glob options for the copy operation.
|
|
1765
|
-
* @default undefined
|
|
1766
|
-
*/
|
|
1767
|
-
globOptions: RawCopyGlobOptions
|
|
1768
|
-
/**
|
|
1769
|
-
* Allows to add some assets info to the copied files, which may affect some behaviors
|
|
1770
|
-
* in the build process. For example, by default, the copied JS and CSS files will be
|
|
1771
|
-
* minified by Rspack's minimizer, if you want to skip minification for copied files,
|
|
1772
|
-
* you can set `info.minimized` to `true`.
|
|
1773
|
-
* @default undefined
|
|
1774
|
-
*/
|
|
1775
|
-
info?: RawInfo
|
|
1776
|
-
/**
|
|
1777
|
-
* Determines whether to copy file permissions from the source to the destination.
|
|
1778
|
-
* When set to true, the plugin will preserve executable permissions and other file modes.
|
|
1779
|
-
* This is particularly useful when copying scripts or executable files.
|
|
1780
|
-
* @default false
|
|
1781
|
-
*/
|
|
1782
|
-
copyPermissions?: boolean
|
|
1783
|
-
/**
|
|
1784
|
-
* Allows to modify the file contents.
|
|
1785
|
-
* @default undefined
|
|
1786
|
-
*/
|
|
1787
|
-
transform?: { transformer: (input: Buffer, absoluteFilename: string) => string | Buffer | Promise<string> | Promise<Buffer> } | ((input: Buffer, absoluteFilename: string) => string | Buffer | Promise<string> | Promise<Buffer>)
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
export interface RawCopyRspackPluginOptions {
|
|
1791
|
-
/** An array of objects that describe the copy operations to be performed. */
|
|
1792
|
-
patterns: Array<RawCopyPattern>
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
export interface RawCssAutoGeneratorOptions {
|
|
1796
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only"
|
|
1797
|
-
exportsOnly?: boolean
|
|
1798
|
-
localIdentName?: string
|
|
1799
|
-
esModule?: boolean
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
export interface RawCssAutoParserOptions {
|
|
1803
|
-
namedExports?: boolean
|
|
1804
|
-
url?: boolean
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
export interface RawCssExtractPluginOption {
|
|
1808
|
-
filename: JsFilename
|
|
1809
|
-
chunkFilename: JsFilename
|
|
1810
|
-
ignoreOrder: boolean
|
|
1811
|
-
insert?: string
|
|
1812
|
-
attributes: Record<string, string>
|
|
1813
|
-
linkType?: string
|
|
1814
|
-
runtime: boolean
|
|
1815
|
-
pathinfo: boolean
|
|
1816
|
-
enforceRelative: boolean
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
export interface RawCssGeneratorOptions {
|
|
1820
|
-
exportsOnly?: boolean
|
|
1821
|
-
esModule?: boolean
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
export interface RawCssModuleGeneratorOptions {
|
|
1825
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only"
|
|
1826
|
-
exportsOnly?: boolean
|
|
1827
|
-
localIdentName?: string
|
|
1828
|
-
esModule?: boolean
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
export interface RawCssModuleParserOptions {
|
|
1832
|
-
namedExports?: boolean
|
|
1833
|
-
url?: boolean
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
export interface RawCssParserOptions {
|
|
1837
|
-
namedExports?: boolean
|
|
1838
|
-
url?: boolean
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
export interface RawDllEntryPluginOptions {
|
|
1842
|
-
context: string
|
|
1843
|
-
entries: Array<string>
|
|
1844
|
-
name: string
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
export interface RawDllManifest {
|
|
1848
|
-
content: Record<string, RawDllManifestContentItem>
|
|
1849
|
-
name?: string
|
|
1850
|
-
type?: string
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
export interface RawDllManifestContentItem {
|
|
1854
|
-
buildMeta?: JsBuildMeta
|
|
1855
|
-
exports?: string[] | true
|
|
1856
|
-
id?: number | string
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
|
-
export interface RawDllReferenceAgencyPluginOptions {
|
|
1860
|
-
context?: string
|
|
1861
|
-
name?: string
|
|
1862
|
-
extensions: Array<string>
|
|
1863
|
-
scope?: string
|
|
1864
|
-
sourceType?: string
|
|
1865
|
-
type: string
|
|
1866
|
-
content?: Record<string, RawDllManifestContentItem>
|
|
1867
|
-
manifest?: RawDllManifest
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
export interface RawDraft {
|
|
1871
|
-
customMedia: boolean
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
export interface RawDynamicEntryPluginOptions {
|
|
1875
|
-
context: string
|
|
1876
|
-
entry: () => Promise<RawEntryDynamicResult[]>
|
|
1877
|
-
}
|
|
1878
|
-
|
|
1879
|
-
export interface RawEntryDynamicResult {
|
|
1880
|
-
import: Array<string>
|
|
1881
|
-
options: JsEntryOptions
|
|
1882
|
-
}
|
|
1883
|
-
|
|
1884
|
-
export interface RawEnvironment {
|
|
1885
|
-
const?: boolean
|
|
1886
|
-
arrowFunction?: boolean
|
|
1887
|
-
nodePrefixForCoreModules?: boolean
|
|
1888
|
-
asyncFunction?: boolean
|
|
1889
|
-
bigIntLiteral?: boolean
|
|
1890
|
-
destructuring?: boolean
|
|
1891
|
-
document?: boolean
|
|
1892
|
-
dynamicImport?: boolean
|
|
1893
|
-
forOf?: boolean
|
|
1894
|
-
globalThis?: boolean
|
|
1895
|
-
module?: boolean
|
|
1896
|
-
optionalChaining?: boolean
|
|
1897
|
-
templateLiteral?: boolean
|
|
1898
|
-
dynamicImportInWorker?: boolean
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
export interface RawEvalDevToolModulePluginOptions {
|
|
1902
|
-
namespace?: string
|
|
1903
|
-
moduleFilenameTemplate?: string | ((info: RawModuleFilenameTemplateFnCtx) => string)
|
|
1904
|
-
sourceUrlComment?: string
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
export interface RawExperimentCacheOptionsPersistent {
|
|
1908
|
-
buildDependencies?: Array<string>
|
|
1909
|
-
version?: string
|
|
1910
|
-
snapshot?: RawExperimentSnapshotOptions
|
|
1911
|
-
storage?: RawStorageOptions
|
|
1912
|
-
}
|
|
1913
|
-
|
|
1914
|
-
export interface RawExperiments {
|
|
1915
|
-
layers: boolean
|
|
1916
|
-
topLevelAwait: boolean
|
|
1917
|
-
incremental?: false | { [key: string]: boolean }
|
|
1918
|
-
parallelCodeSplitting: boolean
|
|
1919
|
-
rspackFuture?: RawRspackFuture
|
|
1920
|
-
cache: boolean | { type: "persistent" } & RawExperimentCacheOptionsPersistent | { type: "memory" }
|
|
1921
|
-
useInputFileSystem?: false | Array<RegExp>
|
|
1922
|
-
inlineConst: boolean
|
|
1923
|
-
inlineEnum: boolean
|
|
1924
|
-
typeReexportsPresence: boolean
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
export interface RawExperimentSnapshotOptions {
|
|
1928
|
-
immutablePaths: Array<string|RegExp>
|
|
1929
|
-
unmanagedPaths: Array<string|RegExp>
|
|
1930
|
-
managedPaths: Array<string|RegExp>
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
export interface RawExposeOptions {
|
|
1934
|
-
key: string
|
|
1935
|
-
name?: string
|
|
1936
|
-
import: Array<string>
|
|
1937
|
-
}
|
|
1938
|
-
|
|
1939
|
-
export interface RawExternalItemFnCtxData {
|
|
1940
|
-
request: string
|
|
1941
|
-
context: string
|
|
1942
|
-
dependencyType: string
|
|
1943
|
-
contextInfo: ContextInfo
|
|
1944
|
-
}
|
|
1945
|
-
|
|
1946
|
-
export interface RawExternalItemFnResult {
|
|
1947
|
-
externalType?: string
|
|
1948
|
-
result?: string | boolean | string[] | Record<string, string[]>
|
|
1949
|
-
}
|
|
1950
|
-
|
|
1951
|
-
export interface RawExternalsPluginOptions {
|
|
1952
|
-
type: string
|
|
1953
|
-
externals: (string | RegExp | Record<string, string | boolean | string[] | Record<string, string[]>> | ((...args: any[]) => any))[]
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
export interface RawExternalsPresets {
|
|
1957
|
-
node: boolean
|
|
1958
|
-
web: boolean
|
|
1959
|
-
electron: boolean
|
|
1960
|
-
electronMain: boolean
|
|
1961
|
-
electronPreload: boolean
|
|
1962
|
-
electronRenderer: boolean
|
|
1963
|
-
}
|
|
1964
|
-
|
|
1965
|
-
export interface RawExtractComments {
|
|
1966
|
-
banner?: string | boolean
|
|
1967
|
-
condition?: string
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
export interface RawFallbackCacheGroupOptions {
|
|
1971
|
-
chunks?: RegExp | 'async' | 'initial' | 'all'
|
|
1972
|
-
minSize?: number | RawSplitChunkSizes
|
|
1973
|
-
maxSize?: number | RawSplitChunkSizes
|
|
1974
|
-
maxAsyncSize?: number | RawSplitChunkSizes
|
|
1975
|
-
maxInitialSize?: number | RawSplitChunkSizes
|
|
1976
|
-
automaticNameDelimiter?: string
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
|
-
export interface RawFlagAllModulesAsUsedPluginOptions {
|
|
1980
|
-
explanation: string
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
export interface RawFuncUseCtx {
|
|
1984
|
-
resource?: string
|
|
1985
|
-
realResource?: string
|
|
1986
|
-
resourceQuery: string
|
|
1987
|
-
resourceFragment: string
|
|
1988
|
-
issuer: string
|
|
1989
|
-
issuerLayer: string
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
|
-
export interface RawGeneratorOptions {
|
|
1993
|
-
type: "asset" | "asset/inline" | "asset/resource" | "css" | "css/auto" | "css/module" | "json"
|
|
1994
|
-
asset?: RawAssetGeneratorOptions
|
|
1995
|
-
assetInline?: RawAssetInlineGeneratorOptions
|
|
1996
|
-
assetResource?: RawAssetResourceGeneratorOptions
|
|
1997
|
-
css?: RawCssGeneratorOptions
|
|
1998
|
-
cssAuto?: RawCssAutoGeneratorOptions
|
|
1999
|
-
cssModule?: RawCssModuleGeneratorOptions
|
|
2000
|
-
json?: RawJsonGeneratorOptions
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2003
|
-
export interface RawHtmlRspackPluginBaseOptions {
|
|
2004
|
-
href?: string
|
|
2005
|
-
target?: "_self" | "_blank" | "_parent" | "_top"
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
|
-
export interface RawHtmlRspackPluginOptions {
|
|
2009
|
-
/** emitted file name in output path */
|
|
2010
|
-
filename?: string[]
|
|
2011
|
-
/** template html file */
|
|
2012
|
-
template?: string
|
|
2013
|
-
templateFn?: (data: string) => Promise<string>
|
|
2014
|
-
templateContent?: string
|
|
2015
|
-
templateParameters?: boolean | Record<string, any> | ((params: string) => Promise<string>)
|
|
2016
|
-
/** "head", "body" or "false" */
|
|
2017
|
-
inject: "head" | "body" | "false"
|
|
2018
|
-
/** path or `auto` */
|
|
2019
|
-
publicPath?: string
|
|
2020
|
-
/** `blocking`, `defer`, `module` or `systemjs-module` */
|
|
2021
|
-
scriptLoading: "blocking" | "defer" | "module" | "systemjs-module"
|
|
2022
|
-
/** entry_chunk_name (only entry chunks are supported) */
|
|
2023
|
-
chunks?: Array<string>
|
|
2024
|
-
excludeChunks?: Array<string>
|
|
2025
|
-
chunksSortMode: "auto" | "manual"
|
|
2026
|
-
sri?: "sha256" | "sha384" | "sha512"
|
|
2027
|
-
minify?: boolean
|
|
2028
|
-
title?: string
|
|
2029
|
-
favicon?: string
|
|
2030
|
-
meta?: Record<string, Record<string, string>>
|
|
2031
|
-
hash?: boolean
|
|
2032
|
-
base?: RawHtmlRspackPluginBaseOptions
|
|
2033
|
-
uid?: number
|
|
2034
|
-
}
|
|
2035
|
-
|
|
2036
|
-
export interface RawHttpExternalsRspackPluginOptions {
|
|
2037
|
-
css: boolean
|
|
2038
|
-
webAsync: boolean
|
|
2039
|
-
}
|
|
2040
|
-
|
|
2041
|
-
export interface RawHttpUriPluginOptions {
|
|
2042
|
-
allowedUris: (string | RegExp)[]
|
|
2043
|
-
lockfileLocation?: string
|
|
2044
|
-
cacheLocation?: string
|
|
2045
|
-
upgrade: boolean
|
|
2046
|
-
httpClient: (url: string, headers: Record<string, string>) => Promise<JsHttpResponseRaw>
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
|
-
export interface RawIgnorePluginOptions {
|
|
2050
|
-
resourceRegExp?: RegExp
|
|
2051
|
-
contextRegExp?: RegExp
|
|
2052
|
-
checkResource?: (resource: string, context: string) => boolean
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
|
-
export interface RawIncremental {
|
|
2056
|
-
silent: boolean
|
|
2057
|
-
make: boolean
|
|
2058
|
-
inferAsyncModules: boolean
|
|
2059
|
-
providedExports: boolean
|
|
2060
|
-
dependenciesDiagnostics: boolean
|
|
2061
|
-
sideEffects: boolean
|
|
2062
|
-
buildChunkGraph: boolean
|
|
2063
|
-
moduleIds: boolean
|
|
2064
|
-
chunkIds: boolean
|
|
2065
|
-
modulesHashes: boolean
|
|
2066
|
-
modulesCodegen: boolean
|
|
2067
|
-
modulesRuntimeRequirements: boolean
|
|
2068
|
-
chunksRuntimeRequirements: boolean
|
|
2069
|
-
chunksHashes: boolean
|
|
2070
|
-
chunksRender: boolean
|
|
2071
|
-
emitAssets: boolean
|
|
2072
|
-
}
|
|
2073
|
-
|
|
2074
|
-
export interface RawInfo {
|
|
2075
|
-
immutable?: boolean
|
|
2076
|
-
/**
|
|
2077
|
-
* Whether to skip minification for the copied files.
|
|
2078
|
-
* @default false
|
|
2079
|
-
*/
|
|
2080
|
-
minimized?: boolean
|
|
2081
|
-
chunkHash?: Array<string>
|
|
2082
|
-
contentHash?: Array<string>
|
|
2083
|
-
development?: boolean
|
|
2084
|
-
hotModuleReplacement?: boolean
|
|
2085
|
-
related?: RawRelated
|
|
2086
|
-
version?: string
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
export interface RawIntegrityData {
|
|
2090
|
-
integerities: Array<RawIntegrityItem>
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
|
-
export interface RawIntegrityItem {
|
|
2094
|
-
asset: string
|
|
2095
|
-
integrity: string
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
export interface RawJavascriptParserOptions {
|
|
2099
|
-
dynamicImportMode?: string
|
|
2100
|
-
dynamicImportPreload?: string
|
|
2101
|
-
dynamicImportPrefetch?: string
|
|
2102
|
-
dynamicImportFetchPriority?: string
|
|
2103
|
-
url?: string
|
|
2104
|
-
exprContextCritical?: boolean
|
|
2105
|
-
wrappedContextCritical?: boolean
|
|
2106
|
-
wrappedContextRegExp?: RegExp
|
|
2107
|
-
exportsPresence?: string
|
|
2108
|
-
importExportsPresence?: string
|
|
2109
|
-
reexportExportsPresence?: string
|
|
2110
|
-
strictExportPresence?: boolean
|
|
2111
|
-
worker?: Array<string>
|
|
2112
|
-
overrideStrict?: string
|
|
2113
|
-
importMeta?: boolean
|
|
2114
|
-
/**
|
|
2115
|
-
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2116
|
-
* @experimental
|
|
2117
|
-
*/
|
|
2118
|
-
requireAsExpression?: boolean
|
|
2119
|
-
/**
|
|
2120
|
-
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2121
|
-
* @experimental
|
|
2122
|
-
*/
|
|
2123
|
-
requireDynamic?: boolean
|
|
2124
|
-
/**
|
|
2125
|
-
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2126
|
-
* @experimental
|
|
2127
|
-
*/
|
|
2128
|
-
requireResolve?: boolean
|
|
2129
|
-
/**
|
|
2130
|
-
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2131
|
-
* @experimental
|
|
2132
|
-
*/
|
|
2133
|
-
importDynamic?: boolean
|
|
2134
|
-
/**
|
|
2135
|
-
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2136
|
-
* @experimental
|
|
2137
|
-
*/
|
|
2138
|
-
inlineConst?: boolean
|
|
2139
|
-
/**
|
|
2140
|
-
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2141
|
-
* @experimental
|
|
2142
|
-
*/
|
|
2143
|
-
typeReexportsPresence?: string
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2146
|
-
export interface RawJsonGeneratorOptions {
|
|
2147
|
-
JSONParse?: boolean
|
|
2148
|
-
}
|
|
2149
|
-
|
|
2150
|
-
export interface RawJsonParserOptions {
|
|
2151
|
-
exportsDepth?: number
|
|
2152
|
-
parse?: (source: string) => string
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
export interface RawLazyCompilationOption {
|
|
2156
|
-
module: ((err: Error | null, arg: RawModuleArg) => RawModuleInfo)
|
|
2157
|
-
test?: RawLazyCompilationTest
|
|
2158
|
-
entries: boolean
|
|
2159
|
-
imports: boolean
|
|
2160
|
-
cacheable: boolean
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
export interface RawLibManifestPluginOptions {
|
|
2164
|
-
context?: string
|
|
2165
|
-
entryOnly?: boolean
|
|
2166
|
-
name?: JsFilename
|
|
2167
|
-
path: JsFilename
|
|
2168
|
-
format?: boolean
|
|
2169
|
-
type?: string
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
export interface RawLightningCssBrowsers {
|
|
2173
|
-
android?: number
|
|
2174
|
-
chrome?: number
|
|
2175
|
-
edge?: number
|
|
2176
|
-
firefox?: number
|
|
2177
|
-
ie?: number
|
|
2178
|
-
ios_saf?: number
|
|
2179
|
-
opera?: number
|
|
2180
|
-
safari?: number
|
|
2181
|
-
samsung?: number
|
|
2182
|
-
}
|
|
2183
|
-
|
|
2184
|
-
export interface RawLightningCssMinimizerOptions {
|
|
2185
|
-
errorRecovery: boolean
|
|
2186
|
-
targets?: Array<string>
|
|
2187
|
-
include?: number
|
|
2188
|
-
exclude?: number
|
|
2189
|
-
draft?: RawDraft
|
|
2190
|
-
drafts?: RawDraft
|
|
2191
|
-
nonStandard?: RawNonStandard
|
|
2192
|
-
pseudoClasses?: RawLightningCssPseudoClasses
|
|
2193
|
-
unusedSymbols: Array<string>
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
export interface RawLightningCssMinimizerRspackPluginOptions {
|
|
2197
|
-
test?: string | RegExp | (string | RegExp)[]
|
|
2198
|
-
include?: string | RegExp | (string | RegExp)[]
|
|
2199
|
-
exclude?: string | RegExp | (string | RegExp)[]
|
|
2200
|
-
removeUnusedLocalIdents: boolean
|
|
2201
|
-
minimizerOptions: RawLightningCssMinimizerOptions
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
export interface RawLightningCssPseudoClasses {
|
|
2205
|
-
hover?: string
|
|
2206
|
-
active?: string
|
|
2207
|
-
focus?: string
|
|
2208
|
-
focusVisible?: string
|
|
2209
|
-
focusWithin?: string
|
|
2210
|
-
}
|
|
2211
|
-
|
|
2212
|
-
export interface RawLimitChunkCountPluginOptions {
|
|
2213
|
-
chunkOverhead?: number
|
|
2214
|
-
entryChunkMultiplicator?: number
|
|
2215
|
-
maxChunks: number
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
export interface RawModuleArg {
|
|
2219
|
-
module: string
|
|
2220
|
-
path: string
|
|
2221
|
-
}
|
|
2222
|
-
|
|
2223
|
-
export interface RawModuleFilenameTemplateFnCtx {
|
|
2224
|
-
identifier: string
|
|
2225
|
-
shortIdentifier: string
|
|
2226
|
-
resource: string
|
|
2227
|
-
resourcePath: string
|
|
2228
|
-
absoluteResourcePath: string
|
|
2229
|
-
loaders: string
|
|
2230
|
-
allLoaders: string
|
|
2231
|
-
query: string
|
|
2232
|
-
moduleId: string
|
|
2233
|
-
hash: string
|
|
2234
|
-
namespace: string
|
|
2235
|
-
}
|
|
2236
|
-
|
|
2237
|
-
export interface RawModuleInfo {
|
|
2238
|
-
active: boolean
|
|
2239
|
-
client: string
|
|
2240
|
-
data: string
|
|
2241
|
-
}
|
|
2242
|
-
|
|
2243
|
-
export interface RawModuleOptions {
|
|
2244
|
-
rules: Array<RawModuleRule>
|
|
2245
|
-
parser?: Record<string, RawParserOptions>
|
|
2246
|
-
generator?: Record<string, RawGeneratorOptions>
|
|
2247
|
-
noParse?: string | RegExp | ((request: string) => boolean) | (string | RegExp | ((request: string) => boolean))[]
|
|
2248
|
-
}
|
|
2249
|
-
|
|
2250
|
-
export interface RawModuleRule {
|
|
2251
|
-
/**
|
|
2252
|
-
* A conditional match matching an absolute path + query + fragment.
|
|
2253
|
-
* Note:
|
|
2254
|
-
* This is a custom matching rule not initially designed by webpack.
|
|
2255
|
-
* Only for single-threaded environment interoperation purpose.
|
|
2256
|
-
*/
|
|
2257
|
-
rspackResource?: RawRuleSetCondition
|
|
2258
|
-
/** A condition matcher matching an absolute path. */
|
|
2259
|
-
test?: RawRuleSetCondition
|
|
2260
|
-
include?: RawRuleSetCondition
|
|
2261
|
-
exclude?: RawRuleSetCondition
|
|
2262
|
-
/** A condition matcher matching an absolute path. */
|
|
2263
|
-
resource?: RawRuleSetCondition
|
|
2264
|
-
/** A condition matcher against the resource query. */
|
|
2265
|
-
resourceQuery?: RawRuleSetCondition
|
|
2266
|
-
resourceFragment?: RawRuleSetCondition
|
|
2267
|
-
descriptionData?: Record<string, RawRuleSetCondition>
|
|
2268
|
-
with?: Record<string, RawRuleSetCondition>
|
|
2269
|
-
sideEffects?: boolean
|
|
2270
|
-
use?: RawModuleRuleUse[] | ((arg: RawFuncUseCtx) => RawModuleRuleUse[])
|
|
2271
|
-
type?: string
|
|
2272
|
-
layer?: string
|
|
2273
|
-
parser?: RawParserOptions
|
|
2274
|
-
generator?: RawGeneratorOptions
|
|
2275
|
-
resolve?: RawResolveOptions
|
|
2276
|
-
issuer?: RawRuleSetCondition
|
|
2277
|
-
issuerLayer?: RawRuleSetCondition
|
|
2278
|
-
dependency?: RawRuleSetCondition
|
|
2279
|
-
scheme?: RawRuleSetCondition
|
|
2280
|
-
mimetype?: RawRuleSetCondition
|
|
2281
|
-
oneOf?: Array<RawModuleRule>
|
|
2282
|
-
rules?: Array<RawModuleRule>
|
|
2283
|
-
/** Specifies the category of the loader. No value means normal loader. */
|
|
2284
|
-
enforce?: 'pre' | 'post'
|
|
2285
|
-
}
|
|
2286
|
-
|
|
2287
|
-
/**
|
|
2288
|
-
* `loader` is for both JS and Rust loaders.
|
|
2289
|
-
* `options` is
|
|
2290
|
-
* - a `None` on rust side and handled by js side `getOptions` when
|
|
2291
|
-
* using with `loader`.
|
|
2292
|
-
* - a `Some(string)` on rust side, deserialized by `serde_json::from_str`
|
|
2293
|
-
* and passed to rust side loader in [get_builtin_loader] when using with
|
|
2294
|
-
* `builtin_loader`.
|
|
2295
|
-
*/
|
|
2296
|
-
export interface RawModuleRuleUse {
|
|
2297
|
-
loader: string
|
|
2298
|
-
options?: string
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
|
-
export interface RawNodeOption {
|
|
2302
|
-
dirname: string
|
|
2303
|
-
filename: string
|
|
2304
|
-
global: string
|
|
2305
|
-
}
|
|
2306
|
-
|
|
2307
|
-
export interface RawNonStandard {
|
|
2308
|
-
deepSelectorCombinator: boolean
|
|
2309
|
-
}
|
|
2310
|
-
|
|
2311
|
-
export interface RawOccurrenceChunkIdsPluginOptions {
|
|
2312
|
-
prioritiseInitial?: boolean
|
|
2313
|
-
}
|
|
2314
|
-
|
|
2315
|
-
export interface RawOptimizationOptions {
|
|
2316
|
-
removeAvailableModules: boolean
|
|
2317
|
-
sideEffects: boolean | string
|
|
2318
|
-
usedExports: boolean | string
|
|
2319
|
-
providedExports: boolean
|
|
2320
|
-
innerGraph: boolean
|
|
2321
|
-
realContentHash: boolean
|
|
2322
|
-
mangleExports: boolean | string
|
|
2323
|
-
concatenateModules: boolean
|
|
2324
|
-
avoidEntryIife: boolean
|
|
2325
|
-
}
|
|
2326
|
-
|
|
2327
|
-
export interface RawOptions {
|
|
2328
|
-
name?: string
|
|
2329
|
-
mode?: undefined | 'production' | 'development' | 'none'
|
|
2330
|
-
context: string
|
|
2331
|
-
output: RawOutputOptions
|
|
2332
|
-
resolve: RawResolveOptions
|
|
2333
|
-
resolveLoader: RawResolveOptions
|
|
2334
|
-
module: RawModuleOptions
|
|
2335
|
-
optimization: RawOptimizationOptions
|
|
2336
|
-
stats: RawStatsOptions
|
|
2337
|
-
cache: RawCacheOptions
|
|
2338
|
-
experiments: RawExperiments
|
|
2339
|
-
node?: RawNodeOption
|
|
2340
|
-
profile: boolean
|
|
2341
|
-
amd?: string
|
|
2342
|
-
bail: boolean
|
|
2343
|
-
__references: Record<string, any>
|
|
2344
|
-
}
|
|
2345
|
-
|
|
2346
|
-
export interface RawOutputOptions {
|
|
2347
|
-
path: string
|
|
2348
|
-
pathinfo: boolean | "verbose"
|
|
2349
|
-
clean: boolean | JsCleanOptions
|
|
2350
|
-
publicPath: "auto" | JsFilename
|
|
2351
|
-
assetModuleFilename: JsFilename
|
|
2352
|
-
wasmLoading: string | false
|
|
2353
|
-
enabledWasmLoadingTypes: Array<string>
|
|
2354
|
-
webassemblyModuleFilename: string
|
|
2355
|
-
filename: JsFilename
|
|
2356
|
-
chunkFilename: JsFilename
|
|
2357
|
-
crossOriginLoading: string | false
|
|
2358
|
-
cssFilename: JsFilename
|
|
2359
|
-
cssChunkFilename: JsFilename
|
|
2360
|
-
hotUpdateMainFilename: string
|
|
2361
|
-
hotUpdateChunkFilename: string
|
|
2362
|
-
hotUpdateGlobal: string
|
|
2363
|
-
uniqueName: string
|
|
2364
|
-
chunkLoadingGlobal: string
|
|
2365
|
-
library?: JsLibraryOptions
|
|
2366
|
-
strictModuleErrorHandling: boolean
|
|
2367
|
-
enabledLibraryTypes?: Array<string>
|
|
2368
|
-
globalObject: string
|
|
2369
|
-
importFunctionName: string
|
|
2370
|
-
importMetaName: string
|
|
2371
|
-
iife: boolean
|
|
2372
|
-
module: boolean
|
|
2373
|
-
chunkLoading: string | false
|
|
2374
|
-
chunkLoadTimeout: number
|
|
2375
|
-
charset: boolean
|
|
2376
|
-
enabledChunkLoadingTypes?: Array<string>
|
|
2377
|
-
trustedTypes?: RawTrustedTypes
|
|
2378
|
-
sourceMapFilename: string
|
|
2379
|
-
hashFunction: string
|
|
2380
|
-
hashDigest: string
|
|
2381
|
-
hashDigestLength: number
|
|
2382
|
-
hashSalt?: string
|
|
2383
|
-
asyncChunks: boolean
|
|
2384
|
-
workerChunkLoading: string | false
|
|
2385
|
-
workerWasmLoading: string | false
|
|
2386
|
-
workerPublicPath: string
|
|
2387
|
-
scriptType: "module" | "text/javascript" | false
|
|
2388
|
-
environment: RawEnvironment
|
|
2389
|
-
compareBeforeEmit: boolean
|
|
2390
|
-
}
|
|
2391
|
-
|
|
2392
|
-
export interface RawParserOptions {
|
|
2393
|
-
type: "asset" | "css" | "css/auto" | "css/module" | "javascript" | "javascript/auto" | "javascript/dynamic" | "javascript/esm" | "json"
|
|
2394
|
-
asset?: RawAssetParserOptions
|
|
2395
|
-
css?: RawCssParserOptions
|
|
2396
|
-
cssAuto?: RawCssAutoParserOptions
|
|
2397
|
-
cssModule?: RawCssModuleParserOptions
|
|
2398
|
-
javascript?: RawJavascriptParserOptions
|
|
2399
|
-
json?: RawJsonParserOptions
|
|
2400
|
-
}
|
|
2401
|
-
|
|
2402
|
-
export interface RawPathData {
|
|
2403
|
-
filename?: string
|
|
2404
|
-
contentHash?: string
|
|
2405
|
-
url?: string
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
|
-
export interface RawProgressPluginOptions {
|
|
2409
|
-
prefix?: string
|
|
2410
|
-
profile?: boolean
|
|
2411
|
-
template?: string
|
|
2412
|
-
tick?: string | Array<string>
|
|
2413
|
-
progressChars?: string
|
|
2414
|
-
handler?: (percent: number, msg: string, items: string[]) => void
|
|
2415
|
-
}
|
|
2416
|
-
|
|
2417
|
-
export interface RawProvideOptions {
|
|
2418
|
-
key: string
|
|
2419
|
-
shareKey: string
|
|
2420
|
-
shareScope: string
|
|
2421
|
-
version?: string | false | undefined
|
|
2422
|
-
eager: boolean
|
|
2423
|
-
singleton?: boolean
|
|
2424
|
-
requiredVersion?: string | false | undefined
|
|
2425
|
-
strictVersion?: boolean
|
|
2426
|
-
}
|
|
2427
|
-
|
|
2428
|
-
export interface RawRelated {
|
|
2429
|
-
sourceMap?: string
|
|
2430
|
-
}
|
|
2431
|
-
|
|
2432
|
-
export interface RawRemoteOptions {
|
|
2433
|
-
key: string
|
|
2434
|
-
external: Array<string>
|
|
2435
|
-
shareScope: string
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
export interface RawResolveOptions {
|
|
2439
|
-
preferRelative?: boolean
|
|
2440
|
-
preferAbsolute?: boolean
|
|
2441
|
-
extensions?: Array<string>
|
|
2442
|
-
mainFiles?: Array<string>
|
|
2443
|
-
mainFields?: Array<string>
|
|
2444
|
-
conditionNames?: Array<string>
|
|
2445
|
-
alias?: Array<RawAliasOptionItem> | false
|
|
2446
|
-
fallback?: Array<RawAliasOptionItem> | false
|
|
2447
|
-
symlinks?: boolean
|
|
2448
|
-
tsconfig?: RawResolveTsconfigOptions
|
|
2449
|
-
modules?: Array<string>
|
|
2450
|
-
byDependency?: Record<string, RawResolveOptions>
|
|
2451
|
-
fullySpecified?: boolean
|
|
2452
|
-
exportsFields?: Array<string>
|
|
2453
|
-
descriptionFiles?: Array<string>
|
|
2454
|
-
enforceExtension?: boolean
|
|
2455
|
-
importsFields?: Array<string>
|
|
2456
|
-
extensionAlias?: Record<string, Array<string>>
|
|
2457
|
-
aliasFields?: Array<string>
|
|
2458
|
-
restrictions?: (string | RegExp)[]
|
|
2459
|
-
roots?: Array<string>
|
|
2460
|
-
pnp?: boolean
|
|
2461
|
-
}
|
|
2462
|
-
|
|
2463
|
-
export interface RawResolveOptionsWithDependencyType {
|
|
2464
|
-
preferRelative?: boolean
|
|
2465
|
-
preferAbsolute?: boolean
|
|
2466
|
-
extensions?: Array<string>
|
|
2467
|
-
mainFiles?: Array<string>
|
|
2468
|
-
mainFields?: Array<string>
|
|
2469
|
-
conditionNames?: Array<string>
|
|
2470
|
-
alias?: Array<RawAliasOptionItem> | false
|
|
2471
|
-
fallback?: Array<RawAliasOptionItem> | false
|
|
2472
|
-
symlinks?: boolean
|
|
2473
|
-
tsconfig?: RawResolveTsconfigOptions
|
|
2474
|
-
modules?: Array<string>
|
|
2475
|
-
byDependency?: Record<string, RawResolveOptions>
|
|
2476
|
-
fullySpecified?: boolean
|
|
2477
|
-
exportsFields?: Array<string>
|
|
2478
|
-
descriptionFiles?: Array<string>
|
|
2479
|
-
enforceExtension?: boolean
|
|
2480
|
-
importsFields?: Array<string>
|
|
2481
|
-
extensionAlias?: Record<string, Array<string>>
|
|
2482
|
-
aliasFields?: Array<string>
|
|
2483
|
-
restrictions?: (string | RegExp)[]
|
|
2484
|
-
roots?: Array<string>
|
|
2485
|
-
dependencyCategory?: string
|
|
2486
|
-
resolveToContext?: boolean
|
|
2487
|
-
pnp?: boolean
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
export interface RawResolveTsconfigOptions {
|
|
2491
|
-
configFile: string
|
|
2492
|
-
referencesType: "auto" | "manual" | "disabled"
|
|
2493
|
-
references?: Array<string>
|
|
2494
|
-
}
|
|
2495
|
-
|
|
2496
|
-
export interface RawRsdoctorPluginOptions {
|
|
2497
|
-
moduleGraphFeatures: boolean | Array<'graph' | 'ids' | 'sources'>
|
|
2498
|
-
chunkGraphFeatures: boolean | Array<'graph' | 'assets'>
|
|
2499
|
-
}
|
|
2500
|
-
|
|
2501
|
-
export interface RawRslibPluginOptions {
|
|
2502
|
-
interceptApiPlugin: boolean
|
|
2503
|
-
}
|
|
2504
|
-
|
|
2505
|
-
export interface RawRspackFuture {
|
|
2506
|
-
|
|
2507
|
-
}
|
|
2508
|
-
|
|
2509
|
-
export interface RawRstestPluginOptions {
|
|
2510
|
-
injectModulePathName: boolean
|
|
2511
|
-
importMetaPathName: boolean
|
|
2512
|
-
hoistMockModule: boolean
|
|
2513
|
-
manualMockRoot: string
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
|
-
export interface RawRuleSetCondition {
|
|
2517
|
-
type: RawRuleSetConditionType
|
|
2518
|
-
string?: string
|
|
2519
|
-
regexp?: RegExp
|
|
2520
|
-
logical?: Array<RawRuleSetLogicalConditions>
|
|
2521
|
-
array?: Array<RawRuleSetCondition>
|
|
2522
|
-
func?: (value: string) => boolean
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
export declare enum RawRuleSetConditionType {
|
|
2526
|
-
string = 'string',
|
|
2527
|
-
regexp = 'regexp',
|
|
2528
|
-
logical = 'logical',
|
|
2529
|
-
array = 'array',
|
|
2530
|
-
func = 'func'
|
|
2531
|
-
}
|
|
2532
|
-
|
|
2533
|
-
export interface RawRuleSetLogicalConditions {
|
|
2534
|
-
and?: Array<RawRuleSetCondition>
|
|
2535
|
-
or?: Array<RawRuleSetCondition>
|
|
2536
|
-
not?: RawRuleSetCondition
|
|
2537
|
-
}
|
|
2538
|
-
|
|
2539
|
-
export interface RawRuntimeChunkNameFnCtx {
|
|
2540
|
-
name: string
|
|
2541
|
-
}
|
|
2542
|
-
|
|
2543
|
-
export interface RawRuntimeChunkOptions {
|
|
2544
|
-
name: string | ((entrypoint: { name: string }) => string)
|
|
2545
|
-
}
|
|
2546
|
-
|
|
2547
|
-
export interface RawSizeLimitsPluginOptions {
|
|
2548
|
-
assetFilter?: (assetFilename: string) => boolean
|
|
2549
|
-
hints?: "error" | "warning"
|
|
2550
|
-
maxAssetSize?: number
|
|
2551
|
-
maxEntrypointSize?: number
|
|
2552
|
-
}
|
|
2553
|
-
|
|
2554
|
-
export interface RawSplitChunkSizes {
|
|
2555
|
-
sizes: Record<string, number>
|
|
2556
|
-
}
|
|
2557
|
-
|
|
2558
|
-
export interface RawSplitChunksOptions {
|
|
2559
|
-
fallbackCacheGroup?: RawFallbackCacheGroupOptions
|
|
2560
|
-
name?: string | false | Function
|
|
2561
|
-
filename?: JsFilename
|
|
2562
|
-
cacheGroups?: Array<RawCacheGroupOptions>
|
|
2563
|
-
/** What kind of chunks should be selected. */
|
|
2564
|
-
chunks?: RegExp | 'async' | 'initial' | 'all' | Function
|
|
2565
|
-
usedExports?: boolean
|
|
2566
|
-
automaticNameDelimiter?: string
|
|
2567
|
-
maxAsyncRequests?: number
|
|
2568
|
-
maxInitialRequests?: number
|
|
2569
|
-
defaultSizeTypes: Array<string>
|
|
2570
|
-
minChunks?: number
|
|
2571
|
-
hidePathInfo?: boolean
|
|
2572
|
-
minSize?: number | RawSplitChunkSizes
|
|
2573
|
-
minSizeReduction?: number | RawSplitChunkSizes
|
|
2574
|
-
enforceSizeThreshold?: number
|
|
2575
|
-
minRemainingSize?: number | RawSplitChunkSizes
|
|
2576
|
-
maxSize?: number | RawSplitChunkSizes
|
|
2577
|
-
maxAsyncSize?: number | RawSplitChunkSizes
|
|
2578
|
-
maxInitialSize?: number | RawSplitChunkSizes
|
|
2579
|
-
}
|
|
2580
|
-
|
|
2581
|
-
export interface RawStatsOptions {
|
|
2582
|
-
colors: boolean
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
export interface RawStorageOptions {
|
|
2586
|
-
type: "filesystem"
|
|
2587
|
-
directory: string
|
|
2588
|
-
}
|
|
2589
|
-
|
|
2590
|
-
export interface RawSubresourceIntegrityPluginOptions {
|
|
2591
|
-
integrityCallback?: (data: RawIntegrityData) => void
|
|
2592
|
-
hashFuncNames: Array<string>
|
|
2593
|
-
htmlPlugin: "JavaScript" | "Native" | "Disabled"
|
|
2594
|
-
}
|
|
2595
|
-
|
|
2596
|
-
export interface RawSwcJsMinimizerOptions {
|
|
2597
|
-
compress: any
|
|
2598
|
-
mangle: any
|
|
2599
|
-
format: any
|
|
2600
|
-
module?: boolean
|
|
2601
|
-
minify?: boolean
|
|
2602
|
-
}
|
|
2603
|
-
|
|
2604
|
-
export interface RawSwcJsMinimizerRspackPluginOptions {
|
|
2605
|
-
test?: string | RegExp | (string | RegExp)[]
|
|
2606
|
-
include?: string | RegExp | (string | RegExp)[]
|
|
2607
|
-
exclude?: string | RegExp | (string | RegExp)[]
|
|
2608
|
-
extractComments?: RawExtractComments
|
|
2609
|
-
minimizerOptions: RawSwcJsMinimizerOptions
|
|
2610
|
-
}
|
|
2611
|
-
|
|
2612
|
-
export interface RawToOptions {
|
|
2613
|
-
context: string
|
|
2614
|
-
absoluteFilename?: string
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
export interface RawTraceEvent {
|
|
2618
|
-
name: string
|
|
2619
|
-
trackName?: string
|
|
2620
|
-
processName?: string
|
|
2621
|
-
args?: Record<string, string>
|
|
2622
|
-
uuid: number
|
|
2623
|
-
ts: bigint
|
|
2624
|
-
ph: string
|
|
2625
|
-
categories?: Array<string>
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
export interface RawTrustedTypes {
|
|
2629
|
-
policyName?: string
|
|
2630
|
-
onPolicyCreationFailure?: string
|
|
2631
|
-
}
|
|
2632
|
-
|
|
2633
|
-
export interface RealDependencyLocation {
|
|
2634
|
-
start: SourcePosition
|
|
2635
|
-
end?: SourcePosition
|
|
2636
|
-
}
|
|
2637
|
-
|
|
2638
|
-
/**
|
|
2639
|
-
* this is a process level tracing, which means it would be shared by all compilers in the same process
|
|
2640
|
-
* only the first call would take effect, the following calls would be ignored
|
|
2641
|
-
* Some code is modified based on
|
|
2642
|
-
* https://github.com/swc-project/swc/blob/d1d0607158ab40463d1b123fed52cc526eba8385/bindings/binding_core_node/src/util.rs#L29-L58
|
|
2643
|
-
* Apache-2.0 licensed
|
|
2644
|
-
* Author Donny/강동윤
|
|
2645
|
-
* Copyright (c)
|
|
2646
|
-
*/
|
|
2647
|
-
export declare function registerGlobalTrace(filter: string, layer: "logger" | "perfetto" , output: string): void
|
|
2648
|
-
|
|
2649
|
-
export declare enum RegisterJsTapKind {
|
|
2650
|
-
CompilerThisCompilation = 0,
|
|
2651
|
-
CompilerCompilation = 1,
|
|
2652
|
-
CompilerMake = 2,
|
|
2653
|
-
CompilerFinishMake = 3,
|
|
2654
|
-
CompilerShouldEmit = 4,
|
|
2655
|
-
CompilerEmit = 5,
|
|
2656
|
-
CompilerAfterEmit = 6,
|
|
2657
|
-
CompilerAssetEmitted = 7,
|
|
2658
|
-
CompilationBuildModule = 8,
|
|
2659
|
-
CompilationStillValidModule = 9,
|
|
2660
|
-
CompilationSucceedModule = 10,
|
|
2661
|
-
CompilationExecuteModule = 11,
|
|
2662
|
-
CompilationFinishModules = 12,
|
|
2663
|
-
CompilationOptimizeModules = 13,
|
|
2664
|
-
CompilationAfterOptimizeModules = 14,
|
|
2665
|
-
CompilationOptimizeTree = 15,
|
|
2666
|
-
CompilationOptimizeChunkModules = 16,
|
|
2667
|
-
CompilationAdditionalTreeRuntimeRequirements = 17,
|
|
2668
|
-
CompilationRuntimeRequirementInTree = 18,
|
|
2669
|
-
CompilationRuntimeModule = 19,
|
|
2670
|
-
CompilationChunkHash = 20,
|
|
2671
|
-
CompilationChunkAsset = 21,
|
|
2672
|
-
CompilationProcessAssets = 22,
|
|
2673
|
-
CompilationAfterProcessAssets = 23,
|
|
2674
|
-
CompilationSeal = 24,
|
|
2675
|
-
CompilationAfterSeal = 25,
|
|
2676
|
-
NormalModuleFactoryBeforeResolve = 26,
|
|
2677
|
-
NormalModuleFactoryFactorize = 27,
|
|
2678
|
-
NormalModuleFactoryResolve = 28,
|
|
2679
|
-
NormalModuleFactoryAfterResolve = 29,
|
|
2680
|
-
NormalModuleFactoryCreateModule = 30,
|
|
2681
|
-
NormalModuleFactoryResolveForScheme = 31,
|
|
2682
|
-
ContextModuleFactoryBeforeResolve = 32,
|
|
2683
|
-
ContextModuleFactoryAfterResolve = 33,
|
|
2684
|
-
JavascriptModulesChunkHash = 34,
|
|
2685
|
-
HtmlPluginBeforeAssetTagGeneration = 35,
|
|
2686
|
-
HtmlPluginAlterAssetTags = 36,
|
|
2687
|
-
HtmlPluginAlterAssetTagGroups = 37,
|
|
2688
|
-
HtmlPluginAfterTemplateExecution = 38,
|
|
2689
|
-
HtmlPluginBeforeEmit = 39,
|
|
2690
|
-
HtmlPluginAfterEmit = 40,
|
|
2691
|
-
RuntimePluginCreateScript = 41,
|
|
2692
|
-
RuntimePluginLinkPreload = 42,
|
|
2693
|
-
RuntimePluginLinkPrefetch = 43,
|
|
2694
|
-
RsdoctorPluginModuleGraph = 44,
|
|
2695
|
-
RsdoctorPluginChunkGraph = 45,
|
|
2696
|
-
RsdoctorPluginModuleIds = 46,
|
|
2697
|
-
RsdoctorPluginModuleSources = 47,
|
|
2698
|
-
RsdoctorPluginAssets = 48
|
|
2699
|
-
}
|
|
2700
|
-
|
|
2701
|
-
export interface RegisterJsTaps {
|
|
2702
|
-
registerCompilerThisCompilationTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }>
|
|
2703
|
-
registerCompilerCompilationTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }>
|
|
2704
|
-
registerCompilerMakeTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => Promise<void>); stage: number; }>
|
|
2705
|
-
registerCompilerFinishMakeTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }>
|
|
2706
|
-
registerCompilerShouldEmitTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => boolean | undefined); stage: number; }>
|
|
2707
|
-
registerCompilerEmitTaps: (stages: Array<number>) => Array<{ function: (() => Promise<void>); stage: number; }>
|
|
2708
|
-
registerCompilerAfterEmitTaps: (stages: Array<number>) => Array<{ function: (() => Promise<void>); stage: number; }>
|
|
2709
|
-
registerCompilerAssetEmittedTaps: (stages: Array<number>) => Array<{ function: ((arg: JsAssetEmittedArgs) => Promise<void>); stage: number; }>
|
|
2710
|
-
registerCompilationBuildModuleTaps: (stages: Array<number>) => Array<{ function: ((arg: Module) => void); stage: number; }>
|
|
2711
|
-
registerCompilationStillValidModuleTaps: (stages: Array<number>) => Array<{ function: ((arg: Module) => void); stage: number; }>
|
|
2712
|
-
registerCompilationSucceedModuleTaps: (stages: Array<number>) => Array<{ function: ((arg: Module) => void); stage: number; }>
|
|
2713
|
-
registerCompilationExecuteModuleTaps: (stages: Array<number>) => Array<{ function: ((arg: JsExecuteModuleArg) => void); stage: number; }>
|
|
2714
|
-
registerCompilationAdditionalTreeRuntimeRequirementsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsAdditionalTreeRuntimeRequirementsArg) => JsAdditionalTreeRuntimeRequirementsResult | undefined); stage: number; }>
|
|
2715
|
-
registerCompilationRuntimeRequirementInTreeTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRuntimeRequirementInTreeArg) => JsRuntimeRequirementInTreeResult | undefined); stage: number; }>
|
|
2716
|
-
registerCompilationRuntimeModuleTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRuntimeModuleArg) => JsRuntimeModule | undefined); stage: number; }>
|
|
2717
|
-
registerCompilationFinishModulesTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => Promise<void>); stage: number; }>
|
|
2718
|
-
registerCompilationOptimizeModulesTaps: (stages: Array<number>) => Array<{ function: (() => boolean | undefined); stage: number; }>
|
|
2719
|
-
registerCompilationAfterOptimizeModulesTaps: (stages: Array<number>) => Array<{ function: (() => void); stage: number; }>
|
|
2720
|
-
registerCompilationOptimizeTreeTaps: (stages: Array<number>) => Array<{ function: (() => Promise<void>); stage: number; }>
|
|
2721
|
-
registerCompilationOptimizeChunkModulesTaps: (stages: Array<number>) => Array<{ function: (() => Promise<boolean | undefined>); stage: number; }>
|
|
2722
|
-
registerCompilationChunkHashTaps: (stages: Array<number>) => Array<{ function: ((arg: Chunk) => Buffer); stage: number; }>
|
|
2723
|
-
registerCompilationChunkAssetTaps: (stages: Array<number>) => Array<{ function: ((arg: JsChunkAssetArgs) => void); stage: number; }>
|
|
2724
|
-
registerCompilationProcessAssetsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => Promise<void>); stage: number; }>
|
|
2725
|
-
registerCompilationAfterProcessAssetsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }>
|
|
2726
|
-
registerCompilationSealTaps: (stages: Array<number>) => Array<{ function: (() => void); stage: number; }>
|
|
2727
|
-
registerCompilationAfterSealTaps: (stages: Array<number>) => Array<{ function: (() => Promise<void>); stage: number; }>
|
|
2728
|
-
registerNormalModuleFactoryBeforeResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: JsBeforeResolveArgs) => Promise<[boolean | undefined, JsBeforeResolveArgs]>); stage: number; }>
|
|
2729
|
-
registerNormalModuleFactoryFactorizeTaps: (stages: Array<number>) => Array<{ function: ((arg: JsFactorizeArgs) => Promise<JsFactorizeArgs>); stage: number; }>
|
|
2730
|
-
registerNormalModuleFactoryResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: JsResolveArgs) => Promise<JsResolveArgs>); stage: number; }>
|
|
2731
|
-
registerNormalModuleFactoryResolveForSchemeTaps: (stages: Array<number>) => Array<{ function: ((arg: JsResolveForSchemeArgs) => Promise<[boolean | undefined, JsResolveForSchemeArgs]>); stage: number; }>
|
|
2732
|
-
registerNormalModuleFactoryAfterResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: JsAfterResolveData) => Promise<[boolean | undefined, JsCreateData | undefined]>); stage: number; }>
|
|
2733
|
-
registerNormalModuleFactoryCreateModuleTaps: (stages: Array<number>) => Array<{ function: ((arg: JsNormalModuleFactoryCreateModuleArgs) => Promise<void>); stage: number; }>
|
|
2734
|
-
registerContextModuleFactoryBeforeResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: false | JsContextModuleFactoryBeforeResolveData) => Promise<false | JsContextModuleFactoryBeforeResolveData>); stage: number; }>
|
|
2735
|
-
registerContextModuleFactoryAfterResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: false | JsContextModuleFactoryAfterResolveData) => Promise<false | JsContextModuleFactoryAfterResolveData>); stage: number; }>
|
|
2736
|
-
registerJavascriptModulesChunkHashTaps: (stages: Array<number>) => Array<{ function: ((arg: Chunk) => Buffer); stage: number; }>
|
|
2737
|
-
registerHtmlPluginBeforeAssetTagGenerationTaps: (stages: Array<number>) => Array<{ function: ((arg: JsBeforeAssetTagGenerationData) => JsBeforeAssetTagGenerationData); stage: number; }>
|
|
2738
|
-
registerHtmlPluginAlterAssetTagsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsAlterAssetTagsData) => JsAlterAssetTagsData); stage: number; }>
|
|
2739
|
-
registerHtmlPluginAlterAssetTagGroupsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsAlterAssetTagGroupsData) => JsAlterAssetTagGroupsData); stage: number; }>
|
|
2740
|
-
registerHtmlPluginAfterTemplateExecutionTaps: (stages: Array<number>) => Array<{ function: ((arg: JsAfterTemplateExecutionData) => JsAfterTemplateExecutionData); stage: number; }>
|
|
2741
|
-
registerHtmlPluginBeforeEmitTaps: (stages: Array<number>) => Array<{ function: ((arg: JsBeforeEmitData) => JsBeforeEmitData); stage: number; }>
|
|
2742
|
-
registerHtmlPluginAfterEmitTaps: (stages: Array<number>) => Array<{ function: ((arg: JsAfterEmitData) => JsAfterEmitData); stage: number; }>
|
|
2743
|
-
registerRuntimePluginCreateScriptTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCreateScriptData) => String); stage: number; }>
|
|
2744
|
-
registerRuntimePluginLinkPreloadTaps: (stages: Array<number>) => Array<{ function: ((arg: JsLinkPreloadData) => String); stage: number; }>
|
|
2745
|
-
registerRuntimePluginLinkPrefetchTaps: (stages: Array<number>) => Array<{ function: ((arg: JsLinkPrefetchData) => String); stage: number; }>
|
|
2746
|
-
registerRsdoctorPluginModuleGraphTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorModuleGraph) => Promise<boolean | undefined>); stage: number; }>
|
|
2747
|
-
registerRsdoctorPluginChunkGraphTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorChunkGraph) => Promise<boolean | undefined>); stage: number; }>
|
|
2748
|
-
registerRsdoctorPluginModuleIdsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorModuleIdsPatch) => Promise<boolean | undefined>); stage: number; }>
|
|
2749
|
-
registerRsdoctorPluginModuleSourcesTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorModuleSourcesPatch) => Promise<boolean | undefined>); stage: number; }>
|
|
2750
|
-
registerRsdoctorPluginAssetsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorAssetPatch) => Promise<boolean | undefined>); stage: number; }>
|
|
2751
|
-
}
|
|
2752
|
-
|
|
2753
|
-
export interface SourceMapDevToolPluginOptions {
|
|
2754
|
-
append?: (false | null) | string | Function
|
|
2755
|
-
columns?: boolean
|
|
2756
|
-
fallbackModuleFilenameTemplate?: string | ((info: RawModuleFilenameTemplateFnCtx) => string)
|
|
2757
|
-
fileContext?: string
|
|
2758
|
-
filename?: (false | null) | string
|
|
2759
|
-
module?: boolean
|
|
2760
|
-
moduleFilenameTemplate?: string | ((info: RawModuleFilenameTemplateFnCtx) => string)
|
|
2761
|
-
namespace?: string
|
|
2762
|
-
noSources?: boolean
|
|
2763
|
-
publicPath?: string
|
|
2764
|
-
sourceRoot?: string
|
|
2765
|
-
test?: string | RegExp | (string | RegExp)[]
|
|
2766
|
-
include?: string | RegExp | (string | RegExp)[]
|
|
2767
|
-
exclude?: string | RegExp | (string | RegExp)[]
|
|
2768
|
-
debugIds?: boolean
|
|
2769
|
-
}
|
|
2770
|
-
|
|
2771
|
-
export interface SourcePosition {
|
|
2772
|
-
line: number
|
|
2773
|
-
column?: number
|
|
2774
|
-
}
|
|
2775
|
-
|
|
2776
|
-
export declare function syncTraceEvent(events: Array<RawTraceEvent>): void
|
|
2777
|
-
|
|
2778
|
-
export interface SyntheticDependencyLocation {
|
|
2779
|
-
name: string
|
|
2780
|
-
}
|
|
2781
|
-
|
|
2782
|
-
export interface ThreadsafeNodeFS {
|
|
2783
|
-
writeFile: (name: string, content: Buffer) => Promise<void>
|
|
2784
|
-
removeFile: (name: string) => Promise<void>
|
|
2785
|
-
mkdir: (name: string) => Promise<void>
|
|
2786
|
-
mkdirp: (name: string) => Promise<string | void>
|
|
2787
|
-
removeDirAll: (name: string) => Promise<string | void>
|
|
2788
|
-
readDir: (name: string) => Promise<string[] | void>
|
|
2789
|
-
readFile: (name: string) => Promise<Buffer | string | void>
|
|
2790
|
-
stat: (name: string) => Promise<NodeFsStats | void>
|
|
2791
|
-
lstat: (name: string) => Promise<NodeFsStats | void>
|
|
2792
|
-
realpath: (name: string) => Promise<string | void>
|
|
2793
|
-
open: (name: string, flags: string) => Promise<number | void>
|
|
2794
|
-
rename: (from: string, to: string) => Promise<void>
|
|
2795
|
-
close: (fd: number) => Promise<void>
|
|
2796
|
-
write: (fd: number, content: Buffer, position: number) => Promise<number | void>
|
|
2797
|
-
writeAll: (fd: number, content: Buffer) => Promise<number | void>
|
|
2798
|
-
read: (fd: number, length: number, position: number) => Promise<Buffer | void>
|
|
2799
|
-
readUntil: (fd: number, code: number, position: number) => Promise<Buffer | void>
|
|
2800
|
-
readToEnd: (fd: number, position: number) => Promise<Buffer | void>
|
|
2801
|
-
chmod?: (name: string, mode: number) => Promise<void>
|
|
2802
|
-
}
|
|
2803
|
-
|
|
2804
|
-
export declare function transform(source: string, options: string): Promise<TransformOutput>
|
|
2805
4
|
|
|
2806
|
-
|
|
2807
|
-
code: string
|
|
2808
|
-
map?: string
|
|
2809
|
-
diagnostics: Array<string>
|
|
2810
|
-
}
|
|
5
|
+
import * as binding from "./napi-binding";
|
|
2811
6
|
|
|
2812
|
-
export
|
|
7
|
+
export * from "./napi-binding"
|
|
8
|
+
export default binding;
|