vihanb / babel-plugin-wildcard

Wildcard imports import a directories JS files
MIT License
186 stars 27 forks source link

Ability to filter files #28

Closed corradio closed 5 years ago

corradio commented 5 years ago

I'm trying to import a list of images dynamically in react-native. Somes images have higher resolutions, so I would have img1.png, img1@2x.png etc.. I only want to import files in a folder that do not have the "@" character in their name. Would it be possible to have an exclusion/filter option?

Thanks!

vihanb commented 5 years ago

this does not exist at the moment. there are plans in the future to add something like this but not yet