Closed HazzMan2409 closed 3 days ago
Angular does not support custom esbuild, so we can't provide any real guidance on what might be going on here.
Ok. I'll try and re-create the issue with a minimal reproduction using angular's builder api to add an esbuild plugin.
If it's a bug with custom esbuild I'll raise an issue there.
Command
build, serve
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When you add an esbuild plugin to use a global that was loaded in via angular.json scripts instead of having it bundled, you get an extra rebuild when you run a build in watch mode on startup.
I've got a minimal setup in the linked repo with Leaflet. If you run
ng serve --verbose
you will see what I mean.I've checked and running the exact same plugin with esbuild directly does not cause this extra rebuild. Note that I'm using https://www.npmjs.com/package/@angular-builders/custom-esbuild to run the esbuild plugin.
Minimal Reproduction
https://github.com/HazzMan2409/ng-extra-rebuild
Exception or Error
Your Environment
Anything else relevant?
No response