Skip to content

Please add ES6 module/ESM support #655

Open
@lillem4n

Description

@lillem4n

Describe the problem you'd like to have solved

When working in a ES6 module project I would like to be able to import jsonwebtoken.

Describe the ideal solution

A specific build for ESM/ES6 Module as other projects have, like this: https://github.com/vuejs/vue/blob/dev/dist/vue.runtime.esm.js . Or entirely switch to ESM/ES6 Modules in a new major release.

Alternatives and current work-arounds

In a ESM context I know of no workarounds, except rewriting how the project exports.

Additional context

Great docs on ESM over at Mozilla: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions