Open MatejFacko opened 2 years ago
why would you want to ship dev tool to your prod code? it will incase your package size quite a lot.
Valid reason would be, you have lower environments... like QA, Staging, Development etc and you want to interact with the dev tools. When deploying to these environments it is in essence a "production" build. I have this exact use case with ReactQuery and I hide it in the main/master production environment.
@joelpierre exactly.
+1
I can't get the devtools to work when used in module federation (remote app), and this might be the solution for just that.
It would be nice to have an option to display DevTool also in Production env.
For inspiration nice workaround was introduced by ReactQuery here: https://github.com/TanStack/query/discussions/3296 . Would it be possible something similar also here?