@uniweb/build 1.15.0 → 1.15.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.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. package/src/prerender.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/build",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "description": "Build tooling for the Uniweb Component Web Platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -57,14 +57,14 @@
57
57
  "sharp": "^0.35.5",
58
58
  "yaml": "^2.5.0",
59
59
  "@uniweb/content-reader": "~1.5.8",
60
+ "@uniweb/theming": "~1.2.1",
61
+ "@uniweb/projections": "~1.2.11",
60
62
  "@uniweb/schemas": "~1.6.7",
61
- "@uniweb/projections": "~1.2.10",
62
63
  "@uniweb/semantic-parser": "~1.13.2",
63
- "@uniweb/theming": "~1.2.1",
64
64
  "@uniweb/content-writer": "~1.3.1"
65
65
  },
66
66
  "optionalDependencies": {
67
- "@uniweb/runtime": "~1.4.0"
67
+ "@uniweb/runtime": "~1.4.1"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
@@ -73,8 +73,8 @@
73
73
  "@tailwindcss/vite": "^4.0.0",
74
74
  "@vitejs/plugin-react": "^4.0.0 || ^5.0.0",
75
75
  "vite-plugin-svgr": "^4.0.0",
76
- "@uniweb/core": "~1.6.1",
77
- "@uniweb/runtime": "~1.4.0"
76
+ "@uniweb/core": "~1.6.2",
77
+ "@uniweb/runtime": "~1.4.1"
78
78
  },
79
79
  "peerDependenciesMeta": {
80
80
  "vite": {
package/src/prerender.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  deriveCacheKey,
24
24
  evaluateQuery,
25
25
  } from '@uniweb/core'
26
- import { recordTitle, recordImage, routePatternToRegex, routeFieldOf } from '@uniweb/core/route-match'
26
+ import { isDynamicRoute, recordTitle, recordImage, routePatternToRegex, routeFieldOf } from '@uniweb/core/route-match'
27
27
  import DataStore from '@uniweb/core/datastore'
28
28
  import { executeFetch, mergeDataIntoContent, toFetchList } from './site/data-fetcher.js'
29
29
  import { createFileTransport } from './site/file-transport.js'
@@ -1031,7 +1031,7 @@ export async function prerenderSite(siteDir, options = {}) {
1031
1031
  for (const page of website.pages) {
1032
1032
  // Skip dynamic template pages — they exist in the content for runtime
1033
1033
  // route matching but can't be pre-rendered (no concrete route)
1034
- if (page.route.includes(':')) continue
1034
+ if (isDynamicRoute(page.route)) continue
1035
1035
 
1036
1036
  // Build the output route with locale prefix
1037
1037
  // For non-default locales, translate route slugs (e.g., /about → /acerca-de)