lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/jsx.js in condenser-0.0.8 vs lib/condenser/processors/node_modules/@babel/runtime/helpers/esm/jsx.js in condenser-0.0.9

- old
+ new

@@ -11,29 +11,29 @@ props = { children: void 0 }; } - if (props && defaultProps) { - for (var propName in defaultProps) { - if (props[propName] === void 0) { - props[propName] = defaultProps[propName]; - } - } - } else if (!props) { - props = defaultProps || {}; - } - if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = new Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; + } + + if (props && defaultProps) { + for (var propName in defaultProps) { + if (props[propName] === void 0) { + props[propName] = defaultProps[propName]; + } + } + } else if (!props) { + props = defaultProps || {}; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, \ No newline at end of file