@rspack-debug/core 1.3.14 → 1.4.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 (164) hide show
  1. package/README.md +1 -1
  2. package/compiled/@swc/types/index.d.ts +18 -2
  3. package/compiled/@swc/types/package.json +1 -1
  4. package/compiled/tinypool/README.md +4 -196
  5. package/compiled/tinypool/dist/common-Qw-RoVFD.js +28 -0
  6. package/compiled/tinypool/dist/entry/process.d.ts +1 -2
  7. package/compiled/tinypool/dist/entry/process.js +63 -83
  8. package/compiled/tinypool/dist/entry/utils.d.ts +3 -1
  9. package/compiled/tinypool/dist/entry/utils.js +3 -9
  10. package/compiled/tinypool/dist/entry/worker.d.ts +1 -2
  11. package/compiled/tinypool/dist/entry/worker.js +66 -94
  12. package/compiled/tinypool/dist/index.d.ts +132 -125
  13. package/compiled/tinypool/dist/index.js +771 -1035
  14. package/compiled/tinypool/dist/utils-B--2TaWv.js +38 -0
  15. package/compiled/tinypool/dist/utils-De75vAgL.js +10 -0
  16. package/compiled/tinypool/package.json +6 -22
  17. package/compiled/webpack-sources/index.js +112 -132
  18. package/compiled/webpack-sources/package.json +1 -1
  19. package/compiled/webpack-sources/types.d.ts +8 -6
  20. package/dist/BuildInfo.d.ts +17 -0
  21. package/dist/FileSystem.d.ts +26 -3
  22. package/dist/Module.d.ts +1 -14
  23. package/dist/MultiCompiler.d.ts +4 -1
  24. package/dist/MultiWatching.d.ts +1 -0
  25. package/dist/Resolver.d.ts +2 -1
  26. package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +8 -0
  27. package/dist/builtin-loader/swc/index.d.ts +2 -0
  28. package/dist/builtin-loader/swc/pluginImport.d.ts +1 -36
  29. package/dist/builtin-loader/swc/types.d.ts +163 -2000
  30. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +4 -2
  31. package/dist/builtin-plugin/RslibPlugin.d.ts +11 -0
  32. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +2 -1
  33. package/dist/builtin-plugin/index.d.ts +1 -0
  34. package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +3 -3
  35. package/dist/config/devServer.d.ts +10 -10
  36. package/dist/config/normalization.d.ts +4 -1
  37. package/dist/config/types.d.ts +31 -4
  38. package/dist/config/utils.d.ts +3 -16
  39. package/dist/config/zod.d.ts +689 -3924
  40. package/dist/cssExtractLoader.js +5 -5
  41. package/dist/exports.d.ts +9 -3
  42. package/dist/index.js +4751 -2034
  43. package/dist/loader-runner/index.d.ts +0 -9
  44. package/dist/swc.d.ts +2 -0
  45. package/dist/trace/index.d.ts +16 -18
  46. package/dist/util/validate.d.ts +3 -3
  47. package/dist/worker.js +2 -2
  48. package/module.d.ts +1 -1
  49. package/package.json +11 -11
  50. package/compiled/enhanced-resolve/CachedInputFileSystem.d.ts +0 -0
  51. package/compiled/enhanced-resolve/CachedInputFileSystem.js +0 -664
  52. package/compiled/enhanced-resolve/index.d.ts +0 -1124
  53. package/compiled/enhanced-resolve/license +0 -20
  54. package/compiled/enhanced-resolve/package.json +0 -1
  55. package/compiled/tinypool/dist/chunk-6LX4VMOV.js +0 -31
  56. package/compiled/tinypool/dist/chunk-ACQHDOFQ.js +0 -12
  57. package/compiled/tinypool/dist/chunk-E2J7JLFN.js +0 -53
  58. package/compiled/tinypool/dist/chunk-UBWFVGJX.js +0 -38
  59. package/compiled/zod/dist/types/index.d.ts +0 -3
  60. package/compiled/zod/dist/types/v3/ZodError.d.ts +0 -164
  61. package/compiled/zod/dist/types/v3/benchmarks/datetime.d.ts +0 -5
  62. package/compiled/zod/dist/types/v3/benchmarks/discriminatedUnion.d.ts +0 -5
  63. package/compiled/zod/dist/types/v3/benchmarks/index.d.ts +0 -1
  64. package/compiled/zod/dist/types/v3/benchmarks/ipv4.d.ts +0 -5
  65. package/compiled/zod/dist/types/v3/benchmarks/object.d.ts +0 -5
  66. package/compiled/zod/dist/types/v3/benchmarks/primitives.d.ts +0 -5
  67. package/compiled/zod/dist/types/v3/benchmarks/realworld.d.ts +0 -5
  68. package/compiled/zod/dist/types/v3/benchmarks/string.d.ts +0 -5
  69. package/compiled/zod/dist/types/v3/benchmarks/union.d.ts +0 -5
  70. package/compiled/zod/dist/types/v3/errors.d.ts +0 -5
  71. package/compiled/zod/dist/types/v3/external.d.ts +0 -6
  72. package/compiled/zod/dist/types/v3/helpers/enumUtil.d.ts +0 -8
  73. package/compiled/zod/dist/types/v3/helpers/errorUtil.d.ts +0 -9
  74. package/compiled/zod/dist/types/v3/helpers/parseUtil.d.ts +0 -78
  75. package/compiled/zod/dist/types/v3/helpers/partialUtil.d.ts +0 -8
  76. package/compiled/zod/dist/types/v3/helpers/typeAliases.d.ts +0 -2
  77. package/compiled/zod/dist/types/v3/helpers/util.d.ts +0 -85
  78. package/compiled/zod/dist/types/v3/index.d.ts +0 -4
  79. package/compiled/zod/dist/types/v3/locales/en.d.ts +0 -3
  80. package/compiled/zod/dist/types/v3/standard-schema.d.ts +0 -102
  81. package/compiled/zod/dist/types/v3/tests/Mocker.d.ts +0 -17
  82. package/compiled/zod/dist/types/v3/types.d.ts +0 -1031
  83. package/compiled/zod/dist/types/v4/classic/checks.d.ts +0 -1
  84. package/compiled/zod/dist/types/v4/classic/coerce.d.ts +0 -17
  85. package/compiled/zod/dist/types/v4/classic/compat.d.ts +0 -48
  86. package/compiled/zod/dist/types/v4/classic/errors.d.ts +0 -30
  87. package/compiled/zod/dist/types/v4/classic/external.d.ts +0 -13
  88. package/compiled/zod/dist/types/v4/classic/index.d.ts +0 -4
  89. package/compiled/zod/dist/types/v4/classic/iso.d.ts +0 -22
  90. package/compiled/zod/dist/types/v4/classic/parse.d.ts +0 -23
  91. package/compiled/zod/dist/types/v4/classic/schemas.d.ts +0 -619
  92. package/compiled/zod/dist/types/v4/core/api.d.ts +0 -273
  93. package/compiled/zod/dist/types/v4/core/checks.d.ts +0 -277
  94. package/compiled/zod/dist/types/v4/core/config.d.ts +0 -9
  95. package/compiled/zod/dist/types/v4/core/core.d.ts +0 -47
  96. package/compiled/zod/dist/types/v4/core/doc.d.ts +0 -14
  97. package/compiled/zod/dist/types/v4/core/errors.d.ts +0 -204
  98. package/compiled/zod/dist/types/v4/core/function.d.ts +0 -52
  99. package/compiled/zod/dist/types/v4/core/index.d.ts +0 -15
  100. package/compiled/zod/dist/types/v4/core/json-schema.d.ts +0 -100
  101. package/compiled/zod/dist/types/v4/core/parse.d.ts +0 -25
  102. package/compiled/zod/dist/types/v4/core/regexes.d.ts +0 -62
  103. package/compiled/zod/dist/types/v4/core/registries.d.ts +0 -37
  104. package/compiled/zod/dist/types/v4/core/schemas.d.ts +0 -1011
  105. package/compiled/zod/dist/types/v4/core/standard-schema.d.ts +0 -55
  106. package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +0 -84
  107. package/compiled/zod/dist/types/v4/core/util.d.ts +0 -182
  108. package/compiled/zod/dist/types/v4/core/versions.d.ts +0 -5
  109. package/compiled/zod/dist/types/v4/core/zsf.d.ts +0 -91
  110. package/compiled/zod/dist/types/v4/index.d.ts +0 -3
  111. package/compiled/zod/dist/types/v4/locales/ar.d.ts +0 -4
  112. package/compiled/zod/dist/types/v4/locales/az.d.ts +0 -4
  113. package/compiled/zod/dist/types/v4/locales/be.d.ts +0 -4
  114. package/compiled/zod/dist/types/v4/locales/ca.d.ts +0 -4
  115. package/compiled/zod/dist/types/v4/locales/cs.d.ts +0 -4
  116. package/compiled/zod/dist/types/v4/locales/de.d.ts +0 -4
  117. package/compiled/zod/dist/types/v4/locales/en.d.ts +0 -5
  118. package/compiled/zod/dist/types/v4/locales/es.d.ts +0 -4
  119. package/compiled/zod/dist/types/v4/locales/fa.d.ts +0 -4
  120. package/compiled/zod/dist/types/v4/locales/fi.d.ts +0 -4
  121. package/compiled/zod/dist/types/v4/locales/fr-CA.d.ts +0 -4
  122. package/compiled/zod/dist/types/v4/locales/fr.d.ts +0 -4
  123. package/compiled/zod/dist/types/v4/locales/he.d.ts +0 -4
  124. package/compiled/zod/dist/types/v4/locales/hu.d.ts +0 -4
  125. package/compiled/zod/dist/types/v4/locales/id.d.ts +0 -4
  126. package/compiled/zod/dist/types/v4/locales/index.d.ts +0 -37
  127. package/compiled/zod/dist/types/v4/locales/it.d.ts +0 -4
  128. package/compiled/zod/dist/types/v4/locales/ja.d.ts +0 -4
  129. package/compiled/zod/dist/types/v4/locales/kh.d.ts +0 -4
  130. package/compiled/zod/dist/types/v4/locales/ko.d.ts +0 -4
  131. package/compiled/zod/dist/types/v4/locales/mk.d.ts +0 -4
  132. package/compiled/zod/dist/types/v4/locales/ms.d.ts +0 -4
  133. package/compiled/zod/dist/types/v4/locales/nl.d.ts +0 -4
  134. package/compiled/zod/dist/types/v4/locales/no.d.ts +0 -4
  135. package/compiled/zod/dist/types/v4/locales/ota.d.ts +0 -4
  136. package/compiled/zod/dist/types/v4/locales/pl.d.ts +0 -4
  137. package/compiled/zod/dist/types/v4/locales/pt.d.ts +0 -4
  138. package/compiled/zod/dist/types/v4/locales/ru.d.ts +0 -4
  139. package/compiled/zod/dist/types/v4/locales/sl.d.ts +0 -4
  140. package/compiled/zod/dist/types/v4/locales/sv.d.ts +0 -4
  141. package/compiled/zod/dist/types/v4/locales/ta.d.ts +0 -4
  142. package/compiled/zod/dist/types/v4/locales/th.d.ts +0 -4
  143. package/compiled/zod/dist/types/v4/locales/tr.d.ts +0 -5
  144. package/compiled/zod/dist/types/v4/locales/ua.d.ts +0 -4
  145. package/compiled/zod/dist/types/v4/locales/ur.d.ts +0 -4
  146. package/compiled/zod/dist/types/v4/locales/vi.d.ts +0 -4
  147. package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +0 -4
  148. package/compiled/zod/dist/types/v4/locales/zh-TW.d.ts +0 -4
  149. package/compiled/zod/dist/types/v4/mini/checks.d.ts +0 -1
  150. package/compiled/zod/dist/types/v4/mini/coerce.d.ts +0 -7
  151. package/compiled/zod/dist/types/v4/mini/external.d.ts +0 -11
  152. package/compiled/zod/dist/types/v4/mini/index.d.ts +0 -3
  153. package/compiled/zod/dist/types/v4/mini/iso.d.ts +0 -22
  154. package/compiled/zod/dist/types/v4/mini/parse.d.ts +0 -1
  155. package/compiled/zod/dist/types/v4/mini/schemas.d.ts +0 -398
  156. package/compiled/zod/index.js +0 -4513
  157. package/compiled/zod/license +0 -21
  158. package/compiled/zod/package.json +0 -1
  159. package/compiled/zod/v3/index.d.ts +0 -3
  160. package/compiled/zod/v4/core/index.d.ts +0 -1
  161. package/compiled/zod/v4/index.d.ts +0 -3
  162. package/compiled/zod/v4/locales/en.d.ts +0 -2
  163. package/compiled/zod/v4/locales/index.d.ts +0 -1
  164. package/compiled/zod/v4-mini/index.d.ts +0 -1
@@ -1,6 +1,8 @@
1
1
  import * as binding from "@rspack/binding";
2
2
  export interface CssChunkingPluginOptions {
3
3
  strict?: boolean;
4
+ minSize?: number;
5
+ maxSize?: number;
4
6
  /**
5
7
  * This plugin is intended to be generic, but currently requires some special handling for Next.js.
6
8
  * A `next` option has been added to accommodate this.
@@ -9,9 +11,9 @@ export interface CssChunkingPluginOptions {
9
11
  nextjs?: boolean;
10
12
  }
11
13
  export declare const CssChunkingPlugin: {
12
- new (options: CssChunkingPluginOptions): {
14
+ new (options?: CssChunkingPluginOptions | undefined): {
13
15
  name: binding.BuiltinPluginName;
14
- _args: [options: CssChunkingPluginOptions];
16
+ _args: [options?: CssChunkingPluginOptions | undefined];
15
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;
16
18
  raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
17
19
  apply(compiler: import("..").Compiler): void;
@@ -0,0 +1,11 @@
1
+ import { BuiltinPluginName, type RawRslibPluginOptions } from "@rspack/binding";
2
+ export type RslibPluginArgument = Partial<Omit<RawRslibPluginOptions, "handler">> | ((percentage: number, msg: string, ...args: string[]) => void) | undefined;
3
+ export declare const RslibPlugin: {
4
+ new (rslib: RawRslibPluginOptions): {
5
+ name: BuiltinPluginName;
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;
8
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
+ apply(compiler: import("..").Compiler): void;
10
+ };
11
+ };
@@ -86,7 +86,8 @@ export interface JsFormatOptions {
86
86
  */
87
87
  maxLineLen?: number | false;
88
88
  /**
89
- * Currently noop.
89
+ * When passed it must be a string and it will be prepended to the output literally.
90
+ * The source map will adjust for this text. Can be used to insert a comment containing licensing information.
90
91
  */
91
92
  preamble?: string;
92
93
  /**
@@ -51,6 +51,7 @@ export * from "./NodeTargetPlugin";
51
51
  export * from "./OccurrenceChunkIdsPlugin";
52
52
  export * from "./ProgressPlugin";
53
53
  export * from "./RstestPlugin";
54
+ export * from "./RslibPlugin";
54
55
  export * from "./ProvidePlugin";
55
56
  export * from "./RealContentHashPlugin";
56
57
  export * from "./RemoveEmptyChunksPlugin";
@@ -1,4 +1,4 @@
1
- import type { Compiler, LazyCompilationOptions } from "../..";
2
- import type { Middleware } from "../../config/devServer";
1
+ import { type Compiler, MultiCompiler } from "../..";
2
+ import type { MiddlewareHandler } from "../../config/devServer";
3
3
  export declare const LAZY_COMPILATION_PREFIX = "/lazy-compilation-using-";
4
- export declare const lazyCompilationMiddleware: (compiler: Compiler, userOptions?: LazyCompilationOptions | boolean) => Middleware;
4
+ export declare const lazyCompilationMiddleware: (compiler: Compiler | MultiCompiler) => MiddlewareHandler;
@@ -11,9 +11,9 @@ import type { Compiler, MultiCompiler, MultiStats, Stats, Watching } from "..";
11
11
  type Logger = ReturnType<Compiler["getInfrastructureLogger"]>;
12
12
  type MultiWatching = MultiCompiler["watch"];
13
13
  type BasicServer = import("net").Server | import("tls").Server;
14
- type ReadStream = typeof import("fs").ReadStream;
15
- type IncomingMessage = typeof import("http").IncomingMessage;
16
- type ServerResponse = typeof import("http").ServerResponse;
14
+ type ReadStream = import("fs").ReadStream;
15
+ type IncomingMessage = import("http").IncomingMessage;
16
+ type ServerResponse = import("http").ServerResponse;
17
17
  type ServerOptions = import("https").ServerOptions & {
18
18
  spdy?: {
19
19
  plain?: boolean | undefined;
@@ -112,8 +112,8 @@ type Static = {
112
112
  poll?: number | boolean;
113
113
  }) | undefined;
114
114
  };
115
- type ServerType<A extends BasicApplication = BasicApplication, S extends BasicServer = import("http").Server<IncomingMessage, ServerResponse>> = "http" | "https" | "spdy" | "http2" | string | ((arg0: ServerOptions, arg1: A) => S);
116
- type ServerConfiguration<A extends BasicApplication = BasicApplication, S extends BasicServer = import("http").Server<IncomingMessage, ServerResponse>> = {
115
+ type ServerType<A extends BasicApplication = BasicApplication, S extends BasicServer = import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>> = "http" | "https" | "spdy" | "http2" | string | ((arg0: ServerOptions, arg1: A) => S);
116
+ type ServerConfiguration<A extends BasicApplication = BasicApplication, S extends BasicServer = import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>> = {
117
117
  type?: ServerType<A, S> | undefined;
118
118
  options?: ServerOptions | undefined;
119
119
  };
@@ -144,13 +144,13 @@ type DevMiddlewareContext<RequestInternal extends IncomingMessage = IncomingMess
144
144
  outputFileSystem: OutputFileSystem;
145
145
  };
146
146
  type Server = any;
147
- type MiddlewareHandler = any;
148
- type MiddlewareObject = {
147
+ export type MiddlewareHandler<RequestInternal extends Request = Request, ResponseInternal extends Response = Response> = (req: RequestInternal, res: ResponseInternal, next: NextFunction) => void | Promise<void>;
148
+ type MiddlewareObject<RequestInternal extends Request = Request, ResponseInternal extends Response = Response> = {
149
149
  name?: string;
150
150
  path?: string;
151
- middleware: MiddlewareHandler;
151
+ middleware: MiddlewareHandler<RequestInternal, ResponseInternal>;
152
152
  };
153
- export type Middleware = MiddlewareObject | MiddlewareHandler;
153
+ export type Middleware<RequestInternal extends Request = Request, ResponseInternal extends Response = Response> = MiddlewareObject<RequestInternal, ResponseInternal> | MiddlewareHandler<RequestInternal, ResponseInternal>;
154
154
  type OpenApp = {
155
155
  name?: string | undefined;
156
156
  arguments?: string[] | undefined;
@@ -180,7 +180,7 @@ type ClientConfiguration = {
180
180
  webSocketTransport?: string | undefined;
181
181
  webSocketURL?: string | WebSocketURL | undefined;
182
182
  };
183
- export type DevServerOptions<A extends BasicApplication = BasicApplication, S extends BasicServer = import("http").Server<IncomingMessage, ServerResponse>> = {
183
+ export type DevServerOptions<A extends BasicApplication = BasicApplication, S extends BasicServer = import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>> = {
184
184
  ipc?: string | boolean | undefined;
185
185
  host?: string | undefined;
186
186
  port?: Port | undefined;
@@ -9,7 +9,7 @@
9
9
  */
10
10
  import type { Compilation } from "../Compilation";
11
11
  import type { HttpUriPluginOptions } from "../builtin-plugin";
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
+ 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, JavascriptParserOptions, 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
13
  export declare const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized;
14
14
  export type EntryDynamicNormalized = () => Promise<EntryStaticNormalized>;
15
15
  export type EntryNormalized = EntryDynamicNormalized | EntryStaticNormalized;
@@ -106,6 +106,9 @@ export interface ExperimentsNormalized {
106
106
  rspackFuture?: RspackFutureOptions;
107
107
  buildHttp?: HttpUriPluginOptions;
108
108
  parallelLoader?: boolean;
109
+ useInputFileSystem?: false | RegExp[];
110
+ inlineConst?: boolean;
111
+ typeReexportsPresence?: JavascriptParserOptions["typeReexportsPresence"];
109
112
  }
110
113
  export type IgnoreWarningsNormalized = ((warning: Error, compilation: Compilation) => boolean)[];
111
114
  export type OptimizationRuntimeChunkNormalized = false | {
@@ -216,7 +216,7 @@ export type HashDigest = string;
216
216
  /** The prefix length of the hash digest to use. */
217
217
  export type HashDigestLength = number;
218
218
  /** The hashing algorithm to use. */
219
- export type HashFunction = "md4" | "xxhash64";
219
+ export type HashFunction = "md4" | "xxhash64" | "sha256";
220
220
  /** An optional salt to update the hash. */
221
221
  export type HashSalt = string;
222
222
  /** Configure how source maps are named. */
@@ -787,6 +787,10 @@ export type JavascriptParserOptions = {
787
787
  requireDynamic?: boolean;
788
788
  requireResolve?: boolean;
789
789
  importDynamic?: boolean;
790
+ /** Inline const values in this module */
791
+ inlineConst?: boolean;
792
+ /** Whether to tolerant exportsPresence for type reexport */
793
+ typeReexportsPresence?: "no-tolerant" | "tolerant" | "tolerant-no-check";
790
794
  };
791
795
  export type JsonParserOptions = {
792
796
  /**
@@ -960,7 +964,7 @@ export type ModuleOptions = {
960
964
  /** Keep module mechanism of the matched modules as-is, such as module.exports, require, import. */
961
965
  noParse?: NoParseOption;
962
966
  };
963
- type AllowTarget = "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | "nwjs" | `nwjs${number}` | `nwjs${number}.${number}` | "node-webkit" | `node-webkit${number}` | `node-webkit${number}.${number}` | "browserslist" | `browserslist:${string}`;
967
+ type AllowTarget = "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "es2025" | "node" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | "nwjs" | `nwjs${number}` | `nwjs${number}.${number}` | "node-webkit" | `node-webkit${number}` | `node-webkit${number}.${number}` | "browserslist" | `browserslist:${string}`;
964
968
  /** Used to configure the target environment of Rspack output and the ECMAScript version of Rspack runtime code. */
965
969
  export type Target = false | AllowTarget | AllowTarget[];
966
970
  /**
@@ -1101,7 +1105,11 @@ export type InfrastructureLogging = {
1101
1105
  /**
1102
1106
  * Configuration used to control the behavior of the Source Map generation.
1103
1107
  */
1104
- export type DevTool = false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map";
1108
+ type DevToolPosition = "inline-" | "hidden-" | "eval-" | "";
1109
+ type DevToolNoSources = "nosources-" | "";
1110
+ type DevToolCheap = "cheap-" | "cheap-module-" | "";
1111
+ type DevToolDebugIds = "-debugids" | "";
1112
+ export type DevTool = false | "eval" | `${DevToolPosition}${DevToolNoSources}${DevToolCheap}source-map${DevToolDebugIds}`;
1105
1113
  /**
1106
1114
  * Options for mocking Node.js globals and modules.
1107
1115
  */
@@ -1945,6 +1953,10 @@ export type IncrementalPresets = boolean | "none" | "safe" | "advance" | "advanc
1945
1953
  * Options for experiments.buildHttp
1946
1954
  */
1947
1955
  export type HttpUriOptions = HttpUriPluginOptions;
1956
+ /**
1957
+ * Options for experiments.useInputFileSystem
1958
+ */
1959
+ export type UseInputFileSystem = false | RegExp[];
1948
1960
  /**
1949
1961
  * Experimental features configuration.
1950
1962
  */
@@ -2019,6 +2031,21 @@ export type Experiments = {
2019
2031
  * @default false
2020
2032
  */
2021
2033
  parallelLoader?: boolean;
2034
+ /**
2035
+ * Enable Node.js input file system
2036
+ * @default false
2037
+ */
2038
+ useInputFileSystem?: UseInputFileSystem;
2039
+ /**
2040
+ * Enable inline constants
2041
+ * @default false
2042
+ */
2043
+ inlineConst?: boolean;
2044
+ /**
2045
+ * Enable inline constants
2046
+ * @default false
2047
+ */
2048
+ typeReexportsPresence?: JavascriptParserOptions["typeReexportsPresence"];
2022
2049
  };
2023
2050
  export type Watch = boolean;
2024
2051
  /** Options for watch mode. */
@@ -2053,6 +2080,7 @@ export type WatchOptions = {
2053
2080
  * */
2054
2081
  export interface DevServer extends DevServerOptions {
2055
2082
  }
2083
+ export type { Middleware as DevServerMiddleware } from "./devServer";
2056
2084
  /**
2057
2085
  * An array of either regular expressions or functions that determine if a warning should be ignored.
2058
2086
  */
@@ -2225,4 +2253,3 @@ export type RspackOptions = {
2225
2253
  };
2226
2254
  /** Configuration for Rspack */
2227
2255
  export type Configuration = RspackOptions;
2228
- export {};
@@ -1,16 +1,3 @@
1
- import { type IssueData, type ParseReturnType, ZodType, type ZodTypeDef, z } from "../../compiled/zod";
2
- import type { RspackOptions } from "./types";
3
- export type ZodCrossFieldsOptions = ZodTypeDef & {
4
- patterns: Array<{
5
- test: (root: RspackOptions, input: z.ParseInput) => boolean;
6
- type: ZodType;
7
- issue?: (res: ParseReturnType<any>, root: RspackOptions, input: z.ParseInput) => Array<IssueData>;
8
- }>;
9
- default: ZodType;
10
- };
11
- export declare class ZodRspackCrossChecker<T> extends ZodType<T> {
12
- private params;
13
- constructor(params: ZodCrossFieldsOptions);
14
- _parse(input: z.ParseInput): z.ParseReturnType<T>;
15
- _getRootData(ctx: z.ParseContext): any;
16
- }
1
+ import * as z from "zod/v4";
2
+ export declare const numberOrInfinity: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>;
3
+ export declare const anyFunction: z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>;