Comparing version 0.13.2-snapshot-ec6f1a0-20241018003327 to 0.13.2-snapshot-f0e3adf-20241031003359
type MaybePromise<T> = T | Promise<T> | ||
type Nullable<T> = T | null | undefined | ||
type VoidNullable<T = void> = T | null | undefined | void | ||
export type BindingStringOrRegex = string | RegExp | ||
export declare class BindingLog { | ||
@@ -54,2 +56,3 @@ code: string | ||
getModuleIds(): Array<string> | null | ||
addWatchFile(file: string): void | ||
} | ||
@@ -239,2 +242,3 @@ | ||
jsx?: JsxOptions | ||
watch?: BindingWatchOption | ||
} | ||
@@ -270,3 +274,3 @@ | ||
name: string | ||
test?: string | ||
test?: BindingStringOrRegex | ||
priority?: number | ||
@@ -281,2 +285,7 @@ minSize?: number | ||
export interface BindingNotifyOption { | ||
pollInterval?: number | ||
compareContents?: boolean | ||
} | ||
export interface BindingOutputOptions { | ||
@@ -294,3 +303,3 @@ name?: string | ||
footer?: (chunk: RenderedChunk) => MaybePromise<VoidNullable<string>> | ||
format?: 'es' | 'cjs' | 'iife' | ||
format?: 'es' | 'cjs' | 'iife' | 'umd' | ||
globals?: Record<string, string> | ||
@@ -409,16 +418,2 @@ inlineDynamicImports?: boolean | ||
/** | ||
* For String, value is the string content, flag is the `None` | ||
* For Regex, value is the regular expression, flag is the `Some()`. | ||
* Make sure put a `Some("")` in flag even there is no flag in regexp. | ||
*/ | ||
export interface BindingStringOrRegex { | ||
value: string | ||
/** | ||
* There is a more compact way to represent this, `Option<u8>` with bitflags, but it will be hard | ||
* to use(in js side), since construct a `JsRegex` is not used frequently. Optimize it when it is needed. | ||
*/ | ||
flag?: string | ||
} | ||
export interface BindingTransformHookExtraArgs { | ||
@@ -452,2 +447,9 @@ moduleType: string | ||
export interface BindingWatchOption { | ||
skipWrite?: boolean | ||
notify?: BindingNotifyOption | ||
include?: Array<BindingStringOrRegex> | ||
exclude?: Array<BindingStringOrRegex> | ||
} | ||
export interface Es2015Options { | ||
@@ -779,2 +781,1 @@ /** Transform arrow functions into function expressions. */ | ||
} | ||
@@ -7,3 +7,4 @@ import { CliOptions } from './schema'; | ||
hint?: string; | ||
reverse?: boolean; | ||
} | ||
export declare const alias: Partial<Record<keyof CliOptions, OptionConfig>>; |
@@ -9,3 +9,3 @@ export declare const flattenedSchema: Record<string, import("./types").Schema>; | ||
hint?: string; | ||
description?: string; | ||
description: string; | ||
}; | ||
@@ -12,0 +12,0 @@ }; |
@@ -56,3 +56,3 @@ import type { ObjectSchema } from './types'; | ||
onwarn: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodAny, z.ZodString]>, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodAny, z.ZodString]>>]>], z.ZodUnknown>, z.ZodUnknown>], z.ZodUnknown>, z.ZodUnknown>>; | ||
moduleTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"js">, z.ZodLiteral<"jsx">]>, z.ZodLiteral<"ts">]>, z.ZodLiteral<"tsx">]>, z.ZodLiteral<"json">]>, z.ZodLiteral<"text">]>, z.ZodLiteral<"base64">]>, z.ZodLiteral<"dataurl">]>, z.ZodLiteral<"binary">]>, z.ZodLiteral<"empty">]>>>; | ||
moduleTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"js">, z.ZodLiteral<"jsx">]>, z.ZodLiteral<"ts">]>, z.ZodLiteral<"tsx">]>, z.ZodLiteral<"json">]>, z.ZodLiteral<"text">]>, z.ZodLiteral<"base64">]>, z.ZodLiteral<"dataurl">]>, z.ZodLiteral<"binary">]>, z.ZodLiteral<"empty">]>, z.ZodLiteral<"css">]>>>; | ||
experimental: z.ZodOptional<z.ZodObject<{ | ||
@@ -99,2 +99,36 @@ enableComposingJsPlugins: z.ZodOptional<z.ZodBoolean>; | ||
}>>; | ||
watch: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ | ||
skipWrite: z.ZodOptional<z.ZodBoolean>; | ||
notify: z.ZodOptional<z.ZodObject<{ | ||
pollInterval: z.ZodOptional<z.ZodNumber>; | ||
compareContents: z.ZodOptional<z.ZodBoolean>; | ||
}, "strict", z.ZodTypeAny, { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
}, { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
}>>; | ||
include: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>; | ||
exclude: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>; | ||
chokidar: z.ZodOptional<z.ZodAny>; | ||
}, "strict", z.ZodTypeAny, { | ||
skipWrite?: boolean | undefined; | ||
notify?: { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
}, { | ||
skipWrite?: boolean | undefined; | ||
notify?: { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
}>, z.ZodLiteral<false>]>>; | ||
}, { | ||
@@ -104,6 +138,6 @@ external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
treeshake: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; | ||
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames">>, Omit<z.objectUtil.extendShape<{ | ||
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames" | "watch">>, Omit<z.objectUtil.extendShape<{ | ||
dir: z.ZodOptional<z.ZodString>; | ||
exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>; | ||
format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>>; | ||
format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>, z.ZodLiteral<"umd">]>>; | ||
sourcemap: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"inline">]>, z.ZodLiteral<"hidden">]>>; | ||
@@ -131,3 +165,3 @@ sourcemapIgnoreList: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodType<import("../../options/output-options").SourcemapIgnoreListOption, z.ZodTypeDef, import("../../options/output-options").SourcemapIgnoreListOption>]>>; | ||
name: z.ZodString; | ||
test: z.ZodOptional<z.ZodString>; | ||
test: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>; | ||
priority: z.ZodOptional<z.ZodNumber>; | ||
@@ -140,3 +174,3 @@ minSize: z.ZodOptional<z.ZodNumber>; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -147,3 +181,3 @@ }, { | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -158,3 +192,3 @@ }>, "many">>; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -169,3 +203,3 @@ }[] | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -206,5 +240,6 @@ }[] | undefined; | ||
} | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty"> | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined; | ||
define?: Record<string, string> | undefined; | ||
inject?: Record<string, string> | undefined; | ||
watch?: boolean | undefined; | ||
footer?: string | undefined; | ||
@@ -217,3 +252,3 @@ banner?: string | undefined; | ||
dir?: string | undefined; | ||
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | undefined; | ||
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
@@ -234,3 +269,2 @@ extend?: boolean | undefined; | ||
version?: boolean | undefined; | ||
watch?: boolean | undefined; | ||
config?: string | boolean | undefined; | ||
@@ -254,5 +288,6 @@ help?: boolean | undefined; | ||
} | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty"> | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined; | ||
define?: Record<string, string> | undefined; | ||
inject?: Record<string, string> | undefined; | ||
watch?: boolean | undefined; | ||
footer?: string | undefined; | ||
@@ -265,3 +300,3 @@ banner?: string | undefined; | ||
dir?: string | undefined; | ||
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | undefined; | ||
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
@@ -282,3 +317,2 @@ extend?: boolean | undefined; | ||
version?: boolean | undefined; | ||
watch?: boolean | undefined; | ||
config?: string | boolean | undefined; | ||
@@ -285,0 +319,0 @@ help?: boolean | undefined; |
@@ -21,6 +21,7 @@ import { RolldownOutput, RolldownOutputAsset, RolldownOutputChunk, SourceMap } from './types/rolldown-output'; | ||
import { OutputBundle } from './types/output-bundle'; | ||
import { WatchOptions } from './options/watch-option'; | ||
export { defineConfig, rolldown, watch }; | ||
export declare const VERSION: string; | ||
export type { RolldownOutputAsset, RolldownOutputChunk, RolldownOptions, RolldownOutput, RolldownBuild, InputOptions, NormalizedInputOptions, OutputOptions, NormalizedOutputOptions, Plugin, RolldownPlugin, DefineParallelPluginResult, ConfigExport, ImportKind, InputOption, ExternalOption, ModuleFormat, ModuleType, InternalModuleFormat, LoadResult, TransformResult, ResolveIdResult, PluginContext, TransformPluginContext, ObjectHook, RenderedChunk, PreRenderedChunk, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, JsxOptions, }; | ||
export type { RolldownOutputAsset, RolldownOutputChunk, RolldownOptions, RolldownOutput, RolldownBuild, InputOptions, NormalizedInputOptions, OutputOptions, NormalizedOutputOptions, Plugin, RolldownPlugin, DefineParallelPluginResult, ConfigExport, ImportKind, InputOption, ExternalOption, ModuleFormat, ModuleType, InternalModuleFormat, LoadResult, TransformResult, ResolveIdResult, PluginContext, TransformPluginContext, ObjectHook, RenderedChunk, PreRenderedChunk, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, JsxOptions, WatchOptions, }; | ||
export type { RolldownOutput as RollupOutput, RolldownOptions as RollupOptions, RolldownBuild as RollupBuild, RolldownOutputChunk as OutputChunk, RolldownOutputAsset as OutputAsset, }; | ||
export type { RollupError, RollupLog, LoggingFunction } from './rollup'; |
@@ -79,3 +79,3 @@ import type { RolldownPluginRec } from '../plugin'; | ||
onwarn: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodAny, z.ZodString]>, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodAny, z.ZodString]>>]>], z.ZodUnknown>, z.ZodUnknown>], z.ZodUnknown>, z.ZodUnknown>>; | ||
moduleTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"js">, z.ZodLiteral<"jsx">]>, z.ZodLiteral<"ts">]>, z.ZodLiteral<"tsx">]>, z.ZodLiteral<"json">]>, z.ZodLiteral<"text">]>, z.ZodLiteral<"base64">]>, z.ZodLiteral<"dataurl">]>, z.ZodLiteral<"binary">]>, z.ZodLiteral<"empty">]>>>; | ||
moduleTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"js">, z.ZodLiteral<"jsx">]>, z.ZodLiteral<"ts">]>, z.ZodLiteral<"tsx">]>, z.ZodLiteral<"json">]>, z.ZodLiteral<"text">]>, z.ZodLiteral<"base64">]>, z.ZodLiteral<"dataurl">]>, z.ZodLiteral<"binary">]>, z.ZodLiteral<"empty">]>, z.ZodLiteral<"css">]>>>; | ||
experimental: z.ZodOptional<z.ZodObject<{ | ||
@@ -122,2 +122,36 @@ enableComposingJsPlugins: z.ZodOptional<z.ZodBoolean>; | ||
}>>; | ||
watch: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ | ||
skipWrite: z.ZodOptional<z.ZodBoolean>; | ||
notify: z.ZodOptional<z.ZodObject<{ | ||
pollInterval: z.ZodOptional<z.ZodNumber>; | ||
compareContents: z.ZodOptional<z.ZodBoolean>; | ||
}, "strict", z.ZodTypeAny, { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
}, { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
}>>; | ||
include: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>; | ||
exclude: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>; | ||
chokidar: z.ZodOptional<z.ZodAny>; | ||
}, "strict", z.ZodTypeAny, { | ||
skipWrite?: boolean | undefined; | ||
notify?: { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
}, { | ||
skipWrite?: boolean | undefined; | ||
notify?: { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
}>, z.ZodLiteral<false>]>>; | ||
}, "strict", z.ZodTypeAny, { | ||
@@ -156,3 +190,3 @@ input?: string | string[] | Record<string, string> | undefined; | ||
} | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty"> | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined; | ||
experimental?: { | ||
@@ -166,2 +200,12 @@ enableComposingJsPlugins?: boolean | undefined; | ||
profilerNames?: boolean | undefined; | ||
watch?: false | { | ||
skipWrite?: boolean | undefined; | ||
notify?: { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
} | undefined; | ||
}, { | ||
@@ -200,3 +244,3 @@ input?: string | string[] | Record<string, string> | undefined; | ||
} | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty"> | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined; | ||
experimental?: { | ||
@@ -210,2 +254,12 @@ enableComposingJsPlugins?: boolean | undefined; | ||
profilerNames?: boolean | undefined; | ||
watch?: false | { | ||
skipWrite?: boolean | undefined; | ||
notify?: { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
} | undefined; | ||
}>; | ||
@@ -260,3 +314,3 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{ | ||
onwarn: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny, z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodAny, z.ZodString]>, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodAny, z.ZodString]>>]>], z.ZodUnknown>, z.ZodUnknown>], z.ZodUnknown>, z.ZodUnknown>>; | ||
moduleTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"js">, z.ZodLiteral<"jsx">]>, z.ZodLiteral<"ts">]>, z.ZodLiteral<"tsx">]>, z.ZodLiteral<"json">]>, z.ZodLiteral<"text">]>, z.ZodLiteral<"base64">]>, z.ZodLiteral<"dataurl">]>, z.ZodLiteral<"binary">]>, z.ZodLiteral<"empty">]>>>; | ||
moduleTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"js">, z.ZodLiteral<"jsx">]>, z.ZodLiteral<"ts">]>, z.ZodLiteral<"tsx">]>, z.ZodLiteral<"json">]>, z.ZodLiteral<"text">]>, z.ZodLiteral<"base64">]>, z.ZodLiteral<"dataurl">]>, z.ZodLiteral<"binary">]>, z.ZodLiteral<"empty">]>, z.ZodLiteral<"css">]>>>; | ||
experimental: z.ZodOptional<z.ZodObject<{ | ||
@@ -303,2 +357,36 @@ enableComposingJsPlugins: z.ZodOptional<z.ZodBoolean>; | ||
}>>; | ||
watch: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ | ||
skipWrite: z.ZodOptional<z.ZodBoolean>; | ||
notify: z.ZodOptional<z.ZodObject<{ | ||
pollInterval: z.ZodOptional<z.ZodNumber>; | ||
compareContents: z.ZodOptional<z.ZodBoolean>; | ||
}, "strict", z.ZodTypeAny, { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
}, { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
}>>; | ||
include: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>; | ||
exclude: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">]>>; | ||
chokidar: z.ZodOptional<z.ZodAny>; | ||
}, "strict", z.ZodTypeAny, { | ||
skipWrite?: boolean | undefined; | ||
notify?: { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
}, { | ||
skipWrite?: boolean | undefined; | ||
notify?: { | ||
pollInterval?: number | undefined; | ||
compareContents?: boolean | undefined; | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
}>, z.ZodLiteral<false>]>>; | ||
}, { | ||
@@ -308,3 +396,3 @@ external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
treeshake: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; | ||
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames">, "strict", z.ZodTypeAny, { | ||
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames" | "watch">, "strict", z.ZodTypeAny, { | ||
external?: string[] | undefined; | ||
@@ -325,3 +413,3 @@ cwd?: string | undefined; | ||
} | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty"> | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined; | ||
define?: Record<string, string> | undefined; | ||
@@ -345,3 +433,3 @@ inject?: Record<string, string> | undefined; | ||
} | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty"> | undefined; | ||
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined; | ||
define?: Record<string, string> | undefined; | ||
@@ -348,0 +436,0 @@ inject?: Record<string, string> | undefined; |
@@ -1,2 +0,1 @@ | ||
import { BindingAliasPluginConfig } from '../binding'; | ||
type AliasPluginAlias = { | ||
@@ -9,3 +8,2 @@ find: string | RegExp; | ||
}; | ||
export declare function normalizeAliasPluginConfig(config?: AliasPluginConfig): BindingAliasPluginConfig | undefined; | ||
export {}; |
@@ -5,3 +5,3 @@ import type { SourcemapIgnoreListOption, SourcemapPathTransformOption } from '../rollup'; | ||
import type { PreRenderedChunk, RenderedChunk } from '../binding'; | ||
export type InternalModuleFormat = 'es' | 'cjs' | 'iife'; | ||
export type InternalModuleFormat = 'es' | 'cjs' | 'iife' | 'umd'; | ||
type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>; | ||
@@ -8,0 +8,0 @@ type ChunkFileNamesOption = string | ((chunk: PreRenderedChunk) => string) | undefined; |
import type { PreRenderedChunk, RenderedChunk } from '../binding'; | ||
import { z } from 'zod'; | ||
declare const ModuleFormatSchema: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>>; | ||
declare const ModuleFormatSchema: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>, z.ZodLiteral<"umd">]>>; | ||
declare const outputOptionsSchema: z.ZodObject<{ | ||
dir: z.ZodOptional<z.ZodString>; | ||
exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>; | ||
format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>>; | ||
format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>, z.ZodLiteral<"umd">]>>; | ||
sourcemap: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"inline">]>, z.ZodLiteral<"hidden">]>>; | ||
@@ -30,3 +30,3 @@ sourcemapIgnoreList: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodType<SourcemapIgnoreListOption, z.ZodTypeDef, SourcemapIgnoreListOption>]>>; | ||
name: z.ZodString; | ||
test: z.ZodOptional<z.ZodString>; | ||
test: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>; | ||
priority: z.ZodOptional<z.ZodNumber>; | ||
@@ -39,3 +39,3 @@ minSize: z.ZodOptional<z.ZodNumber>; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -46,3 +46,3 @@ }, { | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -57,3 +57,3 @@ }>, "many">>; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -68,3 +68,3 @@ }[] | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -81,3 +81,3 @@ }[] | undefined; | ||
dir?: string | undefined; | ||
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | undefined; | ||
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
@@ -102,3 +102,3 @@ sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -115,3 +115,3 @@ }[] | undefined; | ||
dir?: string | undefined; | ||
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | undefined; | ||
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
@@ -136,3 +136,3 @@ sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -145,3 +145,3 @@ }[] | undefined; | ||
exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>; | ||
format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>>; | ||
format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>, z.ZodLiteral<"umd">]>>; | ||
sourcemap: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"inline">]>, z.ZodLiteral<"hidden">]>>; | ||
@@ -169,3 +169,3 @@ sourcemapIgnoreList: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodType<SourcemapIgnoreListOption, z.ZodTypeDef, SourcemapIgnoreListOption>]>>; | ||
name: z.ZodString; | ||
test: z.ZodOptional<z.ZodString>; | ||
test: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>; | ||
priority: z.ZodOptional<z.ZodNumber>; | ||
@@ -178,3 +178,3 @@ minSize: z.ZodOptional<z.ZodNumber>; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -185,3 +185,3 @@ }, { | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -196,3 +196,3 @@ }>, "many">>; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -207,3 +207,3 @@ }[] | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -236,3 +236,3 @@ }[] | undefined; | ||
dir?: string | undefined; | ||
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | undefined; | ||
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
@@ -260,3 +260,3 @@ extend?: boolean | undefined; | ||
dir?: string | undefined; | ||
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | undefined; | ||
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
@@ -263,0 +263,0 @@ extend?: boolean | undefined; |
@@ -11,3 +11,3 @@ import type { OutputOptions } from './options/output-options'; | ||
close(): Promise<void>; | ||
watch(): Promise<Watcher>; | ||
watch(outputOptions?: OutputOptions): Promise<Watcher>; | ||
} |
import type { InputOptions } from './options/input-options'; | ||
import { RolldownBuild } from './rolldown-build'; | ||
import { Watcher } from './watcher'; | ||
import { WatchOptions } from './options/watch-option'; | ||
export declare const rolldown: (input: InputOptions) => Promise<RolldownBuild>; | ||
export declare const watch: (input: InputOptions) => Promise<Watcher>; | ||
export declare const watch: (input: WatchOptions) => Promise<Watcher>; | ||
/** | ||
@@ -7,0 +8,0 @@ * @description |
{ | ||
"name": "rolldown", | ||
"version": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"version": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.", | ||
@@ -80,3 +80,3 @@ "homepage": "https://rolldown.rs/", | ||
}, | ||
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\n" | ||
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n" | ||
}, | ||
@@ -98,3 +98,3 @@ "dependencies": { | ||
"locate-character": "^3.0.0", | ||
"npm-run-all2": "^6.2.0", | ||
"npm-run-all2": "^7.0.0", | ||
"remeda": "^2.10.0", | ||
@@ -108,18 +108,18 @@ "rollup": "^4.18.0", | ||
"zod-to-json-schema": "^3.23.2", | ||
"rolldown": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"rolldown": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"@rolldown/testing": "0.0.1" | ||
}, | ||
"optionalDependencies": { | ||
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-ec6f1a0-20241018003327", | ||
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-ec6f1a0-20241018003327" | ||
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-f0e3adf-20241031003359", | ||
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-f0e3adf-20241031003359" | ||
}, | ||
@@ -126,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
673537
104
16650