@rspack/core 1.0.12 → 1.0.14

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 (82) hide show
  1. package/dist/Compiler.d.ts +0 -1
  2. package/dist/FileSystem.d.ts +0 -1
  3. package/dist/NormalModule.d.ts +2 -7
  4. package/dist/RuntimeGlobals.d.ts +1 -1
  5. package/dist/builtin-plugin/APIPlugin.d.ts +2 -2
  6. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +2 -2
  7. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +2 -2
  8. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +2 -2
  9. package/dist/builtin-plugin/BannerPlugin.d.ts +2 -2
  10. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +2 -2
  11. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +2 -2
  12. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +2 -2
  13. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +2 -2
  14. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
  15. package/dist/builtin-plugin/CssModulesPlugin.d.ts +2 -2
  16. package/dist/builtin-plugin/DataUriPlugin.d.ts +2 -2
  17. package/dist/builtin-plugin/DefinePlugin.d.ts +2 -2
  18. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
  19. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
  20. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +2 -2
  21. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +2 -2
  22. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +2 -2
  23. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +2 -2
  24. package/dist/builtin-plugin/EntryPlugin.d.ts +2 -2
  25. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +2 -2
  26. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +2 -2
  27. package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -2
  28. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +2 -2
  29. package/dist/builtin-plugin/FileUriPlugin.d.ts +2 -2
  30. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +2 -2
  31. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +2 -2
  32. package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +15 -9
  33. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +2 -2
  34. package/dist/builtin-plugin/IgnorePlugin.d.ts +2 -2
  35. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +2 -2
  36. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +2 -2
  37. package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.d.ts +2 -2
  38. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +2 -2
  39. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
  40. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +2 -2
  41. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +2 -2
  42. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
  43. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +2 -2
  44. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +2 -2
  45. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
  46. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
  47. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +2 -2
  48. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +2 -2
  49. package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
  50. package/dist/builtin-plugin/ProvidePlugin.d.ts +2 -2
  51. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +2 -2
  52. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +2 -2
  53. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +2 -2
  54. package/dist/builtin-plugin/RuntimePlugin.d.ts +2 -2
  55. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +2 -2
  56. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +4 -4
  57. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +2 -2
  58. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +2 -2
  59. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +2 -2
  60. package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +2 -2
  61. package/dist/builtin-plugin/css-extract/loader.d.ts +1 -1
  62. package/dist/builtin-plugin/lazy-compilation/backend.d.ts +1 -5
  63. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +2 -2
  64. package/dist/config/adapterRuleUse.d.ts +0 -1
  65. package/dist/config/types.d.ts +809 -1
  66. package/dist/config/zod.d.ts +261 -3709
  67. package/dist/container/ModuleFederationRuntimePlugin.d.ts +2 -2
  68. package/dist/exports.d.ts +2 -2
  69. package/dist/index.js +51 -20
  70. package/dist/lib/HookWebpackError.d.ts +1 -1
  71. package/dist/lib/WebpackError.d.ts +0 -1
  72. package/dist/node/nodeConsole.d.ts +0 -1
  73. package/dist/stats/statsFactoryUtils.d.ts +1 -2
  74. package/dist/util/fs.d.ts +0 -3
  75. package/dist/util/hash/BatchedHash.d.ts +0 -1
  76. package/dist/util/hash/index.d.ts +0 -1
  77. package/dist/util/hash/wasm-hash.d.ts +0 -1
  78. package/dist/util/identifier.d.ts +8 -8
  79. package/dist/util/index.d.ts +0 -1
  80. package/dist/util/memoize.d.ts +1 -1
  81. package/dist/util/webpack.d.ts +1 -1
  82. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /**
3
2
  * The following code is modified based on
4
3
  * https://github.com/webpack/webpack/blob/4b4ca3bb53f36a5b8fc6bc1bd976ed7af161bd80/lib/Compiler.js
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ThreadsafeNodeFS } from "@rspack/binding";
3
2
  import { type OutputFileSystem } from "./util/fs";
4
3
  declare class ThreadsafeWritableNodeFS implements ThreadsafeNodeFS {
@@ -1,17 +1,12 @@
1
- /// <reference types="node" />
2
1
  import * as liteTapable from "@rspack/lite-tapable";
3
2
  import { Compilation } from "./Compilation";
4
3
  import type { Module } from "./Module";
5
4
  import type { LoaderContext } from "./config";
6
5
  export declare class NormalModule {
7
6
  static getCompilationHooks(compilation: Compilation): {
8
- loader: liteTapable.SyncHook<[LoaderContext<{}>, Module], void, {
9
- _UnsetAdditionalOptions: true;
10
- }>;
7
+ loader: liteTapable.SyncHook<[LoaderContext, Module]>;
11
8
  readResourceForScheme: any;
12
- readResource: liteTapable.HookMap<liteTapable.AsyncSeriesBailHook<[LoaderContext<{}>], string | Buffer, {
13
- _UnsetAdditionalOptions: true;
14
- }>>;
9
+ readResource: liteTapable.HookMap<liteTapable.AsyncSeriesBailHook<[LoaderContext], string | Buffer>>;
15
10
  };
16
11
  }
17
12
  export default NormalModule;
@@ -108,7 +108,7 @@ export declare const RuntimeGlobals: {
108
108
  */
109
109
  readonly compatGetDefaultExport: "__webpack_require__.n";
110
110
  /**
111
- * harmony module decorator
111
+ * ES modules decorator
112
112
  */
113
113
  readonly harmonyModuleDecorator: "__webpack_require__.hmd";
114
114
  /**
@@ -4,7 +4,7 @@ export declare const APIPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const ArrayPushCallbackChunkFormatPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const AssetModulesPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const AsyncWebAssemblyModulesPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -34,7 +34,7 @@ export declare const BannerPlugin: {
34
34
  name: BuiltinPluginName;
35
35
  _args: [args: BannerPluginArgument];
36
36
  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" | undefined;
37
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
38
- apply(compiler: import("../Compiler").Compiler): void;
37
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
38
+ apply(compiler: import("..").Compiler): void;
39
39
  };
40
40
  };
@@ -9,7 +9,7 @@ export declare const BundlerInfoRspackPlugin: {
9
9
  name: BuiltinPluginName;
10
10
  _args: [options: BundleInfoOptions];
11
11
  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" | undefined;
12
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
13
- apply(compiler: import("../Compiler").Compiler): void;
12
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
13
+ apply(compiler: import("..").Compiler): void;
14
14
  };
15
15
  };
@@ -4,7 +4,7 @@ export declare const ChunkPrefetchPreloadPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const CommonJsChunkFormatPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const ContextReplacementPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -9,7 +9,7 @@ export declare const CopyRspackPlugin: {
9
9
  name: BuiltinPluginName;
10
10
  _args: [copy: CopyRspackPluginOptions];
11
11
  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" | undefined;
12
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
13
- apply(compiler: import("../Compiler").Compiler): void;
12
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
13
+ apply(compiler: import("..").Compiler): void;
14
14
  };
15
15
  };
@@ -4,7 +4,7 @@ export declare const CssModulesPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const DataUriPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -5,8 +5,8 @@ export declare const DefinePlugin: {
5
5
  name: BuiltinPluginName;
6
6
  _args: [define: DefinePluginOptions];
7
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" | undefined;
8
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
9
- apply(compiler: import("../Compiler").Compiler): void;
8
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
+ apply(compiler: import("..").Compiler): void;
10
10
  };
11
11
  };
12
12
  type CodeValue = RecursiveArrayOrRecord<CodeValuePrimitive>;
@@ -4,7 +4,7 @@ export declare const DeterministicChunkIdsPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const DeterministicModuleIdsPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const ElectronTargetPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [context?: string | undefined];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const EnableChunkLoadingPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [type: string];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const EnableWasmLoadingPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [type: string];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const EnsureChunkConditionsPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -17,8 +17,8 @@ export declare const EntryPlugin: {
17
17
  name: BuiltinPluginName;
18
18
  _args: [context: string, entry: string, options?: string | EntryOptions | undefined];
19
19
  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" | undefined;
20
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
21
- apply(compiler: import("../Compiler").Compiler): void;
20
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
21
+ apply(compiler: import("..").Compiler): void;
22
22
  };
23
23
  };
24
24
  export declare function getRawEntryOptions(entry: EntryOptions): JsEntryOptions;
@@ -5,7 +5,7 @@ export declare const EvalDevToolModulePlugin: {
5
5
  name: BuiltinPluginName;
6
6
  _args: [options: RawEvalDevToolModulePluginOptions];
7
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" | undefined;
8
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
9
- apply(compiler: import("../Compiler").Compiler): void;
8
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
+ apply(compiler: import("..").Compiler): void;
10
10
  };
11
11
  };
@@ -5,7 +5,7 @@ export declare const EvalSourceMapDevToolPlugin: {
5
5
  name: BuiltinPluginName;
6
6
  _args: [options: SourceMapDevToolPluginOptions];
7
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" | undefined;
8
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
9
- apply(compiler: import("../Compiler").Compiler): void;
8
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
+ apply(compiler: import("..").Compiler): void;
10
10
  };
11
11
  };
@@ -5,7 +5,7 @@ export declare const ExternalsPlugin: {
5
5
  name: BuiltinPluginName;
6
6
  _args: [type: string, externals: Externals];
7
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" | undefined;
8
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
9
- apply(compiler: import("../Compiler").Compiler): void;
8
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
+ apply(compiler: import("..").Compiler): void;
10
10
  };
11
11
  };
@@ -4,7 +4,7 @@ export declare const FetchCompileAsyncWasmPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const FileUriPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const FlagDependencyExportsPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const FlagDependencyUsagePlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [global: boolean];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -65,6 +65,15 @@ export type HtmlRspackPluginOptions = {
65
65
  /** Inject a base tag */
