FormidableLabs / FormidableLabs/babel-plugin-transform-define

OptionalMemberExpression?

Aperta
#90 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement help wanted
Lingua principale
JavaScript
Stelle
242
Fork
29
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I was looking at some code recently that uses `process?.env?.NODE_ENV` and was curious if this plugin supported transforming this type of code and if so what was the expected behavior. I looked through the implementation and tests and it looks like this is not currently supported in any way, so I'm wondering what you think about OptionalMemberExpression and ideally how it would work.

If the configuration specifies `process.env.NODE_ENV` that I would expect it to transform `process?.env?.NODE_ENV` and any other variations using OptionalMemberExpression. What are your thoughts?

Thank you!

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.