@rspack/core 1.3.6 → 1.3.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.
- package/compiled/graceful-fs/index.js +8 -8
- package/compiled/zod/index.d.ts +2 -1772
- package/compiled/zod/lib/ZodError.d.ts +164 -0
- package/compiled/zod/lib/__tests__/Mocker.d.ts +17 -0
- package/compiled/zod/lib/benchmarks/datetime.d.ts +5 -0
- package/compiled/zod/lib/benchmarks/discriminatedUnion.d.ts +5 -0
- package/compiled/zod/lib/benchmarks/index.d.ts +1 -0
- package/compiled/zod/lib/benchmarks/ipv4.d.ts +5 -0
- package/compiled/zod/lib/benchmarks/object.d.ts +5 -0
- package/compiled/zod/lib/benchmarks/primitives.d.ts +5 -0
- package/compiled/zod/lib/benchmarks/realworld.d.ts +5 -0
- package/compiled/zod/lib/benchmarks/string.d.ts +5 -0
- package/compiled/zod/lib/benchmarks/union.d.ts +5 -0
- package/compiled/zod/lib/errors.d.ts +5 -0
- package/compiled/zod/lib/external.d.ts +6 -0
- package/compiled/zod/lib/helpers/enumUtil.d.ts +8 -0
- package/compiled/zod/lib/helpers/errorUtil.d.ts +9 -0
- package/compiled/zod/lib/helpers/parseUtil.d.ts +78 -0
- package/compiled/zod/lib/helpers/partialUtil.d.ts +8 -0
- package/compiled/zod/lib/helpers/typeAliases.d.ts +2 -0
- package/compiled/zod/lib/helpers/util.d.ts +82 -0
- package/compiled/zod/lib/index.d.ts +4 -0
- package/compiled/zod/lib/locales/en.d.ts +3 -0
- package/compiled/zod/lib/standard-schema.d.ts +102 -0
- package/compiled/zod/lib/types.d.ts +1062 -0
- package/compiled/zod/package.json +1 -1
- package/dist/ChunkGroup.d.ts +10 -0
- package/dist/RspackError.d.ts +2 -1
- package/dist/builtin-loader/swc/pluginImport.d.ts +1 -1
- package/dist/builtin-loader/swc/types.d.ts +632 -631
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +14 -14
- package/dist/config/types.d.ts +15 -2
- package/dist/config/utils.d.ts +1 -1
- package/dist/config/zod.d.ts +84 -77
- package/dist/exports.d.ts +6 -0
- package/dist/index.js +676 -604
- package/dist/swc.d.ts +5 -0
- package/dist/trace/index.d.ts +2 -0
- package/package.json +3 -3
@@ -1,5 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
2
|
+
import type { Compilation } from "../Compilation";
|
3
|
+
import type { Compiler } from "../Compiler";
|
2
4
|
import type { Module } from "../Module";
|
5
|
+
import { RspackBuiltinPlugin } from "./base";
|
3
6
|
export type CircularDependencyRspackPluginOptions = {
|
4
7
|
/**
|
5
8
|
* When `true`, the plugin will emit `ERROR` diagnostics rather than the
|
@@ -33,27 +36,24 @@ export type CircularDependencyRspackPluginOptions = {
|
|
33
36
|
* Called once for every detected cycle. Providing this handler overrides the
|
34
37
|
* default behavior of adding diagnostics to the compilation.
|
35
38
|
*/
|
36
|
-
onDetected?(entrypoint: Module, modules: string[], compilation:
|
39
|
+
onDetected?(entrypoint: Module, modules: string[], compilation: Compilation): void;
|
37
40
|
/**
|
38
41
|
* Called once for every detected cycle that was ignored because of a rule,
|
39
42
|
* either from `exclude` or `ignoredConnections`.
|
40
43
|
*/
|
41
|
-
onIgnored?(entrypoint: Module, modules: string[], compilation:
|
44
|
+
onIgnored?(entrypoint: Module, modules: string[], compilation: Compilation): void;
|
42
45
|
/**
|
43
46
|
* Called before cycle detection begins.
|
44
47
|
*/
|
45
|
-
onStart?(compilation:
|
48
|
+
onStart?(compilation: Compilation): void;
|
46
49
|
/**
|
47
50
|
* Called after cycle detection finishes.
|
48
51
|
*/
|
49
|
-
onEnd?(compilation:
|
50
|
-
};
|
51
|
-
export declare const CircularDependencyRspackPlugin: {
|
52
|
-
new (options: CircularDependencyRspackPluginOptions): {
|
53
|
-
name: BuiltinPluginName;
|
54
|
-
_args: [options: CircularDependencyRspackPluginOptions];
|
55
|
-
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;
|
56
|
-
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
57
|
-
apply(compiler: import("..").Compiler): void;
|
58
|
-
};
|
52
|
+
onEnd?(compilation: Compilation): void;
|
59
53
|
};
|
54
|
+
export declare class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
55
|
+
name: BuiltinPluginName;
|
56
|
+
_options: CircularDependencyRspackPluginOptions;
|
57
|
+
constructor(options: CircularDependencyRspackPluginOptions);
|
58
|
+
raw(compiler: Compiler): BuiltinPlugin;
|
59
|
+
}
|
package/dist/config/types.d.ts
CHANGED
@@ -176,7 +176,7 @@ export type ChunkLoadingGlobal = string;
|
|
176
176
|
export type EnabledLibraryTypes = string[];
|
177
177
|
/** Whether delete all files in the output directory. */
|
178
178
|
export type Clean = boolean | {
|
179
|
-
keep?: string;
|
179
|
+
keep?: string | RegExp | ((path: string) => boolean);
|
180
180
|
};
|
181
181
|
/** Output JavaScript files as module type. */
|
182
182
|
export type OutputModule = boolean;
|
@@ -1838,11 +1838,20 @@ export type LazyCompilationOptions = {
|
|
1838
1838
|
* environment you need to explicitly specify a specific path.
|
1839
1839
|
*/
|
1840
1840
|
serverUrl?: string;
|
1841
|
+
/**
|
1842
|
+
* Customize the prefix used for lazy compilation endpoint.
|
1843
|
+
* @default "/lazy-compilation-using-"
|
1844
|
+
*/
|
1845
|
+
prefix?: string;
|
1841
1846
|
};
|
1842
1847
|
/**
|
1843
1848
|
* Options for incremental builds.
|
1844
1849
|
*/
|
1845
1850
|
export type Incremental = {
|
1851
|
+
/**
|
1852
|
+
* Warning if there are cases that not friendly for incremental
|
1853
|
+
*/
|
1854
|
+
silent?: boolean;
|
1846
1855
|
/**
|
1847
1856
|
* Enable incremental make.
|
1848
1857
|
*/
|
@@ -1904,6 +1913,10 @@ export type Incremental = {
|
|
1904
1913
|
*/
|
1905
1914
|
emitAssets?: boolean;
|
1906
1915
|
};
|
1916
|
+
/**
|
1917
|
+
* Presets for incremental
|
1918
|
+
*/
|
1919
|
+
export type IncrementalPresets = boolean | "none" | "safe" | "advance" | "advance-silent";
|
1907
1920
|
/**
|
1908
1921
|
* Options for experiments.buildHttp
|
1909
1922
|
*/
|
@@ -1958,7 +1971,7 @@ export type Experiments = {
|
|
1958
1971
|
/**
|
1959
1972
|
* Enable incremental builds.
|
1960
1973
|
*/
|
1961
|
-
incremental?:
|
1974
|
+
incremental?: IncrementalPresets | Incremental;
|
1962
1975
|
/**
|
1963
1976
|
* Enable multi-threaded code splitting algorithm.
|
1964
1977
|
*/
|
package/dist/config/utils.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { type IssueData, type ParseReturnType, ZodType, type ZodTypeDef, z } from "../../compiled/zod";
|
2
2
|
import type { RspackOptions } from "./types";
|
3
3
|
export type ZodCrossFieldsOptions = ZodTypeDef & {
|
4
4
|
patterns: Array<{
|