Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/angular/build/src/tools/esbuild/bundler-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,13 @@ export class BundlerContext {
* All builds use the `write` option with a value of `false` to allow for the output files
* build result array to be populated.
*
* @param force If true, always rebundle.
* @returns If output files are generated, the full esbuild BuildResult; if not, the
* warnings and errors for the attempted build.
*/
async bundle(): Promise<BundleContextResult> {
async bundle(force?: boolean): Promise<BundleContextResult> {
// Return existing result if present
if (this.#esbuildResult) {
if (!force && this.#esbuildResult) {
return this.#esbuildResult;
}

Expand Down