angularesbuildangular-builder

What is the difference between the "browser-esbuild" and "application" builders?


Docs description

I saw this in the documentation but I was confused. Could anyone explain it to me better?

At first I thought that "application" was for SSR but I don't know the real difference between them.


Solution

  • Excellent question !

    The browser-esbuild builder was introduced in v16 as developer preview. It was the first esbuild based builder. It was quite experimental at the time.

    With v17 released we now have 2 esbuild based builders :

    In both cases you'll be using an esbuild-based builder. But keep in mind that the latter (browser-esbuild) will be deprecated once the transition period ends.

    More on this in this article.