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?"