File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
packages/angular/build/src/tools/esbuild/stylesheets Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import type { OnLoadResult , Plugin , PluginBuild } from 'esbuild' ;
10
+ import glob from 'fast-glob' ;
10
11
import assert from 'node:assert' ;
11
12
import { readFile } from 'node:fs/promises' ;
12
13
import { extname } from 'node:path' ;
13
14
import type { Options } from 'sass' ;
14
- import { glob } from 'tinyglobby ' ;
15
+ import { assertIsError } from '../../../utils/error ' ;
15
16
import type { PostcssConfiguration } from '../../../utils/postcss-configuration' ;
16
17
import { LoadResultCache , createCachedLoad } from '../load-result-cache' ;
17
18
@@ -422,8 +423,16 @@ async function compileString(
422
423
} ,
423
424
] ,
424
425
} ;
425
- }
426
+ } else {
427
+ assertIsError ( error ) ;
426
428
427
- throw error ;
429
+ return {
430
+ errors : [
431
+ {
432
+ text : error . message ,
433
+ } ,
434
+ ] ,
435
+ } ;
436
+ }
428
437
}
429
438
}
You can’t perform that action at this time.
0 commit comments