Skip to content

[Bug]: Unnecessary variable renaming #6586

@sxzz

Description

@sxzz

Reproduction link or steps

https://repl.rolldown.rs/#eNptT00LwjAM/SuhFxXG8FyYf0Hw3MvYOimsaelSnZT+d7MvnOglJHkv7+Ul0QmZhMFWjyUNU49CfuZCNDzq0btA0DgcCDBaqOCs8GvLtTN3Bo6Mn6C6TDyFLKCFpBB1LkRwfd+6J5YLeef3B1mcjZ096OU1JLittKsnw66QoQvOwmE7PyhUuP9H/pxUkBQCGPSRJCzypdVUl/OqUJgnkTVbq7s69psax8kc48F/9TXpgUR+A8vPcLQ=

What is expected?

//#region index.ts
const num = 0;
const config = (num) => num;

//#endregion
export { config, num };

What is actually happening?

//#region index.ts
const num = 0;
const config = (num$1) => num$1;

//#endregion
export { config, num };

System Info

N/A

Any additional comments?

Relate to dts plugin

Image

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions