Skip to content

Support Node.js ES Modules #6

@adamhenson

Description

@adamhenson

Node.js now supports ES Modules. We should support it by exporting both CommonJS and ES modules as outlined in this article and this one.

I attempted this and got pretty far until I reached a blocker in which you need to explicitly define file extensions in the Node.js implementation as described in this issue (see below).

Allowed

import myModule from './myModule.js'

Not allowed

import myModule from './myModule'

Once this issue is addressed in Node.js, we can proceed with this support.

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