-
-
Notifications
You must be signed in to change notification settings - Fork 261
Closed
Description
This is only an issue on v5.11.8.
src/index.ts
:
const message = 'Hello World'
export const main = () => {
console.log(message)
}
main()
dist/index.d.ts
:
const message = 'Hello World!';
const main = () => {
console.log(message);
};
main();
export { main };
expected dist/index.d.ts
(emitted on v5.11.7):
declare const main: () => void;
export { main };
tsup config:
{
"entry": ["src/index.ts"],
"format": ["esm"],
"dts": true
}
Metadata
Metadata
Assignees
Labels
No labels