one
Version:
One is a new React Framework that makes Vite serve both native and web.
9 lines (8 loc) • 325 B
JavaScript
import { getPathnameFromFilePath } from "../../utils/getPathnameFromFilePath.mjs";
function getPathFromRoute(route) {
return getPathnameFromFilePath(route.file, {}, !1, {
preserveExtensions: !0
}).replace(/^\.\//, "/").replace(/\/+$/, "");
}
export { getPathFromRoute };
//# sourceMappingURL=getPathFromRoute.mjs.map