babel-plugin-transform-inline-environment-variables doesn't update unless react native cache is cleared
- Dominant language
- JavaScript
- Stars
- 4.4k
- Forks
- 217
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
`babel-plugin-transform-inline-environment-variables` doesn't use or update the value from process.env unless `react-native start` is called with `--cache-clear`
**To Reproduce**
- Export any environment variable and then launch app with `react-native start --reset-cache`
- Now change the environment variable's value
- Reload the app
- The value in react-native doesn't update
babelrc:
```js
{
"presets": ["react-native-stage-0"],
"plugins": [
"transform-inline-environment-variables",
"syntax-trailing-function-commas"
]
}
```
Contributor guide
Research direction
Reproduce the issue with the shown Babel configuration: start React Native with --reset-cache, change an exported environment variable, and reload the app. Trace how babel-plugin-transform-inline-environment-variables handles the changed process.env value and how React Native caching affects it. Done means the updated value appears after reload without requiring --cache-clear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript, react-native
- Domain
- mobile-dev, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100