I am looking to help you add a feature if you can help me understand it. I keep getting requests regarding caching issues for my fork of your library, https://github.com/goatandsheep/react-native-dotenv . In Feburary, babel added a feature https://github.com/babel/babel/issues/8497 called addExternalDependency, which when configured properly allows babel to look for changes in the .env file, eliminating the caching issue.
I attempted to add it to the library (https://github.com/goatandsheep/react-native-dotenv/blob/main/index.js). I thought I had tested it thoroughly and even received a bit of help from a babel maintainer. Unfortunately, it didn't end up working. If you want, I am happy to help you with adding this feature to your library if we can collaborate and figure out how it should work so it can work for my library.
I am looking to help you add a feature if you can help me understand it. I keep getting requests regarding caching issues for my fork of your library, https://github.com/goatandsheep/react-native-dotenv . In Feburary, babel added a feature https://github.com/babel/babel/issues/8497 called
addExternalDependency
, which when configured properly allows babel to look for changes in the.env
file, eliminating the caching issue.I attempted to add it to the library (https://github.com/goatandsheep/react-native-dotenv/blob/main/index.js). I thought I had tested it thoroughly and even received a bit of help from a babel maintainer. Unfortunately, it didn't end up working. If you want, I am happy to help you with adding this feature to your library if we can collaborate and figure out how it should work so it can work for my library.