babel / babel/minify

babel-plugin-transform-inline-environment-variables does not seem to work with react-native

Open
#687 34 comments 2 reactions 0 assignees View on GitHub
needs info
Dominant language
JavaScript
Stars
4.4k
Forks
217
PR merge metrics
No merged PRs in 30d

Description

As the title says, babel-plugin-transform-inline-environment-variables doesn't seem to work with react-native. I'm not sure if it is supposed to work? My react-native version is: 0.48.2

The process.env.somevar is undefined. Do I need to clear some babel cache or something to get this working?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported process.env.somevar result with React Native 0.48.2 and babel-plugin-transform-inline-environment-variables, checking the Babel configuration and cache behavior described in the issue. Done means determining whether the plugin is supported in this setup and documenting or fixing the cause so the variable is no longer undefined.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.