Closed
Description
openedon May 8, 2024
π Search Terms
commonjs export
π Version & Regression Information
- This changed between versions 5.4.5 and 5.5.0
β― Playground Link
π» Code
function foo(): void {
}
export {
foo,
};
π Actual behavior
ts 5.5.0-beta and 5.5.0-dev-20240508 both emit:
"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
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.foo = void 0;
function foo() {
}
exports.foo = foo;
Additional information about the issue
No response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels