You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to affect only function declarations. Variables, classes seem to be exported correctly.
The text was updated successfully, but these errors were encountered:
dragomirtitian
changed the title
[ts-beta] Function declarations are not exported when targeting commonJS - js emit regression
[ts-beta 5.5] Function declarations are not exported when targeting commonJS - js emit regression
May 29, 2024
I think a fix for this was merged just yesterday: #58489 , for some reason playground doesn't recognize the latest nightly (5.5.0-dev.20240529), cc @jakebailey
Uh oh!
There was an error while loading. Please reload this page.
π Search Terms
JavaScript emit commonjs
π Version & Regression Information
β― Playground Link
Playground Link
π» Code
π Actual behavior
The following js is generated:
This does not actually add the function to the export. So when importing
getProgram
it will be undefined.π Expected behavior
Emit should be the same as 5.4 where the function is actually exported:
Additional information about the issue
This seems to affect only function declarations. Variables, classes seem to be exported correctly.
The text was updated successfully, but these errors were encountered: