1/ #JavaScript / #TypeScript: Is your own code ESM-only in new-ish projects? If not, reply and explain what is preventing you from making the switch.
Examples:
– Important feature for me—mocking node:fs (package mock-fs stopped working with ESM): https://github.com/rauschma/nodejs-tools/blob/main/src/testing/dir-json_test.ts
– That is based on Node’s new loader hooks which can be used from code (without a CLI option). That is also important to me.
– IIRC, Jest didn’t support ESM for a long time. Does it now? Some people have switched to vitest.
@rauschma currently, the FunctionalScript repo uses CommonJS because it's straightforward to make a simple module loader for CommonJS w/o writing a JavaScript parser. I couldn't find a way to do this for ES modules.
I plan to switch to ES modules only after FunctionalScript NaNVM is ready.