babel-plugin-module-resolver icon indicating copy to clipboard operation
babel-plugin-module-resolver copied to clipboard

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

Open pke opened this issue 1 year ago • 0 comments

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.

pke avatar Nov 08 '22 09:11 pke