@rspack-canary/core 1.5.7-canary-a3406c0a-20250922173625 → 1.5.8-canary-6c1a40e3-20250925175235
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Compiler.d.ts +45 -32
- package/dist/MultiCompiler.d.ts +5 -2
- package/dist/RuntimeModule.d.ts +1 -1
- 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/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -2
- 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 +1 -1
- 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/FlagDependencyUsagePlugin.d.ts +1 -2
- 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/MangleExportsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -2
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.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 +1 -2
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RslibPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RstestPlugin.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/SubresourceIntegrityPlugin.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 +2 -2
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/types.d.ts +2 -0
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +1 -1
- package/dist/index.js +40 -38
- package/dist/schema/config.d.ts +4 -0
- package/dist/schema/loaders.d.ts +1 -0
- package/dist/worker.js +3 -3
- package/package.json +3 -3
package/dist/Compiler.d.ts
CHANGED
|
@@ -34,40 +34,53 @@ export interface AssetEmittedInfo {
|
|
|
34
34
|
targetPath: string;
|
|
35
35
|
compilation: Compilation;
|
|
36
36
|
}
|
|
37
|
+
export type CompilerHooks = {
|
|
38
|
+
done: liteTapable.AsyncSeriesHook<Stats>;
|
|
39
|
+
afterDone: liteTapable.SyncHook<Stats>;
|
|
40
|
+
thisCompilation: liteTapable.SyncHook<[Compilation, CompilationParams]>;
|
|
41
|
+
compilation: liteTapable.SyncHook<[Compilation, CompilationParams]>;
|
|
42
|
+
invalid: liteTapable.SyncHook<[string | null, number]>;
|
|
43
|
+
compile: liteTapable.SyncHook<[CompilationParams]>;
|
|
44
|
+
normalModuleFactory: liteTapable.SyncHook<NormalModuleFactory>;
|
|
45
|
+
contextModuleFactory: liteTapable.SyncHook<ContextModuleFactory>;
|
|
46
|
+
initialize: liteTapable.SyncHook<[]>;
|
|
47
|
+
shouldEmit: liteTapable.SyncBailHook<[Compilation], boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Called when infrastructure logging is triggered, allowing plugins to intercept, modify, or handle log messages.
|
|
50
|
+
* If the hook returns `true`, the default infrastructure logging will be prevented.
|
|
51
|
+
* If it returns `undefined`, the default logging will proceed.
|
|
52
|
+
* @param name - The name of the logger
|
|
53
|
+
* @param type - The log type (e.g., 'log', 'warn', 'error', ...)
|
|
54
|
+
* @param args - An array of arguments passed to the logging method
|
|
55
|
+
*/
|
|
56
|
+
infrastructureLog: liteTapable.SyncBailHook<[
|
|
57
|
+
string,
|
|
58
|
+
string,
|
|
59
|
+
any[]
|
|
60
|
+
], true | void>;
|
|
61
|
+
beforeRun: liteTapable.AsyncSeriesHook<[Compiler]>;
|
|
62
|
+
run: liteTapable.AsyncSeriesHook<[Compiler]>;
|
|
63
|
+
emit: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
64
|
+
assetEmitted: liteTapable.AsyncSeriesHook<[string, AssetEmittedInfo]>;
|
|
65
|
+
afterEmit: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
66
|
+
failed: liteTapable.SyncHook<[Error]>;
|
|
67
|
+
shutdown: liteTapable.AsyncSeriesHook<[]>;
|
|
68
|
+
watchRun: liteTapable.AsyncSeriesHook<[Compiler]>;
|
|
69
|
+
watchClose: liteTapable.SyncHook<[]>;
|
|
70
|
+
environment: liteTapable.SyncHook<[]>;
|
|
71
|
+
afterEnvironment: liteTapable.SyncHook<[]>;
|
|
72
|
+
afterPlugins: liteTapable.SyncHook<[Compiler]>;
|
|
73
|
+
afterResolvers: liteTapable.SyncHook<[Compiler]>;
|
|
74
|
+
make: liteTapable.AsyncParallelHook<[Compilation]>;
|
|
75
|
+
beforeCompile: liteTapable.AsyncSeriesHook<[CompilationParams]>;
|
|
76
|
+
afterCompile: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
77
|
+
finishMake: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
78
|
+
entryOption: liteTapable.SyncBailHook<[string, EntryNormalized], any>;
|
|
79
|
+
additionalPass: liteTapable.AsyncSeriesHook<[]>;
|
|
80
|
+
};
|
|
37
81
|
declare class Compiler {
|
|
38
82
|
#private;
|
|
39
|
-
hooks:
|
|
40
|
-
done: liteTapable.AsyncSeriesHook<Stats>;
|
|
41
|
-
afterDone: liteTapable.SyncHook<Stats>;
|
|
42
|
-
thisCompilation: liteTapable.SyncHook<[Compilation, CompilationParams]>;
|
|
43
|
-
compilation: liteTapable.SyncHook<[Compilation, CompilationParams]>;
|
|
44
|
-
invalid: liteTapable.SyncHook<[string | null, number]>;
|
|
45
|
-
compile: liteTapable.SyncHook<[CompilationParams]>;
|
|
46
|
-
normalModuleFactory: liteTapable.SyncHook<NormalModuleFactory>;
|
|
47
|
-
contextModuleFactory: liteTapable.SyncHook<ContextModuleFactory>;
|
|
48
|
-
initialize: liteTapable.SyncHook<[]>;
|
|
49
|
-
shouldEmit: liteTapable.SyncBailHook<[Compilation], boolean>;
|
|
50
|
-
infrastructureLog: liteTapable.SyncBailHook<[string, string, any[]], true>;
|
|
51
|
-
beforeRun: liteTapable.AsyncSeriesHook<[Compiler]>;
|
|
52
|
-
run: liteTapable.AsyncSeriesHook<[Compiler]>;
|
|
53
|
-
emit: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
54
|
-
assetEmitted: liteTapable.AsyncSeriesHook<[string, AssetEmittedInfo]>;
|
|
55
|
-
afterEmit: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
56
|
-
failed: liteTapable.SyncHook<[Error]>;
|
|
57
|
-
shutdown: liteTapable.AsyncSeriesHook<[]>;
|
|
58
|
-
watchRun: liteTapable.AsyncSeriesHook<[Compiler]>;
|
|
59
|
-
watchClose: liteTapable.SyncHook<[]>;
|
|
60
|
-
environment: liteTapable.SyncHook<[]>;
|
|
61
|
-
afterEnvironment: liteTapable.SyncHook<[]>;
|
|
62
|
-
afterPlugins: liteTapable.SyncHook<[Compiler]>;
|
|
63
|
-
afterResolvers: liteTapable.SyncHook<[Compiler]>;
|
|
64
|
-
make: liteTapable.AsyncParallelHook<[Compilation]>;
|
|
65
|
-
beforeCompile: liteTapable.AsyncSeriesHook<[CompilationParams]>;
|
|
66
|
-
afterCompile: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
67
|
-
finishMake: liteTapable.AsyncSeriesHook<[Compilation]>;
|
|
68
|
-
entryOption: liteTapable.SyncBailHook<[string, EntryNormalized], any>;
|
|
69
|
-
additionalPass: liteTapable.AsyncSeriesHook<[]>;
|
|
70
|
-
};
|
|
83
|
+
hooks: CompilerHooks;
|
|
71
84
|
webpack: typeof rspack;
|
|
72
85
|
rspack: typeof rspack;
|
|
73
86
|
name?: string;
|
package/dist/MultiCompiler.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import * as liteTapable from "@rspack/lite-tapable";
|
|
11
|
-
import type { CompilationParams, Compiler, RspackOptions } from ".";
|
|
11
|
+
import type { CompilationParams, Compiler, CompilerHooks, RspackOptions } from ".";
|
|
12
12
|
import type { WatchOptions } from "./config";
|
|
13
13
|
import MultiStats from "./MultiStats";
|
|
14
14
|
import MultiWatching from "./MultiWatching";
|
|
@@ -32,7 +32,10 @@ export declare class MultiCompiler {
|
|
|
32
32
|
run: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[Compiler]>>;
|
|
33
33
|
watchClose: liteTapable.SyncHook<[]>;
|
|
34
34
|
watchRun: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[Compiler]>>;
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
|
+
* @see {@link CompilerHooks['infrastructureLog']}
|
|
37
|
+
*/
|
|
38
|
+
infrastructureLog: liteTapable.MultiHook<CompilerHooks["infrastructureLog"]>;
|
|
36
39
|
};
|
|
37
40
|
_options: MultiCompilerOptions;
|
|
38
41
|
running: boolean;
|
package/dist/RuntimeModule.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class RuntimeModule {
|
|
|
13
13
|
static STAGE_BASIC: RuntimeModuleStage;
|
|
14
14
|
static STAGE_ATTACH: RuntimeModuleStage;
|
|
15
15
|
static STAGE_TRIGGER: RuntimeModuleStage;
|
|
16
|
-
static __to_binding(
|
|
16
|
+
static __to_binding(module: RuntimeModule): JsAddingRuntimeModule;
|
|
17
17
|
private _name;
|
|
18
18
|
private _stage;
|
|
19
19
|
fullHash: boolean;
|
|
@@ -2,7 +2,7 @@ export declare const APIPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const ArrayPushCallbackChunkFormatPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const AssetModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const AsyncWebAssemblyModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -33,7 +33,7 @@ export declare const BannerPlugin: {
|
|
|
33
33
|
new (args: BannerPluginArgument): {
|
|
34
34
|
name: string;
|
|
35
35
|
_args: [args: BannerPluginArgument];
|
|
36
|
-
affectedHooks:
|
|
36
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
37
37
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
38
38
|
apply(compiler: import("..").Compiler): void;
|
|
39
39
|
};
|
|
@@ -7,7 +7,7 @@ export declare const BundlerInfoRspackPlugin: {
|
|
|
7
7
|
new (options: BundleInfoOptions): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [options: BundleInfoOptions];
|
|
10
|
-
affectedHooks:
|
|
10
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
11
11
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: import("..").Compiler): void;
|
|
13
13
|
};
|
|
@@ -2,7 +2,7 @@ export declare const ChunkPrefetchPreloadPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const CommonJsChunkFormatPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const ContextReplacementPlugin: {
|
|
|
2
2
|
new (resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -7,7 +7,7 @@ export declare const CopyRspackPlugin: {
|
|
|
7
7
|
new (copy: CopyRspackPluginOptions): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [copy: CopyRspackPluginOptions];
|
|
10
|
-
affectedHooks:
|
|
10
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
11
11
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: import("..").Compiler): void;
|
|
13
13
|
};
|
|
@@ -14,7 +14,7 @@ export declare const CssChunkingPlugin: {
|
|
|
14
14
|
new (options?: CssChunkingPluginOptions | undefined): {
|
|
15
15
|
name: string;
|
|
16
16
|
_args: [options?: CssChunkingPluginOptions | undefined];
|
|
17
|
-
affectedHooks:
|
|
17
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
18
18
|
raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
|
|
19
19
|
apply(compiler: import("..").Compiler): void;
|
|
20
20
|
};
|
|
@@ -2,7 +2,7 @@ export declare const CssModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const DataUriPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ export declare const DefinePlugin: {
|
|
|
3
3
|
new (define: DefinePluginOptions): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [define: DefinePluginOptions];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
5
4
|
name: BuiltinPluginName;
|
|
6
5
|
affectedHooks: "compilation";
|
|
7
|
-
raw(
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
8
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
5
4
|
name: BuiltinPluginName;
|
|
6
5
|
affectedHooks: "compilation";
|
|
7
|
-
raw(
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
8
7
|
}
|
|
@@ -5,7 +5,7 @@ export declare const DllEntryPlugin: {
|
|
|
5
5
|
new (context: string, entries: string[], options: DllEntryPluginOptions): {
|
|
6
6
|
name: string;
|
|
7
7
|
_args: [context: string, entries: string[], options: DllEntryPluginOptions];
|
|
8
|
-
affectedHooks:
|
|
8
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
9
9
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
10
10
|
apply(compiler: import("..").Compiler): void;
|
|
11
11
|
};
|
|
@@ -4,7 +4,7 @@ export declare const DllReferenceAgencyPlugin: {
|
|
|
4
4
|
new (options: RawDllReferenceAgencyPluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [options: RawDllReferenceAgencyPluginOptions];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
@@ -2,7 +2,7 @@ export declare const ElectronTargetPlugin: {
|
|
|
2
2
|
new (context?: string | undefined): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [context?: string | undefined];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -12,7 +12,7 @@ declare const EnableChunkLoadingPluginInner: {
|
|
|
12
12
|
new (type: string): {
|
|
13
13
|
name: string;
|
|
14
14
|
_args: [type: string];
|
|
15
|
-
affectedHooks:
|
|
15
|
+
affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
|
|
16
16
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
17
17
|
apply(compiler: Compiler): void;
|
|
18
18
|
};
|
|
@@ -2,7 +2,7 @@ export declare const EnableWasmLoadingPlugin: {
|
|
|
2
2
|
new (type: string): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [type: string];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const EnsureChunkConditionsPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -19,7 +19,7 @@ declare const OriginEntryPlugin: {
|
|
|
19
19
|
new (context: string, entry: string, options?: string | EntryOptions | undefined): {
|
|
20
20
|
name: string;
|
|
21
21
|
_args: [context: string, entry: string, options?: string | EntryOptions | undefined];
|
|
22
|
-
affectedHooks:
|
|
22
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
23
23
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
24
24
|
apply(compiler: import("..").Compiler): void;
|
|
25
25
|
};
|
|
@@ -4,7 +4,7 @@ export declare const EvalDevToolModulePlugin: {
|
|
|
4
4
|
new (options: RawEvalDevToolModulePluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [options: RawEvalDevToolModulePluginOptions];
|
|
7
|
-
affectedHooks:
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | 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 EvalSourceMapDevToolPlugin: {
|
|
|
3
3
|
new (options: SourceMapDevToolPluginOptions): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [options: SourceMapDevToolPluginOptions];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
@@ -2,7 +2,7 @@ export declare const FetchCompileAsyncWasmPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const FileUriPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const FlagAllModulesAsUsedPlugin: {
|
|
|
2
2
|
new (explanation: string): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [explanation: string];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const FlagDependencyExportsPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
5
4
|
private global;
|
|
6
5
|
name: BuiltinPluginName;
|
|
7
6
|
affectedHooks: "compilation";
|
|
8
7
|
constructor(global: boolean);
|
|
9
|
-
raw(
|
|
8
|
+
raw(): BuiltinPlugin;
|
|
10
9
|
}
|
|
@@ -2,7 +2,7 @@ export declare const HttpExternalsRspackPlugin: {
|
|
|
2
2
|
new (css: boolean, webAsync: boolean): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [css: boolean, webAsync: boolean];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -12,7 +12,7 @@ export declare const IgnorePlugin: {
|
|
|
12
12
|
new (options: IgnorePluginOptions): {
|
|
13
13
|
name: string;
|
|
14
14
|
_args: [options: IgnorePluginOptions];
|
|
15
|
-
affectedHooks:
|
|
15
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
16
16
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
17
17
|
apply(compiler: import("..").Compiler): void;
|
|
18
18
|
};
|
|
@@ -2,7 +2,7 @@ export declare const InferAsyncModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -3,7 +3,7 @@ export declare const JsLoaderRspackPlugin: {
|
|
|
3
3
|
new (compiler: Compiler): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [compiler: Compiler];
|
|
6
|
-
affectedHooks:
|
|
6
|
+
affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
|
|
7
7
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: Compiler): void;
|
|
9
9
|
};
|
|
@@ -2,7 +2,7 @@ export declare const JsonModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -10,7 +10,7 @@ export declare const LibManifestPlugin: {
|
|
|
10
10
|
new (options: LibManifestPluginOptions): {
|
|
11
11
|
name: string;
|
|
12
12
|
_args: [options: LibManifestPluginOptions];
|
|
13
|
-
affectedHooks:
|
|
13
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
14
14
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
15
15
|
apply(compiler: import("..").Compiler): void;
|
|
16
16
|
};
|
|
@@ -25,7 +25,7 @@ export declare const LightningCssMinimizerRspackPlugin: {
|
|
|
25
25
|
new (options?: LightningCssMinimizerRspackPluginOptions | undefined): {
|
|
26
26
|
name: string;
|
|
27
27
|
_args: [options?: LightningCssMinimizerRspackPluginOptions | undefined];
|
|
28
|
-
affectedHooks:
|
|
28
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
29
29
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
30
30
|
apply(compiler: import("..").Compiler): void;
|
|
31
31
|
};
|
|
@@ -7,7 +7,7 @@ export declare const LimitChunkCountPlugin: {
|
|
|
7
7
|
new (options: LimitChunkCountOptions): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [options: LimitChunkCountOptions];
|
|
10
|
-
affectedHooks:
|
|
10
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
11
11
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: import("..").Compiler): void;
|
|
13
13
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
-
import type { Compiler } from "../Compiler";
|
|
3
2
|
import { RspackBuiltinPlugin } from "./base";
|
|
4
3
|
export declare class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
5
4
|
private deterministic;
|
|
6
5
|
name: BuiltinPluginName;
|
|
7
6
|
affectedHooks: "compilation";
|
|
8
7
|
constructor(deterministic: boolean);
|
|
9
|
-
raw(
|
|
8
|
+
raw(): BuiltinPlugin;
|
|
10
9
|
}
|
|
@@ -2,7 +2,7 @@ export declare const MergeDuplicateChunksPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const ModuleChunkFormatPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks:
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
|
8
8
|
};
|