We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With an input like
import hbs from 'ember-cli-htmlbars-inline-precompile'; const __COLOCATED_TEMPLATE__ = hbs`{{yield}}`; export default @dec class {}
The class decorator @dec gets dropped:
@dec
import hbs from 'ember-cli-htmlbars-inline-precompile'; const __COLOCATED_TEMPLATE__ = hbs`{{yield}}`; export default Ember._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().
defaultExportDeclaration.decorators
t.classExpression()
The text was updated successfully, but these errors were encountered:
awesome, thank you for reporting @ef4!
Sorry, something went wrong.
We should also confirm that we don't loose comments (IIRC comments are sometimes attached to the node like this).
No branches or pull requests
With an input like
The class decorator
@dec
gets dropped: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 tot.classExpression()
.The text was updated successfully, but these errors were encountered: