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.
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.