vihanb / babel-plugin-wildcard

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

Support for json #17

Closed serhiipalash closed 6 years ago

serhiipalash commented 6 years ago

Hi! You have a great package! Thanks!

Can you add support for .json files? We need it to load all available translations at once from this filestructure

translations/
   en.json
   de.json
   ...
vihanb commented 6 years ago

You should be able to modify the exts property and add "json" to it to be able to load json files. Does that not work?

serhiipalash commented 6 years ago

All works. Sorry, it was some bug with React Native packages cache. Can you update README with json extension in examples?