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