@rspack/core 1.3.0-beta.1 → 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 (69) hide show
  1. package/dist/Watching.d.ts +4 -1
  2. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  3. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  4. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  5. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  6. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  7. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  8. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  9. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +1 -1
  10. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  11. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  12. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  13. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  14. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  15. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  16. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  17. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  18. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  19. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  20. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  21. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  22. package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
  23. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  24. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  25. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  26. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  27. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  28. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  29. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  30. package/dist/builtin-plugin/HttpUriPlugin.d.ts +36 -0
  31. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  32. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  33. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  35. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  38. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  39. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
  41. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  42. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  44. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  46. package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
  47. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  51. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
  52. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  53. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  54. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  55. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  57. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
  58. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
  59. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  60. package/dist/builtin-plugin/base.d.ts +1 -1
  61. package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
  62. package/dist/builtin-plugin/index.d.ts +1 -0
  63. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
  64. package/dist/config/normalization.d.ts +2 -0
  65. package/dist/config/types.d.ts +11 -1
  66. package/dist/config/zod.d.ts +443 -360
  67. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  68. package/dist/index.js +349 -261
  69. package/package.json +3 -3
@@ -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
  };
@@ -31,6 +31,7 @@ export * from "./FlagDependencyUsagePlugin";
31
31
  export * from "./HotModuleReplacementPlugin";
32
32
  export * from "./html-plugin/index";
33
33
  export * from "./HttpExternalsRspackPlugin";
34
+ export * from "./HttpUriPlugin";
34
35
  export * from "./IgnorePlugin";
35
36
  export * from "./InferAsyncModulesPlugin";
36
37
  export * from "./JavascriptModulesPlugin";
@@ -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
  };
@@ -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,6 +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 { HttpUriPluginOptions } from "../builtin-plugin/HttpUriPlugin";
8
9
  import type { Chunk } from "../exports";
9
10
  import type { ResolveCallback } from "./adapterRuleUse";
10
11
  export type FilenameTemplate = string;
@@ -483,7 +484,7 @@ export type Output = {
483
484
  * */
484
485
  export type ResolveAlias = {
485
486
  [x: string]: string | false | (string | false)[];
486
- };
487
+ } | false;
487
488
  /** The replacement of [tsconfig-paths-webpack-plugin](https://www.npmjs.com/package/tsconfig-paths-webpack-plugin) in Rspack. */
488
489
  export type ResolveTsConfig = string | {
489
490
  configFile: string;
@@ -1895,6 +1896,10 @@ export type Incremental = {
1895
1896
  */
1896
1897
  emitAssets?: boolean;
1897
1898
  };
1899
+ /**
1900
+ * Options for experiments.buildHttp
1901
+ */
1902
+ export type HttpUriOptions = HttpUriPluginOptions;
1898
1903
  /**
1899
1904
  * Experimental features configuration.
1900
1905
  */
@@ -1959,6 +1964,11 @@ export type Experiments = {
1959
1964
  * Enable future Rspack features default options.
1960
1965
  */
1961
1966
  rspackFuture?: RspackFutureOptions;
1967
+ /**
1968
+ * Enable loading of modules via HTTP/HTTPS requests.
1969
+ * @default false
1970
+ */
1971
+ buildHttp?: HttpUriOptions;
1962
1972
  };
1963
1973
  export type Watch = boolean;
1964
1974
  /** Options for watch mode. */