@rspack/core 1.4.7-alpha.1 → 1.4.8

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 (99) hide show
  1. package/compiled/glob-to-regexp/index.d.ts +11 -0
  2. package/compiled/glob-to-regexp/index.js +187 -0
  3. package/compiled/glob-to-regexp/package.json +1 -0
  4. package/compiled/watchpack/index.js +9 -149
  5. package/dist/Compilation.d.ts +13 -7
  6. package/dist/Compiler.d.ts +10 -10
  7. package/dist/MultiCompiler.d.ts +1 -1
  8. package/dist/NativeWatchFileSystem.d.ts +17 -0
  9. package/dist/NormalModule.d.ts +1 -1
  10. package/dist/ResolverFactory.d.ts +1 -1
  11. package/dist/Watching.d.ts +10 -1
  12. package/dist/builtin-loader/swc/index.d.ts +3 -3
  13. package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
  14. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
  15. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
  16. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
  17. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  18. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
  19. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
  20. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
  21. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
  22. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
  23. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
  24. package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
  25. package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
  26. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  27. package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
  28. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  29. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
  30. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  31. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
  32. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
  33. package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  35. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
  38. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
  39. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
  41. package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
  42. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  44. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
  46. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
  47. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
  51. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
  52. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
  53. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
  54. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
  55. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
  57. package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
  58. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
  59. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
  60. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
  61. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
  62. package/dist/builtin-plugin/RslibPlugin.d.ts +1 -1
  63. package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
  64. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  65. package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
  66. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
  67. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
  68. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  69. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
  70. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
  71. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
  72. package/dist/builtin-plugin/base.d.ts +2 -2
  73. package/dist/builtin-plugin/html-plugin/index.d.ts +1 -1
  74. package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
  75. package/dist/builtin-plugin/index.d.ts +20 -20
  76. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
  77. package/dist/config/adapterRuleUse.d.ts +2 -2
  78. package/dist/config/devServer.d.ts +1 -1
  79. package/dist/config/normalization.d.ts +3 -2
  80. package/dist/config/types.d.ts +8 -3
  81. package/dist/container/ContainerPlugin.d.ts +1 -1
  82. package/dist/container/ContainerReferencePlugin.d.ts +1 -1
  83. package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
  84. package/dist/exports.d.ts +22 -62
  85. package/dist/index.js +6762 -6666
  86. package/dist/lib/Cache.d.ts +1 -1
  87. package/dist/lib/CacheFacade.d.ts +1 -1
  88. package/dist/loader-runner/utils.d.ts +1 -1
  89. package/dist/node/NodeWatchFileSystem.d.ts +1 -1
  90. package/dist/rspack.d.ts +1 -1
  91. package/dist/schema/config.d.ts +50 -49
  92. package/dist/schema/plugins.d.ts +7 -7
  93. package/dist/sharing/ConsumeSharedPlugin.d.ts +1 -1
  94. package/dist/sharing/ProvideSharedPlugin.d.ts +1 -1
  95. package/dist/sharing/ShareRuntimePlugin.d.ts +1 -1
  96. package/dist/util/fs.d.ts +10 -1
  97. package/hot/lazy-compilation-node.js +0 -2
  98. package/hot/lazy-compilation-web.js +0 -2
  99. package/package.json +4 -2
@@ -2,7 +2,7 @@ export declare const RealContentHashPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- 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;
5
+ affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -2,7 +2,7 @@ export declare const RemoveDuplicateModulesPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- 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;
5
+ affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -2,7 +2,7 @@ export declare const RemoveEmptyChunksPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- 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;
5
+ affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -14,7 +14,7 @@ declare const RsdoctorPluginImpl: {
14
14
  new (c?: RsdoctorPluginOptions | undefined): {
15
15
  name: string;
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" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "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 RslibPlugin: {
4
4
  new (rslib: RawRslibPluginOptions): {
5
5
  name: string;
6
6
  _args: [rslib: RawRslibPluginOptions];
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" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "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 RstestPlugin: {
4
4
  new (rstest: RawRstestPluginOptions): {
5
5
  name: string;
6
6
  _args: [rstest: RawRstestPluginOptions];
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" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
8
8
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: import("..").Compiler): void;
10
10
  };
@@ -4,7 +4,7 @@ export declare const RuntimeChunkPlugin: {
4
4
  new (options: RawRuntimeChunkOptions): {
5
5
  name: string;
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" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "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: string;
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" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
11
11
  raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
12
12
  apply(compiler: import("..").Compiler): void;
13
13
  };
@@ -2,7 +2,7 @@ export declare const SideEffectsFlagPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- 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;
5
+ affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -12,7 +12,7 @@ export declare const SizeLimitsPlugin: {
12
12
  maxAssetSize?: number;
13
13
  maxEntrypointSize?: number;
14
14
  }];
15
- 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;
15
+ affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
16
16
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
17
17
  apply(compiler: import("..").Compiler): void;
18
18
  };
@@ -4,7 +4,7 @@ export declare const SourceMapDevToolPlugin: {
4
4
  new (options: SourceMapDevToolPluginOptions): {
5
5
  name: string;
6
6
  _args: [options: SourceMapDevToolPluginOptions];
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" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "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: string;
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" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "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: string;
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" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "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
  };
@@ -2,7 +2,7 @@ export declare const WarnCaseSensitiveModulesPlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- 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;
5
+ affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
@@ -14,7 +14,7 @@ export declare function create<T extends any[], R>(name: binding.BuiltinPluginNa
14
14
  new (...args: T): {
15
15
  name: string;
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" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
18
18
  raw(compiler: Compiler): binding.BuiltinPlugin;
19
19
  apply(compiler: Compiler): void;
20
20
  };
@@ -37,7 +37,7 @@ export declare function createNativePlugin<T extends any[], R>(name: CustomPlugi
37
37
  new (...args: T): {
38
38
  name: string;
39
39
  _args: T;
40
- 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;
40
+ affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
41
41
  raw(compiler: Compiler): binding.BuiltinPlugin;
42
42
  apply(compiler: Compiler): void;
43
43
  };
@@ -1,2 +1,2 @@
1
- export * from "./plugin";
2
1
  export * from "./options";
2
+ export * from "./plugin";
@@ -7,7 +7,7 @@ declare const HtmlRspackPluginImpl: {
7
7
  new (c?: HtmlRspackPluginOptions | undefined): {
8
8
  name: string;
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" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
11
11
  raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
12
12
  apply(compiler: Compiler): void;
13
13
  };
@@ -1,20 +1,24 @@
1
- export { RspackBuiltinPlugin, createNativePlugin } from "./base";
2
1
  export * from "./APIPlugin";
3
2
  export * from "./ArrayPushCallbackChunkFormatPlugin";
4
3
  export * from "./AssetModulesPlugin";
5
4
  export * from "./AsyncWebAssemblyModulesPlugin";
6
5
  export * from "./BannerPlugin";
7
6
  export * from "./BundlerInfoRspackPlugin";
8
- export * from "./CircularDependencyRspackPlugin";
7
+ export { createNativePlugin, RspackBuiltinPlugin } from "./base";
9
8
  export * from "./ChunkPrefetchPreloadPlugin";
9
+ export * from "./CircularDependencyRspackPlugin";
10
10
  export * from "./CommonJsChunkFormatPlugin";
11
+ export * from "./ContextReplacementPlugin";
11
12
  export * from "./CopyRspackPlugin";
12
- export * from "./css-extract/index";
13
+ export * from "./CssChunkingPlugin";
13
14
  export * from "./CssModulesPlugin";
15
+ export * from "./css-extract/index";
14
16
  export * from "./DataUriPlugin";
15
17
  export * from "./DefinePlugin";
16
18
  export * from "./DeterministicChunkIdsPlugin";
17
19
  export * from "./DeterministicModuleIdsPlugin";
20
+ export * from "./DllEntryPlugin";
21
+ export * from "./DllReferenceAgencyPlugin";
18
22
  export * from "./DynamicEntryPlugin";
19
23
  export * from "./ElectronTargetPlugin";
20
24
  export * from "./EnableChunkLoadingPlugin";
@@ -25,56 +29,52 @@ export * from "./EntryPlugin";
25
29
  export * from "./EvalDevToolModulePlugin";
26
30
  export * from "./EvalSourceMapDevToolPlugin";
27
31
  export * from "./ExternalsPlugin";
32
+ export * from "./FetchCompileAsyncWasmPlugin";
28
33
  export * from "./FileUriPlugin";
29
34
  export * from "./FlagDependencyExportsPlugin";
30
35
  export * from "./FlagDependencyUsagePlugin";
31
36
  export * from "./HotModuleReplacementPlugin";
32
- export * from "./html-plugin/index";
33
37
  export * from "./HttpExternalsRspackPlugin";
34
38
  export * from "./HttpUriPlugin";
39
+ export * from "./html-plugin/index";
35
40
  export * from "./IgnorePlugin";
36
41
  export * from "./InferAsyncModulesPlugin";
37
42
  export * from "./JavascriptModulesPlugin";
38
43
  export * from "./JsLoaderRspackPlugin";
39
44
  export * from "./JsonModulesPlugin";
40
- export * from "./lazy-compilation/middleware";
45
+ export * from "./LibManifestPlugin";
46
+ export * from "./LightningCssMinimizerRspackPlugin";
47
+ export * from "./LightningCssMinimizerRspackPlugin";
41
48
  export * from "./LimitChunkCountPlugin";
49
+ export * from "./lazy-compilation/middleware";
42
50
  export * from "./MangleExportsPlugin";
43
51
  export * from "./MergeDuplicateChunksPlugin";
44
52
  export * from "./ModuleChunkFormatPlugin";
45
53
  export * from "./ModuleConcatenationPlugin";
54
+ export * from "./ModuleInfoHeaderPlugin";
46
55
  export * from "./NamedChunkIdsPlugin";
47
56
  export * from "./NamedModuleIdsPlugin";
48
57
  export * from "./NaturalChunkIdsPlugin";
49
58
  export * from "./NaturalModuleIdsPlugin";
50
59
  export * from "./NodeTargetPlugin";
60
+ export * from "./NoEmitOnErrorsPlugin";
51
61
  export * from "./OccurrenceChunkIdsPlugin";
52
62
  export * from "./ProgressPlugin";
53
- export * from "./RstestPlugin";
54
- export * from "./RslibPlugin";
55
63
  export * from "./ProvidePlugin";
56
64
  export * from "./RealContentHashPlugin";
65
+ export * from "./RemoveDuplicateModulesPlugin";
57
66
  export * from "./RemoveEmptyChunksPlugin";
67
+ export * from "./RsdoctorPlugin";
68
+ export * from "./RslibPlugin";
69
+ export * from "./RstestPlugin";
58
70
  export * from "./RuntimeChunkPlugin";
59
71
  export * from "./RuntimePlugin";
60
72
  export * from "./SideEffectsFlagPlugin";
61
73
  export * from "./SizeLimitsPlugin";
62
74
  export * from "./SourceMapDevToolPlugin";
63
75
  export * from "./SplitChunksPlugin";
64
- export * from "./LightningCssMinimizerRspackPlugin";
65
- export * from "./RemoveDuplicateModulesPlugin";
66
- export * from "./LightningCssMinimizerRspackPlugin";
76
+ export * from "./SubresourceIntegrityPlugin";
67
77
  export * from "./SwcJsMinimizerPlugin";
68
78
  export * from "./WarnCaseSensitiveModulesPlugin";
69
79
  export * from "./WebWorkerTemplatePlugin";
70
80
  export * from "./WorkerPlugin";
71
- export * from "./FetchCompileAsyncWasmPlugin";
72
- export * from "./NoEmitOnErrorsPlugin";
73
- export * from "./ContextReplacementPlugin";
74
- export * from "./LibManifestPlugin";
75
- export * from "./DllEntryPlugin";
76
- export * from "./DllReferenceAgencyPlugin";
77
- export * from "./RsdoctorPlugin";
78
- export * from "./SubresourceIntegrityPlugin";
79
- export * from "./ModuleInfoHeaderPlugin";
80
- export * from "./CssChunkingPlugin";
@@ -17,7 +17,7 @@ export declare const BuiltinLazyCompilationPlugin: {
17
17
  data: string;
18
18
  client: string;
19
19
  }, cacheable: boolean, entries: boolean, imports: boolean, test?: RegExp | ((module: Module) => boolean) | undefined];
20
- 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;
20
+ affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
21
21
  raw(compiler: import("../..").Compiler): import("@rspack/binding").BuiltinPlugin;
22
22
  apply(compiler: import("../..").Compiler): void;
23
23
  };
@@ -1,10 +1,10 @@
1
1
  import type { AssetInfo, RawModuleRuleUse, RawOptions } from "@rspack/binding";
2
2
  import type { Compilation } from "../Compilation";
3
3
  import type { Compiler } from "../Compiler";
4
- import type { Module } from "../Module";
5
- import type { ResolveRequest } from "../Resolver";
6
4
  import { type LoaderObject } from "../loader-runner";
7
5
  import type { Logger } from "../logging/Logger";
6
+ import type { Module } from "../Module";
7
+ import type { ResolveRequest } from "../Resolver";
8
8
  import type Hash from "../util/hash";
9
9
  import type { RspackOptionsNormalized } from "./normalization";
10
10
  import type { Mode, PublicPath, Resolve, RuleSetUseItem, Target } from "./types";
@@ -133,7 +133,7 @@ type ProxyConfigArrayItem = {
133
133
  type ByPass = (req: Request, res: Response, proxyConfig: ProxyConfigArrayItem) => any;
134
134
  type ProxyConfigArray = (ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[];
135
135
  type Callback = (stats?: Stats | MultiStats | undefined) => any;
136
- type DevMiddlewareContext<RequestInternal extends IncomingMessage = IncomingMessage, ResponseInternal extends ServerResponse = ServerResponse> = {
136
+ type DevMiddlewareContext<_RequestInternal extends IncomingMessage = IncomingMessage, _ResponseInternal extends ServerResponse = ServerResponse> = {
137
137
  state: boolean;
138
138
  stats: Stats | MultiStats | undefined;
139
139
  callbacks: Callback[];
@@ -7,10 +7,10 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
- import type { Compilation } from "../Compilation";
11
10
  import type { HttpUriPluginOptions } from "../builtin-plugin";
11
+ import type { Compilation } from "../Compilation";
12
12
  import type WebpackError from "../lib/WebpackError";
13
- 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";
13
+ 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, Node, NoParseOption, 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";
14
14
  export declare const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized;
15
15
  export type EntryDynamicNormalized = () => Promise<EntryStaticNormalized>;
16
16
  export type EntryNormalized = EntryDynamicNormalized | EntryStaticNormalized;
@@ -111,6 +111,7 @@ export interface ExperimentsNormalized {
111
111
  inlineConst?: boolean;
112
112
  inlineEnum?: boolean;
113
113
  typeReexportsPresence?: boolean;
114
+ nativeWatcher?: boolean;
114
115
  }
115
116
  export type IgnoreWarningsNormalized = ((warning: WebpackError, compilation: Compilation) => boolean)[];
116
117
  export type OptimizationRuntimeChunkNormalized = false | {
@@ -1,12 +1,12 @@
1
1
  import type { AssetInfo, RawFuncUseCtx } from "@rspack/binding";
2
+ import type { HttpUriPluginOptions } from "../builtin-plugin/HttpUriPlugin";
2
3
  import type { ChunkGraph } from "../ChunkGraph";
3
4
  import type { Compilation, PathData } from "../Compilation";
4
5
  import type { Compiler } from "../Compiler";
5
- import type { Module } from "../Module";
6
- import type ModuleGraph from "../ModuleGraph";
7
- import type { HttpUriPluginOptions } from "../builtin-plugin/HttpUriPlugin";
8
6
  import type { Chunk } from "../exports";
9
7
  import type WebpackError from "../lib/WebpackError";
8
+ import type { Module } from "../Module";
9
+ import type ModuleGraph from "../ModuleGraph";
10
10
  import type { ResolveCallback } from "./adapterRuleUse";
11
11
  import type { DevServerOptions } from "./devServer";
12
12
  export type FilenameTemplate = string;
@@ -2042,6 +2042,11 @@ export type Experiments = {
2042
2042
  * @default false
2043
2043
  */
2044
2044
  inlineConst?: boolean;
2045
+ /**
2046
+ * Enable native watcher
2047
+ * @default false
2048
+ */
2049
+ nativeWatcher?: boolean;
2045
2050
  /**
2046
2051
  * Enable inline enum feature
2047
2052
  * @default false
@@ -1,6 +1,6 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import type { Compiler } from "../Compiler";
3
2
  import { RspackBuiltinPlugin } from "../builtin-plugin/base";
3
+ import type { Compiler } from "../Compiler";
4
4
  import type { EntryRuntime, FilenameTemplate, LibraryOptions } from "../config";
5
5
  export type ContainerPluginOptions = {
6
6
  exposes: Exposes;
@@ -1,6 +1,6 @@
1
1
  import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
- import type { Compiler } from "../Compiler";
3
2
  import { RspackBuiltinPlugin } from "../builtin-plugin/base";
3
+ import type { Compiler } from "../Compiler";
4
4
  import type { ExternalsType } from "../config";
5
5
  export type ContainerReferencePluginOptions = {
6
6
  remoteType: ExternalsType;
@@ -2,7 +2,7 @@ export declare const ModuleFederationRuntimePlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
5
- 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;
5
+ affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
6
6
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
7
7
  apply(compiler: import("..").Compiler): void;
8
8
  };
package/dist/exports.d.ts CHANGED
@@ -8,24 +8,24 @@ export type { MultiCompilerOptions, MultiRspackOptions } from "./MultiCompiler";
8
8
  export { MultiCompiler } from "./MultiCompiler";
9
9
  import { RspackOptionsApply } from "./rspackOptionsApply";
10
10
  export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
11
- export type { Chunk } from "./Chunk";
12
11
  export type { ChunkGroup } from "@rspack/binding";
12
+ export { AsyncDependenciesBlock, Dependency, EntryDependency } from "@rspack/binding";
13
+ export type { Chunk } from "./Chunk";
14
+ export { ConcatenatedModule } from "./ConcatenatedModule";
15
+ export { ContextModule } from "./ContextModule";
16
+ export { ExternalModule } from "./ExternalModule";
13
17
  export type { ResolveData, ResourceDataWithData } from "./Module";
14
- export { MultiStats } from "./MultiStats";
15
18
  export { Module } from "./Module";
19
+ export type { default as ModuleGraph } from "./ModuleGraph";
20
+ export { MultiStats } from "./MultiStats";
16
21
  export { NormalModule } from "./NormalModule";
17
- export { ContextModule } from "./ContextModule";
18
- export { ConcatenatedModule } from "./ConcatenatedModule";
19
- export { ExternalModule } from "./ExternalModule";
20
22
  export type { NormalModuleFactory } from "./NormalModuleFactory";
21
- export type { default as ModuleGraph } from "./ModuleGraph";
23
+ export type { RspackError, RspackSeverity } from "./RspackError";
22
24
  export { RuntimeGlobals } from "./RuntimeGlobals";
25
+ export { RuntimeModule } from "./RuntimeModule";
23
26
  export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule } from "./Stats";
24
- export { StatsErrorCode } from "./stats/statsFactoryUtils";
25
27
  export { Stats } from "./Stats";
26
- export { RuntimeModule } from "./RuntimeModule";
27
- export { EntryDependency, Dependency, AsyncDependenciesBlock } from "@rspack/binding";
28
- export type { RspackError, RspackSeverity } from "./RspackError";
28
+ export { StatsErrorCode } from "./stats/statsFactoryUtils";
29
29
  import * as ModuleFilenameHelpers from "./lib/ModuleFilenameHelpers";
30
30
  export { ModuleFilenameHelpers };
31
31
  export { Template } from "./Template";
@@ -48,32 +48,17 @@ export declare const util: {
48
48
  createHash: (algorithm: "debug" | "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./util/hash").default)) => import("./util/hash").default;
49
49
  cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
50
50
  };
51
- export { default as EntryOptionPlugin } from "./lib/EntryOptionPlugin";
52
- export type { OutputFileSystem } from "./util/fs";
53
- export type { BannerPluginArgument } from "./builtin-plugin";
54
- export type { ProvidePluginOptions } from "./builtin-plugin";
55
- export type { DefinePluginOptions } from "./builtin-plugin";
56
- export type { ProgressPluginArgument } from "./builtin-plugin";
57
- export type { EntryOptions } from "./builtin-plugin";
58
- export { BannerPlugin } from "./builtin-plugin";
59
- export { IgnorePlugin, type IgnorePluginOptions } from "./builtin-plugin";
60
- export { ProvidePlugin } from "./builtin-plugin";
61
- export { DefinePlugin } from "./builtin-plugin";
62
- export { ProgressPlugin } from "./builtin-plugin";
63
- export { EntryPlugin } from "./builtin-plugin";
64
- export { DynamicEntryPlugin } from "./builtin-plugin";
65
- export { ExternalsPlugin } from "./builtin-plugin";
66
- export { HotModuleReplacementPlugin } from "./builtin-plugin";
67
- export { NoEmitOnErrorsPlugin } from "./builtin-plugin";
68
- export { WarnCaseSensitiveModulesPlugin } from "./builtin-plugin";
69
- export { RuntimePlugin } from "./builtin-plugin";
51
+ export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions } from "./builtin-plugin";
52
+ export { BannerPlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, WarnCaseSensitiveModulesPlugin } from "./builtin-plugin";
70
53
  export { DllPlugin, type DllPluginOptions } from "./lib/DllPlugin";
71
- export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsSourceType, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest } from "./lib/DllReferencePlugin";
54
+ export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType } from "./lib/DllReferencePlugin";
55
+ export { default as EntryOptionPlugin } from "./lib/EntryOptionPlugin";
72
56
  export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
73
57
  export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
74
58
  export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
75
59
  export { NormalModuleReplacementPlugin } from "./lib/NormalModuleReplacementPlugin";
76
- import { FetchCompileAsyncWasmPlugin, SubresourceIntegrityPlugin, lazyCompilationMiddleware } from "./builtin-plugin";
60
+ export type { OutputFileSystem } from "./util/fs";
61
+ import { FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from "./builtin-plugin";
77
62
  interface Web {
78
63
  FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
79
64
  }
@@ -113,14 +98,7 @@ interface Webworker {
113
98
  WebWorkerTemplatePlugin: typeof WebWorkerTemplatePlugin;
114
99
  }
115
100
  export declare const webworker: Webworker;
116
- import { LimitChunkCountPlugin } from "./builtin-plugin";
117
- import { RuntimeChunkPlugin } from "./builtin-plugin";
118
- import { SplitChunksPlugin } from "./builtin-plugin";
119
- import { RemoveDuplicateModulesPlugin } from "./builtin-plugin";
120
- import { RsdoctorPlugin } from "./builtin-plugin";
121
- import { RstestPlugin } from "./builtin-plugin";
122
- import { RslibPlugin } from "./builtin-plugin";
123
- import { CssChunkingPlugin } from "./builtin-plugin";
101
+ import { CssChunkingPlugin, LimitChunkCountPlugin, RemoveDuplicateModulesPlugin, RsdoctorPlugin, RslibPlugin, RstestPlugin, RuntimeChunkPlugin, SplitChunksPlugin } from "./builtin-plugin";
124
102
  interface Optimize {
125
103
  LimitChunkCountPlugin: typeof LimitChunkCountPlugin;
126
104
  RuntimeChunkPlugin: typeof RuntimeChunkPlugin;
@@ -144,36 +122,18 @@ export declare const container: {
144
122
  import { ConsumeSharedPlugin } from "./sharing/ConsumeSharedPlugin";
145
123
  import { ProvideSharedPlugin } from "./sharing/ProvideSharedPlugin";
146
124
  import { SharePlugin } from "./sharing/SharePlugin";
147
- export type { Consumes, ConsumesConfig, ConsumeSharedPluginOptions, ConsumesItem, ConsumesObject } from "./sharing/ConsumeSharedPlugin";
148
- export type { Provides, ProvidesConfig, ProvideSharedPluginOptions, ProvidesItem, ProvidesObject } from "./sharing/ProvideSharedPlugin";
125
+ export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject } from "./sharing/ConsumeSharedPlugin";
126
+ export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject } from "./sharing/ProvideSharedPlugin";
149
127
  export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions } from "./sharing/SharePlugin";
150
128
  export declare const sharing: {
151
129
  ProvideSharedPlugin: typeof ProvideSharedPlugin;
152
130
  ConsumeSharedPlugin: typeof ConsumeSharedPlugin;
153
131
  SharePlugin: typeof SharePlugin;
154
132
  };
155
- export type { RsdoctorPluginData, RsdoctorPluginHooks } from "./builtin-plugin";
156
- export type { HtmlRspackPluginOptions } from "./builtin-plugin";
157
- export type { SwcJsMinimizerRspackPluginOptions } from "./builtin-plugin";
158
- export type { LightningCssMinimizerRspackPluginOptions } from "./builtin-plugin";
159
- export type { CircularDependencyRspackPluginOptions } from "./builtin-plugin";
160
- export type { CopyRspackPluginOptions } from "./builtin-plugin";
161
- export type { SourceMapDevToolPluginOptions } from "./builtin-plugin";
162
- export type { EvalDevToolModulePluginOptions } from "./builtin-plugin";
163
- export type { CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions } from "./builtin-plugin";
164
- export { HtmlRspackPlugin } from "./builtin-plugin";
165
- export { SwcJsMinimizerRspackPlugin } from "./builtin-plugin";
166
- export { LightningCssMinimizerRspackPlugin } from "./builtin-plugin";
167
- export { CircularDependencyRspackPlugin } from "./builtin-plugin";
168
- export { CopyRspackPlugin } from "./builtin-plugin";
169
- export { SourceMapDevToolPlugin } from "./builtin-plugin";
170
- export { EvalSourceMapDevToolPlugin } from "./builtin-plugin";
171
- export { EvalDevToolModulePlugin } from "./builtin-plugin";
172
- export { CssExtractRspackPlugin } from "./builtin-plugin";
173
- export { ContextReplacementPlugin } from "./builtin-plugin";
133
+ export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions } from "./builtin-loader/lightningcss/index";
174
134
  export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig } from "./builtin-loader/swc/index";
175
- export type { LoaderOptions as LightningcssLoaderOptions, FeatureOptions as LightningcssFeatureOptions } from "./builtin-loader/lightningcss/index";
176
- export type { SubresourceIntegrityPluginOptions } from "./builtin-plugin";
135
+ export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions } from "./builtin-plugin";
136
+ export { CircularDependencyRspackPlugin, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin } from "./builtin-plugin";
177
137
  import { createNativePlugin } from "./builtin-plugin";
178
138
  import { minify, minifySync, transform, transformSync } from "./swc";
179
139
  interface Experiments {