With an input like
importhbsfrom'ember-cli-htmlbars-inline-precompile';const__COLOCATED_TEMPLATE__=hbs`{{yield}}`;exportdefault @decclass{}The class decorator @dec gets dropped:
importhbsfrom'ember-cli-htmlbars-inline-precompile';const__COLOCATED_TEMPLATE__=hbs`{{yield}}`;exportdefaultEmber._setComponentTemplate(__COLOCATED_TEMPLATE__,class{});See example https://astexplorer.net/#/gist/4fb9360091ca6422ca0f9e4ee8ef9505/90046a397d94a8ccf8e97c17fd4f2d0cb867a129
I think all that is required to fix is to pass defaultExportDeclaration.decorators as the fourth argument to t.classExpression().
With an input like
The class decorator
@decgets dropped:See example https://astexplorer.net/#/gist/4fb9360091ca6422ca0f9e4ee8ef9505/90046a397d94a8ccf8e97c17fd4f2d0cb867a129
I think all that is required to fix is to pass
defaultExportDeclaration.decoratorsas the fourth argument tot.classExpression().