-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.5.0 regression - Named exports of functions are not emitted for CommonJS #58473
Comments
the problem shows up only with functions. exporting classes or variables via |
Most likely this was #57669 (you could try using https://www.npmjs.com/package/every-ts to bisect and verify). |
Bisect confirms that it is the cause
|
Yeah, the issue appears to be that |
@jakebailey is there a chance the fix for this could be merged before 5.5.1? |
What version of TS is the above output from? Is that expected output? Unexpected output? That output is assigning |
Sorry, I think I was tracking the wrong issue. |
π Search Terms
commonjs export
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?target=7&module=1&isolatedModules=true&verbatimModuleSyntax=false&ts=5.5.0-beta#code/GYVwdgxgLglg9mABMOcAUBKAXIgbnGAE0QG8AoAXzLIFMAPABzgCcpSzFPlUAaSgbjJA
π» Code
π Actual behavior
ts 5.5.0-beta and 5.5.0-dev-20240508 both emit:
note missing last line
π Expected behavior
ts 5.4.5 emit
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: