2 ms·
That's not the point here. It's about that a thin CJS wrapper to an ESM module isn't possible but the way around is.
by desmap 6y ago
That's not the point here. It's about that a thin CJS wrapper to an ESM module isn't possible but the way around is.
- inquisitiveio 6y agoSorry I misread your comment. But is it not easier to write an CJS wrapper around ESM given that its format is a lot looser? From what I have seen seems pretty typical to simply export the named properties using a fresh module.exports = {...} and then use default as the main export?