UNPKG

@esmx/core

Version:

A high-performance microfrontend framework supporting Vue, React, Preact, Solid, and Svelte with SSR and Module Federation capabilities.

10 lines (9 loc) 321 B
import path from "node:path"; import { pathToFileURL } from "node:url"; export function resolvePath(root, projectPath, ...args) { return path.resolve(root, projectPath, ...args); } export function resolveImportPath(...paths) { const absolutePath = path.resolve(...paths); return pathToFileURL(absolutePath).href; }