UNPKG

@oku-ui/motion

Version:

A tiny, performant animation library for VueJS

24 lines (20 loc) 544 B
'use strict'; const motion = require('@oku-ui/motion'); function index(options = {}) { const { prefix = "" } = options; return { type: "component", resolve: (name) => { if (name.toLowerCase().startsWith(prefix.toLowerCase())) { const componentName = name.substring(prefix.length); if (Object.values(motion.components).flat().includes(componentName)) { return { name: componentName, from: "@oku-ui/motion" }; } } } }; } module.exports = index;