@mpen/jsxhtml 0.1.6 → 0.1.8
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/index.cjs +36 -1790
- package/index.d.ts +1 -1
- package/index.mjs +16 -1768
- package/jsx-dev-runtime.cjs +18 -0
- package/jsx-dev-runtime.mjs +14 -0
- package/jsx-runtime-NqHz6WEo.js +1796 -0
- package/jsx-runtime-xIDZYHgS.js +1770 -0
- package/jsx-runtime.cjs +9 -0
- package/jsx-runtime.mjs +1 -0
- package/jsx.d.ts +9 -0
- package/package.json +11 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require("./jsx-runtime-NqHz6WEo.js");
|
|
4
|
+
|
|
5
|
+
function jsxDEV(tag, props, key, isStaticChildren, source, self) {
|
|
6
|
+
let node = jsxRuntime.jsx(...arguments);
|
|
7
|
+
if (jsxRuntime.isJsxComponent(tag) && !(node instanceof jsxRuntime.JsxComment)) {
|
|
8
|
+
const name = tag.displayName ?? tag.name ?? "Unknown";
|
|
9
|
+
node = new jsxRuntime.JsxFragment([ new jsxRuntime.JsxComment(`<${name}>`), node, new jsxRuntime.JsxComment(`</${name}>`) ]);
|
|
10
|
+
}
|
|
11
|
+
return node;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.Fragment = jsxRuntime.Fragment;
|
|
15
|
+
|
|
16
|
+
exports.jsx = jsxRuntime.jsx;
|
|
17
|
+
|
|
18
|
+
exports.jsxDEV = jsxDEV;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { c as jsx, h as isJsxComponent, a as JsxComment, g as JsxFragment } from "./jsx-runtime-xIDZYHgS.js";
|
|
2
|
+
|
|
3
|
+
export { F as Fragment } from "./jsx-runtime-xIDZYHgS.js";
|
|
4
|
+
|
|
5
|
+
function jsxDEV(tag, props, key, isStaticChildren, source, self) {
|
|
6
|
+
let node = jsx(...arguments);
|
|
7
|
+
if (isJsxComponent(tag) && !(node instanceof JsxComment)) {
|
|
8
|
+
const name = tag.displayName ?? tag.name ?? "Unknown";
|
|
9
|
+
node = new JsxFragment([ new JsxComment(`<${name}>`), node, new JsxComment(`</${name}>`) ]);
|
|
10
|
+
}
|
|
11
|
+
return node;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { jsx, jsxDEV };
|