Skip to content

Commit a7535db

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 (cherry picked from commit cfb3684)
1 parent 32cf222 commit a7535db

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
@@ -532,7 +532,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
532532
},
533533
{
534534
test: /\.m?js$/,
535-
exclude: [/[\/\\](?:core-js|\@babel|tslib)[\/\\]/, /(ngfactory|ngstyle)\.js$/],
535+
exclude: [/[\/\\](?:core-js|\@babel|tslib|web-animations-js)[\/\\]/, /(ngfactory|ngstyle)\.js$/],
536536
use: [
537537
...(wco.supportES2015
538538
? []

0 commit comments

Comments
 (0)