Home > vue-metamorph > astHelpers > findVueComponentOptions
astHelpers.findVueComponentOptions() function
Finds the Options API objects passed to Vue.extend(), Vue.component(), Vue.mixin(), defineComponent(), or new Vue()
Signature:
typescript
export declare function findVueComponentOptions(ast: namedTypes.Program, isSfc: boolean): namedTypes.ObjectExpression[];
Parameters
Parameter | Type | Description |
---|---|---|
ast | namedTypes.Program | The script AST |
isSfc | boolean | If true, treat the default export as an options api object |
namedTypes.ObjectExpression[]