one
Version:
One is a new React Framework that makes Vite serve both native and web.
11 lines (10 loc) • 438 B
JavaScript
import { getPathnameFromFilePath } from "../../utils/getPathnameFromFilePath.native.js";
function getPathFromRoute(route) {
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
return getPathnameFromFilePath(route.file, {}, !1, {
...options,
preserveExtensions: !0
}).replace(/^\.\//, "/").replace(/\/+$/, "");
}
export { getPathFromRoute };
//# sourceMappingURL=getPathFromRoute.native.js.map