ember-cli / ember-cli/ember-cli-htmlbars

Colocation does not work with anonymous classes and class decorators

未關閉
#583 9 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
77
分支
65
PR 合併指標
30 天內沒有已合併 PR

描述

Moved from https://github.com/typed-ember/ember-cli-typescript/issues/1166 . There is a reproduction repo there.

cc @chriskrycho

Quote from Chris in Discord:

> I think it'll just need to tweak the transform so that if it's not a named class (BUT NAME YOUR CLASSES PEOPLE) it'll compile to
```js
import Component, { setComponentTemplate } from '@ember/component';
import template from './component.hbs';

export default setComponentTemplate(template, class extends Component {});
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

從已移動 issue 中連結的重現儲存庫開始,檢查帶有裝飾器的匿名類別的轉換路徑。當重現程式碼使用所示的 setComponentTemplate 形式編譯成功,且匿名類別的併置正常運作時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
frontend
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
28/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。