one
Version:
One is a new React Framework that makes Vite serve both native and web.
12 lines (11 loc) • 352 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