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
As I said in swc-project/swc#987, I don't think we should do this. We want the emit to use ES spec field initialisers. To get TypeScript to produce them, we need to set useDefineForClassFields to true (and we should consider adding it to the ignored options list). This will cause the emit to align to what I think the strip_types does currently, and will error on problematic, no ES spec situations like the example in swc-project/swc#980.
The alternative is to continue to drag non-aligned code around for the foreseeable future and not use ES spec field initialisers, which we don't really want to do.
No description provided.
The text was updated successfully, but these errors were encountered: