Skip to content

Commit

Permalink
fix(@angular-devkit/build-optimizer): set rxjs as having safe side ef…
Browse files Browse the repository at this point in the history
…fects

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 1f5861c)
  • Loading branch information
clydin committed Oct 27, 2020
1 parent 1949020 commit b0ed37a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b0ed37a

Please sign in to comment.