Replies: 2 comments
-
This code comes from TypeScript namespace compilation. (example) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, I'll check it out |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Code
No response
Reproduction Steps
I replaced babel with swc for transcoding,reported a mistake
![image](https://user-images.githubusercontent.com/13228964/202436684-27e48aa1-e888-4d9a-92a9-ca1f79892327.png)
I went to swc's issue to find this problem:
swc-project/swc#6307
Actual (Problematic) Behavior
![image](https://user-images.githubusercontent.com/13228964/202435680-5974a940-c3e5-47be-a3f5-2f49cecb5a34.png)
I know that the purpose here is to prevent errors caused by Color being undefined, but in this file, Color is not possible to be undefinedExpected Behavior
I hope you can remove the default value assignment here
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions