babel-plugin-angularjs-annotate icon indicating copy to clipboard operation
babel-plugin-angularjs-annotate copied to clipboard

support class assigned to var

Open timofei-iatsenko opened this issue 5 years ago • 1 comments

Support case when class expression assigned to a variable.

let Foo = class Foo {
      constructor($element) {
        'ngInject';
      }
    };

Closes https://github.com/schmod/babel-plugin-angularjs-annotate/issues/44

That pattern typically happens in generated code of classes + decorators, when plugin piped after typescript compiler.

timofei-iatsenko avatar Feb 03 '20 13:02 timofei-iatsenko

@schmod please review and merge

timofei-iatsenko avatar Feb 03 '20 14:02 timofei-iatsenko