Apparently if you set the "sideEffects" property in the project's package.json file, Angular CLI will respect that when building the project. I ran ng build ng2-daterangepicker after making this change and it output this in the generated package.json file:
This fixes #139
Apparently if you set the "sideEffects" property in the project's
package.json
file, Angular CLI will respect that when building the project. I ranng build ng2-daterangepicker
after making this change and it output this in the generated package.json file: