|
|
|
|
|
by dimgl
770 days ago
|
|
> The shear amount of magic boilerplate vite creates to make react app work is quite uncomprehensible. What? pnpm create vite pnpm i pnpm run dev ...you're done? Delete all files in `src` and make a single `main.tsx` with `ReactDOM.render` if you really wanna start from scratch. |
|
Virtual modules are really tricky to understand IMO, especially if you need to debug one. There are subtle differences between dev and production that make sense for a bundler but can be really confusing to a dev. Imports also don't work quite the same, mainly when you start using features like `?raw` imports to get the contents of an SVG file or something like that.