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

rolldown

Package Overview
Dependencies
Maintainers
0
Versions
368
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.13.2-snapshot-04deb7f-20240907003022 to 0.13.2-snapshot-2f0cbd0-20241003003248

dist/shared/chunk-JoMxl5V2.cjs

62

dist/types/binding.d.ts

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

scan(): Promise<void>
close(): Promise<void>
}

@@ -160,2 +161,7 @@

export interface BindingExperimentalOptions {
strictExecutionOrder?: boolean
disableLiveBindings?: boolean
}
export interface BindingGeneralHookFilter {

@@ -240,2 +246,4 @@ include?: Array<BindingStringOrRegex>

inject?: Array<BindingInjectImportNamed | BindingInjectImportNamespace>
experimental?: BindingExperimentalOptions
profilerNames?: boolean
}

@@ -352,2 +360,4 @@

writeBundleMeta?: BindingPluginHookMeta
closeBundle?: (ctx: BindingPluginContext) => MaybePromise<VoidNullable>
closeBundleMeta?: BindingPluginHookMeta
banner?: (ctx: BindingPluginContext, chunk: RenderedChunk) => void

@@ -390,2 +400,3 @@ bannerMeta?: BindingPluginHookMeta

extensions?: Array<string>
extensionAlias?: Array<ExtensionAliasItem>
mainFields?: Array<string>

@@ -430,2 +441,3 @@ mainFiles?: Array<string>

jsxInject?: string
targets?: string
}

@@ -442,7 +454,21 @@

export interface ExtensionAliasItem {
target: string
replacements: Array<string>
}
/** TypeScript Isolated Declarations for Standalone DTS Emit */
export declare function isolatedDeclaration(filename: string, sourceText: string, options: IsolatedDeclarationsOptions): IsolatedDeclarationsResult
export declare function isolatedDeclaration(filename: string, sourceText: string, options?: IsolatedDeclarationsOptions | undefined | null): IsolatedDeclarationsResult
export interface IsolatedDeclarationsOptions {
sourcemap: boolean
/**
* Do not emit declarations for code that has an @internal annotation in its JSDoc comment.
* This is an internal compiler option; use at your own risk, because the compiler does not check that the result is valid.
*
* Default: `false`
*
* See <https://www.typescriptlang.org/tsconfig/#stripInternal>
*/
stripInternal?: boolean
sourcemap?: boolean
}

@@ -468,3 +494,3 @@

*
* @see [@babel/plugin-transform-react-jsx](https://babeljs.io/docs/babel-plugin-transform-react-jsx#options)
* @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx#options}
*/

@@ -486,3 +512,3 @@ export interface ReactBindingOptions {

*
* @see [@babel/plugin-transform-react-jsx-development](https://babeljs.io/docs/babel-plugin-transform-react-jsx-development)
* @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx-development}
*/

@@ -501,6 +527,8 @@ development?: boolean

/**
* Enables [@babel/plugin-transform-react-pure-annotations](https://babeljs.io/docs/en/babel-plugin-transform-react-pure-annotations).
* Enables `@babel/plugin-transform-react-pure-annotations`.
*
* It will mark top-level React method calls as pure for tree shaking.
*
* @see {@link https://babeljs.io/docs/en/babel-plugin-transform-react-pure-annotations}
*
* @default true

@@ -551,4 +579,22 @@ */

useSpread?: boolean
/** Enable react fast refresh transform */
refresh?: ReactRefreshBindingOptions
}
export interface ReactRefreshBindingOptions {
/**
* Specify the identifier of the refresh registration variable.
*
* @default `$RefreshReg$`.
*/
refreshReg?: string
/**
* Specify the identifier of the refresh signature variable.
*
* @default `$RefreshSig$`.
*/
refreshSig?: string
emitFullSignatures?: boolean
}
export declare function registerPlugins(id: number, plugins: Array<BindingPluginWithIndex>): void

@@ -572,6 +618,8 @@

mappings?: string
names?: Array<string>
sourceRoot?: string
sources?: Array<string | undefined | null>
sourcesContent?: Array<string | undefined | null>
names?: Array<string>
version: number
x_google_ignoreList?: Array<number>
}

@@ -684,3 +732,3 @@

*/
declaration?: boolean
declaration?: IsolatedDeclarationsOptions
/**

@@ -687,0 +735,0 @@ * Rewrite or remove TypeScript import/export declaration extensions.

50

dist/types/cli/arguments/schema.d.ts

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

conditionNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
extensionAlias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
exportsFields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;

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

conditionNames?: string[] | undefined;
extensionAlias?: Record<string, string[]> | undefined;
exportsFields?: string[][] | undefined;

@@ -39,2 +41,3 @@ extensions?: string[] | undefined;

conditionNames?: string[] | undefined;
extensionAlias?: Record<string, string[]> | undefined;
exportsFields?: string[][] | undefined;

@@ -58,9 +61,16 @@ extensions?: string[] | undefined;

enableComposingJsPlugins: z.ZodOptional<z.ZodBoolean>;
strictExecutionOrder: z.ZodOptional<z.ZodBoolean>;
disableLiveBindings: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
enableComposingJsPlugins?: boolean | undefined;
strictExecutionOrder?: boolean | undefined;
disableLiveBindings?: boolean | undefined;
}, {
enableComposingJsPlugins?: boolean | undefined;
strictExecutionOrder?: boolean | undefined;
disableLiveBindings?: boolean | undefined;
}>>;
define: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>>;
profilerNames: z.ZodOptional<z.ZodBoolean>;
}, {

@@ -70,3 +80,3 @@ external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;

treeshake: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental">>, Omit<z.objectUtil.extendShape<{
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames">>, Omit<z.objectUtil.extendShape<{
dir: z.ZodOptional<z.ZodString>;

@@ -141,5 +151,13 @@ exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>;

esModule: z.ZodOptional<z.ZodBoolean>;
sourcemapIgnoreList: z.ZodOptional<z.ZodBoolean>;
sourcemapPathTransform: z.ZodOptional<z.ZodUndefined>;
}>, "sourcemapPathTransform">>, "strict", z.ZodTypeAny, {
advancedChunks: z.ZodOptional<z.ZodObject<{
minSize: z.ZodOptional<z.ZodNumber>;
minShareCount: z.ZodOptional<z.ZodNumber>;
}, "strict", z.ZodTypeAny, {
minSize?: number | undefined;
minShareCount?: number | undefined;
}, {
minSize?: number | undefined;
minShareCount?: number | undefined;
}>>;
}>, "sourcemapIgnoreList" | "sourcemapPathTransform">>, "strict", z.ZodTypeAny, {
external?: string[] | undefined;

@@ -163,7 +181,6 @@ cwd?: string | undefined;

sourcemap?: boolean | "inline" | "hidden" | undefined;
sourcemapIgnoreList?: boolean | undefined;
extend?: boolean | undefined;
esModule?: boolean | undefined;
entryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args_1: unknown[]) => string) | undefined;
chunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args_1: unknown[]) => string) | undefined;
entryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
chunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
assetFileNames?: string | undefined;

@@ -177,9 +194,2 @@ minify?: boolean | undefined;

minShareCount?: number | undefined;
groups?: {
name: string;
minSize?: number | undefined;
minShareCount?: number | undefined;
test?: string | undefined;
priority?: number | undefined;
}[] | undefined;
} | undefined;

@@ -208,7 +218,6 @@ version?: boolean | undefined;

sourcemap?: boolean | "inline" | "hidden" | undefined;
sourcemapIgnoreList?: boolean | undefined;
extend?: boolean | undefined;
esModule?: boolean | undefined;
entryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args_1: unknown[]) => string) | undefined;
chunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args_1: unknown[]) => string) | undefined;
entryFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
chunkFileNames?: string | ((args_0: import("../..").PreRenderedChunk, ...args: unknown[]) => string) | undefined;
assetFileNames?: string | undefined;

@@ -222,9 +231,2 @@ minify?: boolean | undefined;

minShareCount?: number | undefined;
groups?: {
name: string;
minSize?: number | undefined;
minShareCount?: number | undefined;
test?: string | undefined;
priority?: number | undefined;
}[] | undefined;
} | undefined;

@@ -231,0 +233,0 @@ version?: boolean | undefined;

import { Plugin } from '../plugin';
export declare const ENUMERATED_PLUGIN_HOOK_NAMES: readonly ["options", "buildStart", "resolveId", "load", "transform", "moduleParsed", "augmentChunkHash", "buildEnd", "onLog", "resolveDynamicImport", "generateBundle", "outputOptions", "renderChunk", "renderStart", "renderError", "writeBundle", "footer", "banner", "intro", "outro"];
export declare const ENUMERATED_PLUGIN_HOOK_NAMES: readonly ["options", "buildStart", "resolveId", "load", "transform", "moduleParsed", "augmentChunkHash", "buildEnd", "onLog", "resolveDynamicImport", "generateBundle", "outputOptions", "renderChunk", "renderStart", "renderError", "writeBundle", "footer", "banner", "intro", "outro", "closeBundle"];
/**

@@ -4,0 +4,0 @@ * Names of all properties in a `Plugin` object. Includes `name` and `api`.

export { defineParallelPlugin } from './plugin/parallel-plugin';
export { experimental_scan as scan } from './rolldown';
export { transform } from './binding';
export type { TransformOptions, TransformResult } from './binding';
export { composeJsPlugins as composePlugins } from './utils/compose-js-plugins';
export { modulePreloadPolyfillPlugin, dynamicImportVarsPlugin, wasmHelperPlugin, wasmFallbackPlugin, importGlobPlugin, manifestPlugin, loadFallbackPlugin, transformPlugin, aliasPlugin, jsonPlugin, buildImportAnalysisPlugin, replacePlugin, } from './plugin/builtin-plugin';

@@ -5,3 +5,3 @@ import { RolldownOutput, RolldownOutputAsset, RolldownOutputChunk, SourceMap } from './types/rolldown-output';

import type { RolldownOptions } from './types/rolldown-options';
import type { AsyncPluginHooks, CustomPluginOptions, FunctionPluginHooks, ImportKind, LoadResult, ModuleOptions, ObjectHook, ParallelPluginHooks, PartialResolvedId, Plugin, RolldownPlugin, ResolveIdResult, ResolvedId, SourceDescription, TransformResult } from './plugin';
import type { AsyncPluginHooks, CustomPluginOptions, FunctionPluginHooks, ImportKind, LoadResult, ModuleOptions, ModuleType, ObjectHook, ParallelPluginHooks, PartialResolvedId, Plugin, RolldownPlugin, ResolveIdResult, ResolvedId, SourceDescription, TransformResult } from './plugin';
import { DefineParallelPluginResult } from './plugin/parallel-plugin';

@@ -24,4 +24,4 @@ import { defineConfig } from './utils/define-config';

export declare const VERSION: string;
export type { RolldownOutputAsset, RolldownOutputChunk, RolldownOptions, RolldownOutput, RolldownBuild, InputOptions, NormalizedInputOptions, OutputOptions, NormalizedOutputOptions, Plugin, RolldownPlugin, DefineParallelPluginResult, ConfigExport, ImportKind, InputOption, ExternalOption, ModuleFormat, 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, };
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, };
export type { RolldownOutput as RollupOutput, RolldownOptions as RollupOptions, RolldownBuild as RollupBuild, RolldownOutputChunk as OutputChunk, RolldownOutputAsset as OutputAsset, };
export type { RollupError, RollupLog, LoggingFunction } from './rollup';

@@ -6,9 +6,16 @@ import type { LoggingFunction, LogHandler, RollupError } from '../rollup';

import type { NormalizedInputOptions } from '../options/normalized-input-options';
export interface MinimalPluginContext {
export interface PluginContextMeta {
rollupVersion: string;
rolldownVersion: string;
watchMode: boolean;
}
export declare class MinimalPluginContext {
debug: LoggingFunction;
error: (error: RollupError | string) => never;
info: LoggingFunction;
meta: PluginContextMeta;
warn: LoggingFunction;
readonly error: (error: RollupError | string) => never;
constructor(options: NormalizedInputOptions, plugin: Plugin);
}
export declare function getLogger(plugins: Plugin[], onLog: LogHandler, logLevel: LogLevelOption): LogHandler;
export declare const getOnLog: (config: InputOptions, logLevel: LogLevelOption, printLog?: LogHandler) => NormalizedInputOptions["onLog"];

@@ -14,2 +14,3 @@ import type { RolldownPluginRec } from '../plugin';

conditionNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
extensionAlias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
exportsFields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;

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

conditionNames?: string[] | undefined;
extensionAlias?: Record<string, string[]> | undefined;
exportsFields?: string[][] | undefined;

@@ -38,2 +40,3 @@ extensions?: string[] | undefined;

conditionNames?: string[] | undefined;
extensionAlias?: Record<string, string[]> | undefined;
exportsFields?: string[][] | undefined;

@@ -57,13 +60,20 @@ extensions?: string[] | undefined;

enableComposingJsPlugins: z.ZodOptional<z.ZodBoolean>;
strictExecutionOrder: z.ZodOptional<z.ZodBoolean>;
disableLiveBindings: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
enableComposingJsPlugins?: boolean | undefined;
strictExecutionOrder?: boolean | undefined;
disableLiveBindings?: boolean | undefined;
}, {
enableComposingJsPlugins?: boolean | undefined;
strictExecutionOrder?: boolean | undefined;
disableLiveBindings?: boolean | undefined;
}>>;
define: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>>;
profilerNames: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
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_3: unknown[]) => boolean | void | null | undefined) | undefined;
external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args: unknown[]) => boolean | void | null | undefined) | undefined;
resolve?: {

@@ -73,2 +83,3 @@ alias?: Record<string, string> | undefined;

conditionNames?: string[] | undefined;
extensionAlias?: Record<string, string[]> | undefined;
exportsFields?: string[][] | undefined;

@@ -87,14 +98,17 @@ extensions?: string[] | undefined;

logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args_2: unknown[]) => unknown, ...args_3: unknown[]) => unknown) | undefined;
onwarn?: ((args_0: any, args_1: (args_0: any, ...args_1: unknown[]) => unknown, ...args_2: unknown[]) => unknown) | undefined;
onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
onwarn?: ((args_0: any, args_1: (args_0: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty"> | undefined;
experimental?: {
enableComposingJsPlugins?: boolean | undefined;
strictExecutionOrder?: boolean | undefined;
disableLiveBindings?: boolean | undefined;
} | undefined;
define?: Record<string, string> | undefined;
inject?: Record<string, string | [string, string]> | undefined;
profilerNames?: boolean | 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_3: unknown[]) => boolean | void | null | undefined) | undefined;
external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args: unknown[]) => boolean | void | null | undefined) | undefined;
resolve?: {

@@ -104,2 +118,3 @@ alias?: Record<string, string> | undefined;

conditionNames?: string[] | undefined;
extensionAlias?: Record<string, string[]> | undefined;
exportsFields?: string[][] | undefined;

@@ -118,10 +133,13 @@ extensions?: string[] | undefined;

logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args_2: unknown[]) => unknown, ...args_3: unknown[]) => unknown) | undefined;
onwarn?: ((args_0: any, args_1: (args_0: any, ...args_1: unknown[]) => unknown, ...args_2: unknown[]) => unknown) | undefined;
onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
onwarn?: ((args_0: any, args_1: (args_0: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
moduleTypes?: Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty"> | undefined;
experimental?: {
enableComposingJsPlugins?: boolean | undefined;
strictExecutionOrder?: boolean | undefined;
disableLiveBindings?: boolean | undefined;
} | undefined;
define?: Record<string, string> | undefined;
inject?: Record<string, string | [string, string]> | undefined;
profilerNames?: boolean | undefined;
}>;

@@ -136,2 +154,3 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{

conditionNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
extensionAlias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
exportsFields: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;

@@ -148,2 +167,3 @@ extensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;

conditionNames?: string[] | undefined;
extensionAlias?: Record<string, string[]> | undefined;
exportsFields?: string[][] | undefined;

@@ -160,2 +180,3 @@ extensions?: string[] | undefined;

conditionNames?: string[] | undefined;
extensionAlias?: Record<string, string[]> | undefined;
exportsFields?: string[][] | undefined;

@@ -179,9 +200,16 @@ extensions?: string[] | undefined;

enableComposingJsPlugins: z.ZodOptional<z.ZodBoolean>;
strictExecutionOrder: z.ZodOptional<z.ZodBoolean>;
disableLiveBindings: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
enableComposingJsPlugins?: boolean | undefined;
strictExecutionOrder?: boolean | undefined;
disableLiveBindings?: boolean | undefined;
}, {
enableComposingJsPlugins?: boolean | undefined;
strictExecutionOrder?: boolean | undefined;
disableLiveBindings?: boolean | undefined;
}>>;
define: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>>;
profilerNames: z.ZodOptional<z.ZodBoolean>;
}, {

@@ -191,3 +219,3 @@ external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;

treeshake: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental">, "strict", z.ZodTypeAny, {
}>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames">, "strict", z.ZodTypeAny, {
external?: string[] | undefined;

@@ -194,0 +222,0 @@ cwd?: string | undefined;

@@ -69,6 +69,6 @@ import type { PreRenderedChunk, RenderedChunk } from '../binding';

}, "strict", z.ZodTypeAny, {
footer?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
banner?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
intro?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
outro?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
footer?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined;
banner?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined;
intro?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined;
outro?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined;
name?: string | undefined;

@@ -83,4 +83,4 @@ exports?: "auto" | "named" | "default" | "none" | undefined;

esModule?: boolean | "if-default-prop" | undefined;
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined;
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined;
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
assetFileNames?: string | undefined;

@@ -103,6 +103,6 @@ minify?: boolean | undefined;

}, {
footer?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
banner?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
intro?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
outro?: string | ((args_0: RenderedChunk, ...args_1: unknown[]) => string | Promise<string>) | undefined;
footer?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined;
banner?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined;
intro?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined;
outro?: string | ((args_0: RenderedChunk, ...args: unknown[]) => string | Promise<string>) | undefined;
name?: string | undefined;

@@ -117,4 +117,4 @@ exports?: "auto" | "named" | "default" | "none" | undefined;

esModule?: boolean | "if-default-prop" | undefined;
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined;
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined;
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
assetFileNames?: string | undefined;

@@ -207,5 +207,13 @@ minify?: boolean | undefined;

esModule: z.ZodOptional<z.ZodBoolean>;
sourcemapIgnoreList: z.ZodOptional<z.ZodBoolean>;
sourcemapPathTransform: z.ZodOptional<z.ZodUndefined>;
}>, "sourcemapPathTransform">, "strict", z.ZodTypeAny, {
advancedChunks: z.ZodOptional<z.ZodObject<{
minSize: z.ZodOptional<z.ZodNumber>;
minShareCount: z.ZodOptional<z.ZodNumber>;
}, "strict", z.ZodTypeAny, {
minSize?: number | undefined;
minShareCount?: number | undefined;
}, {
minSize?: number | undefined;
minShareCount?: number | undefined;
}>>;
}>, "sourcemapIgnoreList" | "sourcemapPathTransform">, "strict", z.ZodTypeAny, {
footer?: string | undefined;

@@ -220,7 +228,6 @@ banner?: string | undefined;

sourcemap?: boolean | "inline" | "hidden" | undefined;
sourcemapIgnoreList?: boolean | undefined;
extend?: boolean | undefined;
esModule?: boolean | undefined;
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined;
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined;
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
assetFileNames?: string | undefined;

@@ -234,9 +241,2 @@ minify?: boolean | undefined;

minShareCount?: number | undefined;
groups?: {
name: string;
minSize?: number | undefined;
minShareCount?: number | undefined;
test?: string | undefined;
priority?: number | undefined;
}[] | undefined;
} | undefined;

@@ -253,7 +253,6 @@ }, {

sourcemap?: boolean | "inline" | "hidden" | undefined;
sourcemapIgnoreList?: boolean | undefined;
extend?: boolean | undefined;
esModule?: boolean | undefined;
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined;
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args_1: unknown[]) => string) | undefined;
entryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
chunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
assetFileNames?: string | undefined;

@@ -267,9 +266,2 @@ minify?: boolean | undefined;

minShareCount?: number | undefined;
groups?: {
name: string;
minSize?: number | undefined;
minShareCount?: number | undefined;
test?: string | undefined;
priority?: number | undefined;
}[] | undefined;
} | undefined;

@@ -276,0 +268,0 @@ }>;

@@ -13,2 +13,3 @@ import type { BindingPluginOptions } from '../binding';

export declare function bindingifyWriteBundle(plugin: Plugin, options: NormalizedInputOptions, outputOptions: NormalizedOutputOptions, pluginContextData: PluginContextData): PluginHookWithBindingExt<BindingPluginOptions['writeBundle']>;
export declare function bindingifyCloseBundle(plugin: Plugin, options: NormalizedInputOptions, pluginContextData: PluginContextData): PluginHookWithBindingExt<BindingPluginOptions['closeBundle']>;
export declare function bindingifyBanner(plugin: Plugin, options: NormalizedInputOptions, pluginContextData: PluginContextData): PluginHookWithBindingExt<BindingPluginOptions['banner']>;

@@ -15,0 +16,0 @@ export declare function bindingifyFooter(plugin: Plugin, options: NormalizedInputOptions, pluginContextData: PluginContextData): PluginHookWithBindingExt<BindingPluginOptions['footer']>;

@@ -79,2 +79,3 @@ import type { BindingHookResolveIdExtraArgs, BindingTransformHookExtraArgs, RenderedChunk } from '../binding';

[DEFINED_HOOK_NAMES.writeBundle]: (this: PluginContext, outputOptions: NormalizedOutputOptions, bundle: OutputBundle) => void;
[DEFINED_HOOK_NAMES.closeBundle]: (this: PluginContext) => void;
}

@@ -81,0 +82,0 @@ export type PluginOrder = 'pre' | 'post' | null;

@@ -12,3 +12,3 @@ import { BindingPluginContext } from '../binding';

getModuleInfo(id: string, context: BindingPluginContext): ModuleInfo | null;
getModuleIds(context: BindingPluginContext): IterableIterator<string>;
getModuleIds(context: BindingPluginContext): ArrayIterator<string>;
saveResolveOptions(options: PluginContextResolveOptions): number;

@@ -15,0 +15,0 @@ getSavedResolveOptions(receipt: number): PluginContextResolveOptions | undefined;

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

import type { RollupError, LoggingFunction } from '../rollup';
import type { BindingPluginContext } from '../binding';
import type { NormalizedInputOptions } from '../options/normalized-input-options';
import type { CustomPluginOptions, Plugin, ResolvedId } from './index';
import { MinimalPluginContext } from '../log/logger';
import { AssetSource } from '../utils/asset-source';

@@ -24,7 +24,3 @@ import { ModuleInfo } from '../types/module-info';

}
export declare class PluginContext {
debug: LoggingFunction;
info: LoggingFunction;
warn: LoggingFunction;
readonly error: (error: RollupError | string) => never;
export declare class PluginContext extends MinimalPluginContext {
readonly resolve: (source: string, importer?: string, options?: PluginContextResolveOptions) => Promise<ResolvedId | null>;

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

@@ -9,3 +9,3 @@ import type { OutputOptions } from './options/output-options';

write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
destroy(): Promise<void>;
close(): Promise<void>;
}
{
"name": "rolldown",
"version": "0.13.2-snapshot-04deb7f-20240907003022",
"version": "0.13.2-snapshot-2f0cbd0-20241003003248",
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",

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

"@rolldown/testing": "0.0.1",
"rolldown": "0.13.2-snapshot-04deb7f-20240907003022"
"rolldown": "0.13.2-snapshot-2f0cbd0-20241003003248"
},
"optionalDependencies": {
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-04deb7f-20240907003022",
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-04deb7f-20240907003022",
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-04deb7f-20240907003022",
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-04deb7f-20240907003022",
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-04deb7f-20240907003022",
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-04deb7f-20240907003022",
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-04deb7f-20240907003022",
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-04deb7f-20240907003022",
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-04deb7f-20240907003022",
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-04deb7f-20240907003022",
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-04deb7f-20240907003022",
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-04deb7f-20240907003022"
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-2f0cbd0-20241003003248",
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-2f0cbd0-20241003003248",
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-2f0cbd0-20241003003248",
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-2f0cbd0-20241003003248",
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-2f0cbd0-20241003003248",
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-2f0cbd0-20241003003248",
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-2f0cbd0-20241003003248",
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-2f0cbd0-20241003003248",
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-2f0cbd0-20241003003248",
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-2f0cbd0-20241003003248",
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-2f0cbd0-20241003003248",
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-2f0cbd0-20241003003248"
},

@@ -140,3 +140,3 @@ "scripts": {

"# Scrips for checking #": "_",
"test": "cross-env ROLLDOWN_TEST=1 vitest run --reporter verbose --hideSkippedTests",
"test": "cross-env RUST_BACKTRACE=1 ROLLDOWN_TEST=1 vitest run --reporter verbose --hideSkippedTests",
"test:update": "vitest run -u",

@@ -143,0 +143,0 @@ "type-check": "tsc"

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

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