Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(package): mark package as having side-effects (#385)
By adding `"sideEffects": true` to the package.json we are telling ng-packagr that it should not apply the `"sideEffects": false` mark to the package.json that is published to npm. The result of a no-side-effect package is that the Angular CLI buildOptmizer to mark top level components as "PURE", which means that the subsequent production optimizations can remove unused functions but is also safe to rename them. AngularJS needs the names of components to remain stable since it uses reflection over the source code to find the name of components to instantiate. Fixes #382
- Loading branch information