Skip to content

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

Description

@bravier

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions