imxc 0.5.3 → 0.5.4
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/dist/compile.js +5 -1
- package/package.json +1 -1
package/dist/compile.js
CHANGED
|
@@ -64,7 +64,11 @@ export function compile(files, outputDir) {
|
|
|
64
64
|
for (const comp of compiled) {
|
|
65
65
|
resolveCustomComponents(comp.ir.body, componentMap);
|
|
66
66
|
resolveDragDropTypes(comp.ir.body);
|
|
67
|
-
|
|
67
|
+
// Only detect bound props for custom components (inline props).
|
|
68
|
+
// Root components with namedPropsType receive T& directly — no pointer wrapping needed.
|
|
69
|
+
if (!comp.ir.namedPropsType) {
|
|
70
|
+
comp.boundProps = detectBoundProps(comp.ir.body);
|
|
71
|
+
}
|
|
68
72
|
}
|
|
69
73
|
// Build boundProps map for cross-component emitter use
|
|
70
74
|
const boundPropsMap = new Map();
|