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 angular#26833
  • Loading branch information
alan-agius4 committed Jan 25, 2024
1 parent eadd898 commit 4d515bb
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 4d515bb

Please sign in to comment.