Closed
Description
Now that modules are unflagged, the warning for ERR_REQUIRE_ESM when loading a .js
file that would be interpreted as a module is being thrown along with the warning message in https://github.com/nodejs/node/blob/master/lib/internal/modules/cjs/loader.js#L1193.
This hinders approaches that want to use this error to explicitly check for support.
Ideally the warning can just be combined with the error message.