Skip to content

ES6 Module support #12074

Open
Open
@Rosuav

Description

@Rosuav

Feature Proposal

Rather than a script element and a global, it would be convenient to be able to import Chart as an ES6 module. For example:

import {Chart} from "https://cdn.jsdelivr.net/npm/chart.js";

Currently, import * as chart from "https://cdn.jsdelivr.net/npm/chart.js"; works, but does not provide any functionality (so far as I can tell).

Is this something that would be worth adding?

Possible Implementation

No response

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