FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Release build resources early in non-watch mode and prevent process hang on unhandled error by alan-agius4 · Pull Request #33715 · angular/angular-cli · GitHub

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .ts  (8) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ export async function* runEsBuildBuildAction(
const withProgress: typeof withSpinner = progress ? withSpinner : withNoProgress;

// Initial build
let result: ExecutionResult;
let result: ExecutionResult | undefined;
try {
// Perform the build action
result = await withProgress('Building...', () => action());

// Log all diagnostic (error/warning/logs) messages
await logMessages(logger, result, colors, jsonLogs);
} finally {
// Ensure Sass workers are shutdown if not watching
if (!watch) {
// Ensure Sass workers are shutdown if not watching or if the initial build failed
if (!watch || !result) {
shutdownSassWorkerPool();
}
}
Expand Down
Loading

Back | FazBrowse Home | New Git URL