@rspack/core 1.3.4 → 1.3.6
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/README.md +1 -2
- package/compiled/@swc/types/index.d.ts +11 -2
- package/compiled/@swc/types/package.json +1 -1
- package/compiled/enhanced-resolve/CachedInputFileSystem.d.ts +0 -0
- package/compiled/enhanced-resolve/index.d.ts +3 -2
- package/compiled/zod/index.d.ts +10 -8
- package/compiled/zod/index.js +30 -30
- package/compiled/zod/package.json +1 -1
- package/dist/ChunkGraph.d.ts +1 -0
- package/dist/Chunks.d.ts +13 -0
- package/dist/Compilation.d.ts +4 -7
- package/dist/Module.d.ts +1 -0
- package/dist/NormalModule.d.ts +2 -2
- package/dist/builtin-loader/swc/pluginImport.d.ts +35 -0
- package/dist/builtin-loader/swc/types.d.ts +4434 -2
- package/dist/builtin-plugin/html-plugin/options.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +1 -1
- package/dist/config/devServer.d.ts +207 -0
- package/dist/config/types.d.ts +12 -5
- package/dist/config/utils.d.ts +3 -3
- package/dist/config/zod.d.ts +711 -695
- package/dist/cssExtractHmr.js +112 -211
- package/dist/cssExtractLoader.js +129 -246
- package/dist/exports.d.ts +1 -1
- package/dist/index.js +13061 -21111
- package/dist/loader-runner/service.d.ts +1 -1
- package/dist/loader-runner/utils.d.ts +1 -0
- package/dist/loader-runner/worker.d.ts +1 -1
- package/dist/trace/index.d.ts +35 -0
- package/dist/util/hash/BatchedHash.d.ts +2 -6
- package/dist/util/hash/index.d.ts +15 -6
- package/dist/util/validate.d.ts +4 -1
- package/dist/worker.js +909 -1874
- package/package.json +12 -24
package/README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
<picture>
|
2
|
-
<
|
3
|
-
<img alt="Rspack Banner" src="https://assets.rspack.dev/rspack/rspack-banner-plain-light.png">
|
2
|
+
<img alt="Rspack Banner" src="https://assets.rspack.dev/rspack/rspack-banner.png">
|
4
3
|
</picture>
|
5
4
|
|
6
5
|
# @rspack/core
|
@@ -605,7 +605,7 @@ interface JscConfig {
|
|
605
605
|
*
|
606
606
|
* Second parameter of tuple is JSON based configuration for the plugin.
|
607
607
|
*/
|
608
|
-
plugins?:
|
608
|
+
plugins?: WasmPlugin[];
|
609
609
|
/**
|
610
610
|
* Run Wasm plugins before stripping TypeScript or decorators.
|
611
611
|
*
|
@@ -2096,5 +2096,14 @@ type Accessibility = "public" | "protected" | "private";
|
|
2096
2096
|
interface Invalid extends Node, HasSpan {
|
2097
2097
|
type: "Invalid";
|
2098
2098
|
}
|
2099
|
+
type WasmAnalysisOptions = {
|
2100
|
+
parser?: ParserConfig;
|
2101
|
+
module?: true | false | 'unknown';
|
2102
|
+
filename?: string;
|
2103
|
+
errorFormat?: 'json' | 'normal';
|
2104
|
+
cacheRoot?: string;
|
2105
|
+
plugins: WasmPlugin[];
|
2106
|
+
};
|
2107
|
+
type WasmPlugin = [wasmPackage: string, config: Record<string, any>];
|
2099
2108
|
|
2100
|
-
export type { Accessibility, AmdConfig, Argument, ArrayExpression, ArrayPattern, ArrowFunctionExpression, AssignmentExpression, AssignmentOperator, AssignmentPattern, AssignmentPatternProperty, AssignmentProperty, AwaitExpression, BaseModuleConfig, BigIntLiteral, BinaryExpression, BinaryOperator, BindingIdentifier, BlockStatement, BooleanLiteral, BreakStatement, CallExpression, CallerOptions, CatchClause, Class, ClassDeclaration, ClassExpression, ClassMember, ClassMethod, ClassMethodBase, ClassProperty, ClassPropertyBase, CommonJsConfig, ComputedPropName, ConditionalExpression, Config, ConstModulesConfig, Constructor, ContinueStatement, DebuggerStatement, Declaration, Decorator, DefaultDecl, DoWhileStatement, EmptyStatement, EnvConfig, Es6Config, EsParserConfig, ExportAllDeclaration, ExportDeclaration, ExportDefaultDeclaration, ExportDefaultExpression, ExportDefaultSpecifier, ExportNamedDeclaration, ExportNamespaceSpecifier, ExportSpecifier, ExprOrSpread, Expression, ExpressionStatement, Fn, ForInStatement, ForOfStatement, ForStatement, FunctionDeclaration, FunctionExpression, GetterProperty, GlobalPassOption, HasDecorator, HasSpan, Identifier, IfStatement, Import, ImportDeclaration, ImportDefaultSpecifier, ImportNamespaceSpecifier, ImportSpecifier, Invalid, JSXAttrValue, JSXAttribute, JSXAttributeName, JSXAttributeOrSpread, JSXClosingElement, JSXClosingFragment, JSXElement, JSXElementChild, JSXElementName, JSXEmptyExpression, JSXExpression, JSXExpressionContainer, JSXFragment, JSXMemberExpression, JSXNamespacedName, JSXObject, JSXOpeningElement, JSXOpeningFragment, JSXSpreadChild, JSXText, JsFormatOptions, JsMinifyOptions, JscConfig, JscTarget, KeyValuePatternProperty, KeyValueProperty, LabeledStatement, Literal, MatchPattern, MemberExpression, MetaProperty, MethodKind, MethodProperty, Module, ModuleConfig, ModuleDeclaration, ModuleExportName, ModuleItem, NamedExportSpecifier, NamedImportSpecifier, NewExpression, Node, NodeNextConfig, NullLiteral, NumericLiteral, ObjectExpression, ObjectPattern, ObjectPatternProperty, OptimizerConfig, OptionalChainingCall, OptionalChainingExpression, Options, Output, Param, ParenthesisExpression, ParseOptions, ParserConfig, Pattern, Plugin, PrivateMethod, PrivateName, PrivateProperty, Program, Property, PropertyName, ReactConfig, RegExpLiteral, RestElement, ReturnStatement, Script, SequenceExpression, SetterProperty, Span, SpreadElement, Statement, StaticBlock, StringLiteral, Super, SuperPropExpression, Swcrc, SwitchCase, SwitchStatement, SystemjsConfig, TaggedTemplateExpression, TemplateElement, TemplateLiteral, TerserCompressOptions, TerserEcmaVersion, TerserMangleOptions, TerserManglePropertiesOptions, ThisExpression, ThrowStatement, TransformConfig, TruePlusMinus, TryStatement, TsArrayType, TsAsExpression, TsCallSignatureDeclaration, TsConditionalType, TsConstAssertion, TsConstructSignatureDeclaration, TsConstructorType, TsEntityName, TsEnumDeclaration, TsEnumMember, TsEnumMemberId, TsExportAssignment, TsExpressionWithTypeArguments, TsExternalModuleReference, TsFnOrConstructorType, TsFnParameter, TsFunctionType, TsGetterSignature, TsImportEqualsDeclaration, TsImportType, TsIndexSignature, TsIndexedAccessType, TsInferType, TsInstantiation, TsInterfaceBody, TsInterfaceDeclaration, TsIntersectionType, TsKeywordType, TsKeywordTypeKind, TsLiteral, TsLiteralType, TsMappedType, TsMethodSignature, TsModuleBlock, TsModuleDeclaration, TsModuleName, TsModuleReference, TsNamespaceBody, TsNamespaceDeclaration, TsNamespaceExportDeclaration, TsNonNullExpression, TsOptionalType, TsParameterProperty, TsParameterPropertyParameter, TsParenthesizedType, TsParserConfig, TsPropertySignature, TsQualifiedName, TsRestType, TsSatisfiesExpression, TsSetterSignature, TsTemplateLiteralType, TsThisType, TsThisTypeOrIdent, TsTupleElement, TsTupleType, TsType, TsTypeAliasDeclaration, TsTypeAnnotation, TsTypeAssertion, TsTypeElement, TsTypeLiteral, TsTypeOperator, TsTypeOperatorOp, TsTypeParameter, TsTypeParameterDeclaration, TsTypeParameterInstantiation, TsTypePredicate, TsTypeQuery, TsTypeQueryExpr, TsTypeReference, TsUnionOrIntersectionType, TsUnionType, UmdConfig, UnaryExpression, UnaryOperator, UpdateExpression, UpdateOperator, VariableDeclaration, VariableDeclarationKind, VariableDeclarator, WhileStatement, WithStatement, YieldExpression };
|
2109
|
+
export type { Accessibility, AmdConfig, Argument, ArrayExpression, ArrayPattern, ArrowFunctionExpression, AssignmentExpression, AssignmentOperator, AssignmentPattern, AssignmentPatternProperty, AssignmentProperty, AwaitExpression, BaseModuleConfig, BigIntLiteral, BinaryExpression, BinaryOperator, BindingIdentifier, BlockStatement, BooleanLiteral, BreakStatement, CallExpression, CallerOptions, CatchClause, Class, ClassDeclaration, ClassExpression, ClassMember, ClassMethod, ClassMethodBase, ClassProperty, ClassPropertyBase, CommonJsConfig, ComputedPropName, ConditionalExpression, Config, ConstModulesConfig, Constructor, ContinueStatement, DebuggerStatement, Declaration, Decorator, DefaultDecl, DoWhileStatement, EmptyStatement, EnvConfig, Es6Config, EsParserConfig, ExportAllDeclaration, ExportDeclaration, ExportDefaultDeclaration, ExportDefaultExpression, ExportDefaultSpecifier, ExportNamedDeclaration, ExportNamespaceSpecifier, ExportSpecifier, ExprOrSpread, Expression, ExpressionStatement, Fn, ForInStatement, ForOfStatement, ForStatement, FunctionDeclaration, FunctionExpression, GetterProperty, GlobalPassOption, HasDecorator, HasSpan, Identifier, IfStatement, Import, ImportDeclaration, ImportDefaultSpecifier, ImportNamespaceSpecifier, ImportSpecifier, Invalid, JSXAttrValue, JSXAttribute, JSXAttributeName, JSXAttributeOrSpread, JSXClosingElement, JSXClosingFragment, JSXElement, JSXElementChild, JSXElementName, JSXEmptyExpression, JSXExpression, JSXExpressionContainer, JSXFragment, JSXMemberExpression, JSXNamespacedName, JSXObject, JSXOpeningElement, JSXOpeningFragment, JSXSpreadChild, JSXText, JsFormatOptions, JsMinifyOptions, JscConfig, JscTarget, KeyValuePatternProperty, KeyValueProperty, LabeledStatement, Literal, MatchPattern, MemberExpression, MetaProperty, MethodKind, MethodProperty, Module, ModuleConfig, ModuleDeclaration, ModuleExportName, ModuleItem, NamedExportSpecifier, NamedImportSpecifier, NewExpression, Node, NodeNextConfig, NullLiteral, NumericLiteral, ObjectExpression, ObjectPattern, ObjectPatternProperty, OptimizerConfig, OptionalChainingCall, OptionalChainingExpression, Options, Output, Param, ParenthesisExpression, ParseOptions, ParserConfig, Pattern, Plugin, PrivateMethod, PrivateName, PrivateProperty, Program, Property, PropertyName, ReactConfig, RegExpLiteral, RestElement, ReturnStatement, Script, SequenceExpression, SetterProperty, Span, SpreadElement, Statement, StaticBlock, StringLiteral, Super, SuperPropExpression, Swcrc, SwitchCase, SwitchStatement, SystemjsConfig, TaggedTemplateExpression, TemplateElement, TemplateLiteral, TerserCompressOptions, TerserEcmaVersion, TerserMangleOptions, TerserManglePropertiesOptions, ThisExpression, ThrowStatement, TransformConfig, TruePlusMinus, TryStatement, TsArrayType, TsAsExpression, TsCallSignatureDeclaration, TsConditionalType, TsConstAssertion, TsConstructSignatureDeclaration, TsConstructorType, TsEntityName, TsEnumDeclaration, TsEnumMember, TsEnumMemberId, TsExportAssignment, TsExpressionWithTypeArguments, TsExternalModuleReference, TsFnOrConstructorType, TsFnParameter, TsFunctionType, TsGetterSignature, TsImportEqualsDeclaration, TsImportType, TsIndexSignature, TsIndexedAccessType, TsInferType, TsInstantiation, TsInterfaceBody, TsInterfaceDeclaration, TsIntersectionType, TsKeywordType, TsKeywordTypeKind, TsLiteral, TsLiteralType, TsMappedType, TsMethodSignature, TsModuleBlock, TsModuleDeclaration, TsModuleName, TsModuleReference, TsNamespaceBody, TsNamespaceDeclaration, TsNamespaceExportDeclaration, TsNonNullExpression, TsOptionalType, TsParameterProperty, TsParameterPropertyParameter, TsParenthesizedType, TsParserConfig, TsPropertySignature, TsQualifiedName, TsRestType, TsSatisfiesExpression, TsSetterSignature, TsTemplateLiteralType, TsThisType, TsThisTypeOrIdent, TsTupleElement, TsTupleType, TsType, TsTypeAliasDeclaration, TsTypeAnnotation, TsTypeAssertion, TsTypeElement, TsTypeLiteral, TsTypeOperator, TsTypeOperatorOp, TsTypeParameter, TsTypeParameterDeclaration, TsTypeParameterInstantiation, TsTypePredicate, TsTypeQuery, TsTypeQueryExpr, TsTypeReference, TsUnionOrIntersectionType, TsUnionType, UmdConfig, UnaryExpression, UnaryOperator, UpdateExpression, UpdateOperator, VariableDeclaration, VariableDeclarationKind, VariableDeclarator, WasmAnalysisOptions, WasmPlugin, WhileStatement, WithStatement, YieldExpression };
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"@swc/types","author":"강동윤 <kdy1997.dev@gmail.com>","version":"0.1.
|
1
|
+
{"name":"@swc/types","author":"강동윤 <kdy1997.dev@gmail.com>","version":"0.1.21","license":"Apache-2.0","types":"index.d.ts","type":"commonjs"}
|
File without changes
|
@@ -928,7 +928,7 @@ declare interface ResolveOptionsResolverFactoryObject_2 {
|
|
928
928
|
*/
|
929
929
|
preferAbsolute?: boolean;
|
930
930
|
}
|
931
|
-
|
931
|
+
type ResolveRequest = BaseResolveRequest & Partial<ParsedIdentifier>;
|
932
932
|
declare abstract class Resolver {
|
933
933
|
fileSystem: FileSystem;
|
934
934
|
options: ResolveOptionsResolverFactoryObject_1;
|
@@ -1117,7 +1117,8 @@ declare namespace exports {
|
|
1117
1117
|
res?: string | false,
|
1118
1118
|
req?: ResolveRequest
|
1119
1119
|
) => void;
|
1120
|
-
export { CachedInputFileSystem, CloneBasenamePlugin, LogInfoPlugin,
|
1120
|
+
export { CachedInputFileSystem, CloneBasenamePlugin, LogInfoPlugin, Resolver };
|
1121
|
+
export type { ResolveOptionsOptionalFS, PnpApi, FileSystem, ResolveContext, ResolveRequest, Plugin, ResolveOptionsResolverFactoryObject_2 as ResolveOptions, ResolveFunctionAsync, ResolveFunction };
|
1121
1122
|
}
|
1122
1123
|
|
1123
1124
|
export { exports as default };
|
package/compiled/zod/index.d.ts
CHANGED
@@ -22,10 +22,10 @@ declare namespace util {
|
|
22
22
|
export const isInteger: NumberConstructor["isInteger"];
|
23
23
|
export function joinValues<T extends any[]>(array: T, separator?: string): string;
|
24
24
|
export const jsonStringifyReplacer: (_: string, value: any) => any;
|
25
|
-
export {
|
25
|
+
export {};
|
26
26
|
}
|
27
27
|
declare namespace objectUtil {
|
28
|
-
export type MergeShapes<U, V> = {
|
28
|
+
export type MergeShapes<U, V> = keyof U & keyof V extends never ? U & V : {
|
29
29
|
[k in Exclude<keyof U, keyof V>]: U[k];
|
30
30
|
} & V;
|
31
31
|
type optionalKeys<T extends object> = {
|
@@ -52,12 +52,12 @@ declare namespace objectUtil {
|
|
52
52
|
[k in noNeverKeys<T>]: k extends keyof T ? T[k] : never;
|
53
53
|
}>;
|
54
54
|
export const mergeShapes: <U, T>(first: U, second: T) => T & U;
|
55
|
-
export type extendShape<A extends object, B extends object> = {
|
55
|
+
export type extendShape<A extends object, B extends object> = keyof A & keyof B extends never ? A & B : {
|
56
56
|
[K in keyof A as K extends keyof B ? never : K]: A[K];
|
57
57
|
} & {
|
58
58
|
[K in keyof B]: B[K];
|
59
59
|
};
|
60
|
-
export {
|
60
|
+
export {};
|
61
61
|
}
|
62
62
|
declare const ZodParsedType: {
|
63
63
|
string: "string";
|
@@ -333,7 +333,7 @@ declare namespace enumUtil {
|
|
333
333
|
type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never] ? Tuple : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;
|
334
334
|
type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;
|
335
335
|
export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;
|
336
|
-
export {
|
336
|
+
export {};
|
337
337
|
}
|
338
338
|
|
339
339
|
declare namespace errorUtil {
|
@@ -454,7 +454,7 @@ declare namespace StandardSchemaV1 {
|
|
454
454
|
* Infers the output type of a Standard Schema.
|
455
455
|
*/
|
456
456
|
export type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
457
|
-
export {
|
457
|
+
export {};
|
458
458
|
}
|
459
459
|
|
460
460
|
interface RefinementCtx {
|
@@ -1764,7 +1764,9 @@ type z_typeToFlattenedError<T, U = string> = typeToFlattenedError<T, U>;
|
|
1764
1764
|
type z_typecast<A, T> = typecast<A, T>;
|
1765
1765
|
import z_util = util;
|
1766
1766
|
declare namespace z {
|
1767
|
-
export {
|
1767
|
+
export { z_DIRTY as DIRTY, z_EMPTY_PATH as EMPTY_PATH, z_INVALID as INVALID, z_NEVER as NEVER, z_OK as OK, z_ParseStatus as ParseStatus, ZodType as Schema, z_ZodAny as ZodAny, z_ZodArray as ZodArray, z_ZodBigInt as ZodBigInt, z_ZodBoolean as ZodBoolean, z_ZodBranded as ZodBranded, z_ZodCatch as ZodCatch, z_ZodDate as ZodDate, z_ZodDefault as ZodDefault, z_ZodDiscriminatedUnion as ZodDiscriminatedUnion, z_ZodEffects as ZodEffects, z_ZodEnum as ZodEnum, z_ZodError as ZodError, z_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind, z_ZodFunction as ZodFunction, z_ZodIntersection as ZodIntersection, z_ZodLazy as ZodLazy, z_ZodLiteral as ZodLiteral, z_ZodMap as ZodMap, z_ZodNaN as ZodNaN, z_ZodNativeEnum as ZodNativeEnum, z_ZodNever as ZodNever, z_ZodNull as ZodNull, z_ZodNullable as ZodNullable, z_ZodNumber as ZodNumber, z_ZodObject as ZodObject, z_ZodOptional as ZodOptional, z_ZodPipeline as ZodPipeline, z_ZodPromise as ZodPromise, z_ZodReadonly as ZodReadonly, z_ZodRecord as ZodRecord, ZodType as ZodSchema, z_ZodSet as ZodSet, z_ZodString as ZodString, z_ZodSymbol as ZodSymbol, ZodEffects as ZodTransformer, z_ZodTuple as ZodTuple, z_ZodType as ZodType, z_ZodUndefined as ZodUndefined, z_ZodUnion as ZodUnion, z_ZodUnknown as ZodUnknown, z_ZodVoid as ZodVoid, z_addIssueToContext as addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, z_coerce as coerce, z_custom as custom, dateType as date, z_datetimeRegex as datetimeRegex, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, z_getErrorMap as getErrorMap, z_getParsedType as getParsedType, instanceOfType as instanceof, intersectionType as intersection, z_isAborted as isAborted, z_isAsync as isAsync, z_isDirty as isDirty, z_isValid as isValid, z_late as late, lazyType as lazy, literalType as literal, z_makeIssue as makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, z_objectUtil as objectUtil, z_oboolean as oboolean, z_onumber as onumber, optionalType as optional, z_ostring as ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, z_quotelessJson as quotelessJson, recordType as record, setType as set, z_setErrorMap as setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, z_util as util, voidType as void };
|
1768
|
+
export type { z_AnyZodObject as AnyZodObject, z_AnyZodTuple as AnyZodTuple, z_ArrayCardinality as ArrayCardinality, z_ArrayKeys as ArrayKeys, z_AssertArray as AssertArray, z_AsyncParseReturnType as AsyncParseReturnType, z_BRAND as BRAND, z_CatchallInput as CatchallInput, z_CatchallOutput as CatchallOutput, z_CustomErrorParams as CustomErrorParams, z_DenormalizedError as DenormalizedError, z_Effect as Effect, z_EnumLike as EnumLike, z_EnumValues as EnumValues, z_ErrorMapCtx as ErrorMapCtx, z_FilterEnum as FilterEnum, z_Indices as Indices, z_InnerTypeOfFunction as InnerTypeOfFunction, z_InputTypeOfTuple as InputTypeOfTuple, z_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest, z_IpVersion as IpVersion, z_IssueData as IssueData, z_KeySchema as KeySchema, z_ObjectPair as ObjectPair, z_OuterTypeOfFunction as OuterTypeOfFunction, z_OutputTypeOfTuple as OutputTypeOfTuple, z_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest, z_ParseContext as ParseContext, z_ParseInput as ParseInput, z_ParseParams as ParseParams, z_ParsePath as ParsePath, z_ParsePathComponent as ParsePathComponent, z_ParseResult as ParseResult, z_ParseReturnType as ParseReturnType, z_PassthroughType as PassthroughType, z_PreprocessEffect as PreprocessEffect, z_Primitive as Primitive, z_ProcessedCreateParams as ProcessedCreateParams, z_RawCreateParams as RawCreateParams, z_RecordType as RecordType, z_Refinement as Refinement, z_RefinementCtx as RefinementCtx, z_RefinementEffect as RefinementEffect, z_SafeParseError as SafeParseError, z_SafeParseReturnType as SafeParseReturnType, z_SafeParseSuccess as SafeParseSuccess, z_Scalars as Scalars, z_SomeZodObject as SomeZodObject, z_StringValidation as StringValidation, z_SuperRefinement as SuperRefinement, z_SyncParseReturnType as SyncParseReturnType, z_TransformEffect as TransformEffect, z_TypeOf as TypeOf, z_UnknownKeysParam as UnknownKeysParam, z_Values as Values, z_Writeable as Writeable, z_ZodAnyDef as ZodAnyDef, z_ZodArrayDef as ZodArrayDef, z_ZodBigIntCheck as ZodBigIntCheck, z_ZodBigIntDef as ZodBigIntDef, z_ZodBooleanDef as ZodBooleanDef, z_ZodBrandedDef as ZodBrandedDef, z_ZodCatchDef as ZodCatchDef, z_ZodCustomIssue as ZodCustomIssue, z_ZodDateCheck as ZodDateCheck, z_ZodDateDef as ZodDateDef, z_ZodDefaultDef as ZodDefaultDef, z_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef, z_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption, z_ZodEffectsDef as ZodEffectsDef, z_ZodEnumDef as ZodEnumDef, z_ZodErrorMap as ZodErrorMap, z_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes, z_ZodFormattedError as ZodFormattedError, z_ZodFunctionDef as ZodFunctionDef, z_ZodIntersectionDef as ZodIntersectionDef, z_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue, z_ZodInvalidDateIssue as ZodInvalidDateIssue, z_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue, z_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue, z_ZodInvalidLiteralIssue as ZodInvalidLiteralIssue, z_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue, z_ZodInvalidStringIssue as ZodInvalidStringIssue, z_ZodInvalidTypeIssue as ZodInvalidTypeIssue, z_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue, z_ZodInvalidUnionIssue as ZodInvalidUnionIssue, z_ZodIssue as ZodIssue, z_ZodIssueBase as ZodIssueBase, z_ZodIssueCode as ZodIssueCode, z_ZodIssueOptionalMessage as ZodIssueOptionalMessage, z_ZodLazyDef as ZodLazyDef, z_ZodLiteralDef as ZodLiteralDef, z_ZodMapDef as ZodMapDef, z_ZodNaNDef as ZodNaNDef, z_ZodNativeEnumDef as ZodNativeEnumDef, z_ZodNeverDef as ZodNeverDef, z_ZodNonEmptyArray as ZodNonEmptyArray, z_ZodNotFiniteIssue as ZodNotFiniteIssue, z_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue, z_ZodNullDef as ZodNullDef, z_ZodNullableDef as ZodNullableDef, z_ZodNullableType as ZodNullableType, z_ZodNumberCheck as ZodNumberCheck, z_ZodNumberDef as ZodNumberDef, z_ZodObjectDef as ZodObjectDef, z_ZodOptionalDef as ZodOptionalDef, z_ZodOptionalType as ZodOptionalType, z_ZodParsedType as ZodParsedType, z_ZodPipelineDef as ZodPipelineDef, z_ZodPromiseDef as ZodPromiseDef, z_ZodRawShape as ZodRawShape, z_ZodReadonlyDef as ZodReadonlyDef, z_ZodRecordDef as ZodRecordDef, z_ZodSetDef as ZodSetDef, z_ZodStringCheck as ZodStringCheck, z_ZodStringDef as ZodStringDef, z_ZodSymbolDef as ZodSymbolDef, z_ZodTooBigIssue as ZodTooBigIssue, z_ZodTooSmallIssue as ZodTooSmallIssue, z_ZodTupleDef as ZodTupleDef, z_ZodTupleItems as ZodTupleItems, z_ZodTypeAny as ZodTypeAny, z_ZodTypeDef as ZodTypeDef, z_ZodUndefinedDef as ZodUndefinedDef, z_ZodUnionDef as ZodUnionDef, z_ZodUnionOptions as ZodUnionOptions, z_ZodUnknownDef as ZodUnknownDef, z_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue, z_ZodVoidDef as ZodVoidDef, z_arrayOutputType as arrayOutputType, z_baseObjectInputType as baseObjectInputType, z_baseObjectOutputType as baseObjectOutputType, z_deoptional as deoptional, TypeOf as infer, z_inferFlattenedErrors as inferFlattenedErrors, z_inferFormattedError as inferFormattedError, z_input as input, z_mergeTypes as mergeTypes, z_noUnrecognized as noUnrecognized, z_objectInputType as objectInputType, z_objectOutputType as objectOutputType, z_output as output, z_typeToFlattenedError as typeToFlattenedError, z_typecast as typecast };
|
1768
1769
|
}
|
1769
1770
|
|
1770
|
-
export {
|
1771
|
+
export { BRAND, DIRTY, EMPTY_PATH, INVALID, NEVER, OK, ParseStatus, ZodType as Schema, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodError, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodIssueCode, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodParsedType, ZodPipeline, ZodPromise, ZodReadonly, ZodRecord, ZodType as ZodSchema, ZodSet, ZodString, ZodSymbol, ZodEffects as ZodTransformer, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, datetimeRegex, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, objectUtil, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void, z };
|
1772
|
+
export type { AnyZodObject, AnyZodTuple, ArrayCardinality, ArrayKeys, AssertArray, AsyncParseReturnType, CatchallInput, CatchallOutput, CustomErrorParams, DenormalizedError, Effect, EnumLike, EnumValues, ErrorMapCtx, FilterEnum, Indices, InnerTypeOfFunction, InputTypeOfTuple, InputTypeOfTupleWithRest, IpVersion, IssueData, KeySchema, ObjectPair, OuterTypeOfFunction, OutputTypeOfTuple, OutputTypeOfTupleWithRest, ParseContext, ParseInput, ParseParams, ParsePath, ParsePathComponent, ParseResult, ParseReturnType, PassthroughType, PreprocessEffect, Primitive, ProcessedCreateParams, RawCreateParams, RecordType, Refinement, RefinementCtx, RefinementEffect, SafeParseError, SafeParseReturnType, SafeParseSuccess, Scalars, SomeZodObject, StringValidation, SuperRefinement, SyncParseReturnType, TransformEffect, TypeOf, UnknownKeysParam, Values, Writeable, ZodAnyDef, ZodArrayDef, ZodBigIntCheck, ZodBigIntDef, ZodBooleanDef, ZodBrandedDef, ZodCatchDef, ZodCustomIssue, ZodDateCheck, ZodDateDef, ZodDefaultDef, ZodDiscriminatedUnionDef, ZodDiscriminatedUnionOption, ZodEffectsDef, ZodEnumDef, ZodErrorMap, ZodFirstPartySchemaTypes, ZodFormattedError, ZodFunctionDef, ZodIntersectionDef, ZodInvalidArgumentsIssue, ZodInvalidDateIssue, ZodInvalidEnumValueIssue, ZodInvalidIntersectionTypesIssue, ZodInvalidLiteralIssue, ZodInvalidReturnTypeIssue, ZodInvalidStringIssue, ZodInvalidTypeIssue, ZodInvalidUnionDiscriminatorIssue, ZodInvalidUnionIssue, ZodIssue, ZodIssueBase, ZodIssueOptionalMessage, ZodLazyDef, ZodLiteralDef, ZodMapDef, ZodNaNDef, ZodNativeEnumDef, ZodNeverDef, ZodNonEmptyArray, ZodNotFiniteIssue, ZodNotMultipleOfIssue, ZodNullDef, ZodNullableDef, ZodNullableType, ZodNumberCheck, ZodNumberDef, ZodObjectDef, ZodOptionalDef, ZodOptionalType, ZodPipelineDef, ZodPromiseDef, ZodRawShape, ZodReadonlyDef, ZodRecordDef, ZodSetDef, ZodStringCheck, ZodStringDef, ZodSymbolDef, ZodTooBigIssue, ZodTooSmallIssue, ZodTupleDef, ZodTupleItems, ZodTypeAny, ZodTypeDef, ZodUndefinedDef, ZodUnionDef, ZodUnionOptions, ZodUnknownDef, ZodUnrecognizedKeysIssue, ZodVoidDef, arrayOutputType, baseObjectInputType, baseObjectOutputType, deoptional, TypeOf as infer, inferFlattenedErrors, inferFormattedError, input, mergeTypes, noUnrecognized, objectInputType, objectOutputType, output, typeToFlattenedError, typecast };
|
package/compiled/zod/index.js
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
/******/ "use strict";
|
3
3
|
/******/ var __webpack_modules__ = ({
|
4
4
|
|
5
|
-
/***/
|
5
|
+
/***/ 705:
|
6
6
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
7
7
|
|
8
8
|
|
9
9
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
10
10
|
exports.ZodError = exports.quotelessJson = exports.ZodIssueCode = void 0;
|
11
|
-
const util_1 = __nccwpck_require__(
|
11
|
+
const util_1 = __nccwpck_require__(46);
|
12
12
|
exports.ZodIssueCode = util_1.util.arrayToEnum([
|
13
13
|
"invalid_type",
|
14
14
|
"invalid_literal",
|
@@ -146,7 +146,7 @@ ZodError.create = (issues) => {
|
|
146
146
|
|
147
147
|
/***/ }),
|
148
148
|
|
149
|
-
/***/
|
149
|
+
/***/ 503:
|
150
150
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
151
151
|
|
152
152
|
|
@@ -155,7 +155,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
155
155
|
};
|
156
156
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
157
157
|
exports.getErrorMap = exports.setErrorMap = exports.defaultErrorMap = void 0;
|
158
|
-
const en_1 = __importDefault(__nccwpck_require__(
|
158
|
+
const en_1 = __importDefault(__nccwpck_require__(183));
|
159
159
|
exports.defaultErrorMap = en_1.default;
|
160
160
|
let overrideErrorMap = en_1.default;
|
161
161
|
function setErrorMap(map) {
|
@@ -170,7 +170,7 @@ exports.getErrorMap = getErrorMap;
|
|
170
170
|
|
171
171
|
/***/ }),
|
172
172
|
|
173
|
-
/***/
|
173
|
+
/***/ 831:
|
174
174
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
175
175
|
|
176
176
|
|
@@ -189,17 +189,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
189
189
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
190
190
|
};
|
191
191
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192
|
-
__exportStar(__nccwpck_require__(
|
193
|
-
__exportStar(__nccwpck_require__(
|
194
|
-
__exportStar(__nccwpck_require__(
|
195
|
-
__exportStar(__nccwpck_require__(
|
196
|
-
__exportStar(__nccwpck_require__(
|
197
|
-
__exportStar(__nccwpck_require__(
|
192
|
+
__exportStar(__nccwpck_require__(503), exports);
|
193
|
+
__exportStar(__nccwpck_require__(707), exports);
|
194
|
+
__exportStar(__nccwpck_require__(160), exports);
|
195
|
+
__exportStar(__nccwpck_require__(46), exports);
|
196
|
+
__exportStar(__nccwpck_require__(735), exports);
|
197
|
+
__exportStar(__nccwpck_require__(705), exports);
|
198
198
|
|
199
199
|
|
200
200
|
/***/ }),
|
201
201
|
|
202
|
-
/***/
|
202
|
+
/***/ 266:
|
203
203
|
/***/ ((__unused_webpack_module, exports) => {
|
204
204
|
|
205
205
|
|
@@ -214,7 +214,7 @@ var errorUtil;
|
|
214
214
|
|
215
215
|
/***/ }),
|
216
216
|
|
217
|
-
/***/
|
217
|
+
/***/ 707:
|
218
218
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
219
219
|
|
220
220
|
|
@@ -223,8 +223,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
223
223
|
};
|
224
224
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
225
225
|
exports.isAsync = exports.isValid = exports.isDirty = exports.isAborted = exports.OK = exports.DIRTY = exports.INVALID = exports.ParseStatus = exports.addIssueToContext = exports.EMPTY_PATH = exports.makeIssue = void 0;
|
226
|
-
const errors_1 = __nccwpck_require__(
|
227
|
-
const en_1 = __importDefault(__nccwpck_require__(
|
226
|
+
const errors_1 = __nccwpck_require__(503);
|
227
|
+
const en_1 = __importDefault(__nccwpck_require__(183));
|
228
228
|
const makeIssue = (params) => {
|
229
229
|
const { data, path, errorMaps, issueData } = params;
|
230
230
|
const fullPath = [...path, ...(issueData.path || [])];
|
@@ -346,7 +346,7 @@ exports.isAsync = isAsync;
|
|
346
346
|
|
347
347
|
/***/ }),
|
348
348
|
|
349
|
-
/***/
|
349
|
+
/***/ 160:
|
350
350
|
/***/ ((__unused_webpack_module, exports) => {
|
351
351
|
|
352
352
|
|
@@ -355,7 +355,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
355
355
|
|
356
356
|
/***/ }),
|
357
357
|
|
358
|
-
/***/
|
358
|
+
/***/ 46:
|
359
359
|
/***/ ((__unused_webpack_module, exports) => {
|
360
360
|
|
361
361
|
|
@@ -504,7 +504,7 @@ exports.getParsedType = getParsedType;
|
|
504
504
|
|
505
505
|
/***/ }),
|
506
506
|
|
507
|
-
/***/
|
507
|
+
/***/ 834:
|
508
508
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
509
509
|
|
510
510
|
|
@@ -536,21 +536,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
536
536
|
};
|
537
537
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
538
538
|
exports.z = void 0;
|
539
|
-
const z = __importStar(__nccwpck_require__(
|
539
|
+
const z = __importStar(__nccwpck_require__(831));
|
540
540
|
exports.z = z;
|
541
|
-
__exportStar(__nccwpck_require__(
|
541
|
+
__exportStar(__nccwpck_require__(831), exports);
|
542
542
|
exports["default"] = z;
|
543
543
|
|
544
544
|
|
545
545
|
/***/ }),
|
546
546
|
|
547
|
-
/***/
|
547
|
+
/***/ 183:
|
548
548
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
549
549
|
|
550
550
|
|
551
551
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
552
|
-
const util_1 = __nccwpck_require__(
|
553
|
-
const ZodError_1 = __nccwpck_require__(
|
552
|
+
const util_1 = __nccwpck_require__(46);
|
553
|
+
const ZodError_1 = __nccwpck_require__(705);
|
554
554
|
const errorMap = (issue, _ctx) => {
|
555
555
|
let message;
|
556
556
|
switch (issue.code) {
|
@@ -680,7 +680,7 @@ exports["default"] = errorMap;
|
|
680
680
|
|
681
681
|
/***/ }),
|
682
682
|
|
683
|
-
/***/
|
683
|
+
/***/ 735:
|
684
684
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
685
685
|
|
686
686
|
|
@@ -699,11 +699,11 @@ var _ZodEnum_cache, _ZodNativeEnum_cache;
|
|
699
699
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
700
700
|
exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.custom = exports.ZodReadonly = exports.ZodPipeline = exports.ZodBranded = exports.BRAND = exports.ZodNaN = exports.ZodCatch = exports.ZodDefault = exports.ZodNullable = exports.ZodOptional = exports.ZodTransformer = exports.ZodEffects = exports.ZodPromise = exports.ZodNativeEnum = exports.ZodEnum = exports.ZodLiteral = exports.ZodLazy = exports.ZodFunction = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodDate = exports.ZodBoolean = exports.ZodBigInt = exports.ZodNumber = exports.ZodString = exports.datetimeRegex = exports.ZodType = void 0;
|
701
701
|
exports.NEVER = exports["void"] = exports.unknown = exports.union = exports.undefined = exports.tuple = exports.transformer = exports.symbol = exports.string = exports.strictObject = exports.set = exports.record = exports.promise = exports.preprocess = exports.pipeline = exports.ostring = exports.optional = exports.onumber = exports.oboolean = exports.object = exports.number = exports.nullable = exports["null"] = exports.never = exports.nativeEnum = exports.nan = exports.map = exports.literal = exports.lazy = exports.intersection = exports["instanceof"] = exports["function"] = exports["enum"] = exports.effect = exports.discriminatedUnion = exports.date = void 0;
|
702
|
-
const errors_1 = __nccwpck_require__(
|
703
|
-
const errorUtil_1 = __nccwpck_require__(
|
704
|
-
const parseUtil_1 = __nccwpck_require__(
|
705
|
-
const util_1 = __nccwpck_require__(
|
706
|
-
const ZodError_1 = __nccwpck_require__(
|
702
|
+
const errors_1 = __nccwpck_require__(503);
|
703
|
+
const errorUtil_1 = __nccwpck_require__(266);
|
704
|
+
const parseUtil_1 = __nccwpck_require__(707);
|
705
|
+
const util_1 = __nccwpck_require__(46);
|
706
|
+
const ZodError_1 = __nccwpck_require__(705);
|
707
707
|
class ParseInputLazyPath {
|
708
708
|
constructor(parent, value, path, key) {
|
709
709
|
this._cachedPath = [];
|
@@ -4575,7 +4575,7 @@ exports.NEVER = parseUtil_1.INVALID;
|
|
4575
4575
|
/******/ // startup
|
4576
4576
|
/******/ // Load entry module and return exports
|
4577
4577
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
4578
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
4578
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(834);
|
4579
4579
|
/******/ module.exports = __webpack_exports__;
|
4580
4580
|
/******/
|
4581
4581
|
/******/ })()
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"zod","author":"Colin McDonnell <colin@colinhacks.com>","version":"3.24.
|
1
|
+
{"name":"zod","author":"Colin McDonnell <colin@colinhacks.com>","version":"3.24.3","funding":"https://github.com/sponsors/colinhacks","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
package/dist/ChunkGraph.d.ts
CHANGED
@@ -9,6 +9,7 @@ export declare class ChunkGraph {
|
|
9
9
|
constructor(binding: JsChunkGraph);
|
10
10
|
getChunkModules(chunk: Chunk): ReadonlyArray<Module>;
|
11
11
|
getChunkModulesIterable(chunk: Chunk): Iterable<Module>;
|
12
|
+
getOrderedChunkModulesIterable(chunk: Chunk, compareFn: (a: Module, b: Module) => number): Iterable<Module>;
|
12
13
|
getChunkEntryModulesIterable(chunk: Chunk): Iterable<Module>;
|
13
14
|
getNumberOfEntryModules(chunk: Chunk): number;
|
14
15
|
getChunkEntryDependentChunksIterable(chunk: Chunk): Iterable<Chunk>;
|
package/dist/Chunks.d.ts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Chunks } from "@rspack/binding";
|
2
|
+
import { Chunk } from "./Chunk";
|
3
|
+
declare module "@rspack/binding" {
|
4
|
+
interface Chunks {
|
5
|
+
[Symbol.iterator](): SetIterator<Chunk>;
|
6
|
+
entries(): SetIterator<[Chunk, Chunk]>;
|
7
|
+
values(): SetIterator<Chunk>;
|
8
|
+
keys(): SetIterator<Chunk>;
|
9
|
+
forEach(callbackfn: (value: Chunk, value2: Chunk, set: ReadonlySet<Chunk>) => void, thisArg?: any): void;
|
10
|
+
has(value: Chunk): boolean;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
export default Chunks;
|
package/dist/Compilation.d.ts
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
9
9
|
*/
|
10
|
-
import
|
10
|
+
import * as binding from "@rspack/binding";
|
11
11
|
import { type AssetInfo, type Dependency, type ExternalObject, type JsCompilation, type JsRuntimeModule } from "@rspack/binding";
|
12
12
|
export type { AssetInfo } from "@rspack/binding";
|
13
13
|
import * as liteTapable from "@rspack/lite-tapable";
|
@@ -20,6 +20,7 @@ import type { ContextModuleFactory } from "./ContextModuleFactory";
|
|
20
20
|
import { Entrypoint } from "./Entrypoint";
|
21
21
|
import type { CodeGenerationResult, Module } from "./Module";
|
22
22
|
import ModuleGraph from "./ModuleGraph";
|
23
|
+
import type { NormalModuleCompilationHooks } from "./NormalModule";
|
23
24
|
import type { NormalModuleFactory } from "./NormalModuleFactory";
|
24
25
|
import type { ResolverFactory } from "./ResolverFactory";
|
25
26
|
import { type RspackError } from "./RspackError";
|
@@ -33,6 +34,7 @@ import { StatsFactory } from "./stats/StatsFactory";
|
|
33
34
|
import { StatsPrinter } from "./stats/StatsPrinter";
|
34
35
|
import type { InputFileSystem } from "./util/fs";
|
35
36
|
import type Hash from "./util/hash";
|
37
|
+
import "./Chunks";
|
36
38
|
export type Assets = Record<string, Source>;
|
37
39
|
export interface Asset {
|
38
40
|
name: string;
|
@@ -205,6 +207,7 @@ export declare class Compilation {
|
|
205
207
|
createSnapshot(): null;
|
206
208
|
};
|
207
209
|
needAdditionalPass: boolean;
|
210
|
+
[binding.COMPILATION_HOOKS_MAP_SYMBOL]: WeakMap<Compilation, NormalModuleCompilationHooks>;
|
208
211
|
constructor(compiler: Compiler, inner: JsCompilation);
|
209
212
|
get hash(): Readonly<string | null>;
|
210
213
|
get fullHash(): Readonly<string | null>;
|
@@ -352,12 +355,6 @@ export declare class Compilation {
|
|
352
355
|
* @internal
|
353
356
|
*/
|
354
357
|
__internal__hasAsset(name: string): boolean;
|
355
|
-
/**
|
356
|
-
* Note: This is not a webpack public API, maybe removed in future.
|
357
|
-
*
|
358
|
-
* @internal
|
359
|
-
*/
|
360
|
-
__internal__getChunks(): Chunk[];
|
361
358
|
/**
|
362
359
|
* Note: This is not a webpack public API, maybe removed in future.
|
363
360
|
*
|
package/dist/Module.d.ts
CHANGED
@@ -45,6 +45,7 @@ export type ContextModuleFactoryAfterResolveResult = false | ContextModuleFactor
|
|
45
45
|
declare module "@rspack/binding" {
|
46
46
|
interface Module {
|
47
47
|
identifier(): string;
|
48
|
+
readableIdentifier(): string;
|
48
49
|
originalSource(): Source | null;
|
49
50
|
emitFile(filename: string, source: Source, assetInfo?: AssetInfo): void;
|
50
51
|
}
|
package/dist/NormalModule.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as liteTapable from "@rspack/lite-tapable";
|
2
|
-
import {
|
2
|
+
import type { Compilation } from "./Compilation";
|
3
3
|
import type { Module } from "./Module";
|
4
4
|
import type { LoaderContext } from "./config";
|
5
|
-
interface NormalModuleCompilationHooks {
|
5
|
+
export interface NormalModuleCompilationHooks {
|
6
6
|
loader: liteTapable.SyncHook<[LoaderContext, Module]>;
|
7
7
|
readResourceForScheme: any;
|
8
8
|
readResource: liteTapable.HookMap<liteTapable.AsyncSeriesBailHook<[LoaderContext], string | Buffer>>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import z from "../../../compiled/zod";
|
1
2
|
type RawStyleConfig = {
|
2
3
|
styleLibraryDirectory?: string;
|
3
4
|
custom?: string;
|
@@ -28,6 +29,40 @@ type PluginImportConfig = {
|
|
28
29
|
ignoreStyleComponent?: string[];
|
29
30
|
};
|
30
31
|
type PluginImportOptions = PluginImportConfig[] | undefined;
|
32
|
+
export declare const ZodSwcPluginImportConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
33
|
+
libraryName: z.ZodString;
|
34
|
+
libraryDirectory: z.ZodOptional<z.ZodString>;
|
35
|
+
customName: z.ZodOptional<z.ZodString>;
|
36
|
+
customStyleName: z.ZodOptional<z.ZodString>;
|
37
|
+
style: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
38
|
+
styleLibraryDirectory: z.ZodOptional<z.ZodString>;
|
39
|
+
camelToDashComponentName: z.ZodOptional<z.ZodBoolean>;
|
40
|
+
transformToDefaultImport: z.ZodOptional<z.ZodBoolean>;
|
41
|
+
ignoreEsComponent: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
42
|
+
ignoreStyleComponent: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
43
|
+
}, "strict", z.ZodTypeAny, {
|
44
|
+
libraryName: string;
|
45
|
+
libraryDirectory?: string | undefined;
|
46
|
+
customName?: string | undefined;
|
47
|
+
customStyleName?: string | undefined;
|
48
|
+
style?: string | boolean | undefined;
|
49
|
+
styleLibraryDirectory?: string | undefined;
|
50
|
+
camelToDashComponentName?: boolean | undefined;
|
51
|
+
transformToDefaultImport?: boolean | undefined;
|
52
|
+
ignoreEsComponent?: string[] | undefined;
|
53
|
+
ignoreStyleComponent?: string[] | undefined;
|
54
|
+
}, {
|
55
|
+
libraryName: string;
|
56
|
+
libraryDirectory?: string | undefined;
|
57
|
+
customName?: string | undefined;
|
58
|
+
customStyleName?: string | undefined;
|
59
|
+
style?: string | boolean | undefined;
|
60
|
+
styleLibraryDirectory?: string | undefined;
|
61
|
+
camelToDashComponentName?: boolean | undefined;
|
62
|
+
transformToDefaultImport?: boolean | undefined;
|
63
|
+
ignoreEsComponent?: string[] | undefined;
|
64
|
+
ignoreStyleComponent?: string[] | undefined;
|
65
|
+
}>, "many">>;
|
31
66
|
declare function resolvePluginImport(pluginImport: PluginImportOptions): RawPluginImportConfig[] | undefined;
|
32
67
|
export { resolvePluginImport };
|
33
68
|
export type { PluginImportOptions };
|