PatrickJS / angular-hmr

:fire: Angular Hot Module Replacement for Hot Module Reloading
https://patrickjs.com
Apache License 2.0
505 stars 46 forks source link

Tree shaking #86

Closed RIPT1DE closed 3 years ago

RIPT1DE commented 3 years ago

Currently, the module does not get tree shaken in prod builds, even when the dead code is eliminated by webpack. Specifying sideEffects flag in package.json and targeting es2015 modules will allow webpack to tree shake this module completely in prod builds

this fixes #85