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
  • Loading branch information
alan-agius4 committed Jan 25, 2024
1 parent 9f58f0b commit d6aea27
Showing 1 changed file with 3 additions and 1 deletion.
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 d6aea27

Please sign in to comment.