rdesign/frontend/node_modules/@iconify/utils/lib/loader/resolve.js

12 lines
227 B
JavaScript

import { resolvePath } from "mlly";
/**
* Resolve path to package
*/
async function resolvePathAsync(packageName, cwd) {
try {
return await resolvePath(packageName, { url: cwd });
} catch {}
}
export { resolvePathAsync };