Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): add required modules as externa…
Browse files Browse the repository at this point in the history
…ls imports

Prior to this change any module which was used using `require` was not listed as an external.

Closes #26833

(cherry picked from commit d6aea27)
  • Loading branch information
alan-agius4 committed Jan 25, 2024
1 parent e7ae9f6 commit 6815f13
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ export class BundlerContext {
for (const importData of imports) {
if (
!importData.external ||
(importData.kind !== 'import-statement' && importData.kind !== 'dynamic-import')
(importData.kind !== 'import-statement' &&
importData.kind !== 'dynamic-import' &&
importData.kind !== 'require-call')
) {
continue;
}
Expand Down

0 comments on commit 6815f13

Please sign in to comment.