@blinkk/root 1.3.26 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { b as RootConfig } from './types-YM5ppLFI.js';
1
+ import { b as RootConfig } from './types-ddh7SQTZ.js';
2
2
  import { PackageInfo } from 'workspace-tools';
3
3
  import { ViteDevServer } from 'vite';
4
4
  import 'express';
package/dist/render.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { E as Renderer } from './types-YM5ppLFI.js';
1
+ export { F as Renderer } from './types-ddh7SQTZ.js';
2
2
  import 'express';
3
3
  import 'preact';
4
4
  import 'vite';
package/dist/render.js CHANGED
@@ -13311,6 +13311,14 @@ var Renderer = class {
13311
13311
  translations
13312
13312
  });
13313
13313
  }
13314
+ /**
13315
+ * Constructs and returns the project's sitemap.
13316
+ *
13317
+ * The sitemap is used to:
13318
+ * - determine all paths to build in SSG mode
13319
+ * - display links on the dev server's 404 page
13320
+ * - construct alternates for localized URL paths
13321
+ */
13314
13322
  async getSitemap() {
13315
13323
  const sitemap = {};
13316
13324
  const sitemapItemAlts = {};
@@ -13341,6 +13349,11 @@ var Renderer = class {
13341
13349
  hrefLang,
13342
13350
  alts: sitemapItemAlts[defaultUrlPath]
13343
13351
  };
13352
+ if (sitemap[routePath.urlPath]) {
13353
+ console.warn(
13354
+ `multiple routes generate the same path: ${routePath.urlPath}. ensure each route generates a unique path.`
13355
+ );
13356
+ }
13344
13357
  sitemap[routePath.urlPath] = sitemapItem;
13345
13358
  });
13346
13359
  });