alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
35 lines (34 loc) • 1.16 kB
JavaScript
import { $module, KIND, Primitive, createPrimitive } from "alepha";
//#region ../../src/react/sitemap/primitives/$sitemap.browser.ts
/**
* Browser variant of {@link $sitemap}.
*
* The sitemap is a server-only route — there is nothing to register in the
* client bundle, so this is a no-op primitive. It exists only to keep
* `$sitemap()` valid as an isomorphic router field; the real implementation
* lives in `$sitemap.ts` (server entry).
*/
const $sitemap = (options = {}) => {
return createPrimitive(SitemapPrimitive, options);
};
var SitemapPrimitive = class extends Primitive {
onInit() {}
};
$sitemap[KIND] = SitemapPrimitive;
//#endregion
//#region ../../src/react/sitemap/index.browser.ts
/**
* Sitemap generation for React applications (browser entry).
*
* The sitemap route only exists server-side, so the browser build ships a
* no-op {@link $sitemap}. See the server entry for the real implementation.
*
* @module alepha.react.sitemap
*/
const AlephaReactSitemap = $module({
name: "alepha.react.sitemap",
primitives: [$sitemap]
});
//#endregion
export { $sitemap, AlephaReactSitemap, SitemapPrimitive };
//# sourceMappingURL=index.browser.js.map