33 lines
565 B
JavaScript
33 lines
565 B
JavaScript
// src/jsx/dom/jsx-dev-runtime.ts
|
|
import { normalizeIntrinsicElementProps } from "../utils.js";
|
|
var JSXNodeCompatPrototype = {
|
|
type: {
|
|
get() {
|
|
return this.tag;
|
|
}
|
|
},
|
|
ref: {
|
|
get() {
|
|
return this.props?.ref;
|
|
}
|
|
}
|
|
};
|
|
var jsxDEV = (tag, props, key) => {
|
|
if (typeof tag === "string") {
|
|
normalizeIntrinsicElementProps(props);
|
|
}
|
|
return Object.defineProperties(
|
|
{
|
|
tag,
|
|
props,
|
|
key
|
|
},
|
|
JSXNodeCompatPrototype
|
|
);
|
|
};
|
|
var Fragment = (props) => jsxDEV("", props, void 0);
|
|
export {
|
|
Fragment,
|
|
jsxDEV
|
|
};
|