feat: transition to useDefineForClassFields #5261
Labels
area:fast-element
Pertains to fast-element
breaking-change
A breaking change to a shipping package
community:noteworthy
An issue or PR of particular interest to the community or planned for an announcement.
improvement
A non-feature-adding improvement
status:needs-investigation
Needs additional investigation
Milestone
🙋 Feature Request
Transition to
useDefineForClassFields
for TypeScript.🤔 Expected Behavior
All core FASTElement and decorator behaviors should continue to work.
😯 Current Behavior
Unknown
💁 Possible Solution
🔦 Context
TypeScript added the option for
useDefineForClassFields
to enable transpilation of class fields to match the updated ES semantics. We don't know if turning this on will break FAST or not. We need to explore that and see if we will be able to enable this flag for the next version. It is possible that there are decorator incompatibility issues. If that's the case I'd recommend we hold off until the new decorators feature is available in TS and then make the transition to both at the same time.The text was updated successfully, but these errors were encountered: