@rspack/core 1.2.8 → 1.3.0-beta.1

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.
Files changed (91) hide show
  1. package/dist/ChunkGraph.d.ts +4 -5
  2. package/dist/ChunkGroup.d.ts +1 -1
  3. package/dist/Compilation.d.ts +2 -2
  4. package/dist/ConcatenatedModule.d.ts +1 -0
  5. package/dist/ContextModule.d.ts +1 -0
  6. package/dist/ExternalModule.d.ts +1 -0
  7. package/dist/Module.d.ts +15 -51
  8. package/dist/ModuleGraph.d.ts +1 -1
  9. package/dist/ModuleGraphConnection.d.ts +1 -1
  10. package/dist/NormalModule.d.ts +10 -7
  11. package/dist/Resolver.d.ts +2 -0
  12. package/dist/Watching.d.ts +1 -1
  13. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  14. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  15. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  16. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  17. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  18. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  19. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  20. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +59 -0
  21. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  22. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  23. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  24. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  25. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  26. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  27. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  28. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  29. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  30. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  31. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  32. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  33. package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  35. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  38. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  39. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  41. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  42. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  44. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  46. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  47. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
  51. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  52. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  53. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  54. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  55. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
  57. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  58. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  59. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
  60. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  61. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
  62. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  63. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  64. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  65. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  66. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  67. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
  68. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
  69. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  70. package/dist/builtin-plugin/base.d.ts +1 -1
  71. package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
  72. package/dist/builtin-plugin/index.d.ts +2 -1
  73. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +5 -4
  74. package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +4 -0
  75. package/dist/config/adapterRuleUse.d.ts +1 -1
  76. package/dist/config/index.d.ts +0 -1
  77. package/dist/config/types.d.ts +25 -6
  78. package/dist/config/zod.d.ts +373 -482
  79. package/dist/container/ModuleFederationPluginV1.d.ts +1 -1
  80. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  81. package/dist/cssExtractLoader.js +1 -1
  82. package/dist/exports.d.ts +8 -2
  83. package/dist/index.js +2093 -2267
  84. package/dist/stats/statsFactoryUtils.d.ts +8 -8
  85. package/dist/util/MergeCaller.d.ts +1 -0
  86. package/hot/lazy-compilation-node.js +5 -1
  87. package/hot/lazy-compilation-web.js +6 -10
  88. package/package.json +7 -7
  89. package/dist/DependenciesBlock.d.ts +0 -9
  90. package/dist/builtin-plugin/lazy-compilation/backend.d.ts +0 -52
  91. package/dist/builtin-plugin/lazy-compilation/plugin.d.ts +0 -13
@@ -1,9 +1,8 @@
1
- import type { JsChunkGraph } from "@rspack/binding";
1
+ import type { AsyncDependenciesBlock, JsChunkGraph } from "@rspack/binding";
2
2
  import type { RuntimeSpec } from "./util/runtime";
3
3
  import { Chunk } from "./Chunk";
4
4
  import { ChunkGroup } from "./ChunkGroup";
