Prioritize .mjs files over .js files. This does not really follow spec but will make vite a lot more compatible with existing modules out there.
.mjs
.js
One example is the graphql package mentioned in #127
graphql
Fixes #127