News for hackers. Stuff that matters.
Re:State of JavaScript 2020 by worble on Friday January 15, 2021 @07:09PM (#25798399)
>All the front end devs are like, "You have to wait how many minutes for compile times?" for instance.

This is funny because waiting for typescript to build is probably double or even triple waiting for my .NET project to compile at this point. I swear it gets slower every update.

Re:State of JavaScript 2020 by robin21 on Friday January 15, 2021 @07:41PM (#25798666)
Yeh Babel and webpack blow out compile times to epic proportions.

Any app that grows to a certain size will slow down to a crawl on incremental builds.

Re:State of JavaScript 2020 by esperent on Saturday January 16, 2021 @10:04AM (#25802619)
Try esbuild. I thought the following benchmarks must be fake until I tried it myself.

https://raw.githubusercontent.com/evanw/esbuild/master/image...

Re:State of JavaScript 2020 by robin21 on Tuesday January 19, 2021 @03:09AM (#25831050)
I really can’t believe that.

But I will try!

Re:State of JavaScript 2020 by astrod on Saturday January 16, 2021 @09:13AM (#25802247)
There has been some interesting tooling being written in Rust, swc[1] compiles very fast. Not quite production ready but getting there.

[1]https://swc.rs/

Re:State of JavaScript 2020 by Pfhreak on Friday January 15, 2021 @07:22PM (#25798516)
I'm not familiar with TS compile times, most of the engineers I know working on FE code use JS.
Re:State of JavaScript 2020 by pjmlp on Saturday January 16, 2021 @04:56AM (#25801257)
Thankfully on my projects FE and BE are separate builds, so I only do FE builds when needed, I save so much minutes.
Re:State of JavaScript 2020 by williamdclt on Saturday January 16, 2021 @09:36AM (#25802403)
Genuine question: in what sort of setup do you have a single build for your frontend and backend?
Re:State of JavaScript 2020 by pjmlp on Saturday January 16, 2021 @12:45PM (#25803821)
JEE and .NET, where the build takes care of handling JavaScript, CSS and HTML files, provided they are on the expected project layout structure.

Naturally I am not doing SPAs in this case, just vanilla JS and web components.

The FE/BE split builds are only in SPA projects, with BE being mostly about WebAPIs.