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