ember-codemods / ember-native-class-codemod

A codemod-cli project for converting Ember objects to es6 native classes
68 stars 38 forks source link

Support legacy decorators in object literals (and related improvements) #502

Closed gitKrystan closed 1 year ago

gitKrystan commented 1 year ago

This codemod currently does not support legacy decorators, but we have users stuck on Ember classic that use legacy decorators (specifically, decorators in object literals).

The currently-used Flow parser does not support legacy decorators, necessitating a switch to the babel parser.

Once we switched to the babel parser and legacy decorators in object literals were parsed, the rest of the changes support transforming them in an ergonomic, configurable manner.

See also:

gitKrystan commented 1 year ago

Approved by @wycats via Telegram