Comparing version 0.10.1-snapshot-97ea4b6-20240405002431 to 0.10.1-snapshot-d598f12-20240414002743
@@ -14,3 +14,3 @@ interface RenderedModule$1 { | ||
sources: string[]; | ||
sourcesContent: (string | null)[]; | ||
sourcesContent: string[]; | ||
version: number; | ||
@@ -127,3 +127,3 @@ } | ||
type SourceMapInput = | ||
type SourceMapInput$1 = | ||
| ExistingRawSourceMap | ||
@@ -144,3 +144,3 @@ | string | ||
code: string | ||
map?: SourceMapInput | ||
map?: SourceMapInput$1 | ||
} | ||
@@ -370,5 +370,5 @@ | ||
chunk: RenderedChunk$1, | ||
options: NormalizedOutputOptions, | ||
options: NormalizedOutputOptions$1, | ||
meta: { chunks: Record<string, RenderedChunk$1> }, | ||
) => { code: string; map?: SourceMapInput } | string | NullValue$1 | ||
) => { code: string; map?: SourceMapInput$1 } | string | NullValue$1 | ||
@@ -425,3 +425,3 @@ type ResolveDynamicImportHook = ( | ||
this: PluginContext$1, | ||
options: NormalizedOutputOptions, | ||
options: NormalizedOutputOptions$1, | ||
bundle: OutputBundle, | ||
@@ -458,3 +458,3 @@ isWrite: boolean, | ||
this: PluginContext$1, | ||
outputOptions: NormalizedOutputOptions, | ||
outputOptions: NormalizedOutputOptions$1, | ||
inputOptions: NormalizedInputOptions, | ||
@@ -471,3 +471,3 @@ ) => void | ||
this: PluginContext$1, | ||
options: NormalizedOutputOptions, | ||
options: NormalizedOutputOptions$1, | ||
bundle: OutputBundle, | ||
@@ -854,3 +854,3 @@ ) => void | ||
interface NormalizedOutputOptions { | ||
interface NormalizedOutputOptions$1 { | ||
amd: NormalizedAmdOptions | ||
@@ -1051,2 +1051,7 @@ assetFileNames: string | ((chunkInfo: PreRenderedAsset) => string) | ||
interface AliasItem { | ||
find: string | ||
replacements: Array<string> | ||
} | ||
interface BindingHookLoadOutput { | ||
@@ -1059,2 +1064,3 @@ code: string | ||
code: string | ||
map?: string | ||
} | ||
@@ -1088,2 +1094,3 @@ | ||
resolve?: BindingResolveOptions | ||
shimMissingExports?: boolean | ||
platform?: 'node' | 'browser' | 'neutral' | ||
@@ -1093,2 +1100,18 @@ cwd: 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 { | ||
@@ -1116,2 +1139,3 @@ importKind: string | ||
) => MaybePromise$1<VoidNullable<BindingHookRenderChunkOutput>> | ||
renderStart?: () => void | ||
generateBundle?: ( | ||
@@ -1129,3 +1153,3 @@ bundle: BindingOutputs, | ||
interface BindingResolveOptions { | ||
alias?: Record<string, Array<string>> | ||
alias?: Array<AliasItem> | ||
aliasFields?: Array<Array<string>> | ||
@@ -1139,2 +1163,3 @@ conditionNames?: Array<string> | ||
symlinks?: boolean | ||
tsconfigFilename?: string | ||
} | ||
@@ -1159,2 +1184,25 @@ | ||
interface SourceMapInputObject { | ||
file?: string; | ||
mappings: string; | ||
names?: string[]; | ||
sources?: (string | null)[]; | ||
sourcesContent?: (string | null)[]; | ||
sourceRoot?: string; | ||
version: number; | ||
} | ||
type SourceMapInput = SourceMapInputObject | string | null; | ||
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>; | ||
@@ -1175,10 +1223,14 @@ type PluginContext = BindingPluginContext; | ||
code: string; | ||
map?: string | null; | ||
map?: SourceMapInput; | ||
}>>; | ||
transform?: Hook<(this: null, code: string, id: string) => MaybePromise<NullValue | string | { | ||
code: string; | ||
map?: string | null; | ||
map?: string | null | SourceMapInput; | ||
}>>; | ||
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; | ||
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>>; | ||
@@ -1195,2 +1247,3 @@ writeBundle?: Hook<(bundle: BindingOutputs) => MaybePromise<NullValue>>; | ||
platform?: BindingInputOptions['platform']; | ||
shimMissingExports?: BindingInputOptions['shimMissingExports']; | ||
} | ||
@@ -1205,11 +1258,2 @@ type RolldownResolveOptions = Omit<BindingResolveOptions, 'alias'> & { | ||
interface OutputOptions { | ||
dir?: OutputOptions$1['dir']; | ||
format?: 'es'; | ||
exports?: OutputOptions$1['exports']; | ||
sourcemap?: OutputOptions$1['sourcemap']; | ||
banner?: OutputOptions$1['banner']; | ||
footer?: OutputOptions$1['footer']; | ||
} | ||
interface RolldownOptions extends InputOptions { | ||
@@ -1216,0 +1260,0 @@ output?: OutputOptions; |
{ | ||
"name": "rolldown", | ||
"version": "0.10.1-snapshot-97ea4b6-20240405002431", | ||
"version": "0.10.1-snapshot-d598f12-20240414002743", | ||
"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-97ea4b6-20240405002431" | ||
"rolldown": "0.10.1-snapshot-d598f12-20240414002743" | ||
}, | ||
"optionalDependencies": { | ||
"@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" | ||
"@rolldown/binding-darwin-arm64": "0.10.1-snapshot-d598f12-20240414002743", | ||
"@rolldown/binding-linux-arm64-gnu": "0.10.1-snapshot-d598f12-20240414002743", | ||
"@rolldown/binding-darwin-x64": "0.10.1-snapshot-d598f12-20240414002743", | ||
"@rolldown/binding-linux-x64-gnu": "0.10.1-snapshot-d598f12-20240414002743", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.10.1-snapshot-d598f12-20240414002743", | ||
"@rolldown/binding-linux-arm64-musl": "0.10.1-snapshot-d598f12-20240414002743", | ||
"@rolldown/binding-linux-x64-musl": "0.10.1-snapshot-d598f12-20240414002743", | ||
"@rolldown/binding-win32-ia32-msvc": "0.10.1-snapshot-d598f12-20240414002743", | ||
"@rolldown/binding-win32-arm64-msvc": "0.10.1-snapshot-d598f12-20240414002743", | ||
"@rolldown/binding-win32-x64-msvc": "0.10.1-snapshot-d598f12-20240414002743" | ||
}, | ||
@@ -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
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