Comparing version 0.13.2-snapshot-3777bfb-20240913003043 to 0.13.2-snapshot-3899128-20240926003201
@@ -160,2 +160,7 @@ type MaybePromise<T> = T | Promise<T> | ||
export interface BindingExperimentalOptions { | ||
strictExecutionOrder?: boolean | ||
disableLiveBindings?: boolean | ||
} | ||
export interface BindingGeneralHookFilter { | ||
@@ -240,2 +245,3 @@ include?: Array<BindingStringOrRegex> | ||
inject?: Array<BindingInjectImportNamed | BindingInjectImportNamespace> | ||
experimental?: BindingExperimentalOptions | ||
} | ||
@@ -430,2 +436,3 @@ | ||
jsxInject?: string | ||
targets?: string | ||
} | ||
@@ -443,6 +450,15 @@ | ||
/** 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 +484,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 +502,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 +517,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 | ||
@@ -702,3 +720,3 @@ */ | ||
*/ | ||
declaration?: boolean | ||
declaration?: IsolatedDeclarationsOptions | ||
/** | ||
@@ -705,0 +723,0 @@ * Rewrite or remove TypeScript import/export declaration extensions. |
@@ -55,6 +55,12 @@ import type { ObjectSchema } from './types'; | ||
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; | ||
}>>; | ||
@@ -137,5 +143,13 @@ define: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; | ||
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; | ||
@@ -159,3 +173,2 @@ cwd?: string | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
sourcemapIgnoreList?: boolean | undefined; | ||
extend?: boolean | undefined; | ||
@@ -173,9 +186,2 @@ esModule?: boolean | undefined; | ||
minShareCount?: number | undefined; | ||
groups?: { | ||
name: string; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
priority?: number | undefined; | ||
}[] | undefined; | ||
} | undefined; | ||
@@ -204,3 +210,2 @@ version?: boolean | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
sourcemapIgnoreList?: boolean | undefined; | ||
extend?: boolean | undefined; | ||
@@ -218,9 +223,2 @@ esModule?: boolean | undefined; | ||
minShareCount?: number | undefined; | ||
groups?: { | ||
name: string; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
priority?: number | undefined; | ||
}[] | undefined; | ||
} | undefined; | ||
@@ -227,0 +225,0 @@ version?: boolean | undefined; |
@@ -6,9 +6,10 @@ import type { LoggingFunction, LogHandler, RollupError } from '../rollup'; | ||
import type { NormalizedInputOptions } from '../options/normalized-input-options'; | ||
export interface MinimalPluginContext { | ||
export declare class MinimalPluginContext { | ||
debug: LoggingFunction; | ||
error: (error: RollupError | string) => never; | ||
info: LoggingFunction; | ||
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"]; |
@@ -54,6 +54,12 @@ import type { RolldownPluginRec } from '../plugin'; | ||
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; | ||
}>>; | ||
@@ -88,2 +94,4 @@ define: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; | ||
enableComposingJsPlugins?: boolean | undefined; | ||
strictExecutionOrder?: boolean | undefined; | ||
disableLiveBindings?: boolean | undefined; | ||
} | undefined; | ||
@@ -118,2 +126,4 @@ define?: Record<string, string> | undefined; | ||
enableComposingJsPlugins?: boolean | undefined; | ||
strictExecutionOrder?: boolean | undefined; | ||
disableLiveBindings?: boolean | undefined; | ||
} | undefined; | ||
@@ -171,6 +181,12 @@ define?: Record<string, 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; | ||
}>>; | ||
@@ -177,0 +193,0 @@ define: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; |
@@ -203,5 +203,13 @@ import type { PreRenderedChunk, RenderedChunk } from '../binding'; | ||
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; | ||
@@ -216,3 +224,2 @@ banner?: string | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
sourcemapIgnoreList?: boolean | undefined; | ||
extend?: boolean | undefined; | ||
@@ -230,9 +237,2 @@ esModule?: boolean | undefined; | ||
minShareCount?: number | undefined; | ||
groups?: { | ||
name: string; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
priority?: number | undefined; | ||
}[] | undefined; | ||
} | undefined; | ||
@@ -249,3 +249,2 @@ }, { | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
sourcemapIgnoreList?: boolean | undefined; | ||
extend?: boolean | undefined; | ||
@@ -263,9 +262,2 @@ esModule?: boolean | undefined; | ||
minShareCount?: number | undefined; | ||
groups?: { | ||
name: string; | ||
minSize?: number | undefined; | ||
minShareCount?: number | undefined; | ||
test?: string | undefined; | ||
priority?: number | undefined; | ||
}[] | undefined; | ||
} | undefined; | ||
@@ -272,0 +264,0 @@ }>; |
@@ -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; |
{ | ||
"name": "rolldown", | ||
"version": "0.13.2-snapshot-3777bfb-20240913003043", | ||
"version": "0.13.2-snapshot-3899128-20240926003201", | ||
"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-3777bfb-20240913003043" | ||
"rolldown": "0.13.2-snapshot-3899128-20240926003201" | ||
}, | ||
"optionalDependencies": { | ||
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-3777bfb-20240913003043", | ||
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-3777bfb-20240913003043", | ||
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-3777bfb-20240913003043", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-3777bfb-20240913003043", | ||
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-3777bfb-20240913003043", | ||
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-3777bfb-20240913003043", | ||
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-3777bfb-20240913003043", | ||
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-3777bfb-20240913003043", | ||
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-3777bfb-20240913003043", | ||
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-3777bfb-20240913003043", | ||
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-3777bfb-20240913003043", | ||
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-3777bfb-20240913003043" | ||
"@rolldown/binding-darwin-arm64": "0.13.2-snapshot-3899128-20240926003201", | ||
"@rolldown/binding-darwin-x64": "0.13.2-snapshot-3899128-20240926003201", | ||
"@rolldown/binding-freebsd-x64": "0.13.2-snapshot-3899128-20240926003201", | ||
"@rolldown/binding-linux-arm64-gnu": "0.13.2-snapshot-3899128-20240926003201", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.13.2-snapshot-3899128-20240926003201", | ||
"@rolldown/binding-linux-arm64-musl": "0.13.2-snapshot-3899128-20240926003201", | ||
"@rolldown/binding-linux-x64-gnu": "0.13.2-snapshot-3899128-20240926003201", | ||
"@rolldown/binding-linux-x64-musl": "0.13.2-snapshot-3899128-20240926003201", | ||
"@rolldown/binding-wasm32-wasi": "0.13.2-snapshot-3899128-20240926003201", | ||
"@rolldown/binding-win32-arm64-msvc": "0.13.2-snapshot-3899128-20240926003201", | ||
"@rolldown/binding-win32-ia32-msvc": "0.13.2-snapshot-3899128-20240926003201", | ||
"@rolldown/binding-win32-x64-msvc": "0.13.2-snapshot-3899128-20240926003201" | ||
}, | ||
@@ -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
641046
15857