Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

babel-plugin-transform-inline-environment-variables does not support destructuring #985

Open
eliw00d opened this issue Apr 22, 2020 · 0 comments

Comments

@eliw00d
Copy link

eliw00d commented Apr 22, 2020

Is your feature request related to a problem? Please describe.
Does not work:

const { SOME_VAR } = process.env

Works:

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: #687 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants