Skip to content
Closed
Show file tree
Hide file tree
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
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