lwc icon indicating copy to clipboard operation
lwc copied to clipboard

Transition to the new decorate syntax for component decorators

Open pmdartus opened this issue 6 years ago • 6 comments

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 decorate API
  • [ ] Update all the unit-test to leverage the decorate API
  • [x] Remove code related to static properties in the engine

pmdartus avatar May 22 '18 16:05 pmdartus

👍

caridy avatar May 22 '18 16:05 caridy

Any chance to do this this week @pmdartus?

caridy avatar May 30 '18 01:05 caridy

I will do my best to get started with this soon.

pmdartus avatar May 30 '18 15:05 pmdartus

For the record, we have transitioned to registerDecorators() which is a halfway there.

caridy avatar Nov 23 '18 17:11 caridy

We should eventually remove the decorator transformation and use the native decorator proposal (currently stage 3)

jmsjtu avatar Apr 18 '24 18:04 jmsjtu

@jmsjtu the question is really how much work is this going to be.

caridy avatar Apr 22 '24 14:04 caridy