Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rolldown

Package Overview
Dependencies
Maintainers
3
Versions
355
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rolldown - npm Package Compare versions

Comparing version 0.15.0-snapshot-5e456b6-20241203003703 to 0.15.0-snapshot-64a831c-20241207003504

dist/shared/consola_36c0034f-B6fL2Jf_.mjs

2

dist/types/api/build.d.ts

@@ -6,2 +6,4 @@ import type { RolldownOptions } from '../types/rolldown-options';

* Write the output to the file system
*
* @default true
*/

@@ -8,0 +10,0 @@ write?: boolean;

4

dist/types/api/watch/index.d.ts
import type { WatchOptions } from '../../options/watch-options';
import { Watcher } from './watcher';
export declare const watch: (input: WatchOptions) => Promise<Watcher>;
import { RolldownWatcher } from './watch-emitter';
export declare const watch: (input: WatchOptions) => RolldownWatcher;
import { BindingWatcher } from '../../binding';
import { MaybePromise } from '../../types/utils';
import { WatchOptions } from '../../options/watch-options';
import { WatcherEmitter } from './watch-emitter';
export declare class Watcher {
closed: boolean;
controller: AbortController;
inner: BindingWatcher;
emitter: WatcherEmitter;
stopWorkers?: () => Promise<void>;
listeners: Map<WatcherEvent, Array<(...parameters: any[]) => MaybePromise<void>>>;
constructor(inner: BindingWatcher, stopWorkers?: () => Promise<void>);
constructor(emitter: WatcherEmitter, inner: BindingWatcher, stopWorkers?: () => Promise<void>);
close(): Promise<void>;
on(event: 'change', listener: (id: string, change: {
event: ChangeEvent;
}) => MaybePromise<void>): this;
on(event: 'event', listener: (data: RollupWatcherEvent) => MaybePromise<void>): this;
on(event: 'restart' | 'close', listener: () => MaybePromise<void>): this;
watch(): void;
start(): void;
}
export type WatcherEvent = 'close' | 'event' | 'restart' | 'change';
export type ChangeEvent = 'create' | 'update' | 'delete';
export type RollupWatcherEvent = {
code: 'START';
} | {
code: 'BUNDLE_START';
} | {
code: 'BUNDLE_END';
duration: number;
output: readonly string[];
} | {
code: 'END';
} | {
code: 'ERROR';
error: Error;
};
export declare function createWatcher(emitter: WatcherEmitter, input: WatchOptions): Promise<void>;

@@ -19,3 +19,3 @@ type MaybePromise<T> = T | Promise<T>

export declare class BindingHookError {
get errors(): Array<unknown>
get errors(): Array<Error | object>
}

@@ -72,4 +72,6 @@

get originalFileName(): string | null
get originalFileNames(): Array<string>
get source(): BindingAssetSource
get name(): string | null
get names(): Array<string>
}

@@ -97,3 +99,3 @@

get assets(): Array<BindingOutputAsset>
get errors(): Array<unknown>
get errors(): Array<Error | object>
}

@@ -135,3 +137,3 @@

bundleEventKind(): string
errors(): Array<unknown>
errors(): Array<Error | object>
}

@@ -218,2 +220,6 @@

export interface BindingChecksOptions {
circularDependency?: boolean
}
export interface BindingEmittedAsset {

@@ -333,2 +339,4 @@ name?: string

watch?: BindingWatchOption
keepNames?: boolean
checks?: BindingChecksOptions
}

@@ -533,7 +541,8 @@

reactRefresh?: boolean
targets?: string
target?: string
browserslist?: string
}
export interface BindingTreeshake {
moduleSideEffects: boolean | BindingModuleSideEffectsRule[]
moduleSideEffects: boolean | BindingModuleSideEffectsRule[] | ((id: string, is_external: boolean) => boolean | undefined)
annotations?: boolean

@@ -547,3 +556,4 @@ }

external: true | string[]
noExternal: true | string[]
noExternal: true | Array<string | RegExp>
dedupe: Array<string>
finalizeBareSpecifier?: (resolvedId: string, rawId: string, importer: string | null | undefined) => VoidNullable<string>

@@ -578,2 +588,10 @@ finalizeOtherSpecifiers?: (resolvedId: string, rawId: string) => VoidNullable<string>

export interface CompilerAssumptions {
ignoreFunctionLength?: boolean
noDocumentAll?: boolean
objectRestNoSymbols?: boolean
pureGetters?: boolean
setPublicClassFields?: boolean
}
export interface Es2015Options {

@@ -618,4 +636,4 @@ /** Transform arrow functions into function expressions. */

export interface JsOutputAsset {
name?: string
originalFileName?: string
names: Array<string>
originalFileNames: Array<string>
filename: string

@@ -826,2 +844,4 @@ source: BindingAssetSource

sourcemap?: boolean
/** Set assumptions in order to produce smaller output. */
assumptions?: CompilerAssumptions
/** Configure how TypeScript is transformed. */

@@ -828,0 +848,0 @@ typescript?: TypeScriptOptions

@@ -13,3 +13,3 @@ import type { ObjectSchema } from './types';

resolve: z.ZodOptional<z.ZodObject<{
alias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
alias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>>;
aliasFields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;

@@ -27,3 +27,3 @@ conditionNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;

modules?: string[] | undefined;
alias?: Record<string, string> | undefined;
alias?: Record<string, string | string[]> | undefined;
extensionAlias?: Record<string, string[]> | undefined;

@@ -40,3 +40,3 @@ aliasFields?: string[][] | undefined;

modules?: string[] | undefined;
alias?: Record<string, string> | undefined;
alias?: Record<string, string | string[]> | undefined;
extensionAlias?: Record<string, string[]> | undefined;

@@ -56,3 +56,3 @@ aliasFields?: string[][] | undefined;

treeshake: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -77,6 +77,6 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -101,6 +101,6 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -125,3 +125,3 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;

@@ -212,2 +212,9 @@ }, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>;

dropLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
checks: z.ZodOptional<z.ZodObject<{
circularDependency: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
circularDependency?: boolean | undefined;
}, {
circularDependency?: boolean | undefined;
}>>;
}, {

@@ -331,2 +338,3 @@ external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;

comments?: "none" | "preserve-legal" | undefined;
version?: boolean | undefined;
external?: string[] | undefined;

@@ -349,8 +357,10 @@ jsx?: {

shimMissingExports?: boolean | undefined;
moduleTypes?: Record<string, "base64" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
moduleTypes?: Record<string, "base64" | "binary" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "empty" | "css"> | undefined;
define?: Record<string, string> | undefined;
dropLabels?: string[] | undefined;
checks?: {
circularDependency?: boolean | undefined;
} | undefined;
config?: string | boolean | undefined;
help?: boolean | undefined;
version?: boolean | undefined;
}, {

@@ -384,2 +394,3 @@ name?: string | undefined;

comments?: "none" | "preserve-legal" | undefined;
version?: boolean | undefined;
external?: string[] | undefined;

@@ -402,10 +413,12 @@ jsx?: {

shimMissingExports?: boolean | undefined;
moduleTypes?: Record<string, "base64" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
moduleTypes?: Record<string, "base64" | "binary" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "empty" | "css"> | undefined;
define?: Record<string, string> | undefined;
dropLabels?: string[] | undefined;
checks?: {
circularDependency?: boolean | undefined;
} | undefined;
config?: string | boolean | undefined;
help?: boolean | undefined;
version?: boolean | undefined;
}>;
export type CliOptions = z.infer<typeof cliOptionsSchema>;
export declare const schema: ObjectSchema;

@@ -23,8 +23,8 @@ import { RolldownOutput, RolldownOutputAsset, RolldownOutputChunk, RolldownRenderedChunk, SourceMap } from './types/rolldown-output';

import { WatchOptions } from './options/watch-options';
import { Watcher } from './api/watch/watcher';
import { RolldownWatcher } from './api/watch/watch-emitter';
import { build, type BuildOptions } from './api/build';
export { defineConfig, rolldown, watch, build };
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, PreRenderedChunk, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, JsxOptions, WatchOptions, Watcher, BuildOptions, };
export type { RolldownOutput as RollupOutput, RolldownOptions as RollupOptions, RolldownBuild as RollupBuild, RolldownOutputChunk as OutputChunk, RolldownOutputAsset as OutputAsset, RolldownRenderedChunk as RenderedChunk, };
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, PreRenderedChunk, SourceMap, SourceDescription, PartialNull, PartialResolvedId, ResolvedId, ModuleOptions, ModuleInfo, MinimalPluginContext, EmittedFile, EmittedAsset, CustomPluginOptions, AsyncPluginHooks, ParallelPluginHooks, FunctionPluginHooks, ExistingRawSourceMap, SourceMapInput, OutputBundle, JsxOptions, WatchOptions, RolldownWatcher, BuildOptions, };
export type { RolldownOutput as RollupOutput, RolldownOptions as RollupOptions, RolldownBuild as RollupBuild, RolldownOutputChunk as OutputChunk, RolldownOutputAsset as OutputAsset, RolldownRenderedChunk as RenderedChunk, RolldownWatcher as RollupWatcher, };
export type { RollupError, RollupLog, LoggingFunction } from './rollup';

@@ -8,3 +8,3 @@ import { z } from 'zod';

resolve: z.ZodOptional<z.ZodObject<{
alias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
alias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>>;
aliasFields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;

@@ -22,3 +22,3 @@ conditionNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;

modules?: string[] | undefined;
alias?: Record<string, string> | undefined;
alias?: Record<string, string | string[]> | undefined;
extensionAlias?: Record<string, string[]> | undefined;

@@ -35,3 +35,3 @@ aliasFields?: string[][] | undefined;

modules?: string[] | undefined;
alias?: Record<string, string> | undefined;
alias?: Record<string, string | string[]> | undefined;
extensionAlias?: Record<string, string[]> | undefined;

@@ -51,3 +51,3 @@ aliasFields?: string[][] | undefined;

treeshake: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -72,6 +72,6 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -96,6 +96,6 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -120,3 +120,3 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;

@@ -207,2 +207,9 @@ }, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>;

dropLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
checks: z.ZodOptional<z.ZodObject<{
circularDependency: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
circularDependency?: boolean | undefined;
}, {
circularDependency?: boolean | undefined;
}>>;
}, "strict", z.ZodTypeAny, {

@@ -226,3 +233,3 @@ plugins?: RolldownPluginOption;

modules?: string[] | undefined;
alias?: Record<string, string> | undefined;
alias?: Record<string, string | string[]> | undefined;
extensionAlias?: Record<string, string[]> | undefined;

@@ -240,3 +247,3 @@ aliasFields?: string[][] | undefined;

treeshake?: boolean | z.objectOutputType<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -261,3 +268,3 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;

@@ -278,3 +285,3 @@ }, z.ZodTypeAny, "passthrough"> | undefined;

shimMissingExports?: boolean | undefined;
moduleTypes?: Record<string, "base64" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
moduleTypes?: Record<string, "base64" | "binary" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "empty" | "css"> | undefined;
experimental?: {

@@ -289,2 +296,5 @@ strictExecutionOrder?: boolean | undefined;

dropLabels?: string[] | undefined;
checks?: {
circularDependency?: boolean | undefined;
} | undefined;
}, {

@@ -308,3 +318,3 @@ plugins?: RolldownPluginOption;

modules?: string[] | undefined;
alias?: Record<string, string> | undefined;
alias?: Record<string, string | string[]> | undefined;
extensionAlias?: Record<string, string[]> | undefined;

@@ -322,3 +332,3 @@ aliasFields?: string[][] | undefined;

treeshake?: boolean | z.objectInputType<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -343,3 +353,3 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;

@@ -360,3 +370,3 @@ }, z.ZodTypeAny, "passthrough"> | undefined;

shimMissingExports?: boolean | undefined;
moduleTypes?: Record<string, "base64" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
moduleTypes?: Record<string, "base64" | "binary" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "empty" | "css"> | undefined;
experimental?: {

@@ -371,2 +381,5 @@ strictExecutionOrder?: boolean | undefined;

dropLabels?: string[] | undefined;
checks?: {
circularDependency?: boolean | undefined;
} | undefined;
}>;

@@ -378,3 +391,3 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{

resolve: z.ZodOptional<z.ZodObject<{
alias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
alias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>>;
aliasFields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;

@@ -392,3 +405,3 @@ conditionNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;

modules?: string[] | undefined;
alias?: Record<string, string> | undefined;
alias?: Record<string, string | string[]> | undefined;
extensionAlias?: Record<string, string[]> | undefined;

@@ -405,3 +418,3 @@ aliasFields?: string[][] | undefined;

modules?: string[] | undefined;
alias?: Record<string, string> | undefined;
alias?: Record<string, string | string[]> | undefined;
extensionAlias?: Record<string, string[]> | undefined;

@@ -421,3 +434,3 @@ aliasFields?: string[][] | undefined;

treeshake: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -442,6 +455,6 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -466,6 +479,6 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -490,3 +503,3 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;

@@ -577,2 +590,9 @@ }, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>;

dropLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
checks: z.ZodOptional<z.ZodObject<{
circularDependency: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
circularDependency?: boolean | undefined;
}, {
circularDependency?: boolean | undefined;
}>>;
}, {

@@ -599,5 +619,8 @@ external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;

shimMissingExports?: boolean | undefined;
moduleTypes?: Record<string, "base64" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
moduleTypes?: Record<string, "base64" | "binary" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "empty" | "css"> | undefined;
define?: Record<string, string> | undefined;
dropLabels?: string[] | undefined;
checks?: {
circularDependency?: boolean | undefined;
} | undefined;
}, {

@@ -620,5 +643,8 @@ external?: string[] | undefined;

shimMissingExports?: boolean | undefined;
moduleTypes?: Record<string, "base64" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
moduleTypes?: Record<string, "base64" | "binary" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "empty" | "css"> | undefined;
define?: Record<string, string> | undefined;
dropLabels?: string[] | undefined;
checks?: {
circularDependency?: boolean | undefined;
} | undefined;
}>;

@@ -27,2 +27,9 @@ import { RolldownPluginOption } from '../plugin';

}
export interface ChecksOptions {
/**
* Wether to emit warnings when detecting circular dependencies.
* @default false
*/
circularDependency?: boolean;
}
export interface InputOptions {

@@ -33,3 +40,3 @@ input?: InputOption;

resolve?: {
alias?: Record<string, string>;
alias?: Record<string, string[] | string>;
aliasFields?: string[][];

@@ -97,2 +104,4 @@ conditionNames?: string[];

dropLabels?: string[];
keepNames?: boolean;
checks?: ChecksOptions;
}

@@ -99,0 +108,0 @@ interface OverwriteInputOptionsForCli {

@@ -909,4 +909,8 @@ // utils

export interface PreRenderedAsset {
/** @deprecated Use "names" instead. */
name: string | undefined
names: string[]
/** @deprecated Use "originalFileNames" instead. */
originalFileName: string | null
originalFileNames: string[]
source: string | Uint8Array

@@ -913,0 +917,0 @@ type: 'asset'

@@ -24,3 +24,3 @@ import { z } from 'zod';

}>;
export declare const ModuleSideEffectsOptionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
export declare const ModuleSideEffectsOptionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -45,5 +45,5 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, 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<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -68,6 +68,6 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -92,6 +92,6 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;

@@ -116,5 +116,5 @@ external: z.ZodOptional<z.ZodBoolean>;

test?: RegExp | undefined;
}>, "many">]>, z.ZodLiteral<"no-external">]>>;
}>, "many">]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodBoolean], z.ZodUnknown>, z.ZodOptional<z.ZodBoolean>>]>, z.ZodLiteral<"no-external">]>>;
annotations: z.ZodOptional<z.ZodBoolean>;
}, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>;
export type TreeshakingOptions = z.infer<typeof TreeshakingOptionsSchema>;

@@ -6,5 +6,9 @@ import { AssetSource } from '../utils/asset-source';

fileName: string;
/** @deprecated Use "originalFileNames" instead. */
originalFileName: string | null;
originalFileNames: string[];
source: AssetSource;
/** @deprecated Use "names" instead. */
name: string | undefined;
names: string[];
}

@@ -18,2 +22,4 @@ export interface SourceMap {

version: number;
toString(): string;
toUrl(): string;
}

@@ -20,0 +26,0 @@ export interface RolldownRenderedModule {

@@ -1,1 +0,1 @@

export declare function normalizeErrors(rawErrors: unknown[]): Error;
export declare function normalizeErrors(rawErrors: (object | Error)[]): Error;
{
"name": "rolldown",
"version": "0.15.0-snapshot-5e456b6-20241203003703",
"version": "0.15.0-snapshot-64a831c-20241207003504",
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",

@@ -116,17 +116,17 @@ "homepage": "https://rolldown.rs/",

"@rolldown/testing": "0.0.1",
"rolldown": "0.15.0-snapshot-5e456b6-20241203003703"
"rolldown": "0.15.0-snapshot-64a831c-20241207003504"
},
"optionalDependencies": {
"@rolldown/binding-darwin-arm64": "0.15.0-snapshot-5e456b6-20241203003703",
"@rolldown/binding-darwin-x64": "0.15.0-snapshot-5e456b6-20241203003703",
"@rolldown/binding-freebsd-x64": "0.15.0-snapshot-5e456b6-20241203003703",
"@rolldown/binding-linux-arm-gnueabihf": "0.15.0-snapshot-5e456b6-20241203003703",
"@rolldown/binding-linux-arm64-gnu": "0.15.0-snapshot-5e456b6-20241203003703",
"@rolldown/binding-linux-arm64-musl": "0.15.0-snapshot-5e456b6-20241203003703",
"@rolldown/binding-linux-x64-gnu": "0.15.0-snapshot-5e456b6-20241203003703",
"@rolldown/binding-linux-x64-musl": "0.15.0-snapshot-5e456b6-20241203003703",
"@rolldown/binding-wasm32-wasi": "0.15.0-snapshot-5e456b6-20241203003703",
"@rolldown/binding-win32-arm64-msvc": "0.15.0-snapshot-5e456b6-20241203003703",
"@rolldown/binding-win32-x64-msvc": "0.15.0-snapshot-5e456b6-20241203003703",
"@rolldown/binding-win32-ia32-msvc": "0.15.0-snapshot-5e456b6-20241203003703"
"@rolldown/binding-darwin-arm64": "0.15.0-snapshot-64a831c-20241207003504",
"@rolldown/binding-darwin-x64": "0.15.0-snapshot-64a831c-20241207003504",
"@rolldown/binding-freebsd-x64": "0.15.0-snapshot-64a831c-20241207003504",
"@rolldown/binding-linux-arm-gnueabihf": "0.15.0-snapshot-64a831c-20241207003504",
"@rolldown/binding-linux-arm64-gnu": "0.15.0-snapshot-64a831c-20241207003504",
"@rolldown/binding-linux-arm64-musl": "0.15.0-snapshot-64a831c-20241207003504",
"@rolldown/binding-linux-x64-musl": "0.15.0-snapshot-64a831c-20241207003504",
"@rolldown/binding-wasm32-wasi": "0.15.0-snapshot-64a831c-20241207003504",
"@rolldown/binding-win32-arm64-msvc": "0.15.0-snapshot-64a831c-20241207003504",
"@rolldown/binding-win32-ia32-msvc": "0.15.0-snapshot-64a831c-20241207003504",
"@rolldown/binding-win32-x64-msvc": "0.15.0-snapshot-64a831c-20241207003504",
"@rolldown/binding-linux-x64-gnu": "0.15.0-snapshot-64a831c-20241207003504"
},

@@ -133,0 +133,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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc