Skip to content

Support for ESM Modules #128

Open
Open
@rhamzeh

Description

Please do not report security vulnerabilities here. See the Responsible Disclosure Program.

Thank you in advance for helping us to improve this library! Please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible.

By submitting an issue to this repository, you agree to the terms within the OpenFGA Code of Conduct.

Describe the problem you'd like to have solved

We currently only support CommonJS, the industry is moving forward in support for ESM modules. We should migrate to ESM Modules but still find a way to support CommonJS for those who haven't migrated yet

Additional context

https://nodejs.org/api/esm.html
https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/
https://jestjs.io/docs/ecmascript-modules
https://the-guild.dev/blog/support-nodejs-esm
https://blog.logrocket.com/publishing-node-modules-typescript-es-modules/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions