You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 6, 2025. It is now read-only.
Hi, I'm using class decorators in SFCs. I found a bug in the parsing algorithm. It only accepts page components which extend Vue directly. The parsing fails to find meta when the component uses mixins:
// pages/index.vue
import {Component, mixins} from 'nuxt-property-decorator';
import SomeMixin from '@/mixins/SomeMixin';
@Component({})
export default PageComponent extends mixins(SomeMixin) {
meta = {foo: 'bar'};
}
May I suggest parsing the @Component decorator options instead like so?: (only if the typescript AST parser allows it)