A server function that is not available in production
I'm adding a server function that will only be used in development, I was wondering if there's a way to mark it as such and remove it from the final bundle.
I'm currently calling it from a custom plugin in tanstack devtools. I've tried to put a condition like
I'm currently calling it from a custom plugin in tanstack devtools. I've tried to put a condition like
import.meta.DEV && customPlugin to force it to only be added in dev, but after buliding the app I can still seed the server function in the bundle.