tleunen / babel-plugin-module-resolver

Custom module resolver plugin for Babel
MIT License
3.45k stars 205 forks source link

Bug: Same named file resolve in different order than specified in extensions #438

Open pke opened 1 year ago

pke commented 1 year ago

Given 2 files

foo.json
foo.tsx

the statement:

import { foo } from "foo"

loads the .json file and not the .tsx.

The order of the extensions mentioned in the config (which lists json as last) does not seem to be relevant.