@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
- if ((0, is_mitosis_node_1.isMitosisNode)(item)) {
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
  });
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "name": "Builder.io",
23
23
  "url": "https://www.builder.io"
24
24
  },
25
- "version": "0.5.1",
25
+ "version": "0.5.2",
26
26
  "homepage": "https://github.com/BuilderIO/mitosis",
27
27
  "main": "./dist/src/index.js",
28
28
  "exports": {