Closed s3ththompson closed 8 months ago
Currently, the vite()->isDev() method is protected. I'd like to be able to call this method in template code from userland.
vite()->isDev()
@vitejs/plugin-react will throw an error if the refresh runtime hook is not manually included in a server template. This is a script that should be included in development only, exactly how @vite/client is inserted.
@vitejs/plugin-react
@vite/client
Happy to submit a PR for the above functionality, if you're open to it!
Seems like a good idea!
Currently, the
vite()->isDev()
method is protected. I'd like to be able to call this method in template code from userland.Use case
@vitejs/plugin-react
will throw an error if the refresh runtime hook is not manually included in a server template. This is a script that should be included in development only, exactly how@vite/client
is inserted.