@builder.io/mitosis 0.5.1 → 0.5.2
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.
|
@@ -101,7 +101,10 @@ function mapStateIdentifiers(json) {
|
|
|
101
101
|
const plugin = (0, process_code_1.createCodeProcessorPlugin)(() => (code) => mapStateIdentifiersInExpression(code, stateProperties));
|
|
102
102
|
plugin(json);
|
|
103
103
|
(0, legacy_1.default)(json).forEach(function (item) {
|
|
104
|
-
|
|
104
|
+
// only consolidate bindings for HTML tags, not custom components
|
|
105
|
+
// custom components are always PascalCase, e.g. MyComponent
|
|
106
|
+
// but HTML tags are lowercase, e.g. div
|
|
107
|
+
if ((0, is_mitosis_node_1.isMitosisNode)(item) && item.name.toLowerCase() === item.name) {
|
|
105
108
|
consolidateClassBindings(item);
|
|
106
109
|
}
|
|
107
110
|
});
|