Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the stand-alone build of Chart.js 2.8 shouldn't include moment.js #6153

Closed
bravier opened this issue Mar 21, 2019 · 2 comments
Closed

Comments

@bravier
Copy link

bravier commented Mar 21, 2019

Expected Behavior

When using the stand-alone build of Chart.js 2.8 moment.js should not be included in the chunks generated when building my app like written in the docs.

Current Behavior

moment.js gets included in the chunks even if I import only the stand-alone build and didn't use any features of moment.js.

Before with Chart.js 2.7.2:
chatjs-2 7 2-standalone

After with Chart.js 2.8.0:
chartjs-2 8 0-standalone

Possible Solution

Steps to Reproduce (for bugs)

Context

I am using Chart.js in a project with Angular 7 and I import Chart.js like so:
import 'chart.js/dist/Chart.min.js';

Environment

  • Chart.js version: 2.8.0
  • Browser name and version:
  • Link to your project:

Thanks for your help on this!

@kurkle
Copy link
Member

kurkle commented Mar 21, 2019

@simonbrunel
Copy link
Member

Please have a look to #5978 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants