@rspack/core 1.3.9 → 1.3.11
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/dist/ChunkGraph.d.ts +1 -0
- package/dist/CodeGenerationResults.d.ts +1 -0
- package/dist/Compilation.d.ts +10 -6
- package/dist/Diagnostics.d.ts +7 -0
- package/dist/Module.d.ts +9 -7
- package/dist/RspackError.d.ts +3 -0
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +19 -0
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +4 -4
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/config/adapter.d.ts +2 -2
- package/dist/config/types.d.ts +24 -0
- package/dist/config/zod.d.ts +63 -18
- package/dist/exports.d.ts +2 -0
- package/dist/index.js +481 -251
- package/dist/taps/compilation.d.ts +6 -0
- package/dist/trace/index.d.ts +6 -6
- package/dist/trace/traceHookPlugin.d.ts +5 -0
- package/dist/worker.js +1 -1
- package/package.json +4 -4
package/dist/ChunkGraph.d.ts
CHANGED
@@ -7,6 +7,7 @@ export declare class ChunkGraph {
|
|
7
7
|
#private;
|
8
8
|
static __from_binding(binding: JsChunkGraph): ChunkGraph;
|
9
9
|
constructor(binding: JsChunkGraph);
|
10
|
+
hasChunkEntryDependentChunks(chunk: Chunk): boolean;
|
10
11
|
getChunkModules(chunk: Chunk): ReadonlyArray<Module>;
|
11
12
|
getChunkModulesIterable(chunk: Chunk): Iterable<Module>;
|
12
13
|
getOrderedChunkModulesIterable(chunk: Chunk, compareFn: (a: Module, b: Module) => number): Iterable<Module>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/dist/Compilation.d.ts
CHANGED
@@ -18,7 +18,7 @@ import { ChunkGroup } from "./ChunkGroup";
|
|
18
18
|
import type { Compiler } from "./Compiler";
|
19
19
|
import type { ContextModuleFactory } from "./ContextModuleFactory";
|
20
20
|
import { Entrypoint } from "./Entrypoint";
|
21
|
-
import type {
|
21
|
+
import type { Module } from "./Module";
|
22
22
|
import ModuleGraph from "./ModuleGraph";
|
23
23
|
import type { NormalModuleCompilationHooks } from "./NormalModule";
|
24
24
|
import type { NormalModuleFactory } from "./NormalModuleFactory";
|
@@ -27,7 +27,7 @@ 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 {
|
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";
|
@@ -35,6 +35,8 @@ import { StatsPrinter } from "./stats/StatsPrinter";
|
|
35
35
|
import type { InputFileSystem } from "./util/fs";
|
36
36
|
import type Hash from "./util/hash";
|
37
37
|
import "./Chunks";
|
38
|
+
import "./CodeGenerationResults";
|
39
|
+
import type { CodeGenerationResult } from "./taps/compilation";
|
38
40
|
export type Assets = Record<string, Source>;
|
39
41
|
export interface Asset {
|
40
42
|
name: string;
|
@@ -236,6 +238,7 @@ export declare class Compilation {
|
|
236
238
|
*/
|
237
239
|
get namedChunks(): ReadonlyMap<string, Readonly<Chunk>>;
|
238
240
|
get entries(): Map<string, EntryData>;
|
241
|
+
get codeGenerationResults(): binding.CodeGenerationResults;
|
239
242
|
getCache(name: string): import("./lib/CacheFacade").CacheFacade;
|
240
243
|
createStatsOptions(statsValue: StatsValue | undefined, context?: CreateStatsOptionsContext): NormalizedStatsOptions;
|
241
244
|
createStatsFactory(options: StatsOptions): StatsFactory;
|
@@ -281,10 +284,10 @@ export declare class Compilation {
|
|
281
284
|
set errors(errors: RspackError[]);
|
282
285
|
get warnings(): RspackError[];
|
283
286
|
set warnings(warnings: RspackError[]);
|
284
|
-
getPath(filename:
|
285
|
-
getPathWithInfo(filename:
|
286
|
-
getAssetPath(filename:
|
287
|
-
getAssetPathWithInfo(filename:
|
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;
|
288
291
|
getLogger(name: string | (() => string)): Logger;
|
289
292
|
fileDependencies: {
|
290
293
|
[Symbol.iterator](): Generator<string, void, unknown>;
|
@@ -315,6 +318,7 @@ export declare class Compilation {
|
|
315
318
|
rebuildModule(module: Module, f: (err: Error | null, module: Module | null) => void): void;
|
316
319
|
addRuntimeModule(chunk: Chunk, runtimeModule: RuntimeModule): void;
|
317
320
|
addInclude(context: string, dependency: ReturnType<typeof EntryPlugin.createDependency>, options: EntryOptions, callback: (err?: null | WebpackError, module?: Module) => void): void;
|
321
|
+
addEntry(context: string, dependency: ReturnType<typeof EntryPlugin.createDependency>, optionsOrName: EntryOptions | string, callback: (err?: null | WebpackError, module?: Module) => void): void;
|
318
322
|
/**
|
319
323
|
* Get the `Source` of a given asset filename.
|
320
324
|
*
|
@@ -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;
|
@@ -51,10 +60,3 @@ declare module "@rspack/binding" {
|
|
51
60
|
}
|
52
61
|
}
|
53
62
|
export { Module } from "@rspack/binding";
|
54
|
-
export declare class CodeGenerationResult {
|
55
|
-
#private;
|
56
|
-
constructor(result: binding.JsCodegenerationResult);
|
57
|
-
get(sourceType: string): string;
|
58
|
-
}
|
59
|
-
export declare class CodeGenerationResults {
|
60
|
-
}
|
package/dist/RspackError.d.ts
CHANGED
@@ -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
|
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
|
1
|
+
import { BuiltinPluginName, type SourceMapDevToolPluginOptions } from "@rspack/binding";
|
2
2
|
export declare const EvalSourceMapDevToolPlugin: {
|
3
|
-
new (options:
|
3
|
+
new (options: SourceMapDevToolPluginOptions): {
|
4
4
|
name: BuiltinPluginName;
|
5
|
-
_args: [options:
|
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;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { BuiltinPluginName, type
|
2
|
-
export type {
|
1
|
+
import { BuiltinPluginName, type SourceMapDevToolPluginOptions } from "@rspack/binding";
|
2
|
+
export type { SourceMapDevToolPluginOptions };
|
3
3
|
export declare const SourceMapDevToolPlugin: {
|
4
|
-
new (options:
|
4
|
+
new (options: SourceMapDevToolPluginOptions): {
|
5
5
|
name: BuiltinPluginName;
|
6
|
-
_args: [options:
|
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;
|
@@ -29,7 +29,7 @@ export declare class SubresourceIntegrityPlugin extends NativeSubresourceIntegri
|
|
29
29
|
private integrities;
|
30
30
|
private options;
|
31
31
|
private validateError;
|
32
|
-
constructor(options
|
32
|
+
constructor(options?: SubresourceIntegrityPluginOptions);
|
33
33
|
private isEnabled;
|
34
34
|
private getIntegrityChecksumForAsset;
|
35
35
|
private handleHwpPluginArgs;
|
package/dist/config/adapter.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { type RawOptions } from "@rspack/binding";
|
2
2
|
import type { Compiler } from "../Compiler";
|
3
|
-
import { type LoaderContext, type LoaderDefinition, type LoaderDefinitionFunction } from "./adapterRuleUse";
|
3
|
+
import { type LoaderContext, type LoaderDefinition, type LoaderDefinitionFunction, type PitchLoaderDefinitionFunction } from "./adapterRuleUse";
|
4
4
|
import type { RspackOptionsNormalized } from "./normalization";
|
5
5
|
import type { Resolve } from "./types";
|
6
|
-
export type { LoaderContext, LoaderDefinition, LoaderDefinitionFunction };
|
6
|
+
export type { LoaderContext, LoaderDefinition, LoaderDefinitionFunction, PitchLoaderDefinitionFunction };
|
7
7
|
export declare const getRawOptions: (options: RspackOptionsNormalized, compiler: Compiler) => RawOptions;
|
8
8
|
export declare function getRawResolve(resolve: Resolve): RawOptions["resolve"];
|
package/dist/config/types.d.ts
CHANGED
@@ -682,6 +682,7 @@ export type AssetParserOptions = {
|
|
682
682
|
dataUrlCondition?: AssetParserDataUrlOptions;
|
683
683
|
};
|
684
684
|
export type CssParserNamedExports = boolean;
|
685
|
+
export type CssParserUrl = boolean;
|
685
686
|
/** Options object for `css` modules. */
|
686
687
|
export type CssParserOptions = {
|
687
688
|
/**
|
@@ -689,6 +690,11 @@ export type CssParserOptions = {
|
|
689
690
|
* @default true
|
690
691
|
* */
|
691
692
|
namedExports?: CssParserNamedExports;
|
693
|
+
/**
|
694
|
+
* Allow to enable/disables handling the CSS functions url.
|
695
|
+
* @default true
|
696
|
+
* */
|
697
|
+
url?: CssParserUrl;
|
692
698
|
};
|
693
699
|
/** Options object for `css/auto` modules. */
|
694
700
|
export type CssAutoParserOptions = {
|
@@ -697,6 +703,11 @@ export type CssAutoParserOptions = {
|
|
697
703
|
* @default true
|
698
704
|
* */
|
699
705
|
namedExports?: CssParserNamedExports;
|
706
|
+
/**
|
707
|
+
* Allow to enable/disables handling the CSS functions url.
|
708
|
+
* @default true
|
709
|
+
* */
|
710
|
+
url?: CssParserUrl;
|
700
711
|
};
|
701
712
|
/** Options object for `css/module` modules. */
|
702
713
|
export type CssModuleParserOptions = {
|
@@ -705,6 +716,11 @@ export type CssModuleParserOptions = {
|
|
705
716
|
* @default true
|
706
717
|
* */
|
707
718
|
namedExports?: CssParserNamedExports;
|
719
|
+
/**
|
720
|
+
* Allow to enable/disables handling the CSS functions url.
|
721
|
+
* @default true
|
722
|
+
* */
|
723
|
+
url?: CssParserUrl;
|
708
724
|
};
|
709
725
|
type ExportsPresence = "error" | "warn" | "auto" | false;
|
710
726
|
export type JavascriptParserOptions = {
|
@@ -822,6 +838,10 @@ export type AssetGeneratorDataUrl = AssetGeneratorDataUrlOptions | AssetGenerato
|
|
822
838
|
export type AssetInlineGeneratorOptions = {
|
823
839
|
/** Only for modules with module type 'asset' or 'asset/inline'. */
|
824
840
|
dataUrl?: AssetGeneratorDataUrl;
|
841
|
+
/**
|
842
|
+
* Whether or not this asset module should be considered binary. This can be set to 'false' to treat this asset module as text.
|
843
|
+
*/
|
844
|
+
binary?: boolean;
|
825
845
|
};
|
826
846
|
/** Emit the asset in the specified folder relative to 'output.path'. */
|
827
847
|
export type AssetModuleOutputPath = Filename;
|
@@ -852,6 +872,10 @@ export type AssetResourceGeneratorOptions = {
|
|
852
872
|
* @default "url"
|
853
873
|
*/
|
854
874
|
importMode?: AssetModuleImportMode;
|
875
|
+
/**
|
876
|
+
* Whether or not this asset module should be considered binary. This can be set to 'false' to treat this asset module as text.
|
877
|
+
*/
|
878
|
+
binary?: boolean;
|
855
879
|
};
|
856
880
|
/** Generator options for asset modules. */
|
857
881
|
export type AssetGeneratorOptions = AssetInlineGeneratorOptions & AssetResourceGeneratorOptions;
|
package/dist/config/zod.d.ts
CHANGED
@@ -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
|
}>>;
|
@@ -1901,7 +1901,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1901
1901
|
module: z.ZodOptional<z.ZodObject<{
|
1902
1902
|
defaultRules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"...">, ZodRspackCrossChecker<t.RuleSetRule>]>, z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>, "many">>;
|
1903
1903
|
rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"...">, ZodRspackCrossChecker<t.RuleSetRule>]>, z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>, "many">>;
|
1904
|
-
parser: z.ZodOptional<z.
|
1904
|
+
parser: z.ZodOptional<z.ZodObject<{
|
1905
1905
|
asset: z.ZodOptional<z.ZodObject<{
|
1906
1906
|
dataUrlCondition: z.ZodOptional<z.ZodObject<{
|
1907
1907
|
maxSize: z.ZodOptional<z.ZodNumber>;
|
@@ -1921,23 +1921,32 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1921
1921
|
}>>;
|
1922
1922
|
css: z.ZodOptional<z.ZodObject<{
|
1923
1923
|
namedExports: z.ZodOptional<z.ZodBoolean>;
|
1924
|
+
url: z.ZodOptional<z.ZodBoolean>;
|
1924
1925
|
}, "strict", z.ZodTypeAny, {
|
1926
|
+
url?: boolean | undefined;
|
1925
1927
|
namedExports?: boolean | undefined;
|
1926
1928
|
}, {
|
1929
|
+
url?: boolean | undefined;
|
1927
1930
|
namedExports?: boolean | undefined;
|
1928
1931
|
}>>;
|
1929
1932
|
"css/auto": z.ZodOptional<z.ZodObject<{
|
1930
1933
|
namedExports: z.ZodOptional<z.ZodBoolean>;
|
1934
|
+
url: z.ZodOptional<z.ZodBoolean>;
|
1931
1935
|
}, "strict", z.ZodTypeAny, {
|
1936
|
+
url?: boolean | undefined;
|
1932
1937
|
namedExports?: boolean | undefined;
|
1933
1938
|
}, {
|
1939
|
+
url?: boolean | undefined;
|
1934
1940
|
namedExports?: boolean | undefined;
|
1935
1941
|
}>>;
|
1936
1942
|
"css/module": z.ZodOptional<z.ZodObject<{
|
1937
1943
|
namedExports: z.ZodOptional<z.ZodBoolean>;
|
1944
|
+
url: z.ZodOptional<z.ZodBoolean>;
|
1938
1945
|
}, "strict", z.ZodTypeAny, {
|
1946
|
+
url?: boolean | undefined;
|
1939
1947
|
namedExports?: boolean | undefined;
|
1940
1948
|
}, {
|
1949
|
+
url?: boolean | undefined;
|
1941
1950
|
namedExports?: boolean | undefined;
|
1942
1951
|
}>>;
|
1943
1952
|
javascript: z.ZodOptional<z.ZodObject<{
|
@@ -2186,12 +2195,15 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2186
2195
|
}>>;
|
2187
2196
|
}, "strict", z.ZodTypeAny, {
|
2188
2197
|
css?: {
|
2198
|
+
url?: boolean | undefined;
|
2189
2199
|
namedExports?: boolean | undefined;
|
2190
2200
|
} | undefined;
|
2191
2201
|
"css/auto"?: {
|
2202
|
+
url?: boolean | undefined;
|
2192
2203
|
namedExports?: boolean | undefined;
|
2193
2204
|
} | undefined;
|
2194
2205
|
"css/module"?: {
|
2206
|
+
url?: boolean | undefined;
|
2195
2207
|
namedExports?: boolean | undefined;
|
2196
2208
|
} | undefined;
|
2197
2209
|
javascript?: {
|
@@ -2285,12 +2297,15 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2285
2297
|
} | undefined;
|
2286
2298
|
}, {
|
2287
2299
|
css?: {
|
2300
|
+
url?: boolean | undefined;
|
2288
2301
|
namedExports?: boolean | undefined;
|
2289
2302
|
} | undefined;
|
2290
2303
|
"css/auto"?: {
|
2304
|
+
url?: boolean | undefined;
|
2291
2305
|
namedExports?: boolean | undefined;
|
2292
2306
|
} | undefined;
|
2293
2307
|
"css/module"?: {
|
2308
|
+
url?: boolean | undefined;
|
2294
2309
|
namedExports?: boolean | undefined;
|
2295
2310
|
} | undefined;
|
2296
2311
|
javascript?: {
|
@@ -2382,8 +2397,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2382
2397
|
requireResolve?: boolean | undefined;
|
2383
2398
|
importDynamic?: boolean | undefined;
|
2384
2399
|
} | undefined;
|
2385
|
-
}
|
2386
|
-
generator: z.ZodOptional<z.
|
2400
|
+
}>>;
|
2401
|
+
generator: z.ZodOptional<z.ZodObject<{
|
2387
2402
|
asset: z.ZodOptional<z.ZodObject<{
|
2388
2403
|
dataUrl: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
2389
2404
|
encoding: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<"base64">]>>;
|
@@ -2408,7 +2423,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2408
2423
|
emit: z.ZodOptional<z.ZodBoolean>;
|
2409
2424
|
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
2410
2425
|
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>]>>;
|
2426
|
+
outputPath: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
2411
2427
|
}, "strict", z.ZodTypeAny, {
|
2428
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2412
2429
|
emit?: boolean | undefined;
|
2413
2430
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2414
2431
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2420,6 +2437,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2420
2437
|
filename: string;
|
2421
2438
|
}, ...args: unknown[]) => string) | undefined;
|
2422
2439
|
}, {
|
2440
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2423
2441
|
emit?: boolean | undefined;
|
2424
2442
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2425
2443
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2472,11 +2490,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2472
2490
|
emit: z.ZodOptional<z.ZodBoolean>;
|
2473
2491
|
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
2474
2492
|
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>]>>;
|
2493
|
+
outputPath: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.ZodType<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
2475
2494
|
}, "strict", z.ZodTypeAny, {
|
2495
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2476
2496
|
emit?: boolean | undefined;
|
2477
2497
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2478
2498
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2479
2499
|
}, {
|
2500
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2480
2501
|
emit?: boolean | undefined;
|
2481
2502
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2482
2503
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2548,6 +2569,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2548
2569
|
localIdentName?: string | undefined;
|
2549
2570
|
} | undefined;
|
2550
2571
|
asset?: {
|
2572
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2551
2573
|
emit?: boolean | undefined;
|
2552
2574
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2553
2575
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2572,6 +2594,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2572
2594
|
}, ...args: unknown[]) => string) | undefined;
|
2573
2595
|
} | undefined;
|
2574
2596
|
"asset/resource"?: {
|
2597
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2575
2598
|
emit?: boolean | undefined;
|
2576
2599
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2577
2600
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2594,6 +2617,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2594
2617
|
localIdentName?: string | undefined;
|
2595
2618
|
} | undefined;
|
2596
2619
|
asset?: {
|
2620
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2597
2621
|
emit?: boolean | undefined;
|
2598
2622
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2599
2623
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2618,21 +2642,25 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2618
2642
|
}, ...args: unknown[]) => string) | undefined;
|
2619
2643
|
} | undefined;
|
2620
2644
|
"asset/resource"?: {
|
2645
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2621
2646
|
emit?: boolean | undefined;
|
2622
2647
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2623
2648
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2624
2649
|
} | undefined;
|
2625
|
-
}
|
2650
|
+
}>>;
|
2626
2651
|
noParse: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>, "many">]>>;
|
2627
2652
|
}, "strict", z.ZodTypeAny, {
|
2628
2653
|
parser?: {
|
2629
2654
|
css?: {
|
2655
|
+
url?: boolean | undefined;
|
2630
2656
|
namedExports?: boolean | undefined;
|
2631
2657
|
} | undefined;
|
2632
2658
|
"css/auto"?: {
|
2659
|
+
url?: boolean | undefined;
|
2633
2660
|
namedExports?: boolean | undefined;
|
2634
2661
|
} | undefined;
|
2635
2662
|
"css/module"?: {
|
2663
|
+
url?: boolean | undefined;
|
2636
2664
|
namedExports?: boolean | undefined;
|
2637
2665
|
} | undefined;
|
2638
2666
|
javascript?: {
|
@@ -2724,8 +2752,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2724
2752
|
requireResolve?: boolean | undefined;
|
2725
2753
|
importDynamic?: boolean | undefined;
|
2726
2754
|
} | undefined;
|
2727
|
-
} |
|
2728
|
-
generator?:
|
2755
|
+
} | undefined;
|
2756
|
+
generator?: {
|
2729
2757
|
css?: {
|
2730
2758
|
exportsOnly?: boolean | undefined;
|
2731
2759
|
esModule?: boolean | undefined;
|
@@ -2743,6 +2771,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2743
2771
|
localIdentName?: string | undefined;
|
2744
2772
|
} | undefined;
|
2745
2773
|
asset?: {
|
2774
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2746
2775
|
emit?: boolean | undefined;
|
2747
2776
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2748
2777
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2767,6 +2796,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2767
2796
|
}, ...args: unknown[]) => string) | undefined;
|
2768
2797
|
} | undefined;
|
2769
2798
|
"asset/resource"?: {
|
2799
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2770
2800
|
emit?: boolean | undefined;
|
2771
2801
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2772
2802
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2778,12 +2808,15 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2778
2808
|
}, {
|
2779
2809
|
parser?: {
|
2780
2810
|
css?: {
|
2811
|
+
url?: boolean | undefined;
|
2781
2812
|
namedExports?: boolean | undefined;
|
2782
2813
|
} | undefined;
|
2783
2814
|
"css/auto"?: {
|
2815
|
+
url?: boolean | undefined;
|
2784
2816
|
namedExports?: boolean | undefined;
|
2785
2817
|
} | undefined;
|
2786
2818
|
"css/module"?: {
|
2819
|
+
url?: boolean | undefined;
|
2787
2820
|
namedExports?: boolean | undefined;
|
2788
2821
|
} | undefined;
|
2789
2822
|
javascript?: {
|
@@ -2875,8 +2908,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2875
2908
|
requireResolve?: boolean | undefined;
|
2876
2909
|
importDynamic?: boolean | undefined;
|
2877
2910
|
} | undefined;
|
2878
|
-
} |
|
2879
|
-
generator?:
|
2911
|
+
} | undefined;
|
2912
|
+
generator?: {
|
2880
2913
|
css?: {
|
2881
2914
|
exportsOnly?: boolean | undefined;
|
2882
2915
|
esModule?: boolean | undefined;
|
@@ -2894,6 +2927,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2894
2927
|
localIdentName?: string | undefined;
|
2895
2928
|
} | undefined;
|
2896
2929
|
asset?: {
|
2930
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2897
2931
|
emit?: boolean | undefined;
|
2898
2932
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2899
2933
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2918,6 +2952,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2918
2952
|
}, ...args: unknown[]) => string) | undefined;
|
2919
2953
|
} | undefined;
|
2920
2954
|
"asset/resource"?: {
|
2955
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2921
2956
|
emit?: boolean | undefined;
|
2922
2957
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2923
2958
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2951,12 +2986,15 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2951
2986
|
module?: {
|
2952
2987
|
parser?: {
|
2953
2988
|
css?: {
|
2989
|
+
url?: boolean | undefined;
|
2954
2990
|
namedExports?: boolean | undefined;
|
2955
2991
|
} | undefined;
|
2956
2992
|
"css/auto"?: {
|
2993
|
+
url?: boolean | undefined;
|
2957
2994
|
namedExports?: boolean | undefined;
|
2958
2995
|
} | undefined;
|
2959
2996
|
"css/module"?: {
|
2997
|
+
url?: boolean | undefined;
|
2960
2998
|
namedExports?: boolean | undefined;
|
2961
2999
|
} | undefined;
|
2962
3000
|
javascript?: {
|
@@ -3048,8 +3086,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3048
3086
|
requireResolve?: boolean | undefined;
|
3049
3087
|
importDynamic?: boolean | undefined;
|
3050
3088
|
} | undefined;
|
3051
|
-
} |
|
3052
|
-
generator?:
|
3089
|
+
} | undefined;
|
3090
|
+
generator?: {
|
3053
3091
|
css?: {
|
3054
3092
|
exportsOnly?: boolean | undefined;
|
3055
3093
|
esModule?: boolean | undefined;
|
@@ -3067,6 +3105,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3067
3105
|
localIdentName?: string | undefined;
|
3068
3106
|
} | undefined;
|
3069
3107
|
asset?: {
|
3108
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3070
3109
|
emit?: boolean | undefined;
|
3071
3110
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3072
3111
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -3091,6 +3130,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3091
3130
|
}, ...args: unknown[]) => string) | undefined;
|
3092
3131
|
} | undefined;
|
3093
3132
|
"asset/resource"?: {
|
3133
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3094
3134
|
emit?: boolean | undefined;
|
3095
3135
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3096
3136
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -3447,9 +3487,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3447
3487
|
body: Buffer<ArrayBufferLike>;
|
3448
3488
|
headers: Record<string, string>;
|
3449
3489
|
}>) | undefined;
|
3490
|
+
upgrade?: boolean | undefined;
|
3450
3491
|
lockfileLocation?: string | undefined;
|
3451
3492
|
cacheLocation?: string | false | undefined;
|
3452
|
-
upgrade?: boolean | undefined;
|
3453
3493
|
} | undefined;
|
3454
3494
|
parallelLoader?: boolean | undefined;
|
3455
3495
|
} | undefined;
|
@@ -3568,12 +3608,15 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3568
3608
|
module?: {
|
3569
3609
|
parser?: {
|
3570
3610
|
css?: {
|
3611
|
+
url?: boolean | undefined;
|
3571
3612
|
namedExports?: boolean | undefined;
|
3572
3613
|
} | undefined;
|
3573
3614
|
"css/auto"?: {
|
3615
|
+
url?: boolean | undefined;
|
3574
3616
|
namedExports?: boolean | undefined;
|
3575
3617
|
} | undefined;
|
3576
3618
|
"css/module"?: {
|
3619
|
+
url?: boolean | undefined;
|
3577
3620
|
namedExports?: boolean | undefined;
|
3578
3621
|
} | undefined;
|
3579
3622
|
javascript?: {
|
@@ -3665,8 +3708,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3665
3708
|
requireResolve?: boolean | undefined;
|
3666
3709
|
importDynamic?: boolean | undefined;
|
3667
3710
|
} | undefined;
|
3668
|
-
} |
|
3669
|
-
generator?:
|
3711
|
+
} | undefined;
|
3712
|
+
generator?: {
|
3670
3713
|
css?: {
|
3671
3714
|
exportsOnly?: boolean | undefined;
|
3672
3715
|
esModule?: boolean | undefined;
|
@@ -3684,6 +3727,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3684
3727
|
localIdentName?: string | undefined;
|
3685
3728
|
} | undefined;
|
3686
3729
|
asset?: {
|
3730
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3687
3731
|
emit?: boolean | undefined;
|
3688
3732
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3689
3733
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -3708,6 +3752,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3708
3752
|
}, ...args: unknown[]) => string) | undefined;
|
3709
3753
|
} | undefined;
|
3710
3754
|
"asset/resource"?: {
|
3755
|
+
outputPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3711
3756
|
emit?: boolean | undefined;
|
3712
3757
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3713
3758
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -4064,9 +4109,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4064
4109
|
body: Buffer<ArrayBufferLike>;
|
4065
4110
|
headers: Record<string, string>;
|
4066
4111
|
}>) | undefined;
|
4112
|
+
upgrade?: boolean | undefined;
|
4067
4113
|
lockfileLocation?: string | undefined;
|
4068
4114
|
cacheLocation?: string | false | undefined;
|
4069
|
-
upgrade?: boolean | undefined;
|
4070
4115
|
} | undefined;
|
4071
4116
|
parallelLoader?: boolean | undefined;
|
4072
4117
|
} | undefined;
|