Comparing version 0.10.1-snapshot-e275858-20240408002449 to 0.10.1-snapshot-f2c0b8a-20240413002405
@@ -367,3 +367,3 @@ interface RenderedModule$1 { | ||
chunk: RenderedChunk$1, | ||
options: NormalizedOutputOptions, | ||
options: NormalizedOutputOptions$1, | ||
meta: { chunks: Record<string, RenderedChunk$1> }, | ||
@@ -422,3 +422,3 @@ ) => { code: string; map?: SourceMapInput$1 } | string | NullValue$1 | ||
this: PluginContext$1, | ||
options: NormalizedOutputOptions, | ||
options: NormalizedOutputOptions$1, | ||
bundle: OutputBundle, | ||
@@ -455,3 +455,3 @@ isWrite: boolean, | ||
this: PluginContext$1, | ||
outputOptions: NormalizedOutputOptions, | ||
outputOptions: NormalizedOutputOptions$1, | ||
inputOptions: NormalizedInputOptions, | ||
@@ -468,3 +468,3 @@ ) => void | ||
this: PluginContext$1, | ||
options: NormalizedOutputOptions, | ||
options: NormalizedOutputOptions$1, | ||
bundle: OutputBundle, | ||
@@ -851,3 +851,3 @@ ) => void | ||
interface NormalizedOutputOptions { | ||
interface NormalizedOutputOptions$1 { | ||
amd: NormalizedAmdOptions | ||
@@ -1048,2 +1048,7 @@ assetFileNames: string | ((chunkInfo: PreRenderedAsset) => string) | ||
interface AliasItem { | ||
find: string | ||
replacements: Array<string> | ||
} | ||
interface BindingHookLoadOutput { | ||
@@ -1090,2 +1095,18 @@ code: string | ||
interface BindingOutputOptions { | ||
entryFileNames?: string | ||
chunkFileNames?: string | ||
banner?: | ||
| Nullable<string> | ||
| ((chunk: RenderedChunk) => MaybePromise$1<VoidNullable<string>>) | ||
dir?: string | ||
exports?: 'default' | 'named' | 'none' | 'auto' | ||
footer?: | ||
| Nullable<string> | ||
| ((chunk: RenderedChunk) => MaybePromise$1<VoidNullable<string>>) | ||
format?: 'es' | 'cjs' | ||
plugins: Array<BindingPluginOptions> | ||
sourcemap?: 'file' | 'inline' | 'hidden' | ||
} | ||
interface BindingPluginContextResolveOptions { | ||
@@ -1113,2 +1134,3 @@ importKind: string | ||
) => MaybePromise$1<VoidNullable<BindingHookRenderChunkOutput>> | ||
renderStart?: () => void | ||
generateBundle?: ( | ||
@@ -1126,3 +1148,3 @@ bundle: BindingOutputs, | ||
interface BindingResolveOptions { | ||
alias?: Record<string, Array<string>> | ||
alias?: Array<AliasItem> | ||
aliasFields?: Array<Array<string>> | ||
@@ -1167,2 +1189,14 @@ conditionNames?: Array<string> | ||
interface OutputOptions { | ||
dir?: OutputOptions$1['dir']; | ||
format?: 'es'; | ||
exports?: OutputOptions$1['exports']; | ||
sourcemap?: OutputOptions$1['sourcemap']; | ||
banner?: OutputOptions$1['banner']; | ||
footer?: OutputOptions$1['footer']; | ||
entryFileNames?: string; | ||
chunkFileNames?: string; | ||
} | ||
type NormalizedOutputOptions = BindingOutputOptions; | ||
type MaybePromise<T> = T | Promise<T>; | ||
@@ -1189,3 +1223,3 @@ type PluginContext = BindingPluginContext; | ||
}>>; | ||
renderChunk?: Hook<(this: null, code: string, chunk: RenderedChunk) => MaybePromise<NullValue | string | { | ||
renderChunk?: Hook<(this: null, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions) => MaybePromise<NullValue | string | { | ||
code: string; | ||
@@ -1195,2 +1229,3 @@ map?: string | null | SourceMapInput; | ||
buildEnd?: Hook<(this: null, err?: string) => MaybePromise<NullValue>>; | ||
renderStart?: Hook<(outputOptions: BindingOutputOptions, inputOptions: RolldownNormalizedInputOptions) => MaybePromise<NullValue>>; | ||
generateBundle?: Hook<(bundle: BindingOutputs, isWrite: boolean) => MaybePromise<NullValue>>; | ||
@@ -1217,13 +1252,2 @@ writeBundle?: Hook<(bundle: BindingOutputs) => MaybePromise<NullValue>>; | ||
interface OutputOptions { | ||
dir?: OutputOptions$1['dir']; | ||
format?: 'es'; | ||
exports?: OutputOptions$1['exports']; | ||
sourcemap?: OutputOptions$1['sourcemap']; | ||
banner?: OutputOptions$1['banner']; | ||
footer?: OutputOptions$1['footer']; | ||
entryFileNames?: string; | ||
chunkFileNames?: string; | ||
} | ||
interface RolldownOptions extends InputOptions { | ||
@@ -1230,0 +1254,0 @@ output?: OutputOptions; |
{ | ||
"name": "rolldown", | ||
"version": "0.10.1-snapshot-e275858-20240408002449", | ||
"version": "0.10.1-snapshot-f2c0b8a-20240413002405", | ||
"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-e275858-20240408002449" | ||
"rolldown": "0.10.1-snapshot-f2c0b8a-20240413002405" | ||
}, | ||
"optionalDependencies": { | ||
"@rolldown/binding-darwin-arm64": "0.10.1-snapshot-e275858-20240408002449", | ||
"@rolldown/binding-darwin-x64": "0.10.1-snapshot-e275858-20240408002449", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.10.1-snapshot-e275858-20240408002449", | ||
"@rolldown/binding-linux-arm64-gnu": "0.10.1-snapshot-e275858-20240408002449", | ||
"@rolldown/binding-linux-arm64-musl": "0.10.1-snapshot-e275858-20240408002449", | ||
"@rolldown/binding-linux-x64-gnu": "0.10.1-snapshot-e275858-20240408002449", | ||
"@rolldown/binding-win32-arm64-msvc": "0.10.1-snapshot-e275858-20240408002449", | ||
"@rolldown/binding-win32-x64-msvc": "0.10.1-snapshot-e275858-20240408002449", | ||
"@rolldown/binding-linux-x64-musl": "0.10.1-snapshot-e275858-20240408002449", | ||
"@rolldown/binding-win32-ia32-msvc": "0.10.1-snapshot-e275858-20240408002449" | ||
"@rolldown/binding-darwin-arm64": "0.10.1-snapshot-f2c0b8a-20240413002405", | ||
"@rolldown/binding-darwin-x64": "0.10.1-snapshot-f2c0b8a-20240413002405", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.10.1-snapshot-f2c0b8a-20240413002405", | ||
"@rolldown/binding-linux-arm64-musl": "0.10.1-snapshot-f2c0b8a-20240413002405", | ||
"@rolldown/binding-linux-x64-gnu": "0.10.1-snapshot-f2c0b8a-20240413002405", | ||
"@rolldown/binding-linux-arm64-gnu": "0.10.1-snapshot-f2c0b8a-20240413002405", | ||
"@rolldown/binding-linux-x64-musl": "0.10.1-snapshot-f2c0b8a-20240413002405", | ||
"@rolldown/binding-win32-ia32-msvc": "0.10.1-snapshot-f2c0b8a-20240413002405", | ||
"@rolldown/binding-win32-x64-msvc": "0.10.1-snapshot-f2c0b8a-20240413002405", | ||
"@rolldown/binding-win32-arm64-msvc": "0.10.1-snapshot-f2c0b8a-20240413002405" | ||
}, | ||
@@ -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
979895
7661