Transition to the new decorate syntax for component decorators
Description
Today the babel plugin transforms the decorators to static properties on the class. We recently introduced the decorate API in the engine (https://github.com/salesforce/lwc/pull/280) to be able to use the decorators without needing the transformation set.
Tasks
- [ ] Update the babel transform to emit code using the
decorateAPI - [ ] Update all the unit-test to leverage the
decorateAPI - [x] Remove code related to static properties in the engine
👍
Any chance to do this this week @pmdartus?
I will do my best to get started with this soon.
For the record, we have transitioned to registerDecorators() which is a halfway there.
We should eventually remove the decorator transformation and use the native decorator proposal (currently stage 3)
@jmsjtu the question is really how much work is this going to be.