Skip to content

Drop CJS support | ESM-only package #1412

@mlmoravek

Description

@mlmoravek

Description

Currently the build producess en CJS as well as an ESM build product which can be imported by the user.
Moden JavaScript ecosystem like Vue/Vite/etc. treating ESM as a first-class citizen nowadays.

See blog post from Anthony Fu: https://antfu.me/posts/move-on-to-esm-only

Why Oruga need this feature

The shipped build product will be much smaller and the maintenance burden will be much simpler. ESM also provides significant advantages in static analysis and tree-shaking over CJS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions