Remove unused console output
This commit is contained in:
parent
2af5d4f823
commit
79bcef0698
@ -1,9 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "@denreg-jsx",
|
"name": "@denreg-jsx",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"description": "Denreg JSX renderer",
|
"description": "Denreg JSX renderer",
|
||||||
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
||||||
"contributors": [],
|
"contributors": [],
|
||||||
"deprecated": false,
|
"deprecated": false,
|
||||||
"files": ["**/*.ts", "**/*.js", "tsconfig.json", "README.md"]
|
"files": [
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.js",
|
||||||
|
"tsconfig.json",
|
||||||
|
"README.md"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,6 @@ async function renderHTML(element: Element) {
|
|||||||
if (typeof element.component !== "string")
|
if (typeof element.component !== "string")
|
||||||
throw new Error("Internal consistency error");
|
throw new Error("Internal consistency error");
|
||||||
|
|
||||||
console.log("Element:", element.component);
|
|
||||||
let props = "";
|
let props = "";
|
||||||
|
|
||||||
for (const key in element.props) {
|
for (const key in element.props) {
|
||||||
@ -101,7 +100,6 @@ async function renderHTML(element: Element) {
|
|||||||
inner = element.props["innerHTML"];
|
inner = element.props["innerHTML"];
|
||||||
} else {
|
} else {
|
||||||
const children = cleanChildren(element.children);
|
const children = cleanChildren(element.children);
|
||||||
if (tag == "body") console.log(element.children, children);
|
|
||||||
inner = (
|
inner = (
|
||||||
await Promise.all(children.map((child) => renderSSR(child)))
|
await Promise.all(children.map((child) => renderSSR(child)))
|
||||||
).join("");
|
).join("");
|
||||||
@ -114,7 +112,6 @@ async function renderCustom(element: Element) {
|
|||||||
if (typeof element.component === "string")
|
if (typeof element.component === "string")
|
||||||
throw new Error("Internal consistency error");
|
throw new Error("Internal consistency error");
|
||||||
|
|
||||||
console.log("Component:", element.component);
|
|
||||||
const res = await Promise.resolve(
|
const res = await Promise.resolve(
|
||||||
element.component(
|
element.component(
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user