21:48
<jakebailey>
joyee (OOO until May 20): Out of curiosity, do you think that once stable, the require(ESM) stuff is likely to be ported back to Node 20 or even Node 18? Trying to gauge the timeline of when TS could adopt it (sorry if this it the wrong forum). It turns out that there's some goofy things that we could actually already do today that would no longer require the getBuiltinModule thing, technically (e.g. an entrypoint just for node that requires the ESM TS API but polyfills the API ahead of time)
21:49
<joyee (OOO until May 20)>
I think backporting to 20 should be doable. 18 requires more effort because it's a much older branch but nothing more complicated than dealing with git conflicts
21:50
<jakebailey>

Ron came up with:

// cjs stub
require("./processPatch");
module.exports = require("./typescript");

// esm stub
import "./processPatch";
export * from "./typescript";
21:50
<jakebailey>
Yeah, I was hoping the chances were high just because this feature is so useful to everyone
21:51
<jakebailey>
Should I just ask on the require(ESM) tracker to get that request noted somewhere? 😄