Comparing version 0.10.1-snapshot-4a61b6e-20240406003402 to 0.10.1-snapshot-709aca7-20240409002445
@@ -1,3 +0,1 @@ | ||
import { SourceMap as SourceMap$2 } from 'src/types/rolldown-output'; | ||
interface RenderedModule$1 { | ||
@@ -12,7 +10,7 @@ } | ||
interface SourceMap$1 { | ||
file?: string; | ||
file: string; | ||
mappings: string; | ||
names: string[]; | ||
sources: string[]; | ||
sourcesContent?: string[]; | ||
sourcesContent: string[]; | ||
version: number; | ||
@@ -129,3 +127,3 @@ } | ||
type SourceMapInput = | ||
type SourceMapInput$1 = | ||
| ExistingRawSourceMap | ||
@@ -146,3 +144,3 @@ | string | ||
code: string | ||
map?: SourceMapInput | ||
map?: SourceMapInput$1 | ||
} | ||
@@ -372,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 | ||
@@ -427,3 +425,3 @@ type ResolveDynamicImportHook = ( | ||
this: PluginContext$1, | ||
options: NormalizedOutputOptions, | ||
options: NormalizedOutputOptions$1, | ||
bundle: OutputBundle, | ||
@@ -460,3 +458,3 @@ isWrite: boolean, | ||
this: PluginContext$1, | ||
outputOptions: NormalizedOutputOptions, | ||
outputOptions: NormalizedOutputOptions$1, | ||
inputOptions: NormalizedInputOptions, | ||
@@ -473,3 +471,3 @@ ) => void | ||
this: PluginContext$1, | ||
options: NormalizedOutputOptions, | ||
options: NormalizedOutputOptions$1, | ||
bundle: OutputBundle, | ||
@@ -856,3 +854,3 @@ ) => void | ||
interface NormalizedOutputOptions { | ||
interface NormalizedOutputOptions$1 { | ||
amd: NormalizedAmdOptions | ||
@@ -1053,2 +1051,7 @@ assetFileNames: string | ((chunkInfo: PreRenderedAsset) => string) | ||
interface AliasItem { | ||
find: string | ||
replacements: Array<string> | ||
} | ||
interface BindingHookLoadOutput { | ||
@@ -1061,2 +1064,3 @@ code: string | ||
code: string | ||
map?: string | ||
} | ||
@@ -1090,2 +1094,3 @@ | ||
resolve?: BindingResolveOptions | ||
shimMissingExports?: boolean | ||
platform?: 'node' | 'browser' | 'neutral' | ||
@@ -1095,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 { | ||
@@ -1130,3 +1151,3 @@ importKind: string | ||
interface BindingResolveOptions { | ||
alias?: Record<string, Array<string>> | ||
alias?: Array<AliasItem> | ||
aliasFields?: Array<Array<string>> | ||
@@ -1140,2 +1161,3 @@ conditionNames?: Array<string> | ||
symlinks?: boolean | ||
tsconfigFilename?: string | ||
} | ||
@@ -1160,2 +1182,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>; | ||
@@ -1176,9 +1221,12 @@ 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 | SourceMap$2; | ||
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>>; | ||
@@ -1196,2 +1244,3 @@ generateBundle?: Hook<(bundle: BindingOutputs, isWrite: boolean) => MaybePromise<NullValue>>; | ||
platform?: BindingInputOptions['platform']; | ||
shimMissingExports?: BindingInputOptions['shimMissingExports']; | ||
} | ||
@@ -1206,11 +1255,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 { | ||
@@ -1217,0 +1257,0 @@ output?: OutputOptions; |
{ | ||
"name": "rolldown", | ||
"version": "0.10.1-snapshot-4a61b6e-20240406003402", | ||
"version": "0.10.1-snapshot-709aca7-20240409002445", | ||
"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-4a61b6e-20240406003402" | ||
"rolldown": "0.10.1-snapshot-709aca7-20240409002445" | ||
}, | ||
"optionalDependencies": { | ||
"@rolldown/binding-darwin-x64": "0.10.1-snapshot-4a61b6e-20240406003402", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.10.1-snapshot-4a61b6e-20240406003402", | ||
"@rolldown/binding-darwin-arm64": "0.10.1-snapshot-4a61b6e-20240406003402", | ||
"@rolldown/binding-linux-arm64-gnu": "0.10.1-snapshot-4a61b6e-20240406003402", | ||
"@rolldown/binding-linux-arm64-musl": "0.10.1-snapshot-4a61b6e-20240406003402", | ||
"@rolldown/binding-linux-x64-gnu": "0.10.1-snapshot-4a61b6e-20240406003402", | ||
"@rolldown/binding-win32-ia32-msvc": "0.10.1-snapshot-4a61b6e-20240406003402", | ||
"@rolldown/binding-win32-arm64-msvc": "0.10.1-snapshot-4a61b6e-20240406003402", | ||
"@rolldown/binding-linux-x64-musl": "0.10.1-snapshot-4a61b6e-20240406003402", | ||
"@rolldown/binding-win32-x64-msvc": "0.10.1-snapshot-4a61b6e-20240406003402" | ||
"@rolldown/binding-darwin-arm64": "0.10.1-snapshot-709aca7-20240409002445", | ||
"@rolldown/binding-darwin-x64": "0.10.1-snapshot-709aca7-20240409002445", | ||
"@rolldown/binding-linux-arm-gnueabihf": "0.10.1-snapshot-709aca7-20240409002445", | ||
"@rolldown/binding-linux-arm64-gnu": "0.10.1-snapshot-709aca7-20240409002445", | ||
"@rolldown/binding-linux-arm64-musl": "0.10.1-snapshot-709aca7-20240409002445", | ||
"@rolldown/binding-linux-x64-gnu": "0.10.1-snapshot-709aca7-20240409002445", | ||
"@rolldown/binding-linux-x64-musl": "0.10.1-snapshot-709aca7-20240409002445", | ||
"@rolldown/binding-win32-arm64-msvc": "0.10.1-snapshot-709aca7-20240409002445", | ||
"@rolldown/binding-win32-ia32-msvc": "0.10.1-snapshot-709aca7-20240409002445", | ||
"@rolldown/binding-win32-x64-msvc": "0.10.1-snapshot-709aca7-20240409002445" | ||
}, | ||
@@ -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
973866
7585