Closed peterp closed 3 years ago
This adds the ability to use directory named as a fallback to an index.js module. For instance, when doing:
index.js
import { dog } from 'src/dog'
and the directory contains
src/dog index.js dog.js
We can default to importing index.js instead of dog.js with the honorIndex configuration option.
dog.js
honorIndex
oh sorry, just noticed that there was a pr 🤦 , not sure why there was no notification...
This adds the ability to use directory named as a fallback to an
index.js
module. For instance, when doing:import { dog } from 'src/dog'
and the directory contains
We can default to importing
index.js
instead ofdog.js
with thehonorIndex
configuration option.