mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
This ensures files with unknown extensions like foo.bar are not loaded as CJS/ESM when imported as a main entry point and makes sure that those files would maintain the same format even if loaded after the main entrypoint. PR-URL: https://github.com/nodejs/node/pull/31021 Reviewed-By: Guy Bedford <guybedford@gmail.com>