This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify-loader/lib/matcher/attr.js
2019-08-11 20:48:02 +02:00

9 lines
338 B
JavaScript
Executable file

const { directives } = require('./generator')
module.exports = function match (_, { kebabAttr, camelAttr: attr }) {
if (!kebabAttr.startsWith('v-')) return
const name = attr.slice(1)
const directory = kebabAttr.slice(2)
if (directives.includes(name)) return [name, `import ${name} from 'vuetify/lib/directives/${directory}'`]
}