Skip to content

Commit eded65e

Browse files
committed
fixup! fix(@angular/build): avoid expanding directory patterns in asset globs
1 parent 0a82a27 commit eded65e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/angular/build/src/utils/resolve-assets.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const DEFAULT_ASSET_IGNORE_FILES: ReadonlySet<string> = new Set([
1717
'.DS_Store',
1818
'Thumbs.db',
1919
]);
20-
const DEFAULT_ASSET_IGNORE_PATTERNS: string[] = Array.from(
20+
const DEFAULT_ASSET_IGNORE_PATTERNS: readonly string[] = Array.from(
2121
DEFAULT_ASSET_IGNORE_FILES,
2222
(file) => `**/${file}`,
2323
);
@@ -62,7 +62,7 @@ function normalizeIgnorePattern(pattern: string): string[] {
6262
*/
6363
export function normalizeAssetIgnorePatterns(ignore?: readonly string[]): string[] {
6464
if (!ignore?.length) {
65-
return DEFAULT_ASSET_IGNORE_PATTERNS;
65+
return [...DEFAULT_ASSET_IGNORE_PATTERNS];
6666
}
6767

6868
return [

0 commit comments

Comments
 (0)