@webmate-studio/builder 0.2.174 → 0.2.175
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 +1 -1
- package/src/html-cleaner.js +4 -2
package/package.json
CHANGED
package/src/html-cleaner.js
CHANGED
|
@@ -91,8 +91,10 @@ function transformIslandsToDataAttributes(html, availableIslands = [], component
|
|
|
91
91
|
while ((attrMatch = attrPattern.exec(attrsString)) !== null) {
|
|
92
92
|
const propName = attrMatch[1];
|
|
93
93
|
const propValue = attrMatch[2] || attrMatch[3] || attrMatch[4];
|
|
94
|
-
// For {expression} values,
|
|
95
|
-
|
|
94
|
+
// For {expression} values, use __WM_EXPR:name__ marker instead of {name}
|
|
95
|
+
// to prevent the template processor from evaluating them.
|
|
96
|
+
// ComponentLoader resolves these markers at runtime.
|
|
97
|
+
props[propName] = attrMatch[2] ? `__WM_EXPR:${propValue}__` : propValue;
|
|
96
98
|
}
|
|
97
99
|
if (Object.keys(props).length === 0) return '';
|
|
98
100
|
// Encode as JSON in data-island-props (preserves camelCase)
|