Skip to content

Commit cfb3684

Browse files
alan-agius4filipesilva
authored andcommitted
fix(@angular-devkit/build-angular): don't downlevel web-animations-js
This library is minified and it causes Babel to consume a lot of resources when trying to downlevel. Closes #19660
1 parent 3aa8bb1 commit cfb3684

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
545545
},
546546
{
547547
test: /\.m?js$/,
548-
exclude: [/[\/\\](?:core-js|\@babel|tslib)[\/\\]/, /(ngfactory|ngstyle)\.js$/],
548+
exclude: [/[\/\\](?:core-js|\@babel|tslib|web-animations-js)[\/\\]/, /(ngfactory|ngstyle)\.js$/],
549549
use: [
550550
...(wco.supportES2015
551551
? []

0 commit comments

Comments
 (0)