@uniweb/build 0.41.0 → 0.42.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/build",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.1",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"yaml": "^2.5.0",
|
|
59
59
|
"@uniweb/content-reader": "^1.2.4",
|
|
60
60
|
"@uniweb/content-writer": "^0.3.4",
|
|
61
|
-
"@uniweb/projections": "^0.5.
|
|
61
|
+
"@uniweb/projections": "^0.5.13",
|
|
62
62
|
"@uniweb/semantic-parser": "^1.4.0",
|
|
63
63
|
"@uniweb/schemas": "^0.2.13",
|
|
64
64
|
"@uniweb/theming": "^0.1.15"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"@uniweb/runtime": "^0.
|
|
67
|
+
"@uniweb/runtime": "^0.18.1"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
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": "^0.
|
|
76
|
+
"@uniweb/core": "^0.24.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependenciesMeta": {
|
|
79
79
|
"vite": {
|
package/src/import-map-plugin.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Used by:
|
|
12
12
|
* - Site builds (runtime mode + extensions) — packages/build/src/site/config.js
|
|
13
13
|
* - Runtime shell build — packages/runtime/vite.config.app.js
|
|
14
|
-
* -
|
|
14
|
+
* - An authoring tool's live preview — its own runtime build
|
|
15
15
|
*
|
|
16
16
|
* @module @uniweb/build/import-map-plugin
|
|
17
17
|
*/
|
package/src/prerender.js
CHANGED
|
@@ -110,7 +110,7 @@ export async function executeAllFetches(siteContent, siteDir, onProgress, locale
|
|
|
110
110
|
? { siteRoot: localeInfo.distDir, publicDir: '.' }
|
|
111
111
|
: fetchOptions
|
|
112
112
|
const optionsFor = (cfg, oneFetch) => (cfg.path !== oneFetch.path ? localizedFetchOptions : fetchOptions)
|
|
113
|
-
const entry = (cfg, data, scope) => ({ config: cfg, data, meta: {
|
|
113
|
+
const entry = (cfg, data, scope) => ({ config: cfg, data, meta: { whole: cfg.whole }, _scope: scope })
|
|
114
114
|
|
|
115
115
|
// 1. Site-level fetch. ⛔ `toFetchList` rather than a property read: a `fetch:`
|
|
116
116
|
// or `data:` LIST parses to an array, and `siteFetch.prerender` on one is
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Split Content Helper
|
|
3
3
|
*
|
|
4
4
|
* Shared utility to determine whether a site should use split page content.
|
|
5
|
-
* Used by the site plugin, prerender, and
|
|
5
|
+
* Used by the site plugin, prerender, and any host that assembles the shell
|
|
6
|
+
* server-side.
|
|
6
7
|
*
|
|
7
8
|
* @module @uniweb/build/site
|
|
8
9
|
*/
|