I understand you can clear files from cache while using CommonJS simply by delete
ing from require.cache
and require
ing the file again. However I've been unable to find an equivalent option when using ESM. Is this possible, and if so how?
Reading at esm issues it seems cache is intentionally not exposed.
I'm afraid the answer to your question is simply no.