### π Search Terms commonjs export ### π Version & Regression Information - This changed between versions 5.4.5 and 5.5.0 ### β― Playground Link https://www.typescriptlang.org/play/?target=7&module=1&isolatedModules=true&verbatimModuleSyntax=false&ts=5.5.0-beta#code/GYVwdgxgLglg9mABMOcAUBKAXIgbnGAE0QG8AoAXzLIFMAPABzgCcpSzFPlUAaSgbjJA ### π» Code ```ts function foo(): void { } export { foo, }; ``` ### π Actual behavior ts 5.5.0-beta and 5.5.0-dev-20240508 both emit: ```js "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.foo = void 0; function foo() { } ``` note missing last line ### π Expected behavior ts 5.4.5 emit ```js "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.foo = void 0; function foo() { } exports.foo = foo; ``` ### Additional information about the issue _No response_