66
66
  hash?: boolean;
67
67
  };
68
+ declare const HtmlRspackPluginImpl: {
69
+ new (c?: HtmlRspackPluginOptions | undefined): {
70
+ name: BuiltinPluginName;
71
+ _args: [c?: HtmlRspackPluginOptions | undefined];
72
+ 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" | undefined;
73
+ raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
74
+ apply(compiler: Compiler): void;
75
+ };
76
+ };
68
77
  type ExtraPluginHookData = {
69
78
  plugin: {
70
79
  options: HtmlRspackPluginOptions;
@@ -88,17 +97,14 @@ export type HtmlRspackPluginHooks = {
88
97
  JsAfterEmitData & ExtraPluginHookData
89
98
  ]>;
90
99
  };
91
- declare const HtmlRspackPlugin: {
92
- new (c?: HtmlRspackPluginOptions | undefined): {
93
- name: BuiltinPluginName;
94
- _args: [c?: HtmlRspackPluginOptions | undefined];
95
- 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" | undefined;
96
- raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
97
- apply(compiler: Compiler): void;
98
- };
99
- } & {
100
+ declare const HtmlRspackPlugin: typeof HtmlRspackPluginImpl & {
101
+ /**
102
+ * @deprecated Use `getCompilationHooks` instead.
103
+ */
104
+ getHooks: (compilation: Compilation) => HtmlRspackPluginHooks;
100
105
  getCompilationHooks: (compilation: Compilation) => HtmlRspackPluginHooks;
101
106
  getCompilationOptions: (compilation: Compilation) => HtmlRspackPluginOptions | void;
102
107
  createHtmlTagObject: (tagName: string, attributes?: Record<string, string | boolean>, innerHTML?: string | undefined) => JsHtmlPluginTag;
108
+ version: number;
103
109
  };
104
110
  export { HtmlRspackPlugin };
@@ -4,7 +4,7 @@ export declare const HttpExternalsRspackPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [css: boolean, webAsync: boolean];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -13,7 +13,7 @@ export declare const IgnorePlugin: {
13
13
  name: BuiltinPluginName;
14
14
  _args: [options: IgnorePluginOptions];
15
15
  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" | undefined;
16
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
17
- apply(compiler: import("../Compiler").Compiler): void;
16
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
17
+ apply(compiler: import("..").Compiler): void;
18
18
  };
19
19
  };
@@ -4,7 +4,7 @@ export declare const InferAsyncModulesPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const JsonModulesPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -22,7 +22,7 @@ export declare const LightningCssMinimizerRspackPlugin: {
22
22
  name: BuiltinPluginName;
23
23
  _args: [options?: LightningCssMinimizerRspackPluginOptions | undefined];
24
24
  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" | undefined;
25
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
26
- apply(compiler: import("../Compiler").Compiler): void;
25
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
26
+ apply(compiler: import("..").Compiler): void;
27
27
  };
28
28
  };
@@ -9,7 +9,7 @@ export declare const LimitChunkCountPlugin: {
9
9
  name: BuiltinPluginName;
10
10
  _args: [options: LimitChunkCountOptions];
11
11
  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" | undefined;
12
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
13
- apply(compiler: import("../Compiler").Compiler): void;
12
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
13
+ apply(compiler: import("..").Compiler): void;
14
14
  };
15
15
  };
@@ -4,7 +4,7 @@ export declare const MangleExportsPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [deterministic: boolean];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const MergeDuplicateChunksPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const ModuleChunkFormatPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const ModuleConcatenationPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const NamedChunkIdsPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const NamedModuleIdsPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };
@@ -4,7 +4,7 @@ export declare const NaturalChunkIdsPlugin: {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
6
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" | undefined;
7
- raw(compiler: import("../Compiler").Compiler): import("@rspack/binding").BuiltinPlugin;
8
- apply(compiler: import("../Compiler").Compiler): void;
7
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("..").Compiler): void;
9
9
  };
10
10
  };