Home > vue-metamorph > astHelpers
astHelpers namespace
Functions
Function | Description |
---|---|
Inserts a default import at the top of a script, or inserts a default import on an existing import declaration for the moduleSpecifier | |
createNamedImport(ast, moduleSpecifier, importName, localName) | Inserts a named import at the top of a script, or inserts a named import on an existing import declaration for the moduleSpecifier |
Inserts a namespaced import at the top of a script | |
Finds all nodes in an AST that match a partial node | |
Finds the first node in an AST that matches a partial node | |
Finds an existing import declaration for a module | |
Finds the Options API objects passed to Vue.extend(), Vue.component(), Vue.mixin(), defineComponent(), or new Vue() |