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