DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

Cover image for Angular v.14 + ESBUILD = -25/40% build time
Fabio Biondi
Fabio Biondi

Posted on

Angular v.14 + ESBUILD = -25/40% build time

Angular v.14 now supports esbuild, a "new" super fast JavaScript Bundler, also used by ViteJS.

I have tried it right now in a small Angular project (about 10 modules) and it almost halved the build time (-44%).

If you want to try it (but it's still experimental!) you can simply add the suffix '-esbuild' in your angular.json file as shown in the attached image.

...

"architect": {
 "build": {
  "builder": "@angular-devkit/build-angular:browser-esbuild",
     "options": {

...
Enter fullscreen mode Exit fullscreen mode

angular.json screenshot


More info and tutorials about Angular, React, RxJS and JS on my YouTube Channel

Oldest comments (2)

Collapse
 
naubit profile image
Al - Naubit

That was a nice read! Liked, bookmarked and followed, keep the good work!

Collapse
 
mbarzda profile image
Martynas Barzda • Edited on

I'm keeping eye on updates of this builder github.com/angular/angular-cli/tre... . RIP Webpack soon :)

Join us at DEV Want to join the conversation?
ย 

It's easy! Become a DEV member to follow this post, comment, and more.