react / react/metro

Why is the "getModules" function only available in DEV mode?

Open
#1,254 7 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.6k
Forks
696
Avg merge
8m
Merged PRs (30d)
7

Description

Good afternoon, we wanted to use “getModules” in the Production build of metro, but it’s not there. Tell me why it cannot be used in the Prod assembly? Is it possible to remove it from the DEV flag?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the getModules entry point and the DEV-mode guard in Metro, then compare its behavior in development and production builds. Read the existing comments and surrounding production-build assumptions first; completion would require an agreed explanation or decision on whether production access is supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.