Skip to content

Possibility of ES6 module support? #1341

@Rosuav

Description

@Rosuav

Rather than a script element in the HTML, it would be helpful to be able to import as a module. For example:

import {Engine, Render, Bodies, Composite} from "./matter.min.js";
// or
import Matter from "./matter.min.js";

Is this already possible? If not, is it something worth adding?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions