From b0ed37a401a12b139a193a3da4785e989a0b7159 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Mon, 26 Oct 2020 22:22:26 -0400 Subject: [PATCH] fix(@angular-devkit/build-optimizer): set rxjs as having safe side effects The rxjs package contains module level side effects that are not marked with a pure annotation. However, these side effects are safe to remove if the values are unused. (cherry picked from commit 1f5861c93750a42ecb9308a814689e3c30d142d6) --- .../build_optimizer/src/build-optimizer/build-optimizer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer.ts b/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer.ts index 209f409c345e..65b93f2731ea 100644 --- a/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer.ts +++ b/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer.ts @@ -37,6 +37,7 @@ const knownSideEffectFreeAngularModules = [ /[\\/]node_modules[\\/]@angular[\\/]upgrade[\\/]/, /[\\/]node_modules[\\/]@angular[\\/]material[\\/]/, /[\\/]node_modules[\\/]@angular[\\/]cdk[\\/]/, + /[\\/]node_modules[\\/]rxjs[\\/]/, ]; // Factories created by AOT are known to have no side effects.