Skip to content

Commit 1842bd5

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); ```
1 parent 6e27a1a commit 1842bd5

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
@@ -374,7 +374,9 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise<Config
374374
test: /\.[cm]?[tj]sx?$/,
375375
// The below is needed due to a bug in `@babel/runtime`. See: https://github.com/babel/babel/issues/12824
376376
resolve: { fullySpecified: false },
377-
exclude: [/[/\\](?:core-js|@babel|tslib|web-animations-js|web-streams-polyfill)[/\\]/],
377+
exclude: [
378+
/[/\\](?:core-js|@babel|tslib|web-animations-js|web-streams-polyfill|whatwg-url)[/\\]/,
379+
],
378380
use: [
379381
{
380382
loader: require.resolve('../../babel/webpack-loader'),

0 commit comments

Comments
 (0)