Description
Describe what's incorrect/missing in the documentation
https://reactrouter.com/upgrading/router-provider#2-install-the-vite-plugin describes how to adopt the new React Router framework, coming from RouterProvider.
I started this migration, but ran into issues when I realized that the reactRouter
plugin does not accept the same options as the react
plugin, which stopped me in my tracks.
Specifically, I have the need to add babel plugins both for React compiler: https://react.dev/learn/react-compiler#usage-with-vite and Lingui: https://lingui.dev/tutorials/setup-vite.
In Discord, Kosire suggested I could patch the plugin: https://discord.com/channels/770287896669978684/1309472866453946368/1309472866453946368, which would probably work, but is not very accessible to the average user of the library, and would also be a significant maintenance burden over time, so it's not something I would like to do without being sure it is the only way.
Is this the state of things? Or is there a more appropriate way to handle this scenario, which could then be added to the documentation?