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 appears to be a case where transpiling requires tracking identifier usage across the file, which is a pain and may hurt performance, but should be possible for Sucrase. The high-level plan is to keep the first export and to remove the export for later enums of the same name.
Description
The output of sucrase is not valid JavaScript code.
Input
Playground
https://sucrase.io/#transforms=typescript&compareWithBabel=false&compareWithTypeScript=true&code=export%20enum%20E%20%7B%0A%20%20A%20%3D%201%0A%7D%0Aexport%20enum%20E%20%7B%0A%20%20B%20%3D%202%0A%7D%0A
The text was updated successfully, but these errors were encountered: