Skip to content

Don't transpile to es5 #1948

@MonstraG

Description

@MonstraG

🚀 Feature Proposal

We are in 2023, and maybe we can try targeting es6 (especially because this package dropped support for IE in 3 years ago).

This can be easily done by adding

{
  "browserslist": [
    "defaults"
  ]
}

Motivation

I'm using i18next in several applications (trough next-i18next), and often, i18next is a single biggest dependency I have at 100kb (non-minified).

defaults of browserlists targets es6, and this single change drops esm build size down to 81kb. (approx. -20%)

Example

Smaller builds, faster loads worldwide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions