UNPKG

react-router

Version:
21 lines (20 loc) 514 B
/** * react-router v8.0.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ //#region lib/server-runtime/entry.ts function createEntryRouteModules(manifest) { return Object.keys(manifest).reduce((memo, routeId) => { let route = manifest[routeId]; if (route) memo[routeId] = route.module; return memo; }, {}); } //#endregion export { createEntryRouteModules };