We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 596b9ae commit 3e35167Copy full SHA for 3e35167
packages/angular/build/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.ts
@@ -12,6 +12,7 @@ import { readFile } from 'node:fs/promises';
12
import { extname } from 'node:path';
13
import type { Options } from 'sass';
14
import { glob } from 'tinyglobby';
15
+import { assertIsError } from '../../../utils/error';
16
import type { PostcssConfiguration } from '../../../utils/postcss-configuration';
17
import { LoadResultCache, createCachedLoad } from '../load-result-cache';
18
@@ -422,8 +423,16 @@ async function compileString(
422
423
},
424
],
425
};
- }
426
+ } else {
427
+ assertIsError(error);
428
- throw error;
429
+ return {
430
+ errors: [
431
+ {
432
+ text: error.message,
433
+ },
434
+ ],
435
+ };
436
+ }
437
}
438
0 commit comments