babel-plugin-transform-inline-environment-variables does not support destructuring
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 4.4k
- Forks
- 217
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
Does not work:
```javascript
const { SOME_VAR } = process.env
```
Works:
```javascript
const SOME_VAR = process.env.SOME_VAR
```
**Describe the solution you'd like**
It would be nice if this plugin supported destructuring.
**Additional context**
I wasn't sure why my environment variables weren't working until I saw this comment: https://github.com/babel/minify/issues/687#issuecomment-523089830
Contributor guide
Assessment
This issue has not been assessed yet.