콘텐츠로 이동

OutputFile

Defined in: core/index.ts:42

contents: Uint8Array

Defined in: core/index.ts:47

Raw byte content. Exposed by NAPI via napi_create_buffer_copy — avoids the string copy + UTF-8 validation cost (safe for binary asset / CSS bundle / source map alike). Equivalent to esbuild OutputFile.contents.


optional exports?: string[]

Defined in: core/index.ts:56

The list of symbol names this chunk exports (for cross-chunk validation).


optional imports?: string[]

Defined in: core/index.ts:60

The final filenames of the other chunks this chunk imports (compatible with rolldown chunk.imports). Paths are resolved down to the content-hash.


optional moduleIds?: string[]

Defined in: core/index.ts:54

When code splitting, the absolute paths of the modules in this chunk (compatible with rolldown chunk.moduleIds). Empty array for a single bundle / asset output.


path: string

Defined in: core/index.ts:43


readonly text: string

Defined in: core/index.ts:50

Lazy UTF-8 decode of contents. Decoded once on first access and cached. Equivalent to esbuild OutputFile.text.