You can use import to run code as ESM. But is it possible to use require, module.exports and other CommonJS features in compartments?
I don't think there's built-in support for this functions. Can I emulate their behaviour? And if I can, how do I do it?