Skip to content

Improve "Modern" description in Readme. #613

@SeanBannister

Description

@SeanBannister

As a new user trying to decide between using --format modern or es I had trouble understanding what "modern" did from reading the readme (at first it wasn't even clear it outputs an ES module). Issue #413 helped me understand it better. But I think the readme could benefit from a better description (happy to contribute).

The line that's confusing is:

Modern output still bundles and compresses your code, but it keeps useful syntax around that actually helps compression:

This made me think that modern was a compression algorithm or some way to improve compression algorithms. But I think what that line is trying to say is that modern makes babel ignore your browserslist and only transcompile for "modern" browsers, due to this code tends to be shorter as it doesn't need to add support for older browsers.

Is this correct or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions