I am using ng2-charts in my project, it is basically just a wrapper over chart.js so I have to install chart.js as well. According to the chart.js docs, moment is included by default in the build, and must be excluded by configuring webpack. Is there a way to configure the build in an angular application? Or some other way to exclude moment? Note, I am not using chart.js directly, it is used by the ng2-charts lib.