Does not work with named export
ballPointPenguin opened this issue · comments
The following component:
import Component from '@ember/component'
const MyComponent = Component.extend({
foo: 'bar'
})
export default MyComponent
yields a Unsupported component type
error. It seems that the parser is unable to determine the export default declaration value.
Changing the component to:
import Component from '@ember/component'
export default Component.extend({
foo: 'bar'
})
and the codemod works as designed