I exploit TypeScript, React and webpack and my TypeScript has gotten very massive. And really sluggish. Not in execution. However within the compile/bundle step. It’s notably annoying when engaged on UI:
Transfer a div 3 pixels to the left. Wait an eternity. That doesn’t look proper. Let me transfer it just a few extra pixels to the left. Wait an eternity. Crap! Moved it too far. Let’s attempt one pixel to the fitting. Wait an eternity. You get the drift.
However this one tiny, tiny change made the method 4 instances quicker. All I did was one line in webpack.config from this:
use:"babel-loader"
to this line:
use:["swc-loader"]
Why is it a lot quicker? As a result of babel is written in JavaScript. And SWC (Speedy Net Compiler) is written in Rust.
I’m amazed this isn’t getting extra consideration. Right here is all you have to know: