@rspack/core 1.3.13 → 1.3.15

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 (146) hide show
  1. package/compiled/webpack-sources/index.js +112 -132
  2. package/compiled/webpack-sources/package.json +1 -1
  3. package/compiled/webpack-sources/types.d.ts +8 -6
  4. package/compiled/zod/dist/types/v3/types.d.ts +2 -2
  5. package/compiled/zod/dist/types/v4/classic/coerce.d.ts +5 -5
  6. package/compiled/zod/dist/types/v4/classic/external.d.ts +6 -1
  7. package/compiled/zod/dist/types/v4/classic/schemas.d.ts +88 -130
  8. package/compiled/zod/dist/types/v4/core/api.d.ts +2 -2
  9. package/compiled/zod/dist/types/v4/core/core.d.ts +11 -7
  10. package/compiled/zod/dist/types/v4/core/errors.d.ts +0 -1
  11. package/compiled/zod/dist/types/v4/core/function.d.ts +16 -11
  12. package/compiled/zod/dist/types/v4/core/regexes.d.ts +0 -1
  13. package/compiled/zod/dist/types/v4/core/registries.d.ts +6 -1
  14. package/compiled/zod/dist/types/v4/core/schemas.d.ts +144 -116
  15. package/compiled/zod/dist/types/v4/core/util.d.ts +5 -9
  16. package/compiled/zod/dist/types/v4/locales/ar.d.ts +0 -3
  17. package/compiled/zod/dist/types/v4/locales/az.d.ts +0 -3
  18. package/compiled/zod/dist/types/v4/locales/be.d.ts +0 -3
  19. package/compiled/zod/dist/types/v4/locales/ca.d.ts +0 -3
  20. package/compiled/zod/dist/types/v4/locales/cs.d.ts +0 -3
  21. package/compiled/zod/dist/types/v4/locales/de.d.ts +0 -3
  22. package/compiled/zod/dist/types/v4/locales/en.d.ts +0 -2
  23. package/compiled/zod/dist/types/v4/locales/es.d.ts +0 -3
  24. package/compiled/zod/dist/types/v4/locales/fa.d.ts +0 -3
  25. package/compiled/zod/dist/types/v4/locales/fi.d.ts +0 -3
  26. package/compiled/zod/dist/types/v4/locales/{frCA.d.ts → fr-CA.d.ts} +0 -3
  27. package/compiled/zod/dist/types/v4/locales/fr.d.ts +0 -3
  28. package/compiled/zod/dist/types/v4/locales/he.d.ts +0 -3
  29. package/compiled/zod/dist/types/v4/locales/hu.d.ts +0 -3
  30. package/compiled/zod/dist/types/v4/locales/id.d.ts +0 -3
  31. package/compiled/zod/dist/types/v4/locales/index.d.ts +5 -2
  32. package/compiled/zod/dist/types/v4/locales/it.d.ts +0 -3
  33. package/compiled/zod/dist/types/v4/locales/ja.d.ts +0 -3
  34. package/compiled/zod/dist/types/v4/locales/{zh-tw.d.ts → kh.d.ts} +0 -3
  35. package/compiled/zod/dist/types/v4/locales/ko.d.ts +0 -3
  36. package/compiled/zod/dist/types/v4/locales/mk.d.ts +0 -3
  37. package/compiled/zod/dist/types/v4/locales/ms.d.ts +0 -3
  38. package/compiled/zod/dist/types/v4/locales/nl.d.ts +4 -0
  39. package/compiled/zod/dist/types/v4/locales/no.d.ts +0 -3
  40. package/compiled/zod/dist/types/v4/locales/ota.d.ts +0 -3
  41. package/compiled/zod/dist/types/v4/locales/pl.d.ts +0 -3
  42. package/compiled/zod/dist/types/v4/locales/pt.d.ts +0 -3
  43. package/compiled/zod/dist/types/v4/locales/ru.d.ts +0 -3
  44. package/compiled/zod/dist/types/v4/locales/sl.d.ts +0 -3
  45. package/compiled/zod/dist/types/v4/locales/sv.d.ts +4 -0
  46. package/compiled/zod/dist/types/v4/locales/ta.d.ts +0 -3
  47. package/compiled/zod/dist/types/v4/locales/th.d.ts +0 -3
  48. package/compiled/zod/dist/types/v4/locales/tr.d.ts +0 -2
  49. package/compiled/zod/dist/types/v4/locales/ua.d.ts +0 -3
  50. package/compiled/zod/dist/types/v4/locales/ur.d.ts +0 -3
  51. package/compiled/zod/dist/types/v4/locales/vi.d.ts +0 -3
  52. package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +0 -3
  53. package/compiled/zod/dist/types/v4/locales/zh-TW.d.ts +4 -0
  54. package/compiled/zod/dist/types/v4/mini/external.d.ts +5 -1
  55. package/compiled/zod/dist/types/v4/mini/schemas.d.ts +39 -48
  56. package/compiled/zod/index.js +41 -63
  57. package/compiled/zod/package.json +1 -1
  58. package/compiled/zod/v3/index.d.ts +3 -1
  59. package/compiled/zod/v4/core/index.d.ts +1 -1
  60. package/compiled/zod/v4/index.d.ts +3 -1
  61. package/compiled/zod/v4/locales/index.d.ts +1 -1
  62. package/compiled/zod/v4-mini/index.d.ts +1 -1
  63. package/dist/ErrorHelpers.d.ts +0 -15
  64. package/dist/Module.d.ts +5 -1
  65. package/dist/ModuleTypeConstants.d.ts +0 -85
  66. package/dist/Resolver.d.ts +2 -1
  67. package/dist/RspackError.d.ts +0 -3
  68. package/dist/builtin-loader/lightningcss/index.d.ts +23 -1
  69. package/dist/builtin-loader/swc/types.d.ts +289 -2426
  70. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  71. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  72. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  73. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  74. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  75. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  76. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  77. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  78. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  79. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  80. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
  81. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  82. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  83. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  84. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  85. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  86. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  87. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  88. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  89. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  90. package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
  91. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  92. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  93. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  94. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  95. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  96. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  97. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  98. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  99. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  100. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  101. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  102. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  103. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  104. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  105. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  106. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  107. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
  108. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  109. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  110. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  111. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  112. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  113. package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
  114. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  115. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  116. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
  117. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  118. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
  119. package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
  120. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  121. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  122. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  123. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  124. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  125. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
  126. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
  127. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  128. package/dist/builtin-plugin/base.d.ts +1 -2
  129. package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
  130. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
  131. package/dist/config/zod.d.ts +370 -370
  132. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  133. package/dist/index.js +57 -30
  134. package/dist/lib/AbstractMethodError.d.ts +0 -1
  135. package/dist/lib/CacheFacade.d.ts +0 -28
  136. package/dist/loader-runner/index.d.ts +1 -0
  137. package/dist/stats/statsFactoryUtils.d.ts +0 -4
  138. package/dist/util/cleverMerge.d.ts +0 -30
  139. package/dist/util/comparators.d.ts +0 -4
  140. package/dist/util/hash/wasm-hash.d.ts +0 -1
  141. package/dist/util/identifier.d.ts +0 -12
  142. package/dist/util/index.d.ts +1 -7
  143. package/dist/util/memoize.d.ts +0 -1
  144. package/dist/worker.js +5 -7
  145. package/package.json +5 -5
  146. package/dist/util/hash/BatchedHash.d.ts +0 -25
@@ -3,7 +3,7 @@ export declare const RealContentHashPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
7
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("..").Compiler): void;
9
9
  };
@@ -3,7 +3,7 @@ export declare const RemoveDuplicateModulesPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
7
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("..").Compiler): void;
9
9
  };
@@ -3,7 +3,7 @@ export declare const RemoveEmptyChunksPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
7
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("..").Compiler): void;
9
9
  };
@@ -14,7 +14,7 @@ declare const RsdoctorPluginImpl: {
14
14
  new (c?: RsdoctorPluginOptions | undefined): {
15
15
  name: BuiltinPluginName;
16
16
  _args: [c?: RsdoctorPluginOptions | undefined];
17
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
17
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
18
18
  raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
19
19
  apply(compiler: Compiler): void;
20
20
  };
@@ -4,7 +4,7 @@ export declare const RstestPlugin: {
4
4
  new (rstest: RawRstestPluginOptions): {
5
5
  name: BuiltinPluginName;
6
6
  _args: [rstest: RawRstestPluginOptions];
7
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
8
8
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: import("..").Compiler): void;
10
10
  };
@@ -4,7 +4,7 @@ export declare const RuntimeChunkPlugin: {
4
4
  new (options: RawRuntimeChunkOptions): {
5
5
  name: BuiltinPluginName;
6
6
  _args: [options: RawRuntimeChunkOptions];
7
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
8
8
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: import("..").Compiler): void;
10
10
  };
@@ -7,7 +7,7 @@ export declare const RuntimePluginImpl: {
7
7
  new (): {
8
8
  name: binding.BuiltinPluginName;
9
9
  _args: [];
10
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
10
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
11
11
  raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
12
12
  apply(compiler: import("..").Compiler): void;
13
13
  };
@@ -3,7 +3,7 @@ export declare const SideEffectsFlagPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
7
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("..").Compiler): void;
9
9
  };
@@ -13,7 +13,7 @@ export declare const SizeLimitsPlugin: {
13
13
  maxAssetSize?: number;
14
14
  maxEntrypointSize?: number;
15
15
  }];
16
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
16
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
17
17
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
18
18
  apply(compiler: import("..").Compiler): void;
19
19
  };
@@ -4,7 +4,7 @@ export declare const SourceMapDevToolPlugin: {
4
4
  new (options: SourceMapDevToolPluginOptions): {
5
5
  name: BuiltinPluginName;
6
6
  _args: [options: SourceMapDevToolPluginOptions];
7
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
8
8
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: import("..").Compiler): void;
10
10
  };
@@ -20,7 +20,7 @@ declare const NativeSubresourceIntegrityPlugin: {
20
20
  new (options: NativeSubresourceIntegrityPluginOptions): {
21
21
  name: BuiltinPluginName;
22
22
  _args: [options: NativeSubresourceIntegrityPluginOptions];
23
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
23
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
24
24
  raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
25
25
  apply(compiler: Compiler): void;
26
26
  };
@@ -205,7 +205,7 @@ export declare const SwcJsMinimizerRspackPlugin: {
205
205
  new (options?: SwcJsMinimizerRspackPluginOptions | undefined): {
206
206
  name: BuiltinPluginName;
207
207
  _args: [options?: SwcJsMinimizerRspackPluginOptions | undefined];
208
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
208
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
209
209
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
210
210
  apply(compiler: import("..").Compiler): void;
211
211
  };
@@ -3,7 +3,7 @@ export declare const WarnCaseSensitiveModulesPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
7
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("..").Compiler): void;
9
9
  };
@@ -1,7 +1,6 @@
1
1
  import type * as binding from "@rspack/binding";
2
2
  import type { Compiler, RspackPluginInstance } from "..";
3
3
  type AffectedHooks = keyof Compiler["hooks"];
4
- export declare const HOOKS_CAN_NOT_INHERENT_FROM_PARENT: string[];
5
4
  export declare function canInherentFromParent(affectedHooks?: AffectedHooks): boolean;
6
5
  export declare abstract class RspackBuiltinPlugin implements RspackPluginInstance {
7
6
  abstract raw(compiler: Compiler): binding.BuiltinPlugin | undefined;
@@ -14,7 +13,7 @@ export declare function create<T extends any[], R>(name: binding.BuiltinPluginNa
14
13
  new (...args: T): {
15
14
  name: binding.BuiltinPluginName;
16
15
  _args: T;
17
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
16
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
18
17
  raw(compiler: Compiler): binding.BuiltinPlugin;
19
18
  apply(compiler: Compiler): void;
20
19
  };
@@ -7,7 +7,7 @@ declare const HtmlRspackPluginImpl: {
7
7
  new (c?: HtmlRspackPluginOptions | undefined): {
8
8
  name: BuiltinPluginName;
9
9
  _args: [c?: HtmlRspackPluginOptions | undefined];
10
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
10
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
11
11
  raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
12
12
  apply(compiler: Compiler): void;
13
13
  };
@@ -18,7 +18,7 @@ export declare const BuiltinLazyCompilationPlugin: {
18
18
  data: string;
19
19
  client: string;
20
20
  }, cacheable: boolean, entries: boolean, imports: boolean, test?: RegExp | ((module: Module) => boolean) | undefined];
21
- affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
21
+ affectedHooks: "done" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
22
22
  raw(compiler: import("../..").Compiler): import("@rspack/binding").BuiltinPlugin;
23
23
  apply(compiler: import("../..").Compiler): void;
24
24
  };