Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e36cbba

Browse filesBrowse 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.
1 parent 917af12 commit e36cbba
Copy full SHA for e36cbba

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

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

Copy file name to clipboardExpand all lines: packages/angular/build/src/tools/esbuild/bundler-context.ts
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.