-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Description
I'm using React Router as a...
framework
Reproduction
I have a custom Vite Plugin that generates a file with additional routes for my RR7 app. For more information, this Vite plugin is a pre plugin.
It worked well until we updated to 7.2.0 where it broke when building. In dev it works well. In order to prove that the plugin is just ignored I even broke the Vite plugin code, and it did not errored (while in dev did).
I'm sorry right now I can't post a reproduction repo, also it would be hard to explain in detail what the Vite plugin does and how to test that it does not work. If really needed I can try, but I'm hoping that this rings some bells.
When 7.1.5 is used, it works perfectly, as it used to.
System Info
System:
OS: macOS 15.3.1
CPU: (10) arm64 Apple M1 Max
Memory: 409.00 MB / 64.00 GB
Shell: 5.1.12 - /opt/homebrew/bin/bash
Binaries:
Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
pnpm: 10.4.1 - ~/.nvm/versions/node/v22.14.0/bin/pnpm
Watchman: 2024.06.10.00 - /opt/homebrew/bin/watchman
Browsers:
Chrome: 133.0.6943.127
Safari: 18.3Used Package Manager
pnpm
Expected Behavior
My custom Vite plugin is executed in build mode. In 7.1.5 is used, it works perfectly, as it used to.
Actual Behavior
My custom Vite plugin seems that does not run in build mode, but it does in dev mode.