@rspack/core 1.3.0-beta.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/ChunkGraph.d.ts +1 -1
  2. package/dist/Watching.d.ts +4 -1
  3. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  4. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  5. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  6. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  7. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  8. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  9. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  10. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +59 -0
  11. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  12. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  13. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  14. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  15. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  16. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  17. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  18. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  19. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  20. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  21. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  22. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  23. package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
  24. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  25. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  26. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  27. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  28. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  29. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  30. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  31. package/dist/builtin-plugin/HttpUriPlugin.d.ts +36 -0
  32. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  33. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  35. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  38. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  39. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  41. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
  42. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  44. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  46. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  47. package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
  51. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  52. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
  53. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  54. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  55. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  57. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  58. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
  59. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
  60. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  61. package/dist/builtin-plugin/base.d.ts +1 -1
  62. package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
  63. package/dist/builtin-plugin/index.d.ts +3 -1
  64. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
  65. package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +4 -0
  66. package/dist/config/normalization.d.ts +2 -0
  67. package/dist/config/types.d.ts +19 -6
  68. package/dist/config/zod.d.ts +457 -511
  69. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  70. package/dist/cssExtractLoader.js +1 -1
  71. package/dist/exports.d.ts +4 -1
  72. package/dist/index.js +503 -527
  73. package/dist/stats/statsFactoryUtils.d.ts +8 -8
  74. package/dist/util/MergeCaller.d.ts +1 -0
  75. package/hot/lazy-compilation-node.js +5 -1
  76. package/hot/lazy-compilation-web.js +6 -10
  77. package/package.json +6 -6
  78. package/dist/builtin-plugin/lazy-compilation/backend.d.ts +0 -52
  79. package/dist/builtin-plugin/lazy-compilation/plugin.d.ts +0 -13
@@ -3,7 +3,7 @@ export declare const ModuleInfoHeaderPlugin: {
3
3
  new (verbose: any): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [verbose: any];
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;
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;
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 NamedChunkIdsPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
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;
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;
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 NamedModuleIdsPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
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;
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;
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 NoEmitOnErrorsPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
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;
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;
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 NodeTargetPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
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;
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;
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 OccurrenceChunkIdsPlugin: {
3
3
  new (options?: RawOccurrenceChunkIdsPluginOptions | undefined): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [options?: RawOccurrenceChunkIdsPluginOptions | 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;
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;
7
7
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("..").Compiler): void;
9
9
  };
@@ -4,7 +4,7 @@ export declare const ProgressPlugin: {
4
4
  new (progress?: ProgressPluginArgument): {
5
5
  name: BuiltinPluginName;
6
6
  _args: [progress?: ProgressPluginArgument];
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;
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;
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 ProvidePlugin: {
4
4
  new (provide: ProvidePluginOptions): {
5
5
  name: BuiltinPluginName;
6
6
  _args: [provide: ProvidePluginOptions];
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;
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;
8
8
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: import("..").Compiler): void;
10
10
  };
@@ -3,7 +3,7 @@ export declare const RealContentHashPlugin: {
3
3
  new (): {
4
4
  name: BuiltinPluginName;
5
5
  _args: [];
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;
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;
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" | "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;
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;
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" | "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;
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;
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" | "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
+ 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;
18
18
  raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
19
19
  apply(compiler: Compiler): void;
20
20
  };
@@ -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" | "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
+ 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;
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" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
10
+ 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;
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" | "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;
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;
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" | "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;
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;
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: RawSourceMapDevToolPluginOptions): {
5
5
  name: BuiltinPluginName;
6
6
  _args: [options: RawSourceMapDevToolPluginOptions];
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;
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;
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" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
23
+ 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;
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" | "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;
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;
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" | "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;
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;
7
7
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("..").Compiler): void;
9
9
  };
@@ -14,7 +14,7 @@ export declare function create<T extends any[], R>(name: binding.BuiltinPluginNa
14
14
  new (...args: T): {
15
15
  name: binding.BuiltinPluginName;
16
16
  _args: T;
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;
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;
18
18
  raw(compiler: Compiler): binding.BuiltinPlugin;
19
19
  apply(compiler: Compiler): void;
20
20
  };
@@ -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" | "compilation" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
10
+ 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;
11
11
  raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
12
12
  apply(compiler: Compiler): void;
13
13
  };
@@ -5,6 +5,7 @@ export * from "./AssetModulesPlugin";
5
5
  export * from "./AsyncWebAssemblyModulesPlugin";
6
6
  export * from "./BannerPlugin";
7
7
  export * from "./BundlerInfoRspackPlugin";
8
+ export * from "./CircularDependencyRspackPlugin";
8
9
  export * from "./ChunkPrefetchPreloadPlugin";
9
10
  export * from "./CommonJsChunkFormatPlugin";
10
11
  export * from "./CopyRspackPlugin";
@@ -30,12 +31,13 @@ export * from "./FlagDependencyUsagePlugin";
30
31
  export * from "./HotModuleReplacementPlugin";
31
32
  export * from "./html-plugin/index";
32
33
  export * from "./HttpExternalsRspackPlugin";
34
+ export * from "./HttpUriPlugin";
33
35
  export * from "./IgnorePlugin";
34
36
  export * from "./InferAsyncModulesPlugin";
35
37
  export * from "./JavascriptModulesPlugin";
36
38
  export * from "./JsLoaderRspackPlugin";
37
39
  export * from "./JsonModulesPlugin";
38
- export * from "./lazy-compilation/plugin";
40
+ export * from "./lazy-compilation/middleware";
39
41
  export * from "./LimitChunkCountPlugin";
40
42
  export * from "./MangleExportsPlugin";
41
43
  export * from "./MergeDuplicateChunksPlugin";
@@ -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" | "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;
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;
22
22
  raw(compiler: import("../..").Compiler): import("@rspack/binding").BuiltinPlugin;
23
23
  apply(compiler: import("../..").Compiler): void;
24
24
  };
@@ -0,0 +1,4 @@
1
+ import type { Middleware } from "webpack-dev-server";
2
+ import type { Compiler, LazyCompilationOptions } from "../..";
3
+ export declare const LAZY_COMPILATION_PREFIX = "/lazy-compilation-using-";
4
+ export declare const lazyCompilationMiddleware: (compiler: Compiler, userOptions?: LazyCompilationOptions | boolean) => Middleware;
@@ -8,6 +8,7 @@
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
10
  import type { Compilation } from "../Compilation";
11
+ import type { HttpUriPluginOptions } from "../builtin-plugin";
11
12
  import type { Amd, AssetModuleFilename, Bail, CacheOptions, ChunkFilename, ChunkLoading, ChunkLoadingGlobal, Clean, Context, CrossOriginLoading, CssChunkFilename, CssFilename, Dependencies, DevServer, DevTool, DevtoolFallbackModuleFilenameTemplate, DevtoolModuleFilenameTemplate, DevtoolNamespace, EnabledLibraryTypes, EnabledWasmLoadingTypes, EntryDescription, Environment, Externals, ExternalsPresets, ExternalsType, Filename, GeneratorOptionsByModuleType, GlobalObject, HashDigest, HashDigestLength, HashFunction, HashSalt, HotUpdateChunkFilename, HotUpdateGlobal, HotUpdateMainFilename, Iife, ImportFunctionName, ImportMetaName, Incremental, InfrastructureLogging, LazyCompilationOptions, LibraryOptions, Loader, Mode, Name, NoParseOption, Node, Optimization, OutputModule, ParserOptionsByModuleType, Path, Performance, Plugins, Profile, PublicPath, Resolve, RspackFutureOptions, RspackOptions, RuleSetRules, ScriptType, SnapshotOptions, SourceMapFilename, StatsValue, StrictModuleErrorHandling, Target, TrustedTypes, UniqueName, WasmLoading, Watch, WatchOptions, WebassemblyModuleFilename, WorkerPublicPath } from "./types";
12
13
  export declare const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized;
13
14
  export type EntryDynamicNormalized = () => Promise<EntryStaticNormalized>;
@@ -103,6 +104,7 @@ export interface ExperimentsNormalized {
103
104
  parallelCodeSplitting?: boolean;
104
105
  futureDefaults?: boolean;
105
106
  rspackFuture?: RspackFutureOptions;
107
+ buildHttp?: HttpUriPluginOptions;
106
108
  }
107
109
  export type IgnoreWarningsNormalized = ((warning: Error, compilation: Compilation) => boolean)[];
108
110
  export type OptimizationRuntimeChunkNormalized = false | {
@@ -5,7 +5,7 @@ import type { Compilation, PathData } from "../Compilation";
5
5
  import type { Compiler } from "../Compiler";
6
6
  import type { Module } from "../Module";
7
7
  import type ModuleGraph from "../ModuleGraph";
8
- import type { LazyCompilationDefaultBackendOptions } from "../builtin-plugin/lazy-compilation/backend";
8
+ import type { HttpUriPluginOptions } from "../builtin-plugin/HttpUriPlugin";
9
9
  import type { Chunk } from "../exports";
10
10
  import type { ResolveCallback } from "./adapterRuleUse";
11
11
  export type FilenameTemplate = string;
@@ -484,7 +484,7 @@ export type Output = {
484
484
  * */
485
485
  export type ResolveAlias = {
486
486
  [x: string]: string | false | (string | false)[];
487
- };
487
+ } | false;
488
488
  /** The replacement of [tsconfig-paths-webpack-plugin](https://www.npmjs.com/package/tsconfig-paths-webpack-plugin) in Rspack. */
489
489
  export type ResolveTsConfig = string | {
490
490
  configFile: string;
@@ -1810,10 +1810,6 @@ export type RspackFutureOptions = {
1810
1810
  * Options for lazy compilation.
1811
1811
  */
1812
1812
  export type LazyCompilationOptions = {
1813
- /**
1814
- * Backend configuration for lazy compilation.
1815
- */
1816
- backend?: LazyCompilationDefaultBackendOptions;
1817
1813
  /**
1818
1814
  * Enable lazy compilation for imports.
1819
1815
  */
@@ -1826,6 +1822,14 @@ export type LazyCompilationOptions = {
1826
1822
  * Test function or regex to determine which modules to include.
1827
1823
  */
1828
1824
  test?: RegExp | ((module: Module) => boolean);
1825
+ /**
1826
+ * The runtime code path for client
1827
+ */
1828
+ client?: string;
1829
+ /**
1830
+ * The server url
1831
+ */
1832
+ serverUrl?: string;
1829
1833
  };
1830
1834
  /**
1831
1835
  * Options for incremental builds.
@@ -1892,6 +1896,10 @@ export type Incremental = {
1892
1896
  */
1893
1897
  emitAssets?: boolean;
1894
1898
  };
1899
+ /**
1900
+ * Options for experiments.buildHttp
1901
+ */
1902
+ export type HttpUriOptions = HttpUriPluginOptions;
1895
1903
  /**
1896
1904
  * Experimental features configuration.
1897
1905
  */
@@ -1956,6 +1964,11 @@ export type Experiments = {
1956
1964
  * Enable future Rspack features default options.
1957
1965
  */
1958
1966
  rspackFuture?: RspackFutureOptions;
1967
+ /**
1968
+ * Enable loading of modules via HTTP/HTTPS requests.
1969
+ * @default false
1970
+ */
1971
+ buildHttp?: HttpUriOptions;
1959
1972
  };
1960
1973
  export type Watch = boolean;
1961
1974
  /** Options for watch mode. */