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

rolldown

Package Overview
Dependencies
Maintainers
3
Versions
319
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.14.0-snapshot-3912c3a-20241108003352 to 0.14.0-snapshot-72ed6ce-20241113003420

dist/shared/src_index-asUfC1o5.cjs

10

dist/types/binding.d.ts

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

export declare class BindingPluginContext {
load(specifier: string, fn: () => void): Promise<void>
resolve(specifier: string, importer?: string | undefined | null, extraOptions?: BindingPluginContextResolveOptions | undefined | null): Promise<BindingPluginContextResolvedId | null>

@@ -284,2 +285,8 @@ emitFile(file: BindingEmittedAsset): string

export interface BindingModuleSideEffectsRule {
test?: RegExp | undefined
sideEffects: boolean
external?: boolean | undefined
}
export interface BindingNotifyOption {

@@ -307,2 +314,3 @@ pollInterval?: number

globals?: Record<string, string>
hashCharacters?: 'base64' | 'base36' | 'hex'
inlineDynamicImports?: boolean

@@ -441,3 +449,3 @@ intro?: (chunk: RenderedChunk) => MaybePromise<VoidNullable<string>>

export interface BindingTreeshake {
moduleSideEffects: string
moduleSideEffects: boolean | BindingModuleSideEffectsRule[]
}

@@ -444,0 +452,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">]>>;

@@ -142,2 +208,3 @@ 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>>;

exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>;
hashCharacters: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"base64">, z.ZodLiteral<"base36">]>, z.ZodLiteral<"hex">]>>;
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">]>>;

@@ -174,11 +241,11 @@ sourcemap: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"inline">]>, z.ZodLiteral<"hidden">]>>;

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 +258,5 @@ }>, "many">>;

name: string;
test?: string | RegExp | undefined;
minSize?: number | undefined;
minShareCount?: number | undefined;
test?: string | RegExp | undefined;
priority?: number | undefined;

@@ -202,5 +269,5 @@ }[] | undefined;

name: string;
test?: string | RegExp | undefined;
minSize?: number | undefined;
minShareCount?: number | undefined;
test?: string | RegExp | undefined;
priority?: number | undefined;

@@ -227,4 +294,4 @@ }[] | undefined;

}>, "sourcemapIgnoreList" | "sourcemapPathTransform">>, "strict", z.ZodTypeAny, {
external?: string[] | undefined;
treeshake?: boolean | undefined;
external?: string[] | undefined;
cwd?: string | undefined;

@@ -234,3 +301,3 @@ platform?: "node" | "browser" | "neutral" | undefined;

logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
moduleTypes?: Record<string, "jsx" | "js" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
define?: Record<string, string> | undefined;

@@ -262,2 +329,3 @@ inject?: Record<string, string> | undefined;

dir?: string | undefined;
hashCharacters?: "base64" | "base36" | "hex" | undefined;
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;

@@ -280,4 +348,4 @@ sourcemap?: boolean | "inline" | "hidden" | undefined;

}, {
external?: string[] | undefined;
treeshake?: boolean | undefined;
external?: string[] | undefined;
cwd?: string | undefined;

@@ -287,3 +355,3 @@ platform?: "node" | "browser" | "neutral" | undefined;

logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
moduleTypes?: Record<string, "jsx" | "js" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
define?: Record<string, string> | undefined;

@@ -315,2 +383,3 @@ inject?: Record<string, string> | undefined;

dir?: string | undefined;
hashCharacters?: "base64" | "base36" | "hex" | undefined;
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;

@@ -317,0 +386,0 @@ sourcemap?: boolean | "inline" | "hidden" | 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?: {

@@ -155,3 +242,3 @@ modules?: string[] | undefined;

onwarn?: ((args_0: any, args_1: (args_0: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
moduleTypes?: Record<string, "jsx" | "js" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
experimental?: {

@@ -186,6 +273,28 @@ strictExecutionOrder?: boolean | 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?: {

@@ -210,3 +319,3 @@ modules?: string[] | undefined;

onwarn?: ((args_0: any, args_1: (args_0: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
moduleTypes?: Record<string, "jsx" | "js" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
experimental?: {

@@ -285,3 +394,69 @@ strictExecutionOrder?: boolean | 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">]>>;

@@ -372,4 +547,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;

@@ -379,3 +554,3 @@ platform?: "node" | "browser" | "neutral" | undefined;

logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
moduleTypes?: Record<string, "jsx" | "js" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
define?: Record<string, string> | undefined;

@@ -394,4 +569,4 @@ inject?: Record<string, string> | undefined;

}, {
external?: string[] | undefined;
treeshake?: boolean | undefined;
external?: string[] | undefined;
cwd?: string | undefined;

@@ -401,3 +576,3 @@ platform?: "node" | "browser" | "neutral" | undefined;

logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
moduleTypes?: Record<string, "jsx" | "js" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
define?: Record<string, string> | undefined;

@@ -404,0 +579,0 @@ inject?: Record<string, string> | undefined;

11

dist/types/options/output-options.d.ts

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

exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>;
hashCharacters: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"base64">, z.ZodLiteral<"base36">]>, z.ZodLiteral<"hex">]>>;
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">]>>;

@@ -40,11 +41,11 @@ sourcemap: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"inline">]>, z.ZodLiteral<"hidden">]>>;

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 +58,5 @@ }>, "many">>;

name: string;
test?: string | RegExp | undefined;
minSize?: number | undefined;
minShareCount?: number | undefined;
test?: string | RegExp | undefined;
priority?: number | undefined;

@@ -68,5 +69,5 @@ }[] | undefined;

name: string;
test?: string | RegExp | undefined;
minSize?: number | undefined;
minShareCount?: number | undefined;
test?: string | RegExp | undefined;
priority?: number | undefined;

@@ -106,2 +107,3 @@ }[] | undefined;

dir?: string | undefined;
hashCharacters?: "base64" | "base36" | "hex" | undefined;
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;

@@ -134,2 +136,3 @@ sourcemap?: boolean | "inline" | "hidden" | undefined;

dir?: string | undefined;
hashCharacters?: "base64" | "base36" | "hex" | undefined;
format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;

@@ -136,0 +139,0 @@ sourcemap?: boolean | "inline" | "hidden" | 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 {};
import type { BindingPluginContext } from '../binding';
import type { NormalizedInputOptions } from '../options/normalized-input-options';
import type { CustomPluginOptions, Plugin, ResolvedId } from './index';
import type { CustomPluginOptions, ModuleOptions, Plugin, ResolvedId } from './index';
import { MinimalPluginContext } from '../log/logger';

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

import { SYMBOL_FOR_RESOLVE_CALLER_THAT_SKIP_SELF } from '../constants/plugin-context';
import { PartialNull } from '../types/utils';
export interface EmittedAsset {

@@ -26,2 +27,6 @@ type: 'asset';

export declare class PluginContext extends MinimalPluginContext {
readonly load: (options: {
id: string;
resolveDependencies?: boolean;
} & Partial<PartialNull<ModuleOptions>>) => Promise<ModuleInfo>;
readonly resolve: (source: string, importer?: string, options?: PluginContextResolveOptions) => Promise<ResolvedId | null>;

@@ -28,0 +33,0 @@ readonly emitFile: (file: EmittedAsset) => string;

@@ -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>;

@@ -11,2 +11,3 @@ import type { StringOrRegExp } from './utils';

exports?: 'auto' | 'named' | 'default' | 'none';
hashCharacters?: 'base64' | 'base36' | 'hex';
format?: ModuleFormat;

@@ -13,0 +14,0 @@ sourcemap?: boolean | 'inline' | 'hidden';

@@ -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;

@@ -30,3 +30,6 @@ import { BindingWatcher } from './binding';

} | {
code: 'ERROR'; /** error: RollupError; result: RollupBuild | null **/
code: 'ERROR';
error: {
message: string;
};
};
{
"name": "rolldown",
"version": "0.14.0-snapshot-3912c3a-20241108003352",
"version": "0.14.0-snapshot-72ed6ce-20241113003420",
"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",

@@ -107,18 +108,18 @@ "unbuild": "^2.0.0",

"zod-to-json-schema": "^3.23.2",
"@rolldown/testing": "0.0.1",
"rolldown": "0.14.0-snapshot-3912c3a-20241108003352"
"rolldown": "0.14.0-snapshot-72ed6ce-20241113003420",
"@rolldown/testing": "0.0.1"
},
"optionalDependencies": {
"@rolldown/binding-darwin-arm64": "0.14.0-snapshot-3912c3a-20241108003352",
"@rolldown/binding-freebsd-x64": "0.14.0-snapshot-3912c3a-20241108003352",
"@rolldown/binding-linux-arm64-gnu": "0.14.0-snapshot-3912c3a-20241108003352",
"@rolldown/binding-darwin-x64": "0.14.0-snapshot-3912c3a-20241108003352",
"@rolldown/binding-linux-arm-gnueabihf": "0.14.0-snapshot-3912c3a-20241108003352",
"@rolldown/binding-linux-arm64-musl": "0.14.0-snapshot-3912c3a-20241108003352",
"@rolldown/binding-linux-x64-gnu": "0.14.0-snapshot-3912c3a-20241108003352",
"@rolldown/binding-wasm32-wasi": "0.14.0-snapshot-3912c3a-20241108003352",
"@rolldown/binding-linux-x64-musl": "0.14.0-snapshot-3912c3a-20241108003352",
"@rolldown/binding-win32-arm64-msvc": "0.14.0-snapshot-3912c3a-20241108003352",
"@rolldown/binding-win32-ia32-msvc": "0.14.0-snapshot-3912c3a-20241108003352",
"@rolldown/binding-win32-x64-msvc": "0.14.0-snapshot-3912c3a-20241108003352"
"@rolldown/binding-darwin-arm64": "0.14.0-snapshot-72ed6ce-20241113003420",
"@rolldown/binding-darwin-x64": "0.14.0-snapshot-72ed6ce-20241113003420",
"@rolldown/binding-linux-arm-gnueabihf": "0.14.0-snapshot-72ed6ce-20241113003420",
"@rolldown/binding-freebsd-x64": "0.14.0-snapshot-72ed6ce-20241113003420",
"@rolldown/binding-linux-arm64-gnu": "0.14.0-snapshot-72ed6ce-20241113003420",
"@rolldown/binding-linux-x64-musl": "0.14.0-snapshot-72ed6ce-20241113003420",
"@rolldown/binding-linux-arm64-musl": "0.14.0-snapshot-72ed6ce-20241113003420",
"@rolldown/binding-win32-arm64-msvc": "0.14.0-snapshot-72ed6ce-20241113003420",
"@rolldown/binding-linux-x64-gnu": "0.14.0-snapshot-72ed6ce-20241113003420",
"@rolldown/binding-win32-ia32-msvc": "0.14.0-snapshot-72ed6ce-20241113003420",
"@rolldown/binding-wasm32-wasi": "0.14.0-snapshot-72ed6ce-20241113003420",
"@rolldown/binding-win32-x64-msvc": "0.14.0-snapshot-72ed6ce-20241113003420"
},

@@ -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

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