logoalt Hacker News

webstrandyesterday at 12:18 AM2 repliesview on HN

Anything that uses JSX syntax, for instance.

Any kind of downleveling, though that's less important these days most users only need polyfills, new syntax features like `using` are not widely used.

Minification, and bundling for web is still somewhat necessary. ESM is still tricky to use without assistance.

None of these are necessary. But if you use any of them you've already committed to having a build step, so adding in a typescript-erasure step isn't much extra work.


Replies

brazukadevyesterday at 12:27 AM

If there is one thing I don't miss using WebComponents is JSX. lit-html is much, much better.

show 1 reply
Calazonyesterday at 2:10 PM

I recently used Preact and HTM for a small side project, for the JSX-like syntax without a build step.