(no title)
aphexairlines | 3 years ago
You still need babel, tsc, or swc to transform typescript to JS.
And then there are imports of files that aren't JS (images, fonts, stylesheets, etc).
aphexairlines | 3 years ago
You still need babel, tsc, or swc to transform typescript to JS.
And then there are imports of files that aren't JS (images, fonts, stylesheets, etc).
Joeri|3 years ago
Typescript is indeed a given. There's no good way to do that without build tools. The question is whether typescript's benefits are worth the overhead of the build tooling. I tend to prefer it for libraries with strict API's, but I don't experience as much of a benefit for web applications. I think libraries also benefit a lot from bundling/minifying, so there I would choose a full build tools approach. For small web applications the overhead of the build tooling is not worth the benefit IMHO.
And then when it comes to direct imports of images, fonts, svg, I don't think people should do that at all, even when using heavy build tools. YMMV.
youngtaff|3 years ago
This will lead to slower FCP etc times particularly if the stylesheets aren't in cache