Skip to content

Output has non es5 keywords. #494

@ItamarGronich

Description

@ItamarGronich
  • Are you running the latest version?
  • Have you included sample input, output, error, and expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?

Description

library contains non es5 output.
Seems like this library doesn't go through the build process actually before being published.
Otherwise babel (which doesn't have a target or a browserslist by the way) will compile to es5 by default.

My suggested solution is to run the library through a build process using babel and add a .browserslistrc file to specify the target explicitly rather than relying on convention and preset-env's default configuration.
preferably rollup which is more tailored towards libraries and has es modules export capabilities (webpack 5 has them too but it's new).

Input

None

Code

None

Output

Non es5 keywords like const exist in library output.

expected output

output should be es5 without any const, let etc...

Or, if you decide not to support older browsers, please specify so in the documentation.

Would you like to work on this issue?

  • Yes
  • No

Bookmark this repository for further updates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PendingPending to be confirmed by user/author for some check/update/implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions