Skip to content

Conversation

@geo242
Copy link

@geo242 geo242 commented Nov 22, 2017

This is just a simple change to help prevent double inclusion of moment in client build processes

@benmccann
Copy link
Contributor

I'm not sure this is necessary or the best fix for this issue. The issue should already be resolved by #4891 once Chart.js 2.8.0 is released

@geo242
Copy link
Author

geo242 commented Nov 23, 2017

@benmccann The issue I am experiencing with a webpack based build process seems to be centered around the fact that moment gets installed under the Chart.js folder structure in node_modules. Webpack would include the module twice. Once I moved that out to peer dependencies, moment was only included once. I could probably solve this in my webpack.config, but moving it to peerDependencies seems to be a better solution IMHO.

@benmccann
Copy link
Contributor

Are you using Webpack 1 or 2? Can you try using DedupePlugin instead?

@benmccann
Copy link
Contributor

closing due to inactivity

@benmccann benmccann closed this Dec 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants