I'm unsure of whether denoland/react-vite-ts-template is still valid. For instance, why does it need to import "react" and "react-dom" within the vite.config.ts. Also, it lacks the types for "vite/client", which causes type errors upon importing css and non-JS asset types.
I'd be extremely grateful for an updated Vite + React SPA template that showcases the correct usage of this plugin. I've sifted through OS projects using this plugin and I don't think anyone has gotten it right so far for React + Vite SPAs. I think an idiomatic template/example would go a long way.
I'm unsure of whether denoland/react-vite-ts-template is still valid. For instance, why does it need to import
"react"and"react-dom"within thevite.config.ts. Also, it lacks the types for"vite/client", which causes type errors upon importing css and non-JS asset types.I'd be extremely grateful for an updated Vite + React SPA template that showcases the correct usage of this plugin. I've sifted through OS projects using this plugin and I don't think anyone has gotten it right so far for React + Vite SPAs. I think an idiomatic template/example would go a long way.