Plugins are only loaded in the development environment

Open
#214 2 comments 0 reactions 0 assignees View on GitHub

@yoiang is already working on this.

Since Jun 17, 2026.

  • #260 by @yoiang — open

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

  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.

More from code-forge-io/react-router-devtools

All issues in code-forge-io/react-router-devtools

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.