Skip to content

Commit cc5505c

Browse files
alan-agius4dgp1130
authored andcommitted
fix(@angular-devkit/build-angular): add whatwg-url to downlevel exclusion list
Similar to #21739, `whatwg-url` seems to suffer from the same issue as #21735 ```ts const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype); ``` (cherry picked from commit 1842bd5)
1 parent 9b58547 commit cc5505c

File tree

1 file changed

+3
-1
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+3
-1
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/common.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise<Config
383383
test: /\.[cm]?[tj]sx?$/,
384384
// The below is needed due to a bug in `@babel/runtime`. See: https://github.com/babel/babel/issues/12824
385385
resolve: { fullySpecified: false },
386-
exclude: [/[/\\](?:core-js|@babel|tslib|web-animations-js|web-streams-polyfill)[/\\]/],
386+
exclude: [
387+
/[/\\](?:core-js|@babel|tslib|web-animations-js|web-streams-polyfill|whatwg-url)[/\\]/,
388+
],
387389
use: [
388390
{
389391
loader: require.resolve('../../babel/webpack-loader'),

0 commit comments

Comments
 (0)