mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
The internal "buildApplicationInternal" function is only used by several consumers that require writing the output files to disk. One, `browser-esbuild`, directly writes to the disk. The two experimental unit test builders also have unique requirements and also directly write. This leaves only the main `application` builder that relies on the internal file writing functionality of `buildApplicationInternal`. To avoid unneeded logic for the other usages (`dev-server`, `extract-i18n`, unit testing, etc.), the disk writing logic is now elevated to the `application` build itself. The internal function will now always provide the output files within the result objects generated from a successful build. This also removes the need for the other usages to specify that files should not be written to disk.