@uniweb/build 0.6.19 → 0.6.20
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.6.
|
|
3
|
+
"version": "0.6.20",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
53
|
"@uniweb/content-reader": "1.1.2",
|
|
54
|
-
"@uniweb/runtime": "0.5.
|
|
54
|
+
"@uniweb/runtime": "0.5.22",
|
|
55
55
|
"@uniweb/schemas": "0.2.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
@@ -207,6 +207,8 @@ export function rewriteContentPaths(content, pathMapping) {
|
|
|
207
207
|
const result = JSON.parse(JSON.stringify(content))
|
|
208
208
|
|
|
209
209
|
function walk(node) {
|
|
210
|
+
if (!node) return
|
|
211
|
+
|
|
210
212
|
// Rewrite image src
|
|
211
213
|
if (node.type === 'image' && node.attrs?.src) {
|
|
212
214
|
const newPath = pathMapping[node.attrs.src]
|