Skip to content

require(esm) support #252

Open
Open
@43081j

Description

@43081j

i may be missing something, but it seems we don't support require(esm).

this messaging suggests it is an error:

A `require` call resolved to an ESM JavaScript file, which is an error in Node and some bundlers. CommonJS consumers will need to use a dynamic import.

but in node 20 and above, it is no longer an error and should work fine

not sure how we should determine this in ATTW, though. since we'd need to know what node versions you're targeting?

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