Commit baa3621b authored by Bradley Farias's avatar Bradley Farias
Browse files

esm: empty ext from pkg type/main doesnt affect format

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: default avatarGuy Bedford <guybedford@gmail.com>
parent 3abe3f2d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment