Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 31, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

kitten and others added 2 commits January 31, 2026 19:39
…alMemberExpression`s (#42752)

# Why

Resolves #42296 (See comment:
#42296 (comment))
Resolves #41334

I believe this has come up across a few issues, although it'll be hard
to find all of them that are related.

It's pretty intuitive to write `process.env?.EXPO_PUBLIC_*` and it's not
intuitive for that not to be supported. The inline plugin doesn't yet
have an `OptionalMemberExpression` visitor and nothing blocks us in the
Babel plugin from supporting this.

# How

- Refactor to remove `matchesPattern` for local `isProcessEnv` check
- Refactor to remove `toComputedKey` for simple `toMemberProperty`
helper
- Reuse `MemberExpression` visitor as `memberExpressionVisitor` for
`OptionalMemberExpression`

# Test Plan

- Tests updated to reflect new cases

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
-->

- [x] I added a `changelog.md` entry and rebuilt the package sources
according to [this short
guide](https://github.com/expo/expo/blob/main/CONTRIBUTING.md#-before-submitting)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
@pull pull bot locked and limited conversation to collaborators Jan 31, 2026
@pull pull bot added the ⤵️ pull label Jan 31, 2026
@pull pull bot merged commit b786c6a into code:main Jan 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant