Comparing version 0.14.0-snapshot-cf2eed0-20241110003502 to 0.14.0-snapshot-d18e8cb-20241112003342
@@ -283,2 +283,8 @@ type MaybePromise<T> = T | Promise<T> | ||
export interface BindingModuleSideEffectsRule { | ||
test?: RegExp | undefined | ||
sideEffects: boolean | ||
external?: boolean | undefined | ||
} | ||
export interface BindingNotifyOption { | ||
@@ -440,3 +446,3 @@ pollInterval?: number | ||
export interface BindingTreeshake { | ||
moduleSideEffects: string | ||
moduleSideEffects: boolean | BindingModuleSideEffectsRule[] | ||
} | ||
@@ -443,0 +449,0 @@ |
@@ -52,3 +52,69 @@ import type { ObjectSchema } from './types'; | ||
shimMissingExports: z.ZodOptional<z.ZodBoolean>; | ||
treeshake: z.ZodOptional<z.ZodType<boolean | import("../../treeshake").TreeshakingOptions, z.ZodTypeDef, boolean | import("../../treeshake").TreeshakingOptions>>; | ||
treeshake: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>; | ||
logLevel: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodLiteral<"silent">]>>; | ||
@@ -174,11 +240,11 @@ onLog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodAny, z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodLiteral<"error">]>, z.ZodUnion<[z.ZodAny, z.ZodString]>], z.ZodUnknown>, z.ZodUnknown>], z.ZodUnknown>, z.ZodUnknown>>; | ||
name: string; | ||
test?: string | RegExp | undefined; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
}, { | ||
name: string; | ||
test?: string | RegExp | undefined; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -191,5 +257,5 @@ }>, "many">>; | ||
name: string; | ||
test?: string | RegExp | undefined; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -202,5 +268,5 @@ }[] | undefined; | ||
name: string; | ||
test?: string | RegExp | undefined; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -227,4 +293,4 @@ }[] | undefined; | ||
}>, "sourcemapIgnoreList" | "sourcemapPathTransform">>, "strict", z.ZodTypeAny, { | ||
external?: string[] | undefined; | ||
treeshake?: boolean | undefined; | ||
external?: string[] | undefined; | ||
cwd?: string | undefined; | ||
@@ -279,4 +345,4 @@ platform?: "node" | "browser" | "neutral" | undefined; | ||
}, { | ||
external?: string[] | undefined; | ||
treeshake?: boolean | undefined; | ||
external?: string[] | undefined; | ||
cwd?: string | undefined; | ||
@@ -283,0 +349,0 @@ platform?: "node" | "browser" | "neutral" | undefined; |
import { z } from 'zod'; | ||
import type { RolldownPluginRec } from '../plugin'; | ||
import type { TreeshakingOptions } from '../treeshake'; | ||
export declare const inputOptionsSchema: z.ZodObject<{ | ||
@@ -48,3 +47,69 @@ input: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodRecord<z.ZodString, z.ZodString>]>>; | ||
shimMissingExports: z.ZodOptional<z.ZodBoolean>; | ||
treeshake: z.ZodOptional<z.ZodType<boolean | TreeshakingOptions, z.ZodTypeDef, boolean | TreeshakingOptions>>; | ||
treeshake: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>; | ||
logLevel: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodLiteral<"silent">]>>; | ||
@@ -131,6 +196,28 @@ onLog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodAny, z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodLiteral<"error">]>, z.ZodUnion<[z.ZodAny, z.ZodString]>], z.ZodUnknown>, z.ZodUnknown>], z.ZodUnknown>, z.ZodUnknown>>; | ||
}, "strict", z.ZodTypeAny, { | ||
treeshake?: boolean | TreeshakingOptions | undefined; | ||
external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args: unknown[]) => boolean | void | null | undefined) | undefined; | ||
treeshake?: boolean | z.objectOutputType<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, z.ZodTypeAny, "passthrough"> | undefined; | ||
input?: string | string[] | Record<string, string> | undefined; | ||
plugins?: RolldownPluginRec[] | undefined; | ||
external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args: unknown[]) => boolean | void | null | undefined) | undefined; | ||
resolve?: { | ||
@@ -185,6 +272,28 @@ modules?: string[] | undefined; | ||
}, { | ||
treeshake?: boolean | TreeshakingOptions | undefined; | ||
external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args: unknown[]) => boolean | void | null | undefined) | undefined; | ||
treeshake?: boolean | z.objectInputType<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, z.ZodTypeAny, "passthrough"> | undefined; | ||
input?: string | string[] | Record<string, string> | undefined; | ||
plugins?: RolldownPluginRec[] | undefined; | ||
external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args: unknown[]) => boolean | void | null | undefined) | undefined; | ||
resolve?: { | ||
@@ -283,3 +392,69 @@ modules?: string[] | undefined; | ||
shimMissingExports: z.ZodOptional<z.ZodBoolean>; | ||
treeshake: z.ZodOptional<z.ZodType<boolean | TreeshakingOptions, z.ZodTypeDef, boolean | TreeshakingOptions>>; | ||
treeshake: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>; | ||
logLevel: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodLiteral<"silent">]>>; | ||
@@ -370,4 +545,4 @@ onLog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodAny, z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodLiteral<"error">]>, z.ZodUnion<[z.ZodAny, z.ZodString]>], z.ZodUnknown>, z.ZodUnknown>], z.ZodUnknown>, z.ZodUnknown>>; | ||
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames" | "watch">, "strict", z.ZodTypeAny, { | ||
external?: string[] | undefined; | ||
treeshake?: boolean | undefined; | ||
external?: string[] | undefined; | ||
cwd?: string | undefined; | ||
@@ -391,4 +566,4 @@ platform?: "node" | "browser" | "neutral" | undefined; | ||
}, { | ||
external?: string[] | undefined; | ||
treeshake?: boolean | undefined; | ||
external?: string[] | undefined; | ||
cwd?: string | undefined; | ||
@@ -395,0 +570,0 @@ platform?: "node" | "browser" | "neutral" | undefined; |
@@ -40,11 +40,11 @@ import { z } from 'zod'; | ||
name: string; | ||
test?: string | RegExp | undefined; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
}, { | ||
name: string; | ||
test?: string | RegExp | undefined; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -57,5 +57,5 @@ }>, "many">>; | ||
name: string; | ||
test?: string | RegExp | undefined; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -68,5 +68,5 @@ }[] | undefined; | ||
name: string; | ||
test?: string | RegExp | undefined; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -73,0 +73,0 @@ }[] | undefined; |
import type { MaybeArray } from '../types/utils'; | ||
import type { StringOrRegExp } from '../constants/types'; | ||
import type { StringOrRegExp } from '../types/utils'; | ||
import type { ModuleType } from '../index'; | ||
@@ -4,0 +4,0 @@ export type StringFilter = MaybeArray<StringOrRegExp> | { |
@@ -122,3 +122,4 @@ import type { BindingHookResolveIdExtraArgs, BindingTransformHookExtraArgs, RenderedChunk } from '../binding'; | ||
export type RolldownPlugin<A = any> = Plugin<A> | BuiltinPlugin | ParallelPlugin; | ||
export type RolldownPluginRec<A = any> = RolldownPlugin<A> | RolldownPlugin<A>[]; | ||
export type RolldownPluginOption<A = any> = NullValue<RolldownPlugin<A>> | false; | ||
export type RolldownPluginRec<A = any> = RolldownPluginOption<A> | RolldownPluginOption<A>[]; | ||
export {}; |
@@ -1,13 +0,5 @@ | ||
export declare const TreeshakingOptionsSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{ | ||
moduleSideEffects: import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodString]>; | ||
}, { | ||
moduleSideEffects: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodString]>>; | ||
}>, "strict", import("zod").ZodTypeAny, { | ||
moduleSideEffects?: string | boolean | undefined; | ||
}, { | ||
moduleSideEffects?: string | boolean | undefined; | ||
}>; | ||
export interface TreeshakingOptions { | ||
moduleSideEffects?: boolean | RegExp; | ||
import { ModuleSideEffectsRule } from './module-side-effects'; | ||
export interface NormalizedTreeshakingOptions { | ||
moduleSideEffects: boolean | ModuleSideEffectsRule[]; | ||
} | ||
export * from './module-side-effects'; |
import { z } from 'zod'; | ||
export declare const HasModuleSideEffectsSchema: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodBoolean>; | ||
export type HasModuleSideEffects = z.infer<typeof HasModuleSideEffectsSchema>; | ||
export type ModuleSideEffectsOption = z.infer<typeof ModuleSideEffectsOptionSchema>; | ||
export declare const ModuleSideEffectsOptionSchema: z.ZodUnion<[z.ZodBoolean, z.ZodString]>; | ||
export declare const NormalizedTreeshakingOptionsSchema: z.ZodObject<{ | ||
moduleSideEffects: z.ZodUnion<[z.ZodBoolean, z.ZodString]>; | ||
}, "strict", z.ZodTypeAny, { | ||
moduleSideEffects: string | boolean; | ||
export declare const ModuleSideEffectsRuleSchema: z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
moduleSideEffects: string | boolean; | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>; | ||
export type NormalizedTreeshakingOptions = { | ||
moduleSideEffects: string; | ||
}; | ||
export type ModuleSideEffectsRule = z.infer<typeof ModuleSideEffectsRuleSchema>; | ||
export declare const ModuleSideEffectsOptionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>; | ||
export declare const TreeshakingOptionsSchema: z.ZodUnion<[z.ZodObject<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ | ||
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{ | ||
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>; | ||
external: z.ZodOptional<z.ZodBoolean>; | ||
sideEffects: z.ZodBoolean; | ||
}, "strip", z.ZodTypeAny, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}, { | ||
sideEffects: boolean; | ||
test?: RegExp | undefined; | ||
external?: boolean | undefined; | ||
}>, "many">]>, z.ZodLiteral<"no-external">]>>; | ||
}, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>; | ||
export type TreeshakingOptions = z.infer<typeof TreeshakingOptionsSchema>; |
@@ -0,2 +1,5 @@ | ||
import type { RolldownOptions } from '../types/rolldown-options'; | ||
import type { ConfigExport } from '../types/config-export'; | ||
export declare function defineConfig(config: RolldownOptions): RolldownOptions; | ||
export declare function defineConfig(config: RolldownOptions[]): RolldownOptions[]; | ||
export declare function defineConfig(config: ConfigExport): ConfigExport; |
{ | ||
"name": "rolldown", | ||
"version": "0.14.0-snapshot-cf2eed0-20241110003502", | ||
"version": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.", | ||
@@ -100,2 +100,3 @@ "homepage": "https://rolldown.rs/", | ||
"signal-exit": "4.1.0", | ||
"tsx": "^4.19.2", | ||
"type-fest": "^4.20.0", | ||
@@ -108,17 +109,17 @@ "unbuild": "^2.0.0", | ||
"@rolldown/testing": "0.0.1", | ||
"rolldown": "0.14.0-snapshot-cf2eed0-20241110003502" | ||
"rolldown": "0.14.0-snapshot-d18e8cb-20241112003342" | ||
}, | ||
"optionalDependencies": { | ||
"@rolldown/binding-darwin-arm64": "0.14.0-snapshot-cf2eed0-20241110003502", | ||
"@rolldown/binding-darwin-x64": "0.14.0-snapshot-cf2eed0-20241110003502", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.14.0-snapshot-cf2eed0-20241110003502", | ||
"@rolldown/binding-linux-arm64-gnu": "0.14.0-snapshot-cf2eed0-20241110003502", | ||
"@rolldown/binding-linux-arm64-musl": "0.14.0-snapshot-cf2eed0-20241110003502", | ||
"@rolldown/binding-freebsd-x64": "0.14.0-snapshot-cf2eed0-20241110003502", | ||
"@rolldown/binding-linux-x64-gnu": "0.14.0-snapshot-cf2eed0-20241110003502", | ||
"@rolldown/binding-linux-x64-musl": "0.14.0-snapshot-cf2eed0-20241110003502", | ||
"@rolldown/binding-wasm32-wasi": "0.14.0-snapshot-cf2eed0-20241110003502", | ||
"@rolldown/binding-win32-arm64-msvc": "0.14.0-snapshot-cf2eed0-20241110003502", | ||
"@rolldown/binding-win32-ia32-msvc": "0.14.0-snapshot-cf2eed0-20241110003502", | ||
"@rolldown/binding-win32-x64-msvc": "0.14.0-snapshot-cf2eed0-20241110003502" | ||
"@rolldown/binding-darwin-arm64": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-darwin-x64": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-freebsd-x64": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-linux-arm64-gnu": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-linux-arm64-musl": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-linux-x64-gnu": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-linux-x64-musl": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-win32-arm64-msvc": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-win32-ia32-msvc": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-win32-x64-msvc": "0.14.0-snapshot-d18e8cb-20241112003342", | ||
"@rolldown/binding-wasm32-wasi": "0.14.0-snapshot-d18e8cb-20241112003342" | ||
}, | ||
@@ -125,0 +126,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
706395
17649
24
106