Comparing version 0.13.2-snapshot-22bf6b5-20241023003702 to 0.13.2-snapshot-26282e0-20241102003244
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 { | ||
@@ -270,3 +272,3 @@ code: string | ||
name: string | ||
test?: string | ||
test?: BindingStringOrRegex | ||
priority?: number | ||
@@ -298,3 +300,3 @@ minSize?: number | ||
footer?: (chunk: RenderedChunk) => MaybePromise<VoidNullable<string>> | ||
format?: 'es' | 'cjs' | 'iife' | ||
format?: 'es' | 'cjs' | 'iife' | 'umd' | ||
globals?: Record<string, string> | ||
@@ -307,2 +309,3 @@ inlineDynamicImports?: boolean | ||
sourcemapIgnoreList?: (source: string, sourcemapPath: string) => boolean | ||
sourcemapDebugIds?: boolean | ||
sourcemapPathTransform?: (source: string, sourcemapPath: string) => string | ||
@@ -414,16 +417,2 @@ minify?: 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 { | ||
@@ -460,2 +449,4 @@ moduleType: string | ||
notify?: BindingNotifyOption | ||
include?: Array<BindingStringOrRegex> | ||
exclude?: Array<BindingStringOrRegex> | ||
} | ||
@@ -462,0 +453,0 @@ |
@@ -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 @@ }; |
@@ -110,2 +110,4 @@ import type { ObjectSchema } from './types'; | ||
}>>; | ||
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>; | ||
@@ -118,2 +120,4 @@ }, "strict", z.ZodTypeAny, { | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
@@ -126,2 +130,4 @@ }, { | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
@@ -136,3 +142,3 @@ }>, z.ZodLiteral<false>]>>; | ||
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">]>>; | ||
@@ -160,3 +166,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>; | ||
@@ -169,3 +175,3 @@ minSize: z.ZodOptional<z.ZodNumber>; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -176,3 +182,3 @@ }, { | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -187,3 +193,3 @@ }>, "many">>; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -198,3 +204,3 @@ }[] | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
test?: string | RegExp | undefined; | ||
priority?: number | undefined; | ||
@@ -246,3 +252,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; | ||
@@ -292,3 +298,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; | ||
@@ -295,0 +301,0 @@ extend?: boolean | undefined; |
@@ -133,2 +133,4 @@ import type { RolldownPluginRec } from '../plugin'; | ||
}>>; | ||
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>; | ||
@@ -141,2 +143,4 @@ }, "strict", z.ZodTypeAny, { | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
@@ -149,2 +153,4 @@ }, { | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
@@ -200,2 +206,4 @@ }>, z.ZodLiteral<false>]>>; | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
@@ -251,2 +259,4 @@ } | undefined; | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
@@ -357,2 +367,4 @@ } | 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>; | ||
@@ -365,2 +377,4 @@ }, "strict", z.ZodTypeAny, { | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
@@ -373,2 +387,4 @@ }, { | ||
} | undefined; | ||
include?: string | RegExp | (string | RegExp)[] | undefined; | ||
exclude?: string | RegExp | (string | RegExp)[] | undefined; | ||
chokidar?: any; | ||
@@ -375,0 +391,0 @@ }>, z.ZodLiteral<false>]>>; |
@@ -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; |
import { BindingGeneralHookFilter, BindingTransformHookFilter } from '../binding.d'; | ||
import { hookFilterExtension } from '.'; | ||
import type { StringFilter } from './hook-filter'; | ||
export declare function bindingifyStringFilter(matcher: StringFilter): BindingGeneralHookFilter; | ||
export declare function bindingifyResolveIdFilter(filterOption?: hookFilterExtension<'resolveId'>['filter']): BindingGeneralHookFilter | undefined; | ||
export declare function bindingifyLoadFilter(filterOption?: hookFilterExtension<'load'>['filter']): BindingGeneralHookFilter | undefined; | ||
export declare function bindingifyTransformFilter(filterOption?: hookFilterExtension<'transform'>['filter']): BindingTransformHookFilter | undefined; |
@@ -19,2 +19,3 @@ import type { BindingHookResolveIdExtraArgs, BindingTransformHookExtraArgs, RenderedChunk } from '../binding'; | ||
import { SYMBOL_FOR_RESOLVE_CALLER_THAT_SKIP_SELF } from '../constants/plugin-context'; | ||
import { HookFilter } from './hook-filter'; | ||
export type ModuleSideEffects = boolean | 'no-treeshake' | null; | ||
@@ -102,19 +103,6 @@ export type ModuleType = 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl' | 'binary' | 'empty' | (string & {}); | ||
export type hookFilterExtension<K extends keyof FunctionPluginHooks> = K extends 'transform' ? { | ||
filter?: BaseHookFilter; | ||
filter?: HookFilter; | ||
} : K extends 'load' | 'resolveId' ? { | ||
filter?: Omit<BaseHookFilter, 'code' | 'moduleType'>; | ||
filter?: Pick<HookFilter, 'id'>; | ||
} : {}; | ||
export type BaseHookFilter = { | ||
id?: { | ||
include?: (string | RegExp)[]; | ||
exclude?: (string | RegExp)[]; | ||
}; | ||
moduleType?: ModuleType[] | { | ||
include?: ModuleType[]; | ||
}; | ||
code?: { | ||
include?: (string | RegExp)[]; | ||
exclude?: (string | RegExp)[]; | ||
}; | ||
}; | ||
export type PluginHooks = { | ||
@@ -121,0 +109,0 @@ [K in keyof FunctionPluginHooks]: ObjectHook<K extends AsyncPluginHooks ? MakeAsync<FunctionPluginHooks[K]> : FunctionPluginHooks[K], hookFilterExtension<K>>; |
import type { OutputOptions } from './options/output-options'; | ||
import type { RolldownOutput } from './types/rolldown-output'; | ||
import type { InputOptions } from './options/input-options'; | ||
import { Watcher } from './watcher'; | ||
export declare class RolldownBuild { | ||
@@ -11,3 +10,2 @@ #private; | ||
close(): Promise<void>; | ||
watch(outputOptions?: OutputOptions): Promise<Watcher>; | ||
} |
@@ -12,1 +12,2 @@ export type MaybePromise<T> = T | Promise<T>; | ||
export type MakeAsync<Function_> = Function_ extends (this: infer This, ...parameters: infer Arguments) => infer Return ? (this: This, ...parameters: Arguments) => Return | Promise<Return> : never; | ||
export type MaybeArray<T> = T | T[]; |
import { Bundler } from '../binding'; | ||
import type { InputOptions } from '../options/input-options'; | ||
import type { OutputOptions } from '../options/output-options'; | ||
export declare function createBundler(inputOptions: InputOptions, outputOptions: OutputOptions): Promise<{ | ||
export declare function createBundler(inputOptions: InputOptions, outputOptions: OutputOptions): Promise<BundlerWithStopWorker>; | ||
export interface BundlerWithStopWorker { | ||
bundler: Bundler; | ||
stopWorkers?: () => Promise<void>; | ||
}>; | ||
} |
@@ -7,3 +7,4 @@ import { BindingWatcher } from './binding'; | ||
inner: BindingWatcher; | ||
constructor(inner: BindingWatcher); | ||
stopWorkers?: () => Promise<void>; | ||
constructor(inner: BindingWatcher, stopWorkers?: () => Promise<void>); | ||
close(): Promise<void>; | ||
@@ -25,2 +26,4 @@ on(event: 'change', listener: (id: string, change: { | ||
code: 'BUNDLE_END'; | ||
duration: number; | ||
output: readonly string[]; | ||
} | { | ||
@@ -27,0 +30,0 @@ code: 'END'; |
{ | ||
"name": "rolldown", | ||
"version": "0.13.2-snapshot-22bf6b5-20241023003702", | ||
"version": "0.13.2-snapshot-26282e0-20241102003244", | ||
"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", | ||
@@ -109,17 +109,17 @@ "rollup": "^4.18.0", | ||
"@rolldown/testing": "0.0.1", | ||
"rolldown": "0.13.2-snapshot-22bf6b5-20241023003702" | ||
"rolldown": "0.13.2-snapshot-26282e0-20241102003244" | ||
}, | ||
"optionalDependencies": { | ||
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-22bf6b5-20241023003702", | ||
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-22bf6b5-20241023003702", | ||
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-22bf6b5-20241023003702", | ||
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-22bf6b5-20241023003702", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-22bf6b5-20241023003702", | ||
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-22bf6b5-20241023003702", | ||
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-22bf6b5-20241023003702", | ||
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-22bf6b5-20241023003702", | ||
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-22bf6b5-20241023003702", | ||
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-22bf6b5-20241023003702", | ||
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-22bf6b5-20241023003702", | ||
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-22bf6b5-20241023003702" | ||
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-26282e0-20241102003244", | ||
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-26282e0-20241102003244", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-26282e0-20241102003244", | ||
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-26282e0-20241102003244", | ||
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-26282e0-20241102003244", | ||
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-26282e0-20241102003244", | ||
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-26282e0-20241102003244", | ||
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-26282e0-20241102003244", | ||
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-26282e0-20241102003244", | ||
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-26282e0-20241102003244", | ||
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-26282e0-20241102003244", | ||
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-26282e0-20241102003244" | ||
}, | ||
@@ -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
678249
106
16799