Skip to content

[Bug]: the type of NormalizedOutputOptions.format is not compatible with rollup #2867

@sapphi-red

Description

@sapphi-red

Reproduction link or steps

The type in rolldown is format?: ModuleFormat.

export interface NormalizedOutputOptions extends OutputOptions {}

format?: ModuleFormat

The type in rollup is format: InternalModuleFormat
https://github.com/rollup/rollup/blob/dd623b56e340e51ebb09d5d1a3a9323f5f50fb3a/src/rollup/types.d.ts#L811

The types of NormalizedOutputOptions is used in renderChunk hook.

What is expected?

The type is compatible.

What is actually happening?

The type is not compatible.

System Info

N/A

Any additional comments?

related #2848

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions