inital commit

This commit is contained in:
2026-01-01 15:25:19 +05:30
commit f0ae49465a
36361 changed files with 4894111 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { DEFAULT_SEGMENT_KEY } from '../../shared/lib/segment';
export function parseLoaderTree(tree) {
const [segment, parallelRoutes, modules] = tree;
const { layout } = modules;
let { page } = modules;
// a __DEFAULT__ segment means that this route didn't match any of the
// segments in the route, so we should use the default page
page = segment === DEFAULT_SEGMENT_KEY ? modules.defaultPage : page;
const layoutOrPagePath = (layout == null ? void 0 : layout[1]) || (page == null ? void 0 : page[1]);
return {
page,
segment,
modules,
layoutOrPagePath,
parallelRoutes
};
}
//# sourceMappingURL=parse-loader-tree.js.map