FormidableLabs / FormidableLabs/babel-plugin-transform-define
OptionalMemberExpression?
- 主要言語
- JavaScript
- スター
- 242
- フォーク
- 29
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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!
コントリビューションガイド
調査の方向性
まず、member-expression の処理に関する plugin の実装と既存のテストを確認します。これらのケースを OptionalMemberExpression のバリエーションと比較し、カバレッジを追加する前に、設定された process.env.NODE_ENV へのアクセスで期待される動作を明確にします。サポートされる変換がテストで仕様化され、常にパスすれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- babel, javascript
- 領域
- build-system, tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100