Skip to content

Commit 424f1cb

Browse files
committed
fix(@angular/build): do not consider internal Angular files as external imports
When using the `application` build system with i18n enabled, the development server may unintentionally attempt to optimize virtual internal files for the locale data. These virtual files are now excluded from the list of external imports. (cherry picked from commit e36cbba)
1 parent 631ac7e commit 424f1cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/angular/build/src/tools/esbuild/bundler-context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ export class BundlerContext {
366366
if (
367367
!external ||
368368
SERVER_GENERATED_EXTERNALS.has(path) ||
369+
isInternalAngularFile(path) ||
369370
(kind !== 'import-statement' && kind !== 'dynamic-import' && kind !== 'require-call')
370371
) {
371372
continue;

0 commit comments

Comments
 (0)