@rspack/core 1.3.0-beta.0 → 1.3.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/dist/ChunkGraph.d.ts +1 -1
- package/dist/Watching.d.ts +4 -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/CircularDependencyRspackPlugin.d.ts +59 -0
- 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/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/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +36 -0
- 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/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/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.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/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 +1 -1
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +3 -1
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +4 -0
- package/dist/config/normalization.d.ts +2 -0
- package/dist/config/types.d.ts +19 -6
- package/dist/config/zod.d.ts +457 -511
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/cssExtractLoader.js +1 -1
- package/dist/exports.d.ts +4 -1
- package/dist/index.js +503 -527
- package/dist/stats/statsFactoryUtils.d.ts +8 -8
- package/dist/util/MergeCaller.d.ts +1 -0
- package/hot/lazy-compilation-node.js +5 -1
- package/hot/lazy-compilation-web.js +6 -10
- package/package.json +6 -6
- package/dist/builtin-plugin/lazy-compilation/backend.d.ts +0 -52
- package/dist/builtin-plugin/lazy-compilation/plugin.d.ts +0 -13
package/dist/ChunkGraph.d.ts
CHANGED
@@ -15,7 +15,7 @@ export declare class ChunkGraph {
|
|
15
15
|
getChunkModulesIterableBySourceType(chunk: Chunk, sourceType: string): Iterable<Module>;
|
16
16
|
getModuleChunks(module: Module): Chunk[];
|
17
17
|
getModuleChunksIterable(module: Module): Iterable<Chunk>;
|
18
|
-
getModuleId(module: Module): string | null;
|
18
|
+
getModuleId(module: Module): string | number | null;
|
19
19
|
getModuleHash(module: Module, runtime: RuntimeSpec): string | null;
|
20
20
|
getBlockChunkGroup(depBlock: AsyncDependenciesBlock): ChunkGroup | null;
|
21
21
|
}
|
package/dist/Watching.d.ts
CHANGED
@@ -24,7 +24,10 @@ export declare class Watching {
|
|
24
24
|
watch(files: Iterable<string>, dirs: Iterable<string>, missing: Iterable<string>): void;
|
25
25
|
close(callback?: () => void): void;
|
26
26
|
invalidate(callback?: Callback<Error, void>): void;
|
27
|
-
|
27
|
+
/**
|
28
|
+
* @internal This is not a public API yet, still unstable, might change in the future
|
29
|
+
*/
|
30
|
+
invalidateWithChangesAndRemovals(changedFiles?: Set<string>, removedFiles?: Set<string>, callback?: Callback<Error, void>): void;
|
28
31
|
/**
|
29
32
|
* The reason why this is _done instead of #done, is that in Webpack,
|
30
33
|
* it will rewrite this function to another function
|
@@ -3,7 +3,7 @@ export declare const APIPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
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" | "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" | "
|
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" | "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" | "
|
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" | "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" | "
|
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" | "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" | "
|
36
|
+
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" | "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" | "
|
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" | "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" | "
|
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" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { BuiltinPluginName, type JsCompilation } from "@rspack/binding";
|
2
|
+
import type { Module } from "../Module";
|
3
|
+
export type CircularDependencyRspackPluginOptions = {
|
4
|
+
/**
|
5
|
+
* When `true`, the plugin will emit `ERROR` diagnostics rather than the
|
6
|
+
* default `WARN` level.
|
7
|
+
*/
|
8
|
+
failOnError?: boolean;
|
9
|
+
/**
|
10
|
+
* When `true`, asynchronous imports like `import("some-module")` will not
|
11
|
+
* be considered connections that can create cycles.
|
12
|
+
*/
|
13
|
+
allowAsyncCycles?: boolean;
|
14
|
+
/**
|
15
|
+
* Cycles containing any module name that matches this regex will _not_ be
|
16
|
+
* counted as a cycle.
|
17
|
+
*/
|
18
|
+
exclude?: RegExp;
|
19
|
+
/**
|
20
|
+
* List of dependency connections that should not count for creating cycles.
|
21
|
+
* Connections are represented as `[from, to]`, where each entry is matched
|
22
|
+
* against the _identifier_ for that module in the connection. The
|
23
|
+
* identifier contains the full, unique path for the module, including all
|
24
|
+
* of the loaders that were applied to it and any request parameters.
|
25
|
+
*
|
26
|
+
* When an entry is a String, it is tested as a _substring_ of the
|
27
|
+
* identifier. For example, the entry "components/Button" would match the
|
28
|
+
* module "app/design/components/Button.tsx". When the entry is a RegExp,
|
29
|
+
* it is tested against the entire identifier.
|
30
|
+
*/
|
31
|
+
ignoredConnections?: Array<[string | RegExp, string | RegExp]>;
|
32
|
+
/**
|
33
|
+
* Called once for every detected cycle. Providing this handler overrides the
|
34
|
+
* default behavior of adding diagnostics to the compilation.
|
35
|
+
*/
|
36
|
+
onDetected?(entrypoint: Module, modules: string[], compilation: JsCompilation): void;
|
37
|
+
/**
|
38
|
+
* Called once for every detected cycle that was ignored because of a rule,
|
39
|
+
* either from `exclude` or `ignoredConnections`.
|
40
|
+
*/
|
41
|
+
onIgnored?(entrypoint: Module, modules: string[], compilation: JsCompilation): void;
|
42
|
+
/**
|
43
|
+
* Called before cycle detection begins.
|
44
|
+
*/
|
45
|
+
onStart?(compilation: JsCompilation): void;
|
46
|
+
/**
|
47
|
+
* Called after cycle detection finishes.
|
48
|
+
*/
|
49
|
+
onEnd?(compilation: JsCompilation): void;
|
50
|
+
};
|
51
|
+
export declare const CircularDependencyRspackPlugin: {
|
52
|
+
new (options: CircularDependencyRspackPluginOptions): {
|
53
|
+
name: BuiltinPluginName;
|
54
|
+
_args: [options: CircularDependencyRspackPluginOptions];
|
55
|
+
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" | "additionalPass" | undefined;
|
56
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
57
|
+
apply(compiler: import("..").Compiler): void;
|
58
|
+
};
|
59
|
+
};
|
@@ -3,7 +3,7 @@ export declare const CommonJsChunkFormatPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
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" | "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" | "
|
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" | "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" | "
|
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" | "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" | "
|
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" | "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" | "
|
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" | "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" | "
|
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" | "additionalPass" | undefined;
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
10
10
|
};
|
@@ -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" | "
|
9
|
+
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" | "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" | "
|
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" | "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" | "
|
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" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -13,7 +13,7 @@ declare const EnableChunkLoadingPluginInner: {
|
|
13
13
|
new (type: string): {
|
14
14
|
name: BuiltinPluginName;
|
15
15
|
_args: [type: string];
|
16
|
-
affectedHooks: "done" | "
|
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" | "additionalPass" | undefined;
|
17
17
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
18
18
|
apply(compiler: Compiler): void;
|
19
19
|
};
|
@@ -3,7 +3,7 @@ export declare const EnableWasmLoadingPlugin: {
|
|
3
3
|
new (type: string): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [type: string];
|
6
|
-
affectedHooks: "done" | "
|
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" | "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 EnsureChunkConditionsPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
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" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -19,7 +19,7 @@ declare const OriginEntryPlugin: {
|
|
19
19
|
new (context: string, entry: string, options?: string | EntryOptions | undefined): {
|
20
20
|
name: BuiltinPluginName;
|
21
21
|
_args: [context: string, entry: string, options?: string | EntryOptions | undefined];
|
22
|
-
affectedHooks: "done" | "
|
22
|
+
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" | "additionalPass" | 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: BuiltinPluginName;
|
6
6
|
_args: [options: RawEvalDevToolModulePluginOptions];
|
7
|
-
affectedHooks: "done" | "
|
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" | "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 EvalSourceMapDevToolPlugin: {
|
|
3
3
|
new (options: RawSourceMapDevToolPluginOptions): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [options: RawSourceMapDevToolPluginOptions];
|
6
|
-
affectedHooks: "done" | "
|
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" | "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 FetchCompileAsyncWasmPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
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" | "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 FileUriPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
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" | "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 FlagAllModulesAsUsedPlugin: {
|
|
3
3
|
new (explanation: string): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [explanation: string];
|
6
|
-
affectedHooks: "done" | "
|
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" | "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 FlagDependencyExportsPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
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" | "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 HttpExternalsRspackPlugin: {
|
|
3
3
|
new (css: boolean, webAsync: boolean): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [css: boolean, webAsync: boolean];
|
6
|
-
affectedHooks: "done" | "
|
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" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName, type RawHttpUriPluginOptions } from "@rspack/binding";
|
2
|
+
import type { Compiler } from "../Compiler";
|
3
|
+
import { RspackBuiltinPlugin } from "./base";
|
4
|
+
export type HttpUriPluginOptionsAllowedUris = (string | RegExp)[];
|
5
|
+
export type HttpUriPluginOptions = {
|
6
|
+
/**
|
7
|
+
* A list of allowed URIs
|
8
|
+
*/
|
9
|
+
allowedUris: HttpUriPluginOptionsAllowedUris;
|
10
|
+
/**
|
11
|
+
* Define the location to store the lockfile
|
12
|
+
*/
|
13
|
+
lockfileLocation?: string;
|
14
|
+
/**
|
15
|
+
* Define the location for caching remote resources
|
16
|
+
*/
|
17
|
+
cacheLocation?: string | false;
|
18
|
+
/**
|
19
|
+
* Detect changes to remote resources and upgrade them automatically
|
20
|
+
*/
|
21
|
+
upgrade?: boolean;
|
22
|
+
/**
|
23
|
+
* Custom http client
|
24
|
+
*/
|
25
|
+
httpClient?: RawHttpUriPluginOptions["httpClient"];
|
26
|
+
};
|
27
|
+
/**
|
28
|
+
* Plugin that allows loading modules from HTTP URLs
|
29
|
+
*/
|
30
|
+
export declare class HttpUriPlugin extends RspackBuiltinPlugin {
|
31
|
+
private options;
|
32
|
+
name: BuiltinPluginName;
|
33
|
+
affectedHooks: "compilation";
|
34
|
+
constructor(options: HttpUriPluginOptions);
|
35
|
+
raw(compiler: Compiler): BuiltinPlugin | undefined;
|
36
|
+
}
|
@@ -12,7 +12,7 @@ export declare const IgnorePlugin: {
|
|
12
12
|
new (options: IgnorePluginOptions): {
|
13
13
|
name: BuiltinPluginName;
|
14
14
|
_args: [options: IgnorePluginOptions];
|
15
|
-
affectedHooks: "done" | "
|
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" | "additionalPass" | undefined;
|
16
16
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
17
17
|
apply(compiler: import("..").Compiler): void;
|
18
18
|
};
|
@@ -3,7 +3,7 @@ export declare const InferAsyncModulesPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
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" | "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 JsLoaderRspackPlugin: {
|
|
4
4
|
new (compiler: Compiler): {
|
5
5
|
name: BuiltinPluginName;
|
6
6
|
_args: [compiler: Compiler];
|
7
|
-
affectedHooks: "done" | "
|
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" | "additionalPass" | undefined;
|
8
8
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
9
9
|
apply(compiler: Compiler): void;
|
10
10
|
};
|
@@ -3,7 +3,7 @@ export declare const JsonModulesPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
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" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -11,7 +11,7 @@ export declare const LibManifestPlugin: {
|
|
11
11
|
new (options: LibManifestPluginOptions): {
|
12
12
|
name: BuiltinPluginName;
|
13
13
|
_args: [options: LibManifestPluginOptions];
|
14
|
-
affectedHooks: "done" | "
|
14
|
+
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" | "additionalPass" | undefined;
|
15
15
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
16
16
|
apply(compiler: import("..").Compiler): void;
|
17
17
|
};
|
@@ -26,7 +26,7 @@ export declare const LightningCssMinimizerRspackPlugin: {
|
|
26
26
|
new (options?: LightningCssMinimizerRspackPluginOptions | undefined): {
|
27
27
|
name: BuiltinPluginName;
|
28
28
|
_args: [options?: LightningCssMinimizerRspackPluginOptions | undefined];
|
29
|
-
affectedHooks: "done" | "
|
29
|
+
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" | "additionalPass" | undefined;
|
30
30
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
31
31
|
apply(compiler: import("..").Compiler): void;
|
32
32
|
};
|
@@ -8,7 +8,7 @@ export declare const LimitChunkCountPlugin: {
|
|
8
8
|
new (options: LimitChunkCountOptions): {
|
9
9
|
name: BuiltinPluginName;
|
10
10
|
_args: [options: LimitChunkCountOptions];
|
11
|
-
affectedHooks: "done" | "
|
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" | "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 MergeDuplicateChunksPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
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" | "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 ModuleChunkFormatPlugin: {
|
|
3
3
|
new (): {
|
4
4
|
name: BuiltinPluginName;
|
5
5
|
_args: [];
|
6
|
-
affectedHooks: "done" | "
|
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" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|