Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): silence xhr2 not ESM module warning
Browse files Browse the repository at this point in the history
This is used inernally by '@angular/platform-server' and is in a seperate chunk that is unused when using `provideHttpClient(withFetch())`.

(cherry picked from commit 6067f85)
  • Loading branch information
alan-agius4 committed Oct 24, 2023
1 parent 6224b05 commit c4c299b
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -41,6 +41,10 @@ export function checkCommonJSModules(
// Once the build output is updated to be fully ESM, this can be removed.
allowedRequests.add('zone.js');

// Used by '@angular/platform-server' and is in a seperate chunk that is unused when
// using `provideHttpClient(withFetch())`.
allowedRequests.add('xhr2');

// Find all entry points that contain code (JS/TS)
const files: string[] = [];
for (const { entryPoint } of Object.values(metafile.outputs)) {
Expand Down

0 comments on commit c4c299b

Please sign in to comment.