Doctor 🤖
Doctor 🤖
DDeno
Created by Doctor 🤖 on 11/5/2022 in #help
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
5 replies
DDeno
Created by Doctor 🤖 on 10/31/2022 in #help
TypeScript enums
So enums are objects with all keys being values and values being keys. Most of the time when using enums though, I place a specific enum, so knowing exactly what the value will be there. Is there a way to instead of referring to the object to get to the value, it just hard codes the value when bundling from ts to js?
5 replies