Comparing version 0.10.1-snapshot-1a28885-20240404002606 to 0.10.1-snapshot-97ea4b6-20240405002431
@@ -41,3 +41,3 @@ interface RenderedModule$1 { | ||
type NullValue$1 = null | undefined | void | ||
type MaybePromise$1<T> = T | Promise<T> | ||
type MaybePromise$2<T> = T | Promise<T> | ||
@@ -638,3 +638,3 @@ type PartialNull<T> = { | ||
type InputPluginOption = MaybePromise$1< | ||
type InputPluginOption = MaybePromise$2< | ||
Plugin$1 | NullValue$1 | false | InputPluginOption[] | ||
@@ -787,3 +787,3 @@ > | ||
type OutputPluginOption = MaybePromise$1< | ||
type OutputPluginOption = MaybePromise$2< | ||
OutputPlugin | NullValue$1 | false | OutputPluginOption[] | ||
@@ -1012,2 +1012,5 @@ > | ||
type MaybePromise$1<T> = T | Promise<T> | ||
type Nullable<T> = T | null | undefined | ||
type VoidNullable<T = void> = T | null | undefined | void | ||
declare class BindingOutputAsset { | ||
@@ -1044,2 +1047,11 @@ get fileName(): string | ||
interface BindingHookLoadOutput { | ||
code: string | ||
map?: string | ||
} | ||
interface BindingHookRenderChunkOutput { | ||
code: string | ||
} | ||
interface BindingHookResolveIdExtraOptions { | ||
@@ -1050,2 +1062,27 @@ isEntry: boolean | ||
interface BindingHookResolveIdOutput { | ||
id: string | ||
external?: boolean | ||
} | ||
interface BindingInputItem { | ||
name?: string | ||
import: string | ||
} | ||
interface BindingInputOptions { | ||
external?: | ||
| undefined | ||
| (( | ||
source: string, | ||
importer: string | undefined, | ||
isResolved: boolean, | ||
) => boolean) | ||
input: Array<BindingInputItem> | ||
plugins: Array<BindingPluginOptions> | ||
resolve?: BindingResolveOptions | ||
platform?: 'node' | 'browser' | 'neutral' | ||
cwd: string | ||
} | ||
interface BindingPluginContextResolveOptions { | ||
@@ -1055,2 +1092,27 @@ importKind: string | ||
interface BindingPluginOptions { | ||
name: string | ||
buildStart?: (ctx: BindingPluginContext) => MaybePromise$1<VoidNullable> | ||
resolveId?: ( | ||
specifier: string, | ||
importer: Nullable<string>, | ||
options: BindingHookResolveIdExtraOptions, | ||
) => MaybePromise$1<VoidNullable<BindingHookResolveIdOutput>> | ||
load?: (id: string) => MaybePromise$1<VoidNullable<BindingHookLoadOutput>> | ||
transform?: ( | ||
id: string, | ||
code: string, | ||
) => MaybePromise$1<VoidNullable<BindingHookLoadOutput>> | ||
buildEnd?: (error: Nullable<string>) => MaybePromise$1<VoidNullable> | ||
renderChunk?: ( | ||
code: string, | ||
chunk: RenderedChunk, | ||
) => MaybePromise$1<VoidNullable<BindingHookRenderChunkOutput>> | ||
generateBundle?: ( | ||
bundle: BindingOutputs, | ||
isWrite: boolean, | ||
) => MaybePromise$1<VoidNullable> | ||
writeBundle?: (bundle: BindingOutputs) => MaybePromise$1<VoidNullable> | ||
} | ||
interface BindingRenderedModule { | ||
@@ -1122,2 +1184,3 @@ code?: string | ||
cwd?: string; | ||
platform?: BindingInputOptions['platform']; | ||
} | ||
@@ -1129,2 +1192,3 @@ type RolldownResolveOptions = Omit<BindingResolveOptions, 'alias'> & { | ||
resolve?: BindingResolveOptions; | ||
platform?: BindingInputOptions['platform']; | ||
}; | ||
@@ -1131,0 +1195,0 @@ |
{ | ||
"name": "rolldown", | ||
"version": "0.10.1-snapshot-1a28885-20240404002606", | ||
"version": "0.10.1-snapshot-97ea4b6-20240405002431", | ||
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.", | ||
@@ -69,15 +69,15 @@ "homepage": "https://rolldown.rs/", | ||
"vitest": "^1.3.1", | ||
"rolldown": "0.10.1-snapshot-1a28885-20240404002606" | ||
"rolldown": "0.10.1-snapshot-97ea4b6-20240405002431" | ||
}, | ||
"optionalDependencies": { | ||
"@rolldown/binding-darwin-arm64": "0.10.1-snapshot-1a28885-20240404002606", | ||
"@rolldown/binding-darwin-x64": "0.10.1-snapshot-1a28885-20240404002606", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.10.1-snapshot-1a28885-20240404002606", | ||
"@rolldown/binding-linux-arm64-gnu": "0.10.1-snapshot-1a28885-20240404002606", | ||
"@rolldown/binding-linux-arm64-musl": "0.10.1-snapshot-1a28885-20240404002606", | ||
"@rolldown/binding-linux-x64-gnu": "0.10.1-snapshot-1a28885-20240404002606", | ||
"@rolldown/binding-linux-x64-musl": "0.10.1-snapshot-1a28885-20240404002606", | ||
"@rolldown/binding-win32-ia32-msvc": "0.10.1-snapshot-1a28885-20240404002606", | ||
"@rolldown/binding-win32-arm64-msvc": "0.10.1-snapshot-1a28885-20240404002606", | ||
"@rolldown/binding-win32-x64-msvc": "0.10.1-snapshot-1a28885-20240404002606" | ||
"@rolldown/binding-darwin-arm64": "0.10.1-snapshot-97ea4b6-20240405002431", | ||
"@rolldown/binding-darwin-x64": "0.10.1-snapshot-97ea4b6-20240405002431", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.10.1-snapshot-97ea4b6-20240405002431", | ||
"@rolldown/binding-linux-arm64-gnu": "0.10.1-snapshot-97ea4b6-20240405002431", | ||
"@rolldown/binding-linux-arm64-musl": "0.10.1-snapshot-97ea4b6-20240405002431", | ||
"@rolldown/binding-linux-x64-musl": "0.10.1-snapshot-97ea4b6-20240405002431", | ||
"@rolldown/binding-win32-arm64-msvc": "0.10.1-snapshot-97ea4b6-20240405002431", | ||
"@rolldown/binding-linux-x64-gnu": "0.10.1-snapshot-97ea4b6-20240405002431", | ||
"@rolldown/binding-win32-x64-msvc": "0.10.1-snapshot-97ea4b6-20240405002431", | ||
"@rolldown/binding-win32-ia32-msvc": "0.10.1-snapshot-97ea4b6-20240405002431" | ||
}, | ||
@@ -84,0 +84,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
960102
7443