@neowhale/storefront 0.2.52 → 0.2.53
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/landing.global.js +7 -2
- package/package.json +1 -1
package/dist/landing.global.js
CHANGED
|
@@ -380,10 +380,15 @@ var WhaleStorefront = (function (exports) {
|
|
|
380
380
|
// src/shims/jsx-runtime-global.ts
|
|
381
381
|
var R2 = globalThis.React;
|
|
382
382
|
function jsx(type, props, key) {
|
|
383
|
+
if (props == null) props = {};
|
|
383
384
|
const { children, ...rest } = props;
|
|
384
385
|
if (key !== void 0) rest.key = key;
|
|
385
|
-
if (children === void 0
|
|
386
|
-
|
|
386
|
+
if (children === void 0 || children === null) {
|
|
387
|
+
return R2.createElement(type, rest);
|
|
388
|
+
}
|
|
389
|
+
if (Array.isArray(children)) {
|
|
390
|
+
return R2.createElement.apply(null, [type, rest].concat(children));
|
|
391
|
+
}
|
|
387
392
|
return R2.createElement(type, rest, children);
|
|
388
393
|
}
|
|
389
394
|
var Fragment2 = R2.Fragment;
|