@rspack/core 1.3.10 → 1.3.12

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 (134) hide show
  1. package/compiled/watchpack/index.js +56 -18
  2. package/compiled/watchpack/package.json +1 -1
  3. package/compiled/webpack-sources/index.js +1539 -339
  4. package/compiled/webpack-sources/package.json +1 -1
  5. package/compiled/webpack-sources/types.d.ts +320 -0
  6. package/compiled/zod/dist/types/index.d.ts +3 -0
  7. package/compiled/zod/{lib → dist/types/v3}/ZodError.d.ts +7 -7
  8. package/compiled/zod/{lib → dist/types/v3}/errors.d.ts +2 -2
  9. package/compiled/zod/dist/types/v3/external.d.ts +6 -0
  10. package/compiled/zod/{lib → dist/types/v3}/helpers/errorUtil.d.ts +1 -1
  11. package/compiled/zod/{lib → dist/types/v3}/helpers/parseUtil.d.ts +4 -4
  12. package/compiled/zod/{lib → dist/types/v3}/helpers/partialUtil.d.ts +1 -1
  13. package/compiled/zod/{lib → dist/types/v3}/helpers/util.d.ts +12 -9
  14. package/compiled/zod/dist/types/v3/index.d.ts +4 -0
  15. package/compiled/zod/{lib → dist/types/v3}/locales/en.d.ts +1 -1
  16. package/compiled/zod/{lib/__tests__ → dist/types/v3/tests}/Mocker.d.ts +6 -6
  17. package/compiled/zod/{lib → dist/types/v3}/types.d.ts +118 -149
  18. package/compiled/zod/dist/types/v4/classic/checks.d.ts +1 -0
  19. package/compiled/zod/dist/types/v4/classic/coerce.d.ts +17 -0
  20. package/compiled/zod/dist/types/v4/classic/compat.d.ts +48 -0
  21. package/compiled/zod/dist/types/v4/classic/errors.d.ts +30 -0
  22. package/compiled/zod/dist/types/v4/classic/external.d.ts +8 -0
  23. package/compiled/zod/dist/types/v4/classic/index.d.ts +4 -0
  24. package/compiled/zod/dist/types/v4/classic/iso.d.ts +22 -0
  25. package/compiled/zod/dist/types/v4/classic/parse.d.ts +23 -0
  26. package/compiled/zod/dist/types/v4/classic/schemas.d.ts +657 -0
  27. package/compiled/zod/dist/types/v4/core/api.d.ts +273 -0
  28. package/compiled/zod/dist/types/v4/core/checks.d.ts +277 -0
  29. package/compiled/zod/dist/types/v4/core/config.d.ts +9 -0
  30. package/compiled/zod/dist/types/v4/core/core.d.ts +43 -0
  31. package/compiled/zod/dist/types/v4/core/doc.d.ts +14 -0
  32. package/compiled/zod/dist/types/v4/core/errors.d.ts +205 -0
  33. package/compiled/zod/dist/types/v4/core/function.d.ts +47 -0
  34. package/compiled/zod/dist/types/v4/core/index.d.ts +15 -0
  35. package/compiled/zod/dist/types/v4/core/json-schema.d.ts +100 -0
  36. package/compiled/zod/dist/types/v4/core/parse.d.ts +25 -0
  37. package/compiled/zod/dist/types/v4/core/regexes.d.ts +62 -0
  38. package/compiled/zod/dist/types/v4/core/registries.d.ts +32 -0
  39. package/compiled/zod/dist/types/v4/core/schemas.d.ts +983 -0
  40. package/compiled/zod/dist/types/v4/core/standard-schema.d.ts +55 -0
  41. package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +84 -0
  42. package/compiled/zod/dist/types/v4/core/util.d.ts +186 -0
  43. package/compiled/zod/dist/types/v4/core/versions.d.ts +5 -0
  44. package/compiled/zod/dist/types/v4/core/zsf.d.ts +91 -0
  45. package/compiled/zod/dist/types/v4/index.d.ts +3 -0
  46. package/compiled/zod/dist/types/v4/locales/ar.d.ts +7 -0
  47. package/compiled/zod/dist/types/v4/locales/az.d.ts +7 -0
  48. package/compiled/zod/dist/types/v4/locales/be.d.ts +7 -0
  49. package/compiled/zod/dist/types/v4/locales/ca.d.ts +7 -0
  50. package/compiled/zod/dist/types/v4/locales/cs.d.ts +7 -0
  51. package/compiled/zod/dist/types/v4/locales/de.d.ts +7 -0
  52. package/compiled/zod/dist/types/v4/locales/en.d.ts +7 -0
  53. package/compiled/zod/dist/types/v4/locales/es.d.ts +7 -0
  54. package/compiled/zod/dist/types/v4/locales/fa.d.ts +7 -0
  55. package/compiled/zod/dist/types/v4/locales/fi.d.ts +7 -0
  56. package/compiled/zod/dist/types/v4/locales/fr.d.ts +7 -0
  57. package/compiled/zod/dist/types/v4/locales/frCA.d.ts +7 -0
  58. package/compiled/zod/dist/types/v4/locales/he.d.ts +7 -0
  59. package/compiled/zod/dist/types/v4/locales/hu.d.ts +7 -0
  60. package/compiled/zod/dist/types/v4/locales/id.d.ts +7 -0
  61. package/compiled/zod/dist/types/v4/locales/index.d.ts +34 -0
  62. package/compiled/zod/dist/types/v4/locales/it.d.ts +7 -0
  63. package/compiled/zod/dist/types/v4/locales/ja.d.ts +7 -0
  64. package/compiled/zod/dist/types/v4/locales/ko.d.ts +7 -0
  65. package/compiled/zod/dist/types/v4/locales/mk.d.ts +7 -0
  66. package/compiled/zod/dist/types/v4/locales/ms.d.ts +7 -0
  67. package/compiled/zod/dist/types/v4/locales/no.d.ts +7 -0
  68. package/compiled/zod/dist/types/v4/locales/ota.d.ts +7 -0
  69. package/compiled/zod/dist/types/v4/locales/pl.d.ts +7 -0
  70. package/compiled/zod/dist/types/v4/locales/pt.d.ts +7 -0
  71. package/compiled/zod/dist/types/v4/locales/ru.d.ts +7 -0
  72. package/compiled/zod/dist/types/v4/locales/sl.d.ts +7 -0
  73. package/compiled/zod/dist/types/v4/locales/ta.d.ts +7 -0
  74. package/compiled/zod/dist/types/v4/locales/th.d.ts +7 -0
  75. package/compiled/zod/dist/types/v4/locales/tr.d.ts +7 -0
  76. package/compiled/zod/dist/types/v4/locales/ua.d.ts +7 -0
  77. package/compiled/zod/dist/types/v4/locales/ur.d.ts +7 -0
  78. package/compiled/zod/dist/types/v4/locales/vi.d.ts +7 -0
  79. package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +7 -0
  80. package/compiled/zod/dist/types/v4/locales/zh-tw.d.ts +7 -0
  81. package/compiled/zod/dist/types/v4/mini/checks.d.ts +1 -0
  82. package/compiled/zod/dist/types/v4/mini/coerce.d.ts +7 -0
  83. package/compiled/zod/dist/types/v4/mini/external.d.ts +7 -0
  84. package/compiled/zod/dist/types/v4/mini/index.d.ts +3 -0
  85. package/compiled/zod/dist/types/v4/mini/iso.d.ts +22 -0
  86. package/compiled/zod/dist/types/v4/mini/parse.d.ts +1 -0
  87. package/compiled/zod/dist/types/v4/mini/schemas.d.ts +407 -0
  88. package/compiled/zod/index.js +555 -602
  89. package/compiled/zod/license +1 -1
  90. package/compiled/zod/package.json +1 -1
  91. package/compiled/zod/v3/index.d.ts +1 -0
  92. package/compiled/zod/v4/core/index.d.ts +1 -0
  93. package/compiled/zod/v4/index.d.ts +1 -0
  94. package/compiled/zod/v4/locales/en.d.ts +2 -0
  95. package/compiled/zod/v4/locales/index.d.ts +1 -0
  96. package/compiled/zod/v4-mini/index.d.ts +1 -0
  97. package/dist/Compilation.d.ts +7 -7
  98. package/dist/Compiler.d.ts +1 -1
  99. package/dist/Diagnostics.d.ts +7 -0
  100. package/dist/Module.d.ts +9 -0
  101. package/dist/RspackError.d.ts +3 -0
  102. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -3
  103. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +19 -0
  104. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  105. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +3 -3
  106. package/dist/builtin-plugin/RstestPlugin.d.ts +11 -0
  107. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +4 -4
  108. package/dist/builtin-plugin/index.d.ts +2 -0
  109. package/dist/config/zod.d.ts +6 -6
  110. package/dist/exports.d.ts +3 -0
  111. package/dist/index.d.ts +0 -1
  112. package/dist/index.js +392 -232
  113. package/dist/node/NodeWatchFileSystem.d.ts +2 -2
  114. package/dist/trace/index.d.ts +9 -3
  115. package/dist/trace/traceHookPlugin.d.ts +5 -0
  116. package/dist/worker.js +1 -1
  117. package/package.json +8 -9
  118. package/compiled/webpack-sources/index.d.ts +0 -130
  119. package/compiled/zod/index.d.ts +0 -2
  120. package/compiled/zod/lib/external.d.ts +0 -6
  121. package/compiled/zod/lib/index.d.ts +0 -4
  122. package/dist/setupEnv.d.ts +0 -1
  123. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/datetime.d.ts +0 -0
  124. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/discriminatedUnion.d.ts +0 -0
  125. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/index.d.ts +0 -0
  126. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/ipv4.d.ts +0 -0
  127. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/object.d.ts +0 -0
  128. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/primitives.d.ts +0 -0
  129. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/realworld.d.ts +0 -0
  130. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/string.d.ts +0 -0
  131. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/union.d.ts +0 -0
  132. /package/compiled/zod/{lib → dist/types/v3}/helpers/enumUtil.d.ts +0 -0
  133. /package/compiled/zod/{lib → dist/types/v3}/helpers/typeAliases.d.ts +0 -0
  134. /package/compiled/zod/{lib → dist/types/v3}/standard-schema.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 Colin McDonnell
3
+ Copyright (c) 2025 Colin McDonnell
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1 +1 @@
1
- {"name":"zod","author":"Colin McDonnell <colin@colinhacks.com>","version":"3.24.4","funding":"https://github.com/sponsors/colinhacks","license":"MIT","types":"./index.d.ts","type":"commonjs"}
1
+ {"name":"zod","author":"Colin McDonnell <zod@colinhacks.com>","version":"3.25.28","funding":"https://github.com/sponsors/colinhacks","license":"MIT","types":"./dist/types/index.d.ts","type":"commonjs"}
@@ -0,0 +1 @@
1
+ export * from "../dist/types/v3/index.d.ts";
@@ -0,0 +1 @@
1
+ export * from "../../dist/types/v4/core/index.d.ts";
@@ -0,0 +1 @@
1
+ export * from "../dist/types/v4/index.d.ts";
@@ -0,0 +1,2 @@
1
+ export * from "../../dist/types/v4/locales/en.d.ts";
2
+ export { default } from "../../dist/types/v4/locales/en.d.ts";
@@ -0,0 +1 @@
1
+ export * from "../../dist/types/v4/locales/index.d.ts";
@@ -0,0 +1 @@
1
+ export * from "../dist/types/v4/mini/index.d.ts";
@@ -8,7 +8,7 @@
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
10
  import * as binding from "@rspack/binding";
11
- import { type AssetInfo, type Dependency, type ExternalObject, type JsCompilation, type JsRuntimeModule } from "@rspack/binding";
11
+ import type { AssetInfo, Dependency, ExternalObject, JsCompilation, JsRuntimeModule } from "@rspack/binding";
12
12
  export type { AssetInfo } from "@rspack/binding";
13
13
  import * as liteTapable from "@rspack/lite-tapable";
14
14
  import type { Source } from "../compiled/webpack-sources";
@@ -23,11 +23,11 @@ import ModuleGraph from "./ModuleGraph";
23
23
  import type { NormalModuleCompilationHooks } from "./NormalModule";
24
24
  import type { NormalModuleFactory } from "./NormalModuleFactory";
25
25
  import type { ResolverFactory } from "./ResolverFactory";
26
- import { type RspackError } from "./RspackError";
26
+ import type { RspackError } from "./RspackError";
27
27
  import { RuntimeModule } from "./RuntimeModule";
28
28
  import { Stats, type StatsAsset, type StatsError, type StatsModule } from "./Stats";
29
29
  import type { EntryOptions, EntryPlugin } from "./builtin-plugin";
30
- import type { Filename, OutputNormalized, RspackOptionsNormalized, RspackPluginInstance, StatsOptions, StatsValue } from "./config";
30
+ import type { OutputNormalized, RspackOptionsNormalized, RspackPluginInstance, StatsOptions, StatsValue } from "./config";
31
31
  import WebpackError from "./lib/WebpackError";
32
32
  import { Logger } from "./logging/Logger";
33
33
  import { StatsFactory } from "./stats/StatsFactory";
@@ -284,10 +284,10 @@ export declare class Compilation {
284
284
  set errors(errors: RspackError[]);
285
285
  get warnings(): RspackError[];
286
286
  set warnings(warnings: RspackError[]);
287
- getPath(filename: Filename, data?: PathData): string;
288
- getPathWithInfo(filename: Filename, data?: PathData): binding.PathWithInfo;
289
- getAssetPath(filename: Filename, data?: PathData): string;
290
- getAssetPathWithInfo(filename: Filename, data?: PathData): binding.PathWithInfo;
287
+ getPath(filename: string, data?: PathData): string;
288
+ getPathWithInfo(filename: string, data?: PathData): binding.PathWithInfo;
289
+ getAssetPath(filename: string, data?: PathData): string;
290
+ getAssetPathWithInfo(filename: string, data?: PathData): binding.PathWithInfo;
291
291
  getLogger(name: string | (() => string)): Logger;
292
292
  fileDependencies: {
293
293
  [Symbol.iterator](): Generator<string, void, unknown>;
@@ -172,7 +172,7 @@ declare class Compiler {
172
172
  * Note: This is not a webpack public API, maybe removed in future.
173
173
  * @internal
174
174
  */
175
- __internal__getModuleExecutionResult(id: number): any;
175
+ __internal__takeModuleExecutionResult(id: number): any;
176
176
  /**
177
177
  * Note: This is not a webpack public API, maybe removed in future.
178
178
  * @internal
@@ -0,0 +1,7 @@
1
+ import type { Diagnostics } from "@rspack/binding";
2
+ import type { RspackError } from "./RspackError";
3
+ declare const $proxy: unique symbol;
4
+ export declare function createDiagnosticArray(adm: Diagnostics & {
5
+ [$proxy]?: RspackError[];
6
+ }): RspackError[];
7
+ export {};
package/dist/Module.d.ts CHANGED
@@ -42,6 +42,15 @@ export declare class ContextModuleFactoryAfterResolveData {
42
42
  private constructor();
43
43
  }
44
44
  export type ContextModuleFactoryAfterResolveResult = false | ContextModuleFactoryAfterResolveData;
45
+ declare const $assets: unique symbol;
46
+ declare module "@rspack/binding" {
47
+ interface Assets {
48
+ [$assets]: Record<string, Source>;
49
+ }
50
+ interface BuildInfo {
51
+ assets: Record<string, Source>;
52
+ }
53
+ }
45
54
  declare module "@rspack/binding" {
46
55
  interface Module {
47
56
  identifier(): string;
@@ -7,3 +7,6 @@ export declare class JsRspackDiagnostic {
7
7
  export declare class NonErrorEmittedError extends Error {
8
8
  constructor(error: Error);
9
9
  }
10
+ export declare class DeadlockRiskError extends Error {
11
+ constructor(message: string);
12
+ }
@@ -1,8 +1,7 @@
1
1
  import { BuiltinPluginName, type RawCopyPattern } from "@rspack/binding";
2
2
  export type CopyRspackPluginOptions = {
3
- patterns: (string | ({
4
- from: string;
5
- } & Partial<RawCopyPattern>))[];
3
+ /** An array of objects that describe the copy operations to be performed. */
4
+ patterns: (string | (Pick<RawCopyPattern, "from"> & Partial<Omit<RawCopyPattern, "from">>))[];
6
5
  };
7
6
  export declare const CopyRspackPlugin: {
8
7
  new (copy: CopyRspackPluginOptions): {
@@ -0,0 +1,19 @@
1
+ import * as binding from "@rspack/binding";
2
+ export interface CssChunkingPluginOptions {
3
+ strict?: boolean;
4
+ /**
5
+ * This plugin is intended to be generic, but currently requires some special handling for Next.js.
6
+ * A `next` option has been added to accommodate this.
7
+ * In the future, once the design of CssChunkingPlugin becomes more stable, this option may be removed.
8
+ */
9
+ nextjs?: boolean;
10
+ }
11
+ export declare const CssChunkingPlugin: {
12
+ new (options: CssChunkingPluginOptions): {
13
+ name: binding.BuiltinPluginName;
14
+ _args: [options: CssChunkingPluginOptions];
15
+ affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
16
+ raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
17
+ apply(compiler: import("..").Compiler): void;
18
+ };
19
+ };
@@ -10,7 +10,7 @@ export declare const DefinePlugin: {
10
10
  };
11
11
  };
12
12
  type CodeValue = RecursiveArrayOrRecord<CodeValuePrimitive>;
13
- type CodeValuePrimitive = null | undefined | RegExp | Function | string | number | boolean | bigint | undefined;
13
+ type CodeValuePrimitive = null | undefined | RegExp | Function | string | number | boolean | bigint;
14
14
  type RecursiveArrayOrRecord<T> = {
15
15
  [index: string]: RecursiveArrayOrRecord<T>;
16
16
  } | Array<RecursiveArrayOrRecord<T>> | T;
@@ -1,8 +1,8 @@
1
- import { BuiltinPluginName, type RawSourceMapDevToolPluginOptions } from "@rspack/binding";
1
+ import { BuiltinPluginName, type SourceMapDevToolPluginOptions } from "@rspack/binding";
2
2
  export declare const EvalSourceMapDevToolPlugin: {
3
- new (options: RawSourceMapDevToolPluginOptions): {
3
+ new (options: SourceMapDevToolPluginOptions): {
4
4
  name: BuiltinPluginName;
5
- _args: [options: RawSourceMapDevToolPluginOptions];
5
+ _args: [options: SourceMapDevToolPluginOptions];
6
6
  affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
7
7
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
8
8
  apply(compiler: import("..").Compiler): void;
@@ -0,0 +1,11 @@
1
+ import { BuiltinPluginName, type RawRstestPluginOptions } from "@rspack/binding";
2
+ export type RstestPluginArgument = Partial<Omit<RawRstestPluginOptions, "handler">> | ((percentage: number, msg: string, ...args: string[]) => void) | undefined;
3
+ export declare const RstestPlugin: {
4
+ new (rstest: RawRstestPluginOptions): {
5
+ name: BuiltinPluginName;
6
+ _args: [rstest: RawRstestPluginOptions];
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
+ raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
+ apply(compiler: import("..").Compiler): void;
10
+ };
11
+ };
@@ -1,9 +1,9 @@
1
- import { BuiltinPluginName, type RawSourceMapDevToolPluginOptions } from "@rspack/binding";
2
- export type { RawSourceMapDevToolPluginOptions as SourceMapDevToolPluginOptions };
1
+ import { BuiltinPluginName, type SourceMapDevToolPluginOptions } from "@rspack/binding";
2
+ export type { SourceMapDevToolPluginOptions };
3
3
  export declare const SourceMapDevToolPlugin: {
4
- new (options: RawSourceMapDevToolPluginOptions): {
4
+ new (options: SourceMapDevToolPluginOptions): {
5
5
  name: BuiltinPluginName;
6
- _args: [options: RawSourceMapDevToolPluginOptions];
6
+ _args: [options: SourceMapDevToolPluginOptions];
7
7
  affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
8
8
  raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
9
9
  apply(compiler: import("..").Compiler): void;
@@ -50,6 +50,7 @@ export * from "./NaturalModuleIdsPlugin";
50
50
  export * from "./NodeTargetPlugin";
51
51
  export * from "./OccurrenceChunkIdsPlugin";
52
52
  export * from "./ProgressPlugin";
53
+ export * from "./RstestPlugin";
53
54
  export * from "./ProvidePlugin";
54
55
  export * from "./RealContentHashPlugin";
55
56
  export * from "./RemoveEmptyChunksPlugin";
@@ -75,3 +76,4 @@ export * from "./DllReferenceAgencyPlugin";
75
76
  export * from "./RsdoctorPlugin";
76
77
  export * from "./SubresourceIntegrityPlugin";
77
78
  export * from "./ModuleInfoHeaderPlugin";
79
+ export * from "./CssChunkingPlugin";
@@ -1014,9 +1014,9 @@ export declare const rspackOptions: z.ZodObject<{
1014
1014
  body: Buffer<ArrayBufferLike>;
1015
1015
  headers: Record<string, string>;
1016
1016
  }>) | undefined;
1017
+ upgrade?: boolean | undefined;
1017
1018
  lockfileLocation?: string | undefined;
1018
1019
  cacheLocation?: string | false | undefined;
1019
- upgrade?: boolean | undefined;
1020
1020
  }, {
1021
1021
  allowedUris: (string | RegExp)[];
1022
1022
  httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
@@ -1024,9 +1024,9 @@ export declare const rspackOptions: z.ZodObject<{
1024
1024
  body: Buffer<ArrayBufferLike>;
1025
1025
  headers: Record<string, string>;
1026
1026
  }>) | undefined;
1027
+ upgrade?: boolean | undefined;
1027
1028
  lockfileLocation?: string | undefined;
1028
1029
  cacheLocation?: string | false | undefined;
1029
- upgrade?: boolean | undefined;
1030
1030
  }>>;
1031
1031
  parallelLoader: z.ZodOptional<z.ZodBoolean>;
1032
1032
  }, "strict", z.ZodTypeAny, {
@@ -1092,9 +1092,9 @@ export declare const rspackOptions: z.ZodObject<{
1092
1092
  body: Buffer<ArrayBufferLike>;
1093
1093
  headers: Record<string, string>;
1094
1094
  }>) | undefined;
1095
+ upgrade?: boolean | undefined;
1095
1096
  lockfileLocation?: string | undefined;
1096
1097
  cacheLocation?: string | false | undefined;
1097
- upgrade?: boolean | undefined;
1098
1098
  } | undefined;
1099
1099
  parallelLoader?: boolean | undefined;
1100
1100
  }, {
@@ -1160,9 +1160,9 @@ export declare const rspackOptions: z.ZodObject<{
1160
1160
  body: Buffer<ArrayBufferLike>;
1161
1161
  headers: Record<string, string>;
1162
1162
  }>) | undefined;
1163
+ upgrade?: boolean | undefined;
1163
1164
  lockfileLocation?: string | undefined;
1164
1165
  cacheLocation?: string | false | undefined;
1165
- upgrade?: boolean | undefined;
1166
1166
  } | undefined;
1167
1167
  parallelLoader?: boolean | undefined;
1168
1168
  }>>;
@@ -3487,9 +3487,9 @@ export declare const rspackOptions: z.ZodObject<{
3487
3487
  body: Buffer<ArrayBufferLike>;
3488
3488
  headers: Record<string, string>;
3489
3489
  }>) | undefined;
3490
+ upgrade?: boolean | undefined;
3490
3491
  lockfileLocation?: string | undefined;
3491
3492
  cacheLocation?: string | false | undefined;
3492
- upgrade?: boolean | undefined;
3493
3493
  } | undefined;
3494
3494
  parallelLoader?: boolean | undefined;
3495
3495
  } | undefined;
@@ -4109,9 +4109,9 @@ export declare const rspackOptions: z.ZodObject<{
4109
4109
  body: Buffer<ArrayBufferLike>;
4110
4110
  headers: Record<string, string>;
4111
4111
  }>) | undefined;
4112
+ upgrade?: boolean | undefined;
4112
4113
  lockfileLocation?: string | undefined;
4113
4114
  cacheLocation?: string | false | undefined;
4114
- upgrade?: boolean | undefined;
4115
4115
  } | undefined;
4116
4116
  parallelLoader?: boolean | undefined;
4117
4117
  } | undefined;
package/dist/exports.d.ts CHANGED
@@ -58,6 +58,7 @@ export { IgnorePlugin, type IgnorePluginOptions } from "./builtin-plugin";
58
58
  export { ProvidePlugin } from "./builtin-plugin";
59
59
  export { DefinePlugin } from "./builtin-plugin";
60
60
  export { ProgressPlugin } from "./builtin-plugin";
61
+ export { RstestPlugin } from "./builtin-plugin";
61
62
  export { EntryPlugin } from "./builtin-plugin";
62
63
  export { DynamicEntryPlugin } from "./builtin-plugin";
63
64
  export { ExternalsPlugin } from "./builtin-plugin";
@@ -116,6 +117,7 @@ import { RuntimeChunkPlugin } from "./builtin-plugin";
116
117
  import { SplitChunksPlugin } from "./builtin-plugin";
117
118
  import { RemoveDuplicateModulesPlugin } from "./builtin-plugin";
118
119
  import { RsdoctorPlugin } from "./builtin-plugin";
120
+ import { CssChunkingPlugin } from "./builtin-plugin";
119
121
  interface Optimize {
120
122
  LimitChunkCountPlugin: typeof LimitChunkCountPlugin;
121
123
  RuntimeChunkPlugin: typeof RuntimeChunkPlugin;
@@ -183,5 +185,6 @@ interface Experiments {
183
185
  transform: typeof transform;
184
186
  minify: typeof minify;
185
187
  };
188
+ CssChunkingPlugin: typeof CssChunkingPlugin;
186
189
  }
187
190
  export declare const experiments: Experiments;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import "./setupEnv";
2
1
  import * as rspackExports from "./exports";
3
2
  import { rspack as rspackFn } from "./rspack";
4
3
  type Rspack = typeof rspackFn & typeof rspackExports & {