D
Deno

help

is it possible to change how tsx bundles to js?

DDoctor11/5/2022
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 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.
UUUnknown User11/5/2022
Message Not Public
Sign In & Join Server To View
DDoctor11/5/2022
Shame

Looking for more? Join the community!