Skip to content

Drop CJS support | ESM-only package #1412

Closed

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.

Activity

  1. added
    discussion
    on Sep 16, 2025
  2. changed the issue type fromtoon Sep 16, 2025
  3. added 5 commits that reference this issue on Apr 17, 2026
    f3da6db
    9369183
    b938f35
    96de5da
    abcf46d
  4. added 3 commits that reference this issue on Jun 10, 2026
    5edbcaf
    225146a
    39193cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussion

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions