Plugins are only loaded in the development environment
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- devtools
Research direction
Start in src/vite/plugin.tsx at the linked line around 192 and trace how pluginDir, includeInProd, and NODE_ENV affect plugin loading. Check the existing tests or production build path for devTools and client/server configuration. Done means plugins configured with includeInProd=true are present in the live environment, with development behavior preserved.
Written by the indexing model from the issue text.
Description
I specified a pluginDir and the plugins are being loaded correctly. I would also like to use the dev tools in production, so I set includeInProd to true for client, server, and devTools. However, my plugins do not appear in the live environment.
If I interpret this line correctly, plugins are only loaded when NODE_ENV is set to "development".
Is there a reason for this, and are there any plans to change it?
Thanks a lot for these wonderful React Router dev tools ❤️
- Dominant language
- TypeScript
- Stars
- 975
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from code-forge-io/react-router-devtools
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
code-forge-io/react-router-devtools#247 · 12 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
code-forge-io/react-router-devtools#243 · 1 comment ·
All issues in code-forge-io/react-router-devtools
Similar issues
-
area:cli area:security bug priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
"code source" and "numerique.gouv" links: "new window" mention duplicated in the accessible nameOpenaccessibility
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
numerique-gouv/lasuite-landingpage#315 ·
Maintainers usually reply within 1 day
-
needs:triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
HyeokjaeChoi/vaultme#585 ·
Maintainers usually reply within 1 day
-
enhancement priority/P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
beettlle/pi-smart-router#200 ·