5
- import { DependenciesBlock } from "./DependenciesBlock";
6
- import { Module } from "./Module";
5
+ import type { Module } from "./Module";
7
6
  export declare class ChunkGraph {
8
7
  #private;
9
8
  static __from_binding(binding: JsChunkGraph): ChunkGraph;
@@ -16,7 +15,7 @@ export declare class ChunkGraph {
16
15
  getChunkModulesIterableBySourceType(chunk: Chunk, sourceType: string): Iterable<Module>;
17
16
  getModuleChunks(module: Module): Chunk[];
18
17
  getModuleChunksIterable(module: Module): Iterable<Chunk>;
19
- getModuleId(module: Module): string | null;
18
+ getModuleId(module: Module): string | number | null;
20
19
  getModuleHash(module: Module, runtime: RuntimeSpec): string | null;
21
- getBlockChunkGroup(depBlock: DependenciesBlock): ChunkGroup | null;
20
+ getBlockChunkGroup(depBlock: AsyncDependenciesBlock): ChunkGroup | null;
22
21
  }
@@ -1,6 +1,6 @@
1
1
  import type { JsChunkGroup } from "@rspack/binding";
2
2
  import { Chunk } from "./Chunk";
3
- import { Module } from "./Module";
3
+ import type { Module } from "./Module";
4
4
  export declare class ChunkGroup {
5
5
  #private;
6
6
  readonly chunks: ReadonlyArray<Chunk>;
@@ -18,7 +18,7 @@ import { ChunkGroup } from "./ChunkGroup";
18
18
  import type { Compiler } from "./Compiler";
19
19
  import type { ContextModuleFactory } from "./ContextModuleFactory";
20
20
  import { Entrypoint } from "./Entrypoint";
21
- import { type CodeGenerationResult, Module } from "./Module";
21
+ import type { CodeGenerationResult, Module } from "./Module";
22
22
  import ModuleGraph from "./ModuleGraph";
23
23
  import type { NormalModuleFactory } from "./NormalModuleFactory";
24
24
  import type { ResolverFactory } from "./ResolverFactory";
@@ -308,7 +308,7 @@ export declare class Compilation {
308
308
  };
309
309
  getStats(): Stats;
310
310
  createChildCompiler(name: string, outputOptions: OutputNormalized, plugins: RspackPluginInstance[]): Compiler;
311
- rebuildModule(m: Module, f: (err: Error | null, m: Module | null) => void): void;
311
+ rebuildModule(module: Module, f: (err: Error | null, module: Module | null) => void): void;
312
312
  addRuntimeModule(chunk: Chunk, runtimeModule: RuntimeModule): void;
313
313
  addInclude(context: string, dependency: ReturnType<typeof EntryPlugin.createDependency>, options: EntryOptions, callback: (err?: null | WebpackError, module?: Module) => void): void;
314
314
  /**
@@ -0,0 +1 @@
1
+ export { ConcatenatedModule } from "@rspack/binding";
@@ -0,0 +1 @@
1
+ export { ContextModule } from "@rspack/binding";
@@ -0,0 +1 @@
1
+ export { ExternalModule } from "@rspack/binding";
package/dist/Module.d.ts CHANGED
@@ -1,17 +1,10 @@
1
- import type { AssetInfo, Dependency, JsCodegenerationResult, JsContextModuleFactoryAfterResolveData, JsContextModuleFactoryBeforeResolveData, JsCreateData, JsFactoryMeta, JsLibIdentOptions } from "@rspack/binding";
2
- import type { JsModule } from "@rspack/binding";
1
+ import * as binding from "@rspack/binding";
3
2
  import type { Source } from "../compiled/webpack-sources";
4
- import { DependenciesBlock } from "./DependenciesBlock";
5
- export type ResourceData = {
6
- resource: string;
7
- path: string;
8
- query?: string;
9
- fragment?: string;
10
- };
3
+ import type { ResourceData } from "./Resolver";
11
4
  export type ResourceDataWithData = ResourceData & {
12
5
  data?: Record<string, any>;
13
6
  };
14
- export type CreateData = Partial<JsCreateData>;
7
+ export type CreateData = Partial<binding.JsCreateData>;
15
8
  export type ContextInfo = {
16
9
  issuer: string;
17
10
  issuerLayer?: string | null;
@@ -31,8 +24,8 @@ export declare class ContextModuleFactoryBeforeResolveData {
31
24
  request: string;
32
25
  regExp: RegExp | undefined;
33
26
  recursive: boolean;
34
- static __from_binding(binding: JsContextModuleFactoryBeforeResolveData): ContextModuleFactoryBeforeResolveData;
35
- static __to_binding(data: ContextModuleFactoryBeforeResolveData): JsContextModuleFactoryBeforeResolveData;
27
+ static __from_binding(binding: binding.JsContextModuleFactoryBeforeResolveData): ContextModuleFactoryBeforeResolveData;
28
+ static __to_binding(data: ContextModuleFactoryBeforeResolveData): binding.JsContextModuleFactoryBeforeResolveData;
36
29
  private constructor();
37
30
  }
38
31
  export type ContextModuleFactoryBeforeResolveResult = false | ContextModuleFactoryBeforeResolveData;
@@ -43,51 +36,22 @@ export declare class ContextModuleFactoryAfterResolveData {
43
36
  request: string;
44
37
  regExp: RegExp | undefined;
45
38
  recursive: boolean;
46
- readonly dependencies: Dependency[];
47
- static __from_binding(binding: JsContextModuleFactoryAfterResolveData): ContextModuleFactoryAfterResolveData;
48
- static __to_binding(data: ContextModuleFactoryAfterResolveData): JsContextModuleFactoryAfterResolveData;
39
+ readonly dependencies: binding.Dependency[];
40
+ static __from_binding(binding: binding.JsContextModuleFactoryAfterResolveData): ContextModuleFactoryAfterResolveData;
41
+ static __to_binding(data: ContextModuleFactoryAfterResolveData): binding.JsContextModuleFactoryAfterResolveData;
49
42
  private constructor();
50
43
  }
51
44
  export type ContextModuleFactoryAfterResolveResult = false | ContextModuleFactoryAfterResolveData;
52
- export declare class Module {
53
- #private;
54
- readonly context?: string;
55
- readonly resource?: string;
56
- readonly request?: string;
57
- userRequest?: string;
58
- readonly rawRequest?: string;
59
- readonly type: string;
60
- readonly layer: null | string;
61
- readonly factoryMeta?: JsFactoryMeta;
62
- /**
63
- * Records the dynamically added fields for Module on the JavaScript side.
64
- * These fields are generally used within a plugin, so they do not need to be passed back to the Rust side.
65
- */
66
- buildInfo: Record<string, any>;
67
- /**
68
- * Records the dynamically added fields for Module on the JavaScript side.
69
- * These fields are generally used within a plugin, so they do not need to be passed back to the Rust side.
70
- */
71
- buildMeta: Record<string, any>;
72
- readonly modules: Module[] | undefined;
73
- readonly blocks: DependenciesBlock[];
74
- readonly dependencies: Dependency[];
75
- readonly useSourceMap: boolean;
76
- readonly resourceResolveData: Record<string, any> | undefined;
77
- readonly matchResource: string | undefined;
78
- static __from_binding(binding: JsModule): Module;
79
- static __to_binding(module: Module): JsModule;
80
- constructor(module: JsModule);
81
- originalSource(): Source | null;
82
- identifier(): string;
83
- nameForCondition(): string | null;
84
- size(type?: string): number;
85
- libIdent(options: JsLibIdentOptions): string | null;
86
- emitFile(filename: string, source: Source, assetInfo?: AssetInfo): void;
45
+ declare module "@rspack/binding" {
46
+ interface Module {
47
+ originalSource(): Source | null;
48
+ emitFile(filename: string, source: Source, assetInfo?: AssetInfo): void;
49
+ }
87
50
  }
51
+ export { Module } from "@rspack/binding";
88
52
  export declare class CodeGenerationResult {
89
53
  #private;
90
- constructor(result: JsCodegenerationResult);
54
+ constructor(result: binding.JsCodegenerationResult);
91
55
  get(sourceType: string): string;
92
56
  }
93
57
  export declare class CodeGenerationResults {
@@ -1,6 +1,6 @@
1
1
  import type { Dependency, JsModuleGraph } from "@rspack/binding";
2
2
  import { ExportsInfo } from "./ExportsInfo";
3
- import { Module } from "./Module";
3
+ import type { Module } from "./Module";
4
4
  import { ModuleGraphConnection } from "./ModuleGraphConnection";
5
5
  export default class ModuleGraph {
6
6
  #private;
@@ -1,5 +1,5 @@
1
1
  import type { Dependency, JsModuleGraphConnection } from "@rspack/binding";
2
- import { Module } from "./Module";
2
+ import type { Module } from "./Module";
3
3
  export declare class ModuleGraphConnection {
4
4
  #private;
5
5
  readonly module: Module | null;
@@ -2,11 +2,14 @@ import * as liteTapable from "@rspack/lite-tapable";
2
2
  import { Compilation } from "./Compilation";
3
3
  import type { Module } from "./Module";
4
4
  import type { LoaderContext } from "./config";
5
- export declare class NormalModule {
6
- static getCompilationHooks(compilation: Compilation): {
7
- loader: liteTapable.SyncHook<[LoaderContext, Module]>;
8
- readResourceForScheme: any;
9
- readResource: liteTapable.HookMap<liteTapable.AsyncSeriesBailHook<[LoaderContext], string | Buffer>>;
10
- };
5
+ interface NormalModuleCompilationHooks {
6
+ loader: liteTapable.SyncHook<[LoaderContext, Module]>;
7
+ readResourceForScheme: any;
8
+ readResource: liteTapable.HookMap<liteTapable.AsyncSeriesBailHook<[LoaderContext], string | Buffer>>;
11
9
  }
12
- export default NormalModule;
10
+ declare module "@rspack/binding" {
11
+ interface NormalModuleConstructor {
12
+ getCompilationHooks(compilation: Compilation): NormalModuleCompilationHooks;
13
+ }
14
+ }
15
+ export { NormalModule } from "@rspack/binding";
@@ -6,6 +6,8 @@ type ResolveOptionsWithDependencyType = Resolve & {
6
6
  dependencyCategory?: string;
7
7
  resolveToContext?: boolean;
8
8
  };
9
+ export type ResourceData = binding.JsResourceData;
10
+ export type ResolveRequest = ResourceData;
9
11
  export declare class Resolver {
10
12
  binding: binding.JsResolver;
11
13
  constructor(binding: binding.JsResolver);
@@ -24,7 +24,7 @@ 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
- lazyCompilationInvalidate(files: Set<string>): void;
27
+ invalidateWithChangedFiles(files: Set<string>): void;
28
28
  /**
29
29
  * The reason why this is _done instead of #done, is that in Webpack,
30
30
  * 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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
36
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
11
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
11
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
9
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
16
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
22
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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" | "environment" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "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
  };