Skip to content

Test REPL in nodenext type=module projects; may need a tweak to ensure REPL is CJS #1752

@cspotcode

Description

@cspotcode

While working on #1694, stumbled upon a possible REPL issue:
if package.json type = module, and you fire up the REPL, how is the REPL being compiled? Should make sure it's treated as CJS.

Should also check ts-node -pe "is this code ESM or CJS? What should it be?"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions