Comment Comment by Tade0 > (although do you still need to use the .mjs hack?)Syntax detection is enabled by default in v22.7.0, v20.19.0:https://nodejs.org/api/packages.html#syntax-detectionSounds like the obvious correct solution, making .cjs and .mjs obsolete - unless of course someone uses import() statements exclusively, in which case I need to ask: why? parent Tade0 1 year ago
Syntax detection is enabled by default in v22.7.0, v20.19.0:
https://nodejs.org/api/packages.html#syntax-detection
Sounds like the obvious correct solution, making .cjs and .mjs obsolete - unless of course someone uses import() statements exclusively, in which case I need to ask: why?