@rspack/core 1.0.13 → 1.1.0-beta.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 +1962 -0
- package/compiled/@swc/types/index.js +19 -0
- package/compiled/@swc/types/license +201 -0
- package/compiled/@swc/types/package.json +1 -0
- package/dist/Compilation.d.ts +6 -17
- package/dist/Compiler.d.ts +0 -1
- package/dist/FileSystem.d.ts +7 -3
- package/dist/Module.d.ts +5 -3
- package/dist/NormalModule.d.ts +2 -7
- package/dist/RuntimeGlobals.d.ts +1 -1
- package/dist/builtin-loader/swc/types.d.ts +9 -435
- package/dist/builtin-plugin/APIPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +2 -2
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/BannerPlugin.d.ts +2 -2
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DataUriPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DefinePlugin.d.ts +2 -2
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EntryPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +2 -2
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FileUriPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +2 -2
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +16 -10
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/IgnorePlugin.d.ts +2 -2
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/{LightningCssMiminizerRspackPlugin.d.ts → LightningCssMinimizerRspackPlugin.d.ts} +2 -2
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +2 -2
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProvidePlugin.d.ts +2 -2
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +10 -0
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimePlugin.d.ts +2 -2
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +10 -10
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +2 -2
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +2 -2
- package/dist/builtin-plugin/css-extract/loader.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +4 -2
- package/dist/builtin-plugin/lazy-compilation/backend.d.ts +1 -5
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +2 -2
- package/dist/config/adapter.d.ts +1 -1
- package/dist/config/adapterRuleUse.d.ts +1 -2
- package/dist/config/index.d.ts +1 -0
- package/dist/config/normalization.d.ts +2 -1
- package/dist/config/types.d.ts +889 -3
- package/dist/config/zod.d.ts +1010 -2231
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +2 -2
- package/dist/exports.d.ts +4 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +443 -4852
- package/dist/lib/HookWebpackError.d.ts +1 -1
- package/dist/lib/WebpackError.d.ts +0 -1
- package/dist/node/nodeConsole.d.ts +0 -1
- package/dist/stats/statsFactoryUtils.d.ts +1 -2
- package/dist/util/ArrayQueue.d.ts +1 -9
- package/dist/util/asyncLib.d.ts +54 -0
- package/dist/util/fs.d.ts +0 -3
- package/dist/util/hash/BatchedHash.d.ts +0 -1
- package/dist/util/hash/index.d.ts +0 -1
- package/dist/util/hash/wasm-hash.d.ts +0 -1
- package/dist/util/identifier.d.ts +8 -8
- package/dist/util/index.d.ts +0 -1
- package/dist/util/memoize.d.ts +1 -1
- package/dist/util/webpack.d.ts +1 -1
- package/package.json +6 -6
- package/dist/builtin-loader/swc/react.d.ts +0 -15
|
@@ -4,7 +4,7 @@ export declare const EnableWasmLoadingPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [type: string];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const EnsureChunkConditionsPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -17,8 +17,8 @@ export declare const EntryPlugin: {
|
|
|
17
17
|
name: BuiltinPluginName;
|
|
18
18
|
_args: [context: string, entry: string, options?: string | EntryOptions | undefined];
|
|
19
19
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
20
|
-
raw(compiler: import("
|
|
21
|
-
apply(compiler: import("
|
|
20
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
21
|
+
apply(compiler: import("..").Compiler): void;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export declare function getRawEntryOptions(entry: EntryOptions): JsEntryOptions;
|
|
@@ -5,7 +5,7 @@ export declare const EvalDevToolModulePlugin: {
|
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [options: RawEvalDevToolModulePluginOptions];
|
|
7
7
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -5,7 +5,7 @@ export declare const EvalSourceMapDevToolPlugin: {
|
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [options: SourceMapDevToolPluginOptions];
|
|
7
7
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -5,7 +5,7 @@ export declare const ExternalsPlugin: {
|
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [type: string, externals: Externals];
|
|
7
7
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -4,7 +4,7 @@ export declare const FetchCompileAsyncWasmPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const FileUriPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const FlagDependencyExportsPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const FlagDependencyUsagePlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [global: boolean];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -11,7 +11,7 @@ export type HtmlRspackPluginOptions = {
|
|
|
11
11
|
* The file to write the HTML to. You can specify a subdirectory here too (eg: pages/index.html).
|
|
12
12
|
* @default 'index.html'
|
|
13
13
|
*/
|
|
14
|
-
filename?: string;
|
|
14
|
+
filename?: string | ((entry: string) => string);
|
|
15
15
|
/** The template file path. */
|
|
16
16
|
template?: string;
|
|
17
17
|
/**
|
|
@@ -65,6 +65,15 @@ export type HtmlRspackPluginOptions = {
|
|
|
65
65
|
/** Inject a base tag */
|
|
66
66
|
hash?: boolean;
|
|
67
67
|
};
|
|
68
|
+
declare const HtmlRspackPluginImpl: {
|
|
69
|
+
new (c?: HtmlRspackPluginOptions | undefined): {
|
|
70
|
+
name: BuiltinPluginName;
|
|
71
|
+
_args: [c?: HtmlRspackPluginOptions | undefined];
|
|
72
|
+
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
73
|
+
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
74
|
+
apply(compiler: Compiler): void;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
68
77
|
type ExtraPluginHookData = {
|
|
69
78
|
plugin: {
|
|
70
79
|
options: HtmlRspackPluginOptions;
|
|
@@ -88,17 +97,14 @@ export type HtmlRspackPluginHooks = {
|
|
|
88
97
|
JsAfterEmitData & ExtraPluginHookData
|
|
89
98
|
]>;
|
|
90
99
|
};
|
|
91
|
-
declare const HtmlRspackPlugin: {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
97
|
-
apply(compiler: Compiler): void;
|
|
98
|
-
};
|
|
99
|
-
} & {
|
|
100
|
+
declare const HtmlRspackPlugin: typeof HtmlRspackPluginImpl & {
|
|
101
|
+
/**
|
|
102
|
+
* @deprecated Use `getCompilationHooks` instead.
|
|
103
|
+
*/
|
|
104
|
+
getHooks: (compilation: Compilation) => HtmlRspackPluginHooks;
|
|
100
105
|
getCompilationHooks: (compilation: Compilation) => HtmlRspackPluginHooks;
|
|
101
106
|
getCompilationOptions: (compilation: Compilation) => HtmlRspackPluginOptions | void;
|
|
102
107
|
createHtmlTagObject: (tagName: string, attributes?: Record<string, string | boolean>, innerHTML?: string | undefined) => JsHtmlPluginTag;
|
|
108
|
+
version: number;
|
|
103
109
|
};
|
|
104
110
|
export { HtmlRspackPlugin };
|
|
@@ -4,7 +4,7 @@ export declare const HttpExternalsRspackPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [css: boolean, webAsync: boolean];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -13,7 +13,7 @@ export declare const IgnorePlugin: {
|
|
|
13
13
|
name: BuiltinPluginName;
|
|
14
14
|
_args: [options: IgnorePluginOptions];
|
|
15
15
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
16
|
-
raw(compiler: import("
|
|
17
|
-
apply(compiler: import("
|
|
16
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
17
|
+
apply(compiler: import("..").Compiler): void;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -4,7 +4,7 @@ export declare const InferAsyncModulesPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const JsonModulesPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -22,7 +22,7 @@ export declare const LightningCssMinimizerRspackPlugin: {
|
|
|
22
22
|
name: BuiltinPluginName;
|
|
23
23
|
_args: [options?: LightningCssMinimizerRspackPluginOptions | undefined];
|
|
24
24
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
25
|
-
raw(compiler: import("
|
|
26
|
-
apply(compiler: import("
|
|
25
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
26
|
+
apply(compiler: import("..").Compiler): void;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
@@ -9,7 +9,7 @@ export declare const LimitChunkCountPlugin: {
|
|
|
9
9
|
name: BuiltinPluginName;
|
|
10
10
|
_args: [options: LimitChunkCountOptions];
|
|
11
11
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
12
|
-
raw(compiler: import("
|
|
13
|
-
apply(compiler: import("
|
|
12
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
13
|
+
apply(compiler: import("..").Compiler): void;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
@@ -4,7 +4,7 @@ export declare const MangleExportsPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [deterministic: boolean];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const MergeDuplicateChunksPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const ModuleChunkFormatPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const ModuleConcatenationPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const NamedChunkIdsPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const NamedModuleIdsPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const NaturalChunkIdsPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const NaturalModuleIdsPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const NoEmitOnErrorsPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const NodeTargetPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -5,7 +5,7 @@ export declare const ProgressPlugin: {
|
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [progress?: ProgressPluginArgument];
|
|
7
7
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -5,7 +5,7 @@ export declare const ProvidePlugin: {
|
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [provide: ProvidePluginOptions];
|
|
7
7
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -4,7 +4,7 @@ export declare const RealContentHashPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
export declare const RemoveDuplicateModulesPlugin: {
|
|
3
|
+
new (): {
|
|
4
|
+
name: BuiltinPluginName;
|
|
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" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -4,7 +4,7 @@ export declare const RemoveEmptyChunksPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -5,7 +5,7 @@ export declare const RuntimeChunkPlugin: {
|
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
_args: [options: RawRuntimeChunkOptions];
|
|
7
7
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -4,7 +4,7 @@ export declare const RuntimePlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const SideEffectsFlagPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { BuiltinPluginName } from "@rspack/binding";
|
|
2
2
|
export declare const SizeLimitsPlugin: {
|
|
3
3
|
new (options: {
|
|
4
|
-
assetFilter?: (
|
|
5
|
-
hints?: false | "
|
|
6
|
-
maxAssetSize?: number
|
|
7
|
-
maxEntrypointSize?: number
|
|
4
|
+
assetFilter?: (assetFilename: string) => boolean;
|
|
5
|
+
hints?: false | "warning" | "error";
|
|
6
|
+
maxAssetSize?: number;
|
|
7
|
+
maxEntrypointSize?: number;
|
|
8
8
|
}): {
|
|
9
9
|
name: BuiltinPluginName;
|
|
10
10
|
_args: [options: {
|
|
11
|
-
assetFilter?: (
|
|
12
|
-
hints?: false | "
|
|
13
|
-
maxAssetSize?: number
|
|
14
|
-
maxEntrypointSize?: number
|
|
11
|
+
assetFilter?: (assetFilename: string) => boolean;
|
|
12
|
+
hints?: false | "warning" | "error";
|
|
13
|
+
maxAssetSize?: number;
|
|
14
|
+
maxEntrypointSize?: number;
|
|
15
15
|
}];
|
|
16
16
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
17
|
-
raw(compiler: import("
|
|
18
|
-
apply(compiler: import("
|
|
17
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
18
|
+
apply(compiler: import("..").Compiler): void;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
@@ -17,8 +17,8 @@ export declare const SourceMapDevToolPlugin: {
|
|
|
17
17
|
name: BuiltinPluginName;
|
|
18
18
|
_args: [options: SourceMapDevToolPluginOptions];
|
|
19
19
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
20
|
-
raw(compiler: import("
|
|
21
|
-
apply(compiler: import("
|
|
20
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
21
|
+
apply(compiler: import("..").Compiler): void;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
2
|
import type { Compiler } from "../Compiler";
|
|
3
|
-
import type { OptimizationSplitChunksOptions } from "../config
|
|
3
|
+
import type { OptimizationSplitChunksOptions } from "../config";
|
|
4
4
|
import { RspackBuiltinPlugin } from "./base";
|
|
5
5
|
export declare class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
6
6
|
private options;
|
|
@@ -206,8 +206,8 @@ export declare const SwcJsMinimizerRspackPlugin: {
|
|
|
206
206
|
name: BuiltinPluginName;
|
|
207
207
|
_args: [options?: SwcJsMinimizerRspackPluginOptions | undefined];
|
|
208
208
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
209
|
-
raw(compiler: import("
|
|
210
|
-
apply(compiler: import("
|
|
209
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
210
|
+
apply(compiler: import("..").Compiler): void;
|
|
211
211
|
};
|
|
212
212
|
};
|
|
213
213
|
export {};
|
|
@@ -4,7 +4,7 @@ export declare const WarnCaseSensitiveModulesPlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ export declare const WebWorkerTemplatePlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -2,7 +2,7 @@ import type { LoaderContext, LoaderDefinition } from "../..";
|
|
|
2
2
|
export declare const BASE_URI = "webpack://";
|
|
3
3
|
export declare const MODULE_TYPE = "css/mini-extract";
|
|
4
4
|
export declare const AUTO_PUBLIC_PATH = "__mini_css_extract_plugin_public_path_auto__";
|
|
5
|
-
export declare const ABSOLUTE_PUBLIC_PATH
|
|
5
|
+
export declare const ABSOLUTE_PUBLIC_PATH = "webpack:///mini-css-extract-plugin/";
|
|
6
6
|
export declare const SINGLE_DOT_PATH_SEGMENT = "__mini_css_extract_plugin_single_dot_path_segment__";
|
|
7
7
|
export interface CssExtractRspackLoaderOptions {
|
|
8
8
|
publicPath?: string | ((resourcePath: string, context: string) => string);
|