1 | import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
2 | var _excluded = ["key", "ref"];
|
3 |
|
4 | export function jsx(type, config) {
|
5 | var _ref = config || {},
|
6 | key = _ref.key,
|
7 | ref = _ref.ref,
|
8 | props = _objectWithoutProperties(_ref, _excluded);
|
9 |
|
10 |
|
11 | for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
12 | children[_key - 2] = arguments[_key];
|
13 | }
|
14 |
|
15 | if (children.length) {
|
16 | props.children = children.length === 1 ? children[0] : children;
|
17 | }
|
18 |
|
19 | return {
|
20 | key: key,
|
21 | ref: ref,
|
22 | type: type,
|
23 | props: props,
|
24 |
|
25 | _cache: {}
|
26 | };
|
27 | } |
\ | No newline at end of file |