Skip to content

Keep @deprecated comment on the export specifiers #135

@sapphi-red

Description

@sapphi-red

Clear and concise description of the problem

Currently the /** @deprecated */ comment put on the export specifier is removed in the output. This changes the behavior on the editor, as the strikethrough won't be shown if it's removed.

Input:

export { /** @deprecated */ parseAst } from 'rolldown/parseAst';

Current dts Output:

import { parseAst } from "rolldown/parseAst";
export { parseAst };

reproduction: https://stackblitz.com/edit/rolldown-rolldown-starter-stackblitz-xbpme4rf?file=dist%2Finput.d.ts

Suggested solution

Output the dts as:

import { parseAst } from "rolldown/parseAst";
export { /** @deprecated */ parseAst };

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions