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

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 (166) hide show
  1. package/compiled/browserslist/index.js +17 -17
  2. package/compiled/enhanced-resolve/index.js +107 -107
  3. package/compiled/graceful-fs/index.js +8 -8
  4. package/compiled/json-parse-even-better-errors/index.js +2 -2
  5. package/compiled/neo-async/index.js +2 -2
  6. package/compiled/watchpack/index.js +15 -15
  7. package/compiled/webpack-sources/index.js +76 -76
  8. package/compiled/zod/index.js +30 -30
  9. package/compiled/zod-validation-error/index.js +6 -6
  10. package/dist/ChunkGraph.d.ts +1 -1
  11. package/dist/Compilation.d.ts +9 -9
  12. package/dist/Compilation.js +27 -24
  13. package/dist/Compiler.d.ts +6 -6
  14. package/dist/Compiler.js +5 -6
  15. package/dist/ContextModuleFactory.d.ts +1 -1
  16. package/dist/ErrorHelpers.d.ts +16 -7
  17. package/dist/ErrorHelpers.js +34 -33
  18. package/dist/ExecuteModulePlugin.js +1 -1
  19. package/dist/FileSystem.d.ts +2 -2
  20. package/dist/Module.d.ts +5 -5
  21. package/dist/Module.js +3 -6
  22. package/dist/MultiCompiler.d.ts +3 -3
  23. package/dist/MultiCompiler.js +1 -1
  24. package/dist/MultiStats.d.ts +2 -2
  25. package/dist/MultiWatching.d.ts +2 -2
  26. package/dist/NormalModule.d.ts +1 -1
  27. package/dist/NormalModuleFactory.d.ts +1 -1
  28. package/dist/Resolver.d.ts +19 -0
  29. package/dist/Resolver.js +39 -0
  30. package/dist/ResolverFactory.d.ts +12 -46
  31. package/dist/ResolverFactory.js +55 -120
  32. package/dist/RspackError.d.ts +1 -1
  33. package/dist/RuntimeGlobals.d.ts +1 -1
  34. package/dist/RuntimeGlobals.js +3 -3
  35. package/dist/Stats.d.ts +2 -2
  36. package/dist/Stats.js +4 -4
  37. package/dist/Template.js +2 -2
  38. package/dist/Watching.d.ts +3 -3
  39. package/dist/builtin-loader/swc/index.d.ts +0 -2
  40. package/dist/builtin-loader/swc/index.js +1 -3
  41. package/dist/builtin-loader/swc/pluginImport.d.ts +17 -1
  42. package/dist/builtin-loader/swc/react.d.ts +11 -1
  43. package/dist/builtin-plugin/APIPlugin.d.ts +3 -3
  44. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +3 -3
  45. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +3 -3
  46. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +3 -3
  47. package/dist/builtin-plugin/BannerPlugin.d.ts +25 -4
  48. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +4 -4
  49. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +3 -3
  50. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +3 -3
  51. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +4 -4
  52. package/dist/builtin-plugin/CssModulesPlugin.d.ts +3 -3
  53. package/dist/builtin-plugin/DataUriPlugin.d.ts +3 -3
  54. package/dist/builtin-plugin/DefinePlugin.d.ts +10 -4
  55. package/dist/builtin-plugin/DefinePlugin.js +42 -8
  56. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +3 -3
  57. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +3 -3
  58. package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +5 -5
  59. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +3 -3
  60. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +3 -3
  61. package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +2 -2
  62. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +3 -3
  63. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +3 -3
  64. package/dist/builtin-plugin/EntryPlugin.d.ts +5 -5
  65. package/dist/builtin-plugin/EntryPlugin.js +1 -1
  66. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +4 -4
  67. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +5 -5
  68. package/dist/builtin-plugin/ExternalsPlugin.d.ts +22 -6
  69. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +3 -3
  70. package/dist/builtin-plugin/FileUriPlugin.d.ts +3 -3
  71. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +3 -3
  72. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +3 -3
  73. package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +2 -2
  74. package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +19 -4
  75. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +4 -4
  76. package/dist/builtin-plugin/IgnorePlugin.d.ts +4 -4
  77. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +3 -3
  78. package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +2 -2
  79. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +4 -4
  80. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +3 -3
  81. package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.d.ts +4 -4
  82. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +4 -4
  83. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +3 -3
  84. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +3 -3
  85. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +3 -3
  86. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +3 -3
  87. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +3 -3
  88. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +3 -3
  89. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +3 -3
  90. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +3 -3
  91. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +3 -3
  92. package/dist/builtin-plugin/ProgressPlugin.d.ts +4 -4
  93. package/dist/builtin-plugin/ProvidePlugin.d.ts +3 -3
  94. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +3 -3
  95. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +3 -3
  96. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +4 -4
  97. package/dist/builtin-plugin/RuntimePlugin.d.ts +3 -3
  98. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +3 -3
  99. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +9 -4
  100. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +4 -4
  101. package/dist/builtin-plugin/SplitChunksPlugin.d.ts +3 -3
  102. package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts +12 -4
  103. package/dist/builtin-plugin/SwcCssMinimizerPlugin.js +7 -1
  104. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +4 -4
  105. package/dist/builtin-plugin/SwcJsMinimizerPlugin.js +2 -2
  106. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +3 -3
  107. package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +3 -3
  108. package/dist/builtin-plugin/WorkerPlugin.d.ts +3 -3
  109. package/dist/builtin-plugin/WorkerPlugin.js +5 -1
  110. package/dist/builtin-plugin/base.d.ts +6 -6
  111. package/dist/builtin-plugin/base.js +4 -4
  112. package/dist/builtin-plugin/css-extract/index.d.ts +1 -1
  113. package/dist/builtin-plugin/css-extract/loader.js +15 -5
  114. package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
  115. package/dist/builtin-plugin/index.d.ts +1 -7
  116. package/dist/builtin-plugin/index.js +3 -17
  117. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +11 -17
  118. package/dist/builtin-plugin/lazy-compilation/plugin.d.ts +2 -2
  119. package/dist/config/adapter.d.ts +5 -4
  120. package/dist/config/adapter.js +23 -11
  121. package/dist/config/adapterRuleUse.d.ts +7 -7
  122. package/dist/config/adapterRuleUse.js +1 -1
  123. package/dist/config/browserslistTargetHandler.js +1 -1
  124. package/dist/config/defaults.d.ts +1 -1
  125. package/dist/config/defaults.js +4 -3
  126. package/dist/config/zod.d.ts +491 -384
  127. package/dist/config/zod.js +44 -42
  128. package/dist/container/ContainerPlugin.d.ts +3 -3
  129. package/dist/container/ContainerReferencePlugin.d.ts +4 -4
  130. package/dist/container/ModuleFederationPlugin.d.ts +2 -2
  131. package/dist/container/ModuleFederationPlugin.js +2 -2
  132. package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
  133. package/dist/container/ModuleFederationRuntimePlugin.d.ts +3 -3
  134. package/dist/container/default.runtime.js +1 -1
  135. package/dist/lib/EntryOptionPlugin.d.ts +2 -2
  136. package/dist/lib/NormalModuleReplacementPlugin.d.ts +2 -2
  137. package/dist/loader-runner/index.d.ts +2 -2
  138. package/dist/loader-runner/index.js +38 -51
  139. package/dist/loader-runner/loadLoader.js +1 -1
  140. package/dist/logging/runtime.js +1 -1
  141. package/dist/node/NodeTemplatePlugin.d.ts +1 -1
  142. package/dist/node/NodeWatchFileSystem.d.ts +1 -1
  143. package/dist/rspack.d.ts +3 -3
  144. package/dist/rspack.js +1 -1
  145. package/dist/rspackOptionsApply.d.ts +1 -1
  146. package/dist/rspackOptionsApply.js +1 -19
  147. package/dist/sharing/ConsumeSharedPlugin.d.ts +2 -2
  148. package/dist/sharing/ConsumeSharedPlugin.js +1 -1
  149. package/dist/sharing/ProvideSharedPlugin.d.ts +2 -2
  150. package/dist/sharing/SharePlugin.d.ts +1 -1
  151. package/dist/sharing/ShareRuntimePlugin.d.ts +2 -2
  152. package/dist/stats/DefaultStatsFactoryPlugin.js +246 -46
  153. package/dist/stats/DefaultStatsPresetPlugin.js +17 -17
  154. package/dist/stats/DefaultStatsPrinterPlugin.js +1 -1
  155. package/dist/stats/StatsFactory.d.ts +2 -2
  156. package/dist/stats/statsFactoryUtils.d.ts +16 -1
  157. package/dist/util/SplitChunkSize.d.ts +1 -1
  158. package/dist/util/bindingVersionCheck.js +1 -1
  159. package/dist/util/comparators.d.ts +1 -1
  160. package/dist/util/fs.d.ts +1 -1
  161. package/dist/util/identifier.d.ts +65 -62
  162. package/dist/util/identifier.js +30 -55
  163. package/dist/util/index.d.ts +1 -1
  164. package/dist/util/index.js +4 -2
  165. package/dist/util/validate.d.ts +1 -1
  166. package/package.json +7 -34
@@ -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
  };
@@ -2,9 +2,9 @@ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const SideEffectsFlagPlugin: {
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,4 +1,4 @@
1
- import { BuiltinPluginName, RawSizeLimitsPluginOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName } from "@rspack/binding";
2
2
  export declare const SizeLimitsPlugin: {
3
3
  new (options: {
4
4
  assetFilter?: ((args_0: string, ...args_1: unknown[]) => boolean) | undefined;
@@ -7,9 +7,14 @@ export declare const SizeLimitsPlugin: {
7
7
  maxEntrypointSize?: number | undefined;
8
8
  }): {
9
9
  name: BuiltinPluginName;
10
- _options: RawSizeLimitsPluginOptions;
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: {
11
+ assetFilter?: ((args_0: string, ...args_1: unknown[]) => boolean) | undefined;
12
+ hints?: false | "error" | "warning" | undefined;
13
+ maxAssetSize?: number | undefined;
14
+ maxEntrypointSize?: number | undefined;
15
+ }];
16
+ 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;
17
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
13
18
  apply(compiler: import("../Compiler").Compiler): void;
14
19
  };
15
20
  };
@@ -1,4 +1,4 @@
1
- import { BuiltinPluginName, RawSourceMapDevToolPluginOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName, type RawSourceMapDevToolPluginOptions } from "@rspack/binding";
2
2
  /**
3
3
  * Include source maps for modules based on their extension (defaults to .js and .css).
4
4
  */
@@ -15,9 +15,9 @@ export interface SourceMapDevToolPluginOptions extends Omit<RawSourceMapDevToolP
15
15
  export declare const SourceMapDevToolPlugin: {
16
16
  new (options: SourceMapDevToolPluginOptions): {
17
17
  name: BuiltinPluginName;
18
- _options: RawSourceMapDevToolPluginOptions;
19
- 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;
20
- raw(): import("@rspack/binding").BuiltinPlugin;
18
+ _args: [options: SourceMapDevToolPluginOptions];
19
+ 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;
20
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
21
21
  apply(compiler: import("../Compiler").Compiler): void;
22
22
  };
23
23
  };
@@ -1,6 +1,6 @@
1
- import { BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import { Compiler } from "../Compiler";
3
- import { type OptimizationSplitChunksOptions } from "../config/zod";
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
+ import type { Compiler } from "../Compiler";
3
+ import type { OptimizationSplitChunksOptions } from "../config/zod";
4
4
  import { RspackBuiltinPlugin } from "./base";
5
5
  export declare class SplitChunksPlugin extends RspackBuiltinPlugin {
6
6
  private options;
@@ -1,10 +1,18 @@
1
1
  import { BuiltinPluginName } from "@rspack/binding";
2
+ type MinifyCondition = string | RegExp;
3
+ type MinifyConditions = MinifyCondition | MinifyCondition[];
4
+ export type SwcCssMinimizerRspackPluginOptions = {
5
+ test?: MinifyConditions;
6
+ exclude?: MinifyConditions;
7
+ include?: MinifyConditions;
8
+ };
2
9
  export declare const SwcCssMinimizerRspackPlugin: {
3
- new (options?: any): {
10
+ new (options?: SwcCssMinimizerRspackPluginOptions | undefined): {
4
11
  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;
12
+ _args: [options?: SwcCssMinimizerRspackPluginOptions | undefined];
13
+ 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;
14
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
15
  apply(compiler: import("../Compiler").Compiler): void;
9
16
  };
10
17
  };
18
+ export {};
@@ -3,4 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SwcCssMinimizerRspackPlugin = void 0;
4
4
  const binding_1 = require("@rspack/binding");
5
5
  const base_1 = require("./base");
6
- exports.SwcCssMinimizerRspackPlugin = (0, base_1.create)(binding_1.BuiltinPluginName.SwcCssMinimizerRspackPlugin, (options /* TODO: extend more options */) => undefined);
6
+ exports.SwcCssMinimizerRspackPlugin = (0, base_1.create)(binding_1.BuiltinPluginName.SwcCssMinimizerRspackPlugin, (options) => {
7
+ return {
8
+ test: options?.test,
9
+ include: options?.include,
10
+ exclude: options?.exclude
11
+ };
12
+ });
@@ -1,4 +1,4 @@
1
- import { BuiltinPluginName, RawSwcJsMinimizerRspackPluginOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName } from "@rspack/binding";
2
2
  type MinifyCondition = string | RegExp;
3
3
  type MinifyConditions = MinifyCondition | MinifyCondition[];
4
4
  type ExtractCommentsCondition = boolean | RegExp;
@@ -203,9 +203,9 @@ export interface TerserManglePropertiesOptions {
203
203
  export declare const SwcJsMinimizerRspackPlugin: {
204
204
  new (options?: SwcJsMinimizerRspackPluginOptions | undefined): {
205
205
  name: BuiltinPluginName;
206
- _options: RawSwcJsMinimizerRspackPluginOptions;
207
- 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;
208
- raw(): import("@rspack/binding").BuiltinPlugin;
206
+ _args: [options?: SwcJsMinimizerRspackPluginOptions | undefined];
207
+ 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;
208
+ raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
209
209
  apply(compiler: import("../Compiler").Compiler): void;
210
210
  };
211
211
  };