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

Colocation does not work with anonymous classes and class decorators

Open
#583 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
77
Forks
65
PR merge metrics
No merged PRs in 30d

Description

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 {});
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.