@rspack/core 1.0.0-alpha.2 → 1.0.0-alpha.3

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 (134) hide show
  1. package/dist/ChunkGraph.d.ts +1 -1
  2. package/dist/Compilation.d.ts +9 -9
  3. package/dist/Compilation.js +25 -21
  4. package/dist/Compiler.d.ts +6 -6
  5. package/dist/Compiler.js +5 -6
  6. package/dist/ContextModuleFactory.d.ts +1 -1
  7. package/dist/FileSystem.d.ts +2 -2
  8. package/dist/Module.d.ts +4 -3
  9. package/dist/Module.js +1 -0
  10. package/dist/MultiCompiler.d.ts +3 -3
  11. package/dist/MultiStats.d.ts +2 -2
  12. package/dist/MultiWatching.d.ts +2 -2
  13. package/dist/NormalModule.d.ts +1 -1
  14. package/dist/NormalModuleFactory.d.ts +1 -1
  15. package/dist/Resolver.d.ts +19 -0
  16. package/dist/Resolver.js +39 -0
  17. package/dist/ResolverFactory.d.ts +9 -47
  18. package/dist/ResolverFactory.js +49 -120
  19. package/dist/RspackError.d.ts +1 -1
  20. package/dist/RuntimeGlobals.d.ts +1 -1
  21. package/dist/Stats.d.ts +2 -2
  22. package/dist/Watching.d.ts +3 -3
  23. package/dist/builtin-loader/swc/index.d.ts +0 -2
  24. package/dist/builtin-loader/swc/index.js +1 -3
  25. package/dist/builtin-loader/swc/pluginImport.d.ts +17 -1
  26. package/dist/builtin-loader/swc/react.d.ts +11 -1
  27. package/dist/builtin-plugin/APIPlugin.d.ts +3 -3
  28. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +3 -3
  29. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +3 -3
  30. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +3 -3
  31. package/dist/builtin-plugin/BannerPlugin.d.ts +25 -4
  32. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +4 -4
  33. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +3 -3
  34. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +3 -3
  35. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +4 -4
  36. package/dist/builtin-plugin/CssModulesPlugin.d.ts +3 -3
  37. package/dist/builtin-plugin/DataUriPlugin.d.ts +3 -3
  38. package/dist/builtin-plugin/DefinePlugin.d.ts +10 -4
  39. package/dist/builtin-plugin/DefinePlugin.js +42 -8
  40. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +3 -3
  41. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +3 -3
  42. package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +5 -5
  43. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +3 -3
  44. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +3 -3
  45. package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +2 -2
  46. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +3 -3
  47. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +3 -3
  48. package/dist/builtin-plugin/EntryPlugin.d.ts +5 -5
  49. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +4 -4
  50. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +5 -5
  51. package/dist/builtin-plugin/ExternalsPlugin.d.ts +22 -6
  52. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +3 -3
  53. package/dist/builtin-plugin/FileUriPlugin.d.ts +3 -3
  54. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +3 -3
  55. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +3 -3
  56. package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +2 -2
  57. package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +19 -4
  58. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +4 -4
  59. package/dist/builtin-plugin/IgnorePlugin.d.ts +4 -4
  60. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +3 -3
  61. package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +2 -2
  62. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +4 -4
  63. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +3 -3
  64. package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.d.ts +4 -4
  65. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +4 -4
  66. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +3 -3
  67. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +3 -3
  68. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +3 -3
  69. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +3 -3
  70. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +3 -3
  71. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +3 -3
  72. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +3 -3
  73. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +3 -3
  74. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +3 -3
  75. package/dist/builtin-plugin/ProgressPlugin.d.ts +4 -4
  76. package/dist/builtin-plugin/ProvidePlugin.d.ts +3 -3
  77. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +3 -3
  78. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +3 -3
  79. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +4 -4
  80. package/dist/builtin-plugin/RuntimePlugin.d.ts +3 -3
  81. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +3 -3
  82. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +9 -4
  83. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +4 -4
  84. package/dist/builtin-plugin/SplitChunksPlugin.d.ts +3 -3
  85. package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts +3 -3
  86. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +4 -4
  87. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +3 -3
  88. package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +3 -3
  89. package/dist/builtin-plugin/WorkerPlugin.d.ts +3 -3
  90. package/dist/builtin-plugin/base.d.ts +6 -6
  91. package/dist/builtin-plugin/base.js +3 -3
  92. package/dist/builtin-plugin/css-extract/index.d.ts +1 -1
  93. package/dist/builtin-plugin/css-extract/loader.js +13 -3
  94. package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
  95. package/dist/builtin-plugin/index.d.ts +1 -7
  96. package/dist/builtin-plugin/index.js +3 -17
  97. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +11 -17
  98. package/dist/builtin-plugin/lazy-compilation/plugin.d.ts +2 -2
  99. package/dist/config/adapter.d.ts +5 -4
  100. package/dist/config/adapter.js +3 -2
  101. package/dist/config/adapterRuleUse.d.ts +7 -7
  102. package/dist/config/defaults.d.ts +1 -1
  103. package/dist/config/zod.d.ts +382 -382
  104. package/dist/config/zod.js +2 -3
  105. package/dist/container/ContainerPlugin.d.ts +3 -3
  106. package/dist/container/ContainerReferencePlugin.d.ts +4 -4
  107. package/dist/container/ModuleFederationPlugin.d.ts +2 -2
  108. package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
  109. package/dist/container/ModuleFederationRuntimePlugin.d.ts +3 -3
  110. package/dist/container/default.runtime.js +1 -1
  111. package/dist/lib/EntryOptionPlugin.d.ts +2 -2
  112. package/dist/lib/NormalModuleReplacementPlugin.d.ts +2 -2
  113. package/dist/loader-runner/index.d.ts +2 -2
  114. package/dist/loader-runner/index.js +33 -46
  115. package/dist/loader-runner/loadLoader.js +1 -1
  116. package/dist/node/NodeTemplatePlugin.d.ts +1 -1
  117. package/dist/node/NodeWatchFileSystem.d.ts +1 -1
  118. package/dist/rspack.d.ts +3 -3
  119. package/dist/rspackOptionsApply.d.ts +1 -1
  120. package/dist/rspackOptionsApply.js +1 -19
  121. package/dist/sharing/ConsumeSharedPlugin.d.ts +2 -2
  122. package/dist/sharing/ProvideSharedPlugin.d.ts +2 -2
  123. package/dist/sharing/SharePlugin.d.ts +1 -1
  124. package/dist/sharing/ShareRuntimePlugin.d.ts +2 -2
  125. package/dist/stats/StatsFactory.d.ts +2 -2
  126. package/dist/stats/statsFactoryUtils.d.ts +1 -1
  127. package/dist/util/SplitChunkSize.d.ts +1 -1
  128. package/dist/util/bindingVersionCheck.js +1 -1
  129. package/dist/util/comparators.d.ts +1 -1
  130. package/dist/util/fs.d.ts +1 -1
  131. package/dist/util/index.d.ts +1 -1
  132. package/dist/util/index.js +4 -2
  133. package/dist/util/validate.d.ts +1 -1
  134. package/package.json +5 -35
@@ -1,10 +1,10 @@
1
- import { BuiltinPluginName, RawExternalsPluginOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const ExternalsPlugin: {
3
3
  new (type: string, externals: string | RegExp | Record<string, string | boolean | string[] | Record<string, string | string[]>> | ((args_0: {
4
4
  context?: string | undefined;
5
5
  dependencyType?: string | undefined;
6
6
  request?: string | undefined;
7
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "commonjs" | "umd" | "amd" | "promise" | "global" | "jsonp" | "import" | "commonjs2" | "var" | "module" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
7
+ }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
8
8
  context?: string | undefined;
9
9
  dependencyType?: string | undefined;
10
10
  request?: string | undefined;
@@ -12,15 +12,31 @@ export declare const ExternalsPlugin: {
12
12
  context?: string | undefined;
13
13
  dependencyType?: string | undefined;
14
14
  request?: string | undefined;
15
- }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "commonjs" | "umd" | "amd" | "promise" | "global" | "jsonp" | "import" | "commonjs2" | "var" | "module" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
15
+ }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
16
16
  context?: string | undefined;
17
17
  dependencyType?: string | undefined;
18
18
  request?: string | undefined;
19
19
  }, ...args_1: unknown[]) => Promise<string | boolean | string[] | Record<string, string | string[]>>))[]): {
20
20
  name: BuiltinPluginName;
21
- _options: RawExternalsPluginOptions;
22
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
23
- raw(): import("@rspack/binding").BuiltinPlugin;
21
+ _args: [type: string, externals: string | RegExp | Record<string, string | boolean | string[] | Record<string, string | string[]>> | ((args_0: {
22
+ context?: string | undefined;
23
+ dependencyType?: string | undefined;
24
+ request?: string | undefined;
25
+ }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
26
+ context?: string | undefined;
27
+ dependencyType?: string | undefined;
28
+ request?: string | undefined;
29
+ }, ...args_1: unknown[]) => Promise<string | boolean | string[] | Record<string, string | string[]>>) | (string | RegExp | Record<string, string | boolean | string[] | Record<string, string | string[]>> | ((args_0: {
30
+ context?: string | undefined;
31
+ dependencyType?: string | undefined;
32
+ request?: string | undefined;
33
+ }, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "module" | "commonjs" | "umd" | "amd" | "jsonp" | "import" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
34
+ context?: string | undefined;
35
+ dependencyType?: string | undefined;
36
+ request?: string | undefined;
37
+ }, ...args_1: unknown[]) => Promise<string | boolean | string[] | Record<string, string | string[]>>))[]];
38
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
39
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
24
40
  apply(compiler: import("../Compiler").Compiler): void;
25
41
  };
26
42
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const FetchCompileAsyncWasmPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const FileUriPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const FlagDependencyExportsPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const FlagDependencyUsagePlugin: {
3
3
  new (global: boolean): {
4
4
  name: BuiltinPluginName;
5
- _options: boolean;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [global: boolean];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -1,5 +1,5 @@
1
- import { BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import { Compiler } from "../Compiler";
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
+ import type { Compiler } from "../Compiler";
3
3
  import { RspackBuiltinPlugin } from "./base";
4
4
  export declare class HotModuleReplacementPlugin extends RspackBuiltinPlugin {
5
5
  name: BuiltinPluginName;
@@ -1,4 +1,4 @@
1
- import { BuiltinPluginName, RawHtmlRspackPluginOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName } from "@rspack/binding";
2
2
  import { z } from "../../compiled/zod";
3
3
  declare const htmlRspackPluginOptions: z.ZodObject<{
4
4
  filename: z.ZodOptional<z.ZodString>;
@@ -65,9 +65,24 @@ export declare const HtmlRspackPlugin: {
65
65
  meta?: Record<string, string | Record<string, string>> | undefined;
66
66
  } | undefined): {
67
67
  name: BuiltinPluginName;
68
- _options: RawHtmlRspackPluginOptions;
69
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
70
- raw(): import("@rspack/binding").BuiltinPlugin;
68
+ _args: [c?: {
69
+ filename?: string | undefined;
70
+ template?: string | undefined;
71
+ templateContent?: string | undefined;
72
+ templateParameters?: Record<string, string> | undefined;
73
+ inject?: boolean | "head" | "body" | undefined;
74
+ publicPath?: string | undefined;
75
+ scriptLoading?: "module" | "blocking" | "defer" | undefined;
76
+ chunks?: string[] | undefined;
77
+ excludedChunks?: string[] | undefined;
78
+ sri?: "sha256" | "sha384" | "sha512" | undefined;
79
+ minify?: boolean | undefined;
80
+ title?: string | undefined;
81
+ favicon?: string | undefined;
82
+ meta?: Record<string, string | Record<string, string>> | undefined;
83
+ } | undefined];
84
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
85
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
71
86
  apply(compiler: import("../Compiler").Compiler): void;
72
87
  };
73
88
  };
@@ -1,10 +1,10 @@
1
- import { BuiltinPluginName, RawHttpExternalsRspackPluginOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const HttpExternalsRspackPlugin: {
3
3
  new (css: boolean, webAsync: boolean): {
4
4
  name: BuiltinPluginName;
5
- _options: RawHttpExternalsRspackPluginOptions;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [css: boolean, webAsync: boolean];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -1,4 +1,4 @@
1
- import { BuiltinPluginName, RawIgnorePluginOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName, type RawIgnorePluginOptions } from "@rspack/binding";
2
2
  export type IgnorePluginOptions = {
3
3
  resourceRegExp: NonNullable<RawIgnorePluginOptions["resourceRegExp"]>;
4
4
  contextRegExp?: RawIgnorePluginOptions["contextRegExp"];
@@ -8,9 +8,9 @@ export type IgnorePluginOptions = {
8
8
  export declare const IgnorePlugin: {
9
9
  new (options: IgnorePluginOptions): {
10
10
  name: BuiltinPluginName;
11
- _options: RawIgnorePluginOptions;
12
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
13
- raw(): import("@rspack/binding").BuiltinPlugin;
11
+ _args: [options: IgnorePluginOptions];
12
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
13
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
14
14
  apply(compiler: import("../Compiler").Compiler): void;
15
15
  };
16
16
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const InferAsyncModulesPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -1,9 +1,9 @@
1
- import { BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
2
  import * as liteTapable from "@rspack/lite-tapable";
3
3
  import { Compilation } from "../Compilation";
4
4
  import { RspackBuiltinPlugin } from "./base";
5
5
  import Hash = require("../util/hash");
6
- import { Chunk } from "../Chunk";
6
+ import type { Chunk } from "../Chunk";
7
7
  export type CompilationHooks = {
8
8
  chunkHash: liteTapable.SyncHook<[Chunk, Hash]>;
9
9
  };
@@ -1,11 +1,11 @@
1
1
  import { BuiltinPluginName } from "@rspack/binding";
2
- import { Compiler } from "../Compiler";
2
+ import type { Compiler } from "../Compiler";
3
3
  export declare const JsLoaderRspackPlugin: {
4
4
  new (compiler: Compiler): {
5
5
  name: BuiltinPluginName;
6
- _options: (context: import("@rspack/binding").JsLoaderContext) => Promise<import("@rspack/binding").JsLoaderContext>;
7
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
8
- raw(): import("@rspack/binding").BuiltinPlugin;
6
+ _args: [compiler: Compiler];
7
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
8
+ raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: Compiler): void;
10
10
  };
11
11
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const JsonModulesPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -1,11 +1,11 @@
1
- import { BuiltinPluginName, RawLightningCssMinimizerRspackPluginOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName, type RawLightningCssMinimizerRspackPluginOptions } from "@rspack/binding";
2
2
  export type LightningCssMinimizerRspackPluginOptions = Partial<RawLightningCssMinimizerRspackPluginOptions>;
3
3
  export declare const LightningCssMinimizerRspackPlugin: {
4
4
  new (options?: Partial<RawLightningCssMinimizerRspackPluginOptions> | undefined): {
5
5
  name: BuiltinPluginName;
6
- _options: RawLightningCssMinimizerRspackPluginOptions;
7
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
8
- raw(): import("@rspack/binding").BuiltinPlugin;
6
+ _args: [options?: Partial<RawLightningCssMinimizerRspackPluginOptions> | undefined];
7
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
8
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: import("../Compiler").Compiler): void;
10
10
  };
11
11
  };
@@ -1,4 +1,4 @@
1
- import { BuiltinPluginName, RawLimitChunkCountPluginOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export type LimitChunkCountOptions = {
3
3
  chunkOverhead?: number;
4
4
  entryChunkMultiplicator?: number;
@@ -7,9 +7,9 @@ export type LimitChunkCountOptions = {
7
7
  export declare const LimitChunkCountPlugin: {
8
8
  new (options: LimitChunkCountOptions): {
9
9
  name: BuiltinPluginName;
10
- _options: RawLimitChunkCountPluginOptions;
11
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
12
- raw(): import("@rspack/binding").BuiltinPlugin;
10
+ _args: [options: LimitChunkCountOptions];
11
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
12
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
13
13
  apply(compiler: import("../Compiler").Compiler): void;
14
14
  };
15
15
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const MangleExportsPlugin: {
3
3
  new (deterministic: boolean): {
4
4
  name: BuiltinPluginName;
5
- _options: boolean;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [deterministic: boolean];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const MergeDuplicateChunksPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const ModuleChunkFormatPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const ModuleConcatenationPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const NamedChunkIdsPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const NamedModuleIdsPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const NaturalChunkIdsPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const NaturalModuleIdsPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const NodeTargetPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: undefined;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -1,11 +1,11 @@
1
- import { BuiltinPluginName, RawProgressPluginOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName, type RawProgressPluginOptions } from "@rspack/binding";
2
2
  export type ProgressPluginArgument = Partial<RawProgressPluginOptions> | undefined;
3
3
  export declare const ProgressPlugin: {
4
4
  new (progress?: ProgressPluginArgument): {
5
5
  name: BuiltinPluginName;
6
- _options: RawProgressPluginOptions;
7
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
8
- raw(): import("@rspack/binding").BuiltinPlugin;
6
+ _args: [progress?: ProgressPluginArgument];
7
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
8
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: import("../Compiler").Compiler): void;
10
10
  };
11
11
  };
@@ -3,9 +3,9 @@ export type ProvidePluginOptions = Record<string, string | string[]>;
3
3
  export declare const ProvidePlugin: {
4
4
  new (provide: ProvidePluginOptions): {
5
5
  name: BuiltinPluginName;
6
- _options: Record<string, string[]>;
7
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
8
- raw(): import("@rspack/binding").BuiltinPlugin;
6
+ _args: [provide: ProvidePluginOptions];
7
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
8
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: import("../Compiler").Compiler): void;
10
10
  };
11
11
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const RealContentHashPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const RemoveEmptyChunksPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };
@@ -1,11 +1,11 @@
1
- import { BuiltinPluginName, RawRuntimeChunkOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName, type RawRuntimeChunkOptions } from "@rspack/binding";
2
2
  export type RuntimeChunkPluginOptions = RawRuntimeChunkOptions;
3
3
  export declare const RuntimeChunkPlugin: {
4
4
  new (options: RawRuntimeChunkOptions): {
5
5
  name: BuiltinPluginName;
6
- _options: RawRuntimeChunkOptions;
7
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
8
- raw(): import("@rspack/binding").BuiltinPlugin;
6
+ _args: [options: RawRuntimeChunkOptions];
7
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
8
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: import("../Compiler").Compiler): void;
10
10
  };
11
11
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const RuntimePlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
- _options: void;
6
- affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
- raw(): import("@rspack/binding").BuiltinPlugin;
5
+ _args: [];
6
+ affectedHooks: "done" | "compilation" | "failed" | "environment" | "emit" | "make" | "compile" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "shutdown" | "watchRun" | "watchClose" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
7
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("../Compiler").Compiler): void;
9
9
  };
10
10
  };