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 closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Description
When I compile this code with
swc
, It emitsconst txt;
but that's an invalid syntax.Expected behavior
I tested same code with Sucrase, Babel, and
esbuild
. All of these compilers produce empty code. so maybeswc
should also follow this behavior?Input code
(TypeScript. code from: https://github.com/gaeulbyul/RedBlock/blob/52d4bef6eb52bf27856660ddae188cc3a279cdc6/src/scripts/types.d.ts#L11-L13 )
Output
Config
Version
The text was updated successfully, but these errors were encountered: