ember-cli / ember-cli/ember-cli-htmlbars
Colocation babel plugin drops class decorators
- Ngôn ngữ chính
- JavaScript
- Star
- 77
- Fork
- 65
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
With an input like
```js
import hbs from 'ember-cli-htmlbars-inline-precompile';
const __COLOCATED_TEMPLATE__ = hbs`{{yield}}`;
export default @dec class {}
```
The class decorator `@dec` gets dropped:
```js
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()`.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.