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