@rspack/core 1.2.7 → 1.3.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/compiled/@swc/types/index.d.ts +9 -2
  2. package/compiled/@swc/types/package.json +1 -1
  3. package/dist/ChunkGraph.d.ts +3 -4
  4. package/dist/ChunkGroup.d.ts +1 -1
  5. package/dist/Compilation.d.ts +2 -2
  6. package/dist/ConcatenatedModule.d.ts +1 -0
  7. package/dist/ContextModule.d.ts +1 -0
  8. package/dist/Entrypoint.d.ts +1 -0
  9. package/dist/ExternalModule.d.ts +1 -0
  10. package/dist/Module.d.ts +15 -51
  11. package/dist/ModuleGraph.d.ts +1 -1
  12. package/dist/ModuleGraphConnection.d.ts +1 -1
  13. package/dist/NormalModule.d.ts +10 -7
  14. package/dist/Resolver.d.ts +2 -0
  15. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  16. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  17. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  18. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  19. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  20. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  21. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  22. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  23. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  24. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  25. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  26. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  27. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  28. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  29. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  30. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  31. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  32. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  33. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
  35. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  38. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  39. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  41. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  42. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  44. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  46. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  47. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  51. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +10 -0
  52. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  53. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  54. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  55. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  57. package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
  58. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  59. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  60. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
  61. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  62. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
  63. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  64. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  65. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  66. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  67. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  68. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
  69. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
  70. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  71. package/dist/builtin-plugin/base.d.ts +1 -1
  72. package/dist/builtin-plugin/html-plugin/options.d.ts +4 -1
  73. package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
  74. package/dist/builtin-plugin/index.d.ts +1 -0
  75. package/dist/builtin-plugin/lazy-compilation/backend.d.ts +16 -19
  76. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +5 -4
  77. package/dist/builtin-plugin/lazy-compilation/plugin.d.ts +3 -3
  78. package/dist/config/adapterRuleUse.d.ts +1 -1
  79. package/dist/config/index.d.ts +0 -1
  80. package/dist/config/types.d.ts +17 -1
  81. package/dist/config/zod.d.ts +384 -356
  82. package/dist/container/ModuleFederationPluginV1.d.ts +1 -1
  83. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  84. package/dist/exports.d.ts +4 -1
  85. package/dist/index.js +2154 -2197
  86. package/package.json +9 -9
  87. package/dist/DependenciesBlock.d.ts +0 -9
@@ -754,11 +754,11 @@ interface TransformConfig {
754
754
  */
755
755
  optimizer?: OptimizerConfig;
756
756
  /**
757
- * https://swc.rs/docs/configuring-swc.html#jsctransformlegacydecorator
757
+ * https://swc.rs/docs/configuration/compilation#jsctransformlegacydecorator
758
758
  */
759
759
  legacyDecorator?: boolean;
760
760
  /**
761
- * https://swc.rs/docs/configuring-swc.html#jsctransformdecoratormetadata
761
+ * https://swc.rs/docs/configuration/compilation#jsctransformdecoratormetadata
762
762
  */
763
763
  decoratorMetadata?: boolean;
764
764
  /**
@@ -766,7 +766,14 @@ interface TransformConfig {
766
766
  */
767
767
  decoratorVersion?: "2021-12" | "2022-03";
768
768
  treatConstEnumAsEnum?: boolean;
769
+ /**
770
+ * https://www.typescriptlang.org/tsconfig#useDefineForClassFields
771
+ */
769
772
  useDefineForClassFields?: boolean;
773
+ /**
774
+ * https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax
775
+ */
776
+ verbatimModuleSyntax?: boolean;
770
777
  }
771
778
  interface ReactConfig {
772
779
  /**
@@ -1 +1 @@
1
- {"name":"@swc/types","author":"강동윤 <kdy1997.dev@gmail.com>","version":"0.1.17","license":"Apache-2.0","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"@swc/types","author":"강동윤 <kdy1997.dev@gmail.com>","version":"0.1.19","license":"Apache-2.0","types":"index.d.ts","type":"commonjs"}
@@ -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;
@@ -18,5 +17,5 @@ export declare class ChunkGraph {
18
17
  getModuleChunksIterable(module: Module): Iterable<Chunk>;
19
18
  getModuleId(module: Module): string | 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";
@@ -6,4 +6,5 @@ export declare class Entrypoint extends ChunkGroup {
6
6
  static __from_binding(binding: JsChunkGroup): Entrypoint;
7
7
  protected constructor(binding: JsChunkGroup);
8
8
  getRuntimeChunk(): Readonly<Chunk | null>;
9
+ getEntrypointChunk(): Readonly<Chunk | null>;
9
10
  }
@@ -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);
@@ -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
  };
@@ -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
  };
@@ -3,7 +3,7 @@ export declare const FlagDependencyExportsPlugin: {
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 HttpExternalsRspackPlugin: {
3
3
  new (css: boolean, webAsync: boolean): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [css: boolean, webAsync: boolean];
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
  };