UNPKG

@oku-ui/motion

Version:

A tiny, performant animation library for VueJS

22 lines (19 loc) 530 B
import { components } from '@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(components).flat().includes(componentName)) { return { name: componentName, from: "@oku-ui/motion" }; } } } }; } export { index as default };