Doctor 🤖
Doctor 🤖2y ago

is it possible to change how tsx bundles to js?

So I’m wondering if it’s possible to get Deno to convert
<div class="test">Potato</div>
<div class="test">Potato</div>
to
{
tag: "div",
props: { class: "test" },
children: [
"Potato"
]
}
{
tag: "div",
props: { class: "test" },
children: [
"Potato"
]
}
when bundling
3 Replies
Doctor 🤖
Doctor 🤖2y ago
Instead of the function it replaces it with. Yes I can have a function that essentially creates this from that, but that requires making several variables and moving them around where this would just be declaring a massive variable and possibly doing only the dynamic stuff in it.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Doctor 🤖
Doctor 🤖2y ago
Shame