Infer `:module-type ` for provided `node_modules`

Description

When crawling a `node_modules` installation, we currently hardcode every provided `:module-type` to `:commonjs`. However, certain packages are starting to provide ES6 modules and we could do a better job at figuring out which files provide CommonJS vs. ES6 modules.

This might be slightly hard to do and we should throw around some ideas on how to accomplish it.

Environment

None

Status

Assignee

David Nolen

Reporter

António Monteiro

Labels

Approval

Vetted

Patch

Code and Test

Priority

Major
Configure