@rspack/core 1.1.8 → 1.2.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiled/@swc/types/index.d.ts +20 -5
- package/compiled/@swc/types/license +1 -1
- package/compiled/@swc/types/package.json +1 -1
- package/dist/Chunk.d.ts +21 -28
- package/dist/ChunkGraph.d.ts +8 -4
- package/dist/ChunkGroup.d.ts +13 -19
- package/dist/Compilation.d.ts +5 -0
- package/dist/Compiler.d.ts +1 -0
- package/dist/Entrypoint.d.ts +4 -3
- package/dist/ExportsInfo.d.ts +20 -0
- package/dist/FileSystem.d.ts +17 -17
- package/dist/Module.d.ts +1 -0
- package/dist/ModuleGraph.d.ts +6 -0
- package/dist/ModuleGraphConnection.d.ts +11 -0
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +8 -10
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +11 -3
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +8 -10
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +10 -0
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/adapter.d.ts +2 -4
- package/dist/config/adapterRuleUse.d.ts +32 -8
- package/dist/config/normalization.d.ts +18 -2
- package/dist/config/types.d.ts +32 -10
- package/dist/config/zod.d.ts +1287 -1261
- package/dist/container/ContainerPlugin.d.ts +1 -1
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +1 -0
- package/dist/index.js +1351 -1303
- package/dist/util/hash/wasm-hash.d.ts +1 -1
- package/dist/util/identifier.d.ts +0 -36
- package/package.json +6 -6
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Assumptions } from "./assumptions";
|
|
1
2
|
export interface Plugin {
|
|
2
3
|
(module: Program): Program;
|
|
3
4
|
}
|
|
@@ -82,7 +83,7 @@ export interface JsFormatOptions {
|
|
|
82
83
|
* Currently noop.
|
|
83
84
|
* @alias inline_script
|
|
84
85
|
*/
|
|
85
|
-
inlineScript?:
|
|
86
|
+
inlineScript?: boolean;
|
|
86
87
|
/**
|
|
87
88
|
* Currently noop.
|
|
88
89
|
* @alias keep_numbers
|
|
@@ -465,6 +466,7 @@ export interface EnvConfig {
|
|
|
465
466
|
forceAllTransforms?: boolean;
|
|
466
467
|
}
|
|
467
468
|
export interface JscConfig {
|
|
469
|
+
assumptions?: Assumptions;
|
|
468
470
|
loose?: boolean;
|
|
469
471
|
/**
|
|
470
472
|
* Defaults to EsParserConfig
|
|
@@ -490,6 +492,8 @@ export interface JscConfig {
|
|
|
490
492
|
optimizeHygiene?: boolean;
|
|
491
493
|
/**
|
|
492
494
|
* Preserve `with` in imports and exports.
|
|
495
|
+
*
|
|
496
|
+
* @deprecated Use `keepImportAssertions` instead.
|
|
493
497
|
*/
|
|
494
498
|
keepImportAttributes?: boolean;
|
|
495
499
|
/**
|
|
@@ -511,6 +515,12 @@ export interface JscConfig {
|
|
|
511
515
|
* Second parameter of tuple is JSON based configuration for the plugin.
|
|
512
516
|
*/
|
|
513
517
|
plugins?: Array<[string, Record<string, any>]>;
|
|
518
|
+
/**
|
|
519
|
+
* Run Wasm plugins before stripping TypeScript or decorators.
|
|
520
|
+
*
|
|
521
|
+
* See https://github.com/swc-project/swc/issues/9132 for more details.
|
|
522
|
+
*/
|
|
523
|
+
runPluginFirst?: boolean;
|
|
514
524
|
/**
|
|
515
525
|
* Disable builtin transforms. If enabled, only Wasm plugins are used.
|
|
516
526
|
*/
|
|
@@ -519,6 +529,14 @@ export interface JscConfig {
|
|
|
519
529
|
* Emit isolated dts files for each module.
|
|
520
530
|
*/
|
|
521
531
|
emitIsolatedDts?: boolean;
|
|
532
|
+
/**
|
|
533
|
+
* Disable all lint rules.
|
|
534
|
+
*/
|
|
535
|
+
disableAllLints?: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* Keep import assertions.
|
|
538
|
+
*/
|
|
539
|
+
keepImportAssertions?: boolean;
|
|
522
540
|
};
|
|
523
541
|
baseUrl?: string;
|
|
524
542
|
paths?: {
|
|
@@ -527,7 +545,7 @@ export interface JscConfig {
|
|
|
527
545
|
minify?: JsMinifyOptions;
|
|
528
546
|
preserveAllComments?: boolean;
|
|
529
547
|
}
|
|
530
|
-
export type JscTarget = "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "esnext";
|
|
548
|
+
export type JscTarget = "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "esnext";
|
|
531
549
|
export type ParserConfig = TsParserConfig | EsParserConfig;
|
|
532
550
|
export interface TsParserConfig {
|
|
533
551
|
syntax: "typescript";
|
|
@@ -1676,10 +1694,7 @@ export interface TsPropertySignature extends Node, HasSpan {
|
|
|
1676
1694
|
key: Expression;
|
|
1677
1695
|
computed: boolean;
|
|
1678
1696
|
optional: boolean;
|
|
1679
|
-
init?: Expression;
|
|
1680
|
-
params: TsFnParameter[];
|
|
1681
1697
|
typeAnnotation?: TsTypeAnnotation;
|
|
1682
|
-
typeParams?: TsTypeParameterDeclaration;
|
|
1683
1698
|
}
|
|
1684
1699
|
export interface TsGetterSignature extends Node, HasSpan {
|
|
1685
1700
|
type: "TsGetterSignature";
|
|
@@ -186,7 +186,7 @@ APPENDIX: How to apply the Apache License to your work.
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2024 SWC contributors.
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@swc/types","author":"강동윤 <kdy1997.dev@gmail.com>","version":"0.1.
|
|
1
|
+
{"name":"@swc/types","author":"강동윤 <kdy1997.dev@gmail.com>","version":"0.1.17","license":"Apache-2.0","types":"index.d.ts","type":"commonjs"}
|
package/dist/Chunk.d.ts
CHANGED
|
@@ -1,40 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Compilation } from ".";
|
|
1
|
+
import type { JsChunk } from "@rspack/binding";
|
|
3
2
|
import { ChunkGroup } from "./ChunkGroup";
|
|
4
3
|
export declare class Chunk {
|
|
5
4
|
#private;
|
|
6
|
-
name?:
|
|
7
|
-
id?:
|
|
8
|
-
ids: ReadonlyArray<string>;
|
|
9
|
-
idNameHints: ReadonlyArray<string>;
|
|
10
|
-
filenameTemplate?:
|
|
11
|
-
cssFilenameTemplate?:
|
|
12
|
-
files: ReadonlySet<string>;
|
|
13
|
-
runtime: ReadonlySet<string>;
|
|
14
|
-
hash?:
|
|
15
|
-
contentHash: Readonly<Record<string, string>>;
|
|
16
|
-
renderedHash?:
|
|
17
|
-
chunkReason?:
|
|
18
|
-
auxiliaryFiles: ReadonlySet<string>;
|
|
19
|
-
static __from_binding(
|
|
20
|
-
static
|
|
21
|
-
constructor(
|
|
5
|
+
readonly name?: string;
|
|
6
|
+
readonly id?: string;
|
|
7
|
+
readonly ids: ReadonlyArray<string>;
|
|
8
|
+
readonly idNameHints: ReadonlyArray<string>;
|
|
9
|
+
readonly filenameTemplate?: string;
|
|
10
|
+
readonly cssFilenameTemplate?: string;
|
|
11
|
+
readonly files: ReadonlySet<string>;
|
|
12
|
+
readonly runtime: ReadonlySet<string>;
|
|
13
|
+
readonly hash?: string;
|
|
14
|
+
readonly contentHash: Readonly<Record<string, string>>;
|
|
15
|
+
readonly renderedHash?: string;
|
|
16
|
+
readonly chunkReason?: string;
|
|
17
|
+
readonly auxiliaryFiles: ReadonlySet<string>;
|
|
18
|
+
static __from_binding(binding: JsChunk): Chunk;
|
|
19
|
+
static __to_binding(chunk: Chunk): JsChunk;
|
|
20
|
+
constructor(binding: JsChunk);
|
|
22
21
|
isOnlyInitial(): boolean;
|
|
23
22
|
canBeInitial(): boolean;
|
|
24
23
|
hasRuntime(): boolean;
|
|
25
|
-
get groupsIterable():
|
|
24
|
+
get groupsIterable(): ReadonlySet<ChunkGroup>;
|
|
26
25
|
getChunkMaps(realHash: boolean): {
|
|
27
26
|
hash: Record<string | number, string>;
|
|
28
27
|
contentHash: Record<string | number, Record<string, string>>;
|
|
29
28
|
name: Record<string | number, string>;
|
|
30
29
|
};
|
|
31
|
-
getAllAsyncChunks():
|
|
32
|
-
getAllInitialChunks():
|
|
33
|
-
getAllReferencedChunks():
|
|
34
|
-
/**
|
|
35
|
-
* Note: This is not a webpack public API, maybe removed in future.
|
|
36
|
-
*
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
|
-
__internal__innerUkey(): number;
|
|
30
|
+
getAllAsyncChunks(): ReadonlySet<Chunk>;
|
|
31
|
+
getAllInitialChunks(): ReadonlySet<Chunk>;
|
|
32
|
+
getAllReferencedChunks(): ReadonlySet<Chunk>;
|
|
40
33
|
}
|
package/dist/ChunkGraph.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import type { JsChunkGraph } from "@rspack/binding";
|
|
1
2
|
import { Chunk } from "./Chunk";
|
|
2
|
-
import type { Compilation } from "./Compilation";
|
|
3
3
|
import { Module } from "./Module";
|
|
4
4
|
export declare class ChunkGraph {
|
|
5
|
-
private
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
#private;
|
|
6
|
+
static __from_binding(binding: JsChunkGraph): ChunkGraph;
|
|
7
|
+
private constructor();
|
|
8
|
+
getChunkModules(chunk: Chunk): ReadonlyArray<Module>;
|
|
8
9
|
getChunkModulesIterable(chunk: Chunk): Iterable<Module>;
|
|
9
10
|
getChunkEntryModulesIterable(chunk: Chunk): Iterable<Module>;
|
|
10
11
|
getChunkEntryDependentChunksIterable(chunk: Chunk): Iterable<Chunk>;
|
|
11
12
|
getChunkModulesIterableBySourceType(chunk: Chunk, sourceType: string): Iterable<Module>;
|
|
13
|
+
getModuleChunks(module: Module): Chunk[];
|
|
14
|
+
getModuleChunksIterable(module: Module): Iterable<Chunk>;
|
|
15
|
+
getModuleId(module: Module): string | null;
|
|
12
16
|
}
|
package/dist/ChunkGroup.d.ts
CHANGED
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JsChunkGroup } from "@rspack/binding";
|
|
2
2
|
import { Chunk } from "./Chunk";
|
|
3
|
+
import { Module } from "./Module";
|
|
3
4
|
export declare class ChunkGroup {
|
|
4
5
|
#private;
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
readonly chunks: ReadonlyArray<Chunk>;
|
|
7
|
+
readonly index?: number;
|
|
8
|
+
readonly name?: string;
|
|
9
|
+
readonly origins: ReadonlyArray<ChunkGroupOrigin>;
|
|
10
|
+
static __from_binding(binding: JsChunkGroup): ChunkGroup;
|
|
11
|
+
protected constructor(inner: JsChunkGroup);
|
|
7
12
|
getFiles(): ReadonlyArray<string>;
|
|
8
13
|
getParents(): ReadonlyArray<ChunkGroup>;
|
|
9
14
|
isInitial(): boolean;
|
|
10
|
-
get chunks(): ReadonlyArray<Chunk>;
|
|
11
|
-
get index(): Readonly<number | undefined>;
|
|
12
|
-
get name(): Readonly<string | undefined>;
|
|
13
|
-
get origins(): ReadonlyArray<JsChunkGroupOrigin>;
|
|
14
|
-
/**
|
|
15
|
-
* Note: This is not a webpack public API, maybe removed in future.
|
|
16
|
-
*
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
__internal__innerUkey(): number;
|
|
20
|
-
/**
|
|
21
|
-
* Note: This is not a webpack public API, maybe removed in future.
|
|
22
|
-
*
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
|
-
__internal__innerCompilation(): JsCompilation;
|
|
26
15
|
}
|
|
16
|
+
interface ChunkGroupOrigin {
|
|
17
|
+
module?: Module;
|
|
18
|
+
request?: string;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
package/dist/Compilation.d.ts
CHANGED
|
@@ -25,7 +25,9 @@ import type { ResolverFactory } from "./ResolverFactory";
|
|
|
25
25
|
import { type RspackError } from "./RspackError";
|
|
26
26
|
import { RuntimeModule } from "./RuntimeModule";
|
|
27
27
|
import { Stats, type StatsAsset, type StatsError, type StatsModule } from "./Stats";
|
|
28
|
+
import type { EntryOptions, EntryPlugin } from "./builtin-plugin";
|
|
28
29
|
import type { Filename, OutputNormalized, RspackOptionsNormalized, RspackPluginInstance, StatsOptions, StatsValue } from "./config";
|
|
30
|
+
import WebpackError from "./lib/WebpackError";
|
|
29
31
|
import { Logger } from "./logging/Logger";
|
|
30
32
|
import { StatsFactory } from "./stats/StatsFactory";
|
|
31
33
|
import { StatsPrinter } from "./stats/StatsPrinter";
|
|
@@ -185,6 +187,7 @@ export declare class Compilation {
|
|
|
185
187
|
runtimeModule: liteTapable.SyncHook<[JsRuntimeModule, Chunk], void>;
|
|
186
188
|
seal: liteTapable.SyncHook<[], void>;
|
|
187
189
|
afterSeal: liteTapable.AsyncSeriesHook<[], void>;
|
|
190
|
+
needAdditionalPass: liteTapable.SyncBailHook<[], boolean>;
|
|
188
191
|
}>;
|
|
189
192
|
name?: string;
|
|
190
193
|
startTime?: number;
|
|
@@ -202,6 +205,7 @@ export declare class Compilation {
|
|
|
202
205
|
fileSystemInfo: {
|
|
203
206
|
createSnapshot(): null;
|
|
204
207
|
};
|
|
208
|
+
needAdditionalPass: boolean;
|
|
205
209
|
constructor(compiler: Compiler, inner: JsCompilation);
|
|
206
210
|
get hash(): Readonly<string | null>;
|
|
207
211
|
get fullHash(): Readonly<string | null>;
|
|
@@ -323,6 +327,7 @@ export declare class Compilation {
|
|
|
323
327
|
createChildCompiler(name: string, outputOptions: OutputNormalized, plugins: RspackPluginInstance[]): Compiler;
|
|
324
328
|
rebuildModule(m: Module, f: (err: Error, m: Module) => void): void;
|
|
325
329
|
addRuntimeModule(chunk: Chunk, runtimeModule: RuntimeModule): void;
|
|
330
|
+
addInclude(context: string, dependency: ReturnType<typeof EntryPlugin.createDependency>, options: EntryOptions, callback: (err?: null | WebpackError, module?: Module) => void): void;
|
|
326
331
|
/**
|
|
327
332
|
* Get the `Source` of a given asset filename.
|
|
328
333
|
*
|
package/dist/Compiler.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ declare class Compiler {
|
|
|
66
66
|
afterCompile: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
67
67
|
finishMake: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
68
68
|
entryOption: liteTapable.SyncBailHook<[string, EntryNormalized], any>;
|
|
69
|
+
additionalPass: liteTapable.AsyncSeriesHook<[]>;
|
|
69
70
|
};
|
|
70
71
|
webpack: typeof rspack;
|
|
71
72
|
rspack: typeof rspack;
|
package/dist/Entrypoint.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JsChunkGroup } from "@rspack/binding";
|
|
2
2
|
import { Chunk } from "./Chunk";
|
|
3
3
|
import { ChunkGroup } from "./ChunkGroup";
|
|
4
4
|
export declare class Entrypoint extends ChunkGroup {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
#private;
|
|
6
|
+
static __from_binding(binding: JsChunkGroup): Entrypoint;
|
|
7
|
+
protected constructor(binding: JsChunkGroup);
|
|
7
8
|
getRuntimeChunk(): Readonly<Chunk | null>;
|
|
8
9
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { JsExportsInfo } from "@rspack/binding";
|
|
2
|
+
type RuntimeSpec = string | string[] | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Unused: 0
|
|
5
|
+
* OnlyPropertiesUsed: 1
|
|
6
|
+
* NoInfo: 2
|
|
7
|
+
* Unknown: 3
|
|
8
|
+
* Used: 4
|
|
9
|
+
*/
|
|
10
|
+
type UsageStateType = 0 | 1 | 2 | 3 | 4;
|
|
11
|
+
export declare class ExportsInfo {
|
|
12
|
+
#private;
|
|
13
|
+
static __from_binding(binding: JsExportsInfo): ExportsInfo;
|
|
14
|
+
private constructor();
|
|
15
|
+
isUsed(runtime: RuntimeSpec): boolean;
|
|
16
|
+
isModuleUsed(runtime: RuntimeSpec): boolean;
|
|
17
|
+
setUsedInUnknownWay(runtime: RuntimeSpec): boolean;
|
|
18
|
+
getUsed(name: string | string[], runtime: RuntimeSpec): UsageStateType;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
package/dist/FileSystem.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import type { NodeFsStats, ThreadsafeNodeFS } from "@rspack/binding";
|
|
2
2
|
import { type IStats, type IntermediateFileSystem, type OutputFileSystem } from "./util/fs";
|
|
3
3
|
declare class ThreadsafeOutputNodeFS implements ThreadsafeNodeFS {
|
|
4
|
-
writeFile: (name: string, content: Buffer) => Promise<void
|
|
5
|
-
removeFile: (name: string) => Promise<void
|
|
6
|
-
mkdir: (name: string) => Promise<void
|
|
7
|
-
mkdirp: (name: string) => Promise<string | void
|
|
8
|
-
removeDirAll: (name: string) => Promise<string | void
|
|
9
|
-
readDir: (name: string) => Promise<string[] | void
|
|
10
|
-
readFile: (name: string) => Promise<Buffer | string | void
|
|
11
|
-
stat: (name: string) => Promise<NodeFsStats | void
|
|
12
|
-
lstat: (name: string) => Promise<NodeFsStats | void
|
|
13
|
-
open: (name: string, flags: string) => Promise<number | void
|
|
14
|
-
rename: (from: string, to: string) => Promise<void
|
|
15
|
-
close: (fd: number) => Promise<void
|
|
16
|
-
write: (fd: number, content: Buffer, position: number) => Promise<number | void
|
|
17
|
-
writeAll: (fd: number, content: Buffer) => Promise<number | void
|
|
18
|
-
read: (fd: number, length: number, position: number) => Promise<Buffer | void
|
|
19
|
-
readUntil: (fd: number, code: number, position: number) => Promise<Buffer | void
|
|
20
|
-
readToEnd: (fd: number, position: number) => Promise<Buffer | void
|
|
4
|
+
writeFile: (name: string, content: Buffer) => Promise<void>;
|
|
5
|
+
removeFile: (name: string) => Promise<void>;
|
|
6
|
+
mkdir: (name: string) => Promise<void>;
|
|
7
|
+
mkdirp: (name: string) => Promise<string | void>;
|
|
8
|
+
removeDirAll: (name: string) => Promise<string | void>;
|
|
9
|
+
readDir: (name: string) => Promise<string[] | void>;
|
|
10
|
+
readFile: (name: string) => Promise<Buffer | string | void>;
|
|
11
|
+
stat: (name: string) => Promise<NodeFsStats | void>;
|
|
12
|
+
lstat: (name: string) => Promise<NodeFsStats | void>;
|
|
13
|
+
open: (name: string, flags: string) => Promise<number | void>;
|
|
14
|
+
rename: (from: string, to: string) => Promise<void>;
|
|
15
|
+
close: (fd: number) => Promise<void>;
|
|
16
|
+
write: (fd: number, content: Buffer, position: number) => Promise<number | void>;
|
|
17
|
+
writeAll: (fd: number, content: Buffer) => Promise<number | void>;
|
|
18
|
+
read: (fd: number, length: number, position: number) => Promise<Buffer | void>;
|
|
19
|
+
readUntil: (fd: number, code: number, position: number) => Promise<Buffer | void>;
|
|
20
|
+
readToEnd: (fd: number, position: number) => Promise<Buffer | void>;
|
|
21
21
|
constructor(fs?: OutputFileSystem);
|
|
22
22
|
static __to_binding(fs?: OutputFileSystem): ThreadsafeOutputNodeFS;
|
|
23
23
|
static __to_binding_stat(stat: IStats): NodeFsStats;
|
package/dist/Module.d.ts
CHANGED
package/dist/ModuleGraph.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import type { JsModuleGraph } from "@rspack/binding";
|
|
2
2
|
import { Dependency } from "./Dependency";
|
|
3
|
+
import { ExportsInfo } from "./ExportsInfo";
|
|
3
4
|
import { Module } from "./Module";
|
|
5
|
+
import { ModuleGraphConnection } from "./ModuleGraphConnection";
|
|
4
6
|
export default class ModuleGraph {
|
|
5
7
|
#private;
|
|
6
8
|
static __from_binding(binding: JsModuleGraph): ModuleGraph;
|
|
7
9
|
private constructor();
|
|
8
10
|
getModule(dependency: Dependency): Module | null;
|
|
11
|
+
getResolvedModule(dependency: Dependency): Module | null;
|
|
9
12
|
getIssuer(module: Module): Module | null;
|
|
13
|
+
getExportsInfo(module: Module): ExportsInfo;
|
|
14
|
+
getConnection(dependency: Dependency): ModuleGraphConnection | null;
|
|
15
|
+
getOutgoingConnections(module: Module): ModuleGraphConnection[];
|
|
10
16
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JsModuleGraphConnection } from "@rspack/binding";
|
|
2
|
+
import { Dependency } from "./Dependency";
|
|
3
|
+
import { Module } from "./Module";
|
|
4
|
+
export declare class ModuleGraphConnection {
|
|
5
|
+
#private;
|
|
6
|
+
readonly module: Module | null;
|
|
7
|
+
readonly dependency: Dependency;
|
|
8
|
+
static __from_binding(binding: JsModuleGraphConnection): ModuleGraphConnection;
|
|
9
|
+
static __to_binding(data: ModuleGraphConnection): JsModuleGraphConnection;
|
|
10
|
+
private constructor();
|
|
11
|
+
}
|
|
@@ -3,7 +3,7 @@ export declare const APIPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const ArrayPushCallbackChunkFormatPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const AssetModulesPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const AsyncWebAssemblyModulesPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -33,7 +33,7 @@ export declare const BannerPlugin: {
|
|
|
33
33
|
new (args: BannerPluginArgument): {
|
|
34
34
|
name: BuiltinPluginName;
|
|
35
35
|
_args: [args: BannerPluginArgument];
|
|
36
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
36
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
37
37
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
38
38
|
apply(compiler: import("..").Compiler): void;
|
|
39
39
|
};
|
|
@@ -8,7 +8,7 @@ export declare const BundlerInfoRspackPlugin: {
|
|
|
8
8
|
new (options: BundleInfoOptions): {
|
|
9
9
|
name: BuiltinPluginName;
|
|
10
10
|
_args: [options: BundleInfoOptions];
|
|
11
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
11
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
12
12
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
13
13
|
apply(compiler: import("..").Compiler): void;
|
|
14
14
|
};
|
|
@@ -3,7 +3,7 @@ export declare const ChunkPrefetchPreloadPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const CommonJsChunkFormatPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const ContextReplacementPlugin: {
|
|
|
3
3
|
new (resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any];
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -8,7 +8,7 @@ export declare const CopyRspackPlugin: {
|
|
|
8
8
|
new (copy: CopyRspackPluginOptions): {
|
|
9
9
|
name: BuiltinPluginName;
|
|
10
10
|
_args: [copy: CopyRspackPluginOptions];
|
|
11
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
11
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
12
12
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
13
13
|
apply(compiler: import("..").Compiler): void;
|
|
14
14
|
};
|
|
@@ -3,7 +3,7 @@ export declare const CssModulesPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const DataUriPlugin: {
|
|
|
3
3
|
new (): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -4,7 +4,7 @@ export declare const DefinePlugin: {
|
|
|
4
4
|
new (define: DefinePluginOptions): {
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [define: DefinePluginOptions];
|
|
7
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
7
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
};
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import type { Compiler } from "../Compiler";
|
|
3
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
4
|
+
export declare class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
5
|
+
name: BuiltinPluginName;
|
|
6
|
+
affectedHooks: "compilation";
|
|
7
|
+
raw(compiler: Compiler): BuiltinPlugin;
|
|
8
|
+
}
|
|
@@ -6,7 +6,7 @@ export declare const DllEntryPlugin: {
|
|
|
6
6
|
new (context: string, entries: string[], options: DllEntryPluginOptions): {
|
|
7
7
|
name: BuiltinPluginName;
|
|
8
8
|
_args: [context: string, entries: string[], options: DllEntryPluginOptions];
|
|
9
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
9
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
10
10
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
11
11
|
apply(compiler: import("..").Compiler): void;
|
|
12
12
|
};
|
|
@@ -4,7 +4,7 @@ export declare const DllReferenceAgencyPlugin: {
|
|
|
4
4
|
new (options: RawDllReferenceAgencyPluginOptions): {
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [options: RawDllReferenceAgencyPluginOptions];
|
|
7
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
7
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ export declare const ElectronTargetPlugin: {
|
|
|
3
3
|
new (context?: string | undefined): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [context?: string | undefined];
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const EnableChunkLoadingPlugin: {
|
|
|
3
3
|
new (type: string): {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [type: string];
|
|
6
|
-
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "
|
|
6
|
+
affectedHooks: "done" | "make" | "environment" